<?php set_page_title(lang('time manager')); administration_tabbed_navigation(ADMINISTRATION_TAB_TIME); administration_crumbs(lang('time manager')); add_page_action(lang('unbilled time'), get_url('administration', 'time', array('status' => '0'))); add_page_action(lang('billed time'), get_url('administration', 'time', array('status' => '1'))); add_page_action(lang('view by user'), get_url('user', 'time')); add_page_action(lang('view by project'), get_url('project', 'time')); add_stylesheet_to_page('project/time.css'); ?> <div id="time"> <h2><?php echo $user->getDisplayName(); ?> 's <?php echo lang('unbilled time'); ?> </h2> <form action="<?php echo get_url('time', 'setstatus', array('status' => '0', 'redirect_to' => $redirect_to)); ?> " method="post"> <table class="timeLogs blank"> <tr> <th></th> <th><?php echo lang('date');
<?php set_page_title(lang('delete contact')); if ($contact->isMemberOfOwnerCompany()) { administration_tabbed_navigation(ADMINISTRATION_TAB_COMPANY); } else { administration_tabbed_navigation(ADMINISTRATION_TAB_CLIENTS); } administration_crumbs(lang('contacts')); ?> <form action="<?php echo $contact->getDeleteUrl(); ?> " method="post"> <?php tpl_display(get_template_path('form_errors')); ?> <?php if ($contact->hasAvatar()) { ?> <div class="contactAvatar"><img src="<?php echo $contact->getAvatarUrl(); ?> " alt="<?php echo clean($contact->getDisplayName()); ?> <?php echo lang('avatar'); ?> " /></div>
<?php // Set page title and set crumbs to index set_page_title(lang('clients')); administration_tabbed_navigation(ADMINISTRATION_TAB_CLIENTS); administration_crumbs(lang('clients')); if (owner_company()->canAddClient(logged_user())) { add_page_action(lang('add client'), get_url('company', 'add_client')); add_page_action(lang('add contact'), get_url('contacts', 'add')); } // if if (isset($clients) && is_array($clients) && count($clients)) { ?> <table> <tr> <th><?php echo lang('name'); ?> </th> <th class="medium"><?php echo lang('contacts'); ?> </th> <th><?php echo lang('options'); ?> </th> </tr> <?php foreach ($clients as $client) { ?>
<?php set_page_title(lang('update permissions')); administration_tabbed_navigation(ADMINISTRATION_TAB_CLIENTS); administration_crumbs(array(array(lang('clients'), get_url('administration', 'clients')), array($company->getName(), $company->getViewUrl()), array(lang('update permissions')))); if (isset($projects) && is_array($projects) && count($projects)) { ?> <div id="companyPermissions"> <div class="hint"> <div class="header"><?php echo lang('hint'); ?> </div> <div class="content"><?php echo lang('update company permissions hint'); ?> </div> </div> <form action="<?php echo $company->getUpdatePermissionsUrl(); ?> " method="post"> <table class="blank"> <?php foreach ($projects as $project) { ?> <tr> <td><?php echo checkbox_field('project_' . $project->getId(), $company->isProjectCompany($project), array('id' => 'projectPermissionsCheckbox' . $project->getId(), 'disabled' => !logged_user()->isProjectUser($project))); ?> </td>
<?php set_page_title(lang('edit company logo')); if ($company->isOwner()) { administration_tabbed_navigation(ADMINISTRATION_TAB_COMPANY); administration_crumbs(array(array(lang('company'), get_url('administration', 'company')), array(lang('edit company logo')))); } else { administration_tabbed_navigation(ADMINISTRATION_TAB_CLIENTS); administration_crumbs(array(array(lang('clients'), get_url('administration', 'clients')), array($company->getName(), $company->getViewUrl()), array(lang('edit company logo')))); } // if ?> <form action="<?php echo $company->getEditLogoUrl(); ?> " method="post" enctype="multipart/form-data"> <?php tpl_display(get_template_path('form_errors')); ?> <fieldset> <legend><?php echo lang('current logo'); ?> </legend> <?php if ($company->hasLogo()) { ?> <img src="<?php echo $company->getLogoUrl();
<?php set_page_title(lang('update permissions')); if ($user->getCompany()->isOwner()) { administration_tabbed_navigation(ADMINISTRATION_TAB_COMPANY); administration_crumbs(array(array(lang('company'), $user->getCompany()->getViewUrl()), array($user->getDisplayName(), $user->getCardUrl()), array(lang('update permissions')))); } else { administration_tabbed_navigation(ADMINISTRATION_TAB_CLIENTS); administration_crumbs(array(array(lang('clients'), get_url('administration', 'clients')), array($user->getCompany()->getName(), $user->getCompany()->getViewUrl()), array($user->getDisplayName(), $user->getCardUrl()), array(lang('update permissions')))); } // if if ($user->canUpdateProfile(logged_user())) { add_page_action(array(lang('update profile') => $user->getEditProfileUrl(), lang('change password') => $user->getEditPasswordUrl(), lang('update avatar') => $user->getUpdateAvatarUrl())); } // if if ($user->canUpdatePermissions(logged_user())) { add_page_action(array(lang('permissions') => $user->getUpdatePermissionsUrl())); } // if add_stylesheet_to_page('admin/user_permissions.css'); $quoted_permissions = array(); foreach ($permissions as $permission_id => $permission_text) { $quoted_permissions[] = "'{$permission_id}'"; } // foreach ?> <script type="text/javascript" src="<?php echo get_javascript_url('modules/updateUserPermissions.js'); ?> "></script> <script type="text/javascript">
<?php set_page_title($company->getName()); if ($company->isOwner()) { administration_tabbed_navigation(ADMINISTRATION_TAB_COMPANY); administration_crumbs(lang('company')); } else { administration_tabbed_navigation(ADMINISTRATION_TAB_CLIENTS); administration_crumbs(array(array(lang('clients'), get_url('administration', 'clients')), array($company->getName()))); } // if if ($company->canEdit(logged_user())) { add_page_action(lang('edit company'), $company->getEditUrl()); add_page_action(lang('edit company logo'), $company->getEditLogoUrl()); if (!$company->isOwner()) { add_page_action(lang('update permissions'), $company->getUpdatePermissionsUrl()); } // if } // if if (User::canAdd(logged_user(), $company)) { add_page_action(lang('add user'), $company->getAddUserUrl()); } // if $this->includeTemplate(get_template_path('company_card', 'company')); ?> <h2><?php echo lang('users'); ?> </h2>
<?php set_page_title(lang('configuration')); administration_tabbed_navigation(ADMINISTRATION_TAB_CONFIGURATION); administration_crumbs(lang('configuration', 'index')); ?> <div id="configuration"> <?php if (isset($config_categories) && is_array($config_categories) && count($config_categories)) { foreach ($config_categories as $config_category) { if (!$config_category->isEmpty()) { ?> <div class="configCategory" id="category_<?php echo $config_category->getName(); ?> "> <h2><a href="<?php echo $config_category->getUpdateUrl(); ?> "><?php echo clean($config_category->getDisplayName()); ?> </a></h2> <?php if (trim($config_category->getDisplayDescription())) { ?> <div class="configCategoryDescription"><?php echo do_textile($config_category->getDisplayDescription()); ?> </div>
<?php set_page_title(lang('configuration')); administration_tabbed_navigation(ADMINISTRATION_TAB_CONFIGURATION); administration_crumbs(lang('configuration')); ?> <div id="configuration"> <?php if (isset($config_categories) && is_array($config_categories) && count($config_categories)) { foreach ($config_categories as $config_category) { if (!$config_category->isEmpty()) { ?> <div class="configCategory" id="category_<?php echo $config_category->getName(); ?> "> <h2><a href="<?php echo $config_category->getUpdateUrl(); ?> "><?php echo clean($config_category->getDisplayName()); ?> </a></h2> <?php if (trim($config_category->getDisplayDescription())) { ?> <div class="configCategoryDescription"><?php echo do_textile($config_category->getDisplayDescription()); ?> </div>
<?php set_page_title($user->isNew() ? lang('add user account') : lang('edit user account')); if ($company->isOwner()) { administration_tabbed_navigation(ADMINISTRATION_TAB_COMPANY); administration_crumbs(array( array(lang('company'), $company->getViewUrl()), array($contact->getDisplayName(), $contact->getCardUrl()), array($user->isNew() ? lang('add user account') : lang('edit user account')) )); } else { administration_tabbed_navigation(ADMINISTRATION_TAB_CLIENTS); administration_crumbs(array( array(lang('clients'), get_url('administration', 'clients')), array($company->getName(), $company->getViewUrl()), array($contact->getDisplayName(), $contact->getCardUrl()), array($user->isNew() ? lang('add user account') : lang('edit user account')) )); } // if add_stylesheet_to_page('admin/user_permissions.css'); ?> <?php if ($contact->hasAvatar()) { ?> <span class="icon"><img src="<?php echo $contact->getAvatarUrl() ?>" alt="<?php echo clean($contact->getDisplayName()) ?> <?php echo lang('avatar') ?>" /></span> <?php } ?> <?php echo lang('contact').': '.$contact->getDisplayName() ?> <div class="clear"></div> <form action="<?php if ($user->isNew()) { echo $contact->getAddUserAccountUrl(); } else { echo $contact->getEditUserAccountUrl(); }?>" method="post">
<?php set_page_title(lang('delete user')); administration_tabbed_navigation(ADMINISTRATION_TAB_PROJECTS); administration_crumbs(lang('users')); ?> <form action="<?php echo $user->getDeleteUrl(); ?> " method="post"> <?php tpl_display(get_template_path('form_errors')); ?> <div><?php echo lang('about to delete'); ?> <b><?php echo clean($user->getDisplayName()); ?> </b></div> <div> <label><?php echo lang('confirm delete user'); ?> </label> <?php echo yes_no_widget('deleteUser[really]', 'deleteUserReallyDelete', false, lang('yes'), lang('no')); ?> </div>
<?php // Set page title and set crumbs to index set_page_title(lang('administration')); administration_tabbed_navigation(); administration_crumbs(lang('index')); ?> <div class="hint"> <div class="header"><?php echo lang('welcome to administration'); ?> </div> <div class="content" style="overflow: hidden;"> <div><?php echo lang('welcome to administration info'); ?> </div> <div><ul style="float: left; width: 12em; height: auto;"> <li><a href="<?php echo get_url('administration', 'company'); ?> "><?php echo lang('company'); ?> </a></li> <li><a href="<?php echo get_url('administration', 'clients'); ?> "><?php echo lang('clients'); ?>
<?php set_page_title(lang('plugins')); administration_tabbed_navigation(ADMINISTRATION_TAB_PLUGINS); administration_crumbs(lang('plugins'), 'index'); add_stylesheet_to_page('project/messages.css'); if (isset($plugins) && is_array($plugins) && count($plugins)) { ?> <script language="JavaScript"> function toggleVisibility(me) { if (me.style.visibility=="hidden") { me.style.visibility="visible"; } else { me.style.visibility="hidden"; } } function toggleDisplay(me) { if (me.style.display=="none") { me.style.display="block"; } else { me.style.display="none"; } } </script> <div id="plugins"> <form action="<?php echo get_url('administration', 'update_plugins'); ?> " method="post"> <fieldset> <legend><?php
<?php if ($project->isNew()) { set_page_title(lang('add project')); administration_tabbed_navigation(ADMINISTRATION_TAB_PROJECTS); administration_crumbs(array(array(lang('projects'), get_url('administration', 'projects')), array(lang('add project')))); } else { set_page_title(lang('edit project')); administration_tabbed_navigation(ADMINISTRATION_TAB_PROJECTS); administration_crumbs(array(array(lang('projects'), get_url('administration', 'projects')), array(lang('edit project')))); } // if if ($project->isNew()) { ?> <form action="<?php echo get_url('project', 'add'); ?> " method="post"> <?php } else { ?> <form action="<?php echo $project->getEditUrl(); ?> " method="post"> <?php } // if ?> <?php
<?php if ($user->getId() == logged_user()->getId()) { set_page_title(lang('update profile')); account_tabbed_navigation(); account_crumbs(lang('update profile')); } else { set_page_title(lang('update profile')); if ($company->isOwner()) { administration_tabbed_navigation(ADMINISTRATION_TAB_COMPANY); administration_crumbs(array(array(lang('company'), $company->getViewUrl()), array(lang('update profile')))); } else { administration_tabbed_navigation(ADMINISTRATION_TAB_CLIENTS); administration_crumbs(array(array(lang('clients'), get_url('administration', 'clients')), array($company->getName(), $company->getViewUrl()), array($user->getDisplayName(), $user->getCardUrl()), array(lang('update profile')))); } // if } // if if ($user->canUpdateProfile(logged_user())) { add_page_action(array(lang('update profile') => $user->getEditProfileUrl(), lang('change password') => $user->getEditPasswordUrl(), lang('update avatar') => $user->getUpdateAvatarUrl())); } // if if ($user->canUpdatePermissions(logged_user())) { add_page_action(array(lang('permissions') => $user->getUpdatePermissionsUrl())); } // if ?> <form action="<?php echo $user->getEditProfileUrl($redirect_to); ?> " method="post">
<?php // Set page title and set crumbs to index set_page_title(lang('upgrade')); administration_tabbed_navigation(); administration_crumbs(lang('upgrade')); if (is_array($versions = $versions_feed->getNewVersions(product_version())) && count($versions)) { ?> <div id="availableVersions"> <?php foreach ($versions as $version) { ?> <div class="availableVerion"> <h2><a href="<?php echo $version->getDetailsUrl(); ?> "><?php echo clean($version->getSignature()); ?> </a></h2> <div class="releaseNotes"><?php echo do_textile($version->getReleaseNotes()); ?> </div> <?php $download_links = array(); foreach ($version->getDownloadLinks() as $download_link) { $download_links[] = '<a href="' . $download_link->getUrl() . '">' . clean($download_link->getFormat()) . ' (' . format_filesize($download_link->getSize()) . ')</a>'; } // foreach ?>
<?php set_page_title(lang('administration tools')); administration_tabbed_navigation('tools'); administration_crumbs(lang('administration tools')); if (isset($tools) && is_array($tools) && count($tools)) { ?> <div id="administrationTools"> <?php foreach ($tools as $tool) { ?> <div class="administrationTool"> <div class="administrationToolName"> <h2><a href="<?php echo $tool->getToolUrl(); ?> "><?php echo clean($tool->getDisplayName()); ?> </a></h2> </div> <div class="administrationToolDesc"><?php echo clean($tool->getDisplayDescription()); ?> </div> </div> <?php } // foreach ?> </div>
<?php set_page_title($user->isNew() ? lang('add user') : lang('edit user')); if ($company->isOwner()) { administration_tabbed_navigation(ADMINISTRATION_TAB_COMPANY); administration_crumbs(array(array(lang('company'), $company->getViewUrl()), array($user->isNew() ? lang('add user') : lang('edit user')))); } else { administration_tabbed_navigation(ADMINISTRATION_TAB_CLIENTS); administration_crumbs(array(array(lang('clients'), get_url('administration', 'clients')), array($company->getName(), $company->getViewUrl()), array($user->isNew() ? lang('add user') : lang('edit user')))); } // if add_stylesheet_to_page('admin/user_permissions.css'); ?> <form action="<?php echo $company->getAddUserUrl(); ?> " method="post"> <?php tpl_display(get_template_path('form_errors')); ?> <div> <?php echo label_tag(lang('username'), 'userFormName', true); ?> <?php echo text_field('user[username]', array_var($user_data, 'username'), array('class' => 'medium', 'id' => 'userFormName')); ?> </div>
<?php set_page_title($category->getDisplayName()); administration_tabbed_navigation(ADMINISTRATION_TAB_CONFIGURATION); administration_crumbs(array(array(lang('configuration'), get_url('administration', 'configuration')), array($category->getDisplayName()))); add_stylesheet_to_page('admin/config.css'); if (isset($options) && is_array($options) && count($options)) { ?> <form action="<?php echo $category->getUpdateUrl(); ?> " method="post" onreset="return confirm('<?php echo lang('confirm reset form'); ?> ')"> <div id="configCategoryOptions"> <?php $counter = 0; foreach ($options as $option) { $counter++; ?> <div class="configCategoryOption <?php echo $counter % 2 ? 'odd' : 'even'; ?> " id="configCategoryOption_<?php echo $option->getName(); ?> "> <div class="configOptionLabel"><label><?php echo clean($option->getDisplayName()); ?>
<?php if ($company->isOwner()) { set_page_title(lang('edit company')); administration_tabbed_navigation(ADMINISTRATION_TAB_COMPANY); administration_crumbs(array(array(lang('company'), get_url('administration', 'company')), array(lang('edit company')))); } else { set_page_title($company->isNew() ? lang('add client') : lang('edit client')); administration_tabbed_navigation(ADMINISTRATION_TAB_CLIENTS); administration_crumbs(array(array(lang('clients'), get_url('administration', 'clients')), array($company->isNew() ? lang('add client') : lang('edit client')))); } // if if ($company->isNew()) { ?> <form action="<?php echo get_url('company', 'add_client'); ?> " method="post"> <?php } else { ?> <form action="<?php echo $company->getEditUrl(); ?> " method="post"> <?php } // if ?> <?php
<?php set_page_title($tool->getDisplayName()); administration_tabbed_navigation(ADMINISTRATION_TAB_TOOLS); administration_crumbs(array(array(lang('administration tools'), get_url('administration', 'tools')), array($tool->getDisplayName()))); add_stylesheet_to_page('admin/massmailer.css'); ?> <script type="text/javascript" src="<?php echo get_javascript_url('modules/massmailerForm.js'); ?> "></script> <div id="massMailer"> <form action="<?php echo $tool->getToolUrl(); ?> " method="post"> <?php tpl_display(get_template_path('form_errors')); ?> <div> <?php echo label_tag(lang('massmailer subject'), 'massmailerFormRecipient', true); ?> <?php echo text_field('massmailer[subject]', array_var($massmailer_data, 'subject'), array('id' => 'massmailerFormRecipient', 'class' => 'title')); ?> </div> <div> <?php
<?php set_page_title(lang('members')); administration_tabbed_navigation(ADMINISTRATION_TAB_MEMBERS); administration_crumbs(lang('members')); if (User::canAdd(logged_user(), owner_company())) { add_page_action(array(lang('add user') => owner_company()->getAddUserUrl())); } // if $this->includeTemplate(get_template_path('list_users', 'administration'));
<?php set_page_title(lang('load values')); administration_tabbed_navigation('i18n'); administration_crumbs(lang('i18n'), get_url('i18n')); add_page_action(lang('add locale'), get_url('i18n', 'add_locale', array('status' => '0'))); add_stylesheet_to_page('i18n.css'); $locale = $load_data['locale']; ?> <h2><?php echo lang('locale') . ': ' . $locale->getName(); ?> </h2> <form action="<?php echo $locale->getLoadValuesUrl(); ?> " method="post"> <?php tpl_display(get_template_path('form_errors')); ?> <div> <?php echo label_tag(lang('replace'), 'loadFormReplace', false); ?> <?php echo yes_no_widget('load[replace]', 'loadFormReplace', array_var($load_data, 'replace'), lang('yes'), lang('no')); ?> </div> <div>
<?php // Set page title and set crumbs to index set_page_title(lang('projects')); administration_tabbed_navigation(ADMINISTRATION_TAB_PROJECTS); administration_crumbs(lang('projects')); if (Project::canAdd(logged_user())) { add_page_action(lang('add project'), get_url('project', 'add')); add_page_action(lang('copy project'), get_url('project', 'copy')); } // if if (isset($projects) && is_array($projects) && count($projects)) { ?> <table id="projects"> <tr> <th></th> <th><?php echo lang('name'); ?> </th> <th><?php echo lang('options'); ?> </th> </tr> <?php foreach ($projects as $project) { ?> <tr> <td class="middle">
<?php if ($user->getId() == logged_user()->getId()) { set_page_title(lang('change password')); account_tabbed_navigation(); account_crumbs(lang('change password')); } else { set_page_title(lang('change password')); if ($user->getCompany()->isOwner()) { administration_tabbed_navigation(ADMINISTRATION_TAB_COMPANY); administration_crumbs(array(array(lang('company'), $user->getCompany()->getViewUrl()), array(lang('change password')))); } else { administration_tabbed_navigation(ADMINISTRATION_TAB_CLIENTS); administration_crumbs(array(array(lang('clients'), get_url('administration', 'clients')), array($user->getCompany()->getName(), $user->getCompany()->getViewUrl()), array($user->getDisplayName(), $user->getCardUrl()), array(lang('change password')))); } // if } // if if ($user->canUpdateProfile(logged_user())) { add_page_action(array(lang('update profile') => $user->getEditProfileUrl(), lang('change password') => $user->getEditPasswordUrl())); } // if if ($user->canUpdatePermissions(logged_user())) { add_page_action(array(lang('permissions') => $user->getUpdatePermissionsUrl())); } // if ?> <form action="<?php echo $user->getEditPasswordUrl($redirect_to); ?> " method="post">
<?php set_page_title(lang('delete user account')); if ($company->isOwner()) { administration_tabbed_navigation(ADMINISTRATION_TAB_COMPANY); administration_crumbs(array(array(lang('company'), $company->getViewUrl()), array($contact->getDisplayName(), $contact->getCardUrl()), array(lang('delete user account')))); } else { administration_tabbed_navigation(ADMINISTRATION_TAB_CLIENTS); administration_crumbs(array(array(lang('clients'), get_url('administration', 'clients')), array($company->getName(), $company->getViewUrl()), array($contact->getDisplayName(), $contact->getCardUrl()), array(lang('delete user account')))); } // if ?> <form action="<?php echo $contact->getDeleteUserAccountUrl(); ?> " method="post"> <?php tpl_display(get_template_path('form_errors')); ?> <div><?php echo lang('about to delete'); ?> <b><?php echo clean($user->getDisplayName()); ?> </b></div> <div> <label><?php echo lang('confirm delete user');