3 set_page_title(lang('edit company logo'));
4 if($company->isOwner()) {
5 administration_tabbed_navigation(ADMINISTRATION_TAB_COMPANY
);
6 administration_crumbs(array(
7 array(lang('company'), get_url('administration', 'company')),
8 array(lang('edit company logo'))
11 administration_tabbed_navigation(ADMINISTRATION_TAB_CLIENTS
);
12 administration_crumbs(array(
13 array(lang('clients'), get_url('administration', 'clients')),
14 array($company->getName(), $company->getViewUrl()),
15 array(lang('edit company logo'))
20 <form action
="<?php echo $company->getEditLogoUrl() ?>" method
="post" enctype
="multipart/form-data">
22 <?php
tpl_display(get_template_path('form_errors')) ?
>
25 <legend
><?php
echo lang('current logo') ?
></legend
>
26 <?php
if($company->hasLogo()) { ?
>
27 <img src
="<?php echo $company->getLogoUrl() ?>" alt
="<?php echo clean($company->getName()) ?> logo" />
28 <p
><a href
="<?php echo $company->getDeleteLogoUrl() ?>" onclick
="return confirm('<?php echo lang('confirm delete company logo') ?>')"><?php
echo lang('delete company logo') ?
></a
></p
>
30 <?php
echo lang('no current logo') ?
>
35 <?php
echo label_tag(lang('new logo'), 'avatarFormAvatar', true) ?
>
36 <?php
echo file_field('new_logo', null, array('id' => 'avatarFormAvatar')) ?
>
37 <?php
if($company->hasLogo()) { ?
>
38 <p
class="desc"><?php
echo lang('new logo notice') ?
></p
>
42 <?php
echo submit_button(lang('edit company logo')) ?
>