/** * Use widget * * @access public * @param string $widget_name * @return void */ function use_widget($widget_name) { if (function_exists('add_javascript_to_page') && function_exists('add_stylesheet_to_page')) { add_javascript_to_page("widgets/{$widget_name}/widget.js"); add_stylesheet_to_page(get_javascript_url("widgets/{$widget_name}/widget.css")); } // if }
<?php set_page_title(lang('add contact')); project_tabbed_navigation(); project_crumbs(array(array(lang('people'), get_url('project', 'people')), lang('add contact'))); add_stylesheet_to_page('project/people.css'); add_stylesheet_to_page('project/attachments.css'); ?> <script type="text/javascript" src="<?php echo get_javascript_url('modules/addContactToProjectForm.js'); ?> "></script> <script type="text/javascript" src="<?php echo get_javascript_url('modules/addContactForm.js'); ?> "></script> <form action="<?php echo $project_init ? $project->getAddContactUrl(array('project_init' => '1')) : $project->getAddContactUrl(); ?> " method="post" enctype="multipart/form-data"> <?php tpl_display(get_template_path('form_errors')); ?> <div> <?php echo radio_field('contact[what]', array_var($contact_data, 'what', 'existing') == 'existing', array('value' => 'existing', 'id' => 'contactFormExistingContact')); ?> <?php echo label_tag(lang('attach existing contact'), 'contactFormExistingContact', false, array('class' => 'checkbox')); ?>
<?php // Set page title and set crumbs to index set_page_title(lang('weekly schedule')); dashboard_tabbed_navigation('weekly_schedule'); dashboard_crumbs(lang('weekly schedule')); add_stylesheet_to_page('dashboard/weekly_schedule.css'); add_stylesheet_to_page('project/calendar.css'); add_stylesheet_to_page('project/tickets.css'); ?> <script type="text/javascript" src="<?php echo get_javascript_url('modules/calendar.js'); ?> "></script> <?php if (isset($upcoming_milestones) && is_array($upcoming_milestones) && count($upcoming_milestones) || isset($upcoming_tickets) && is_array($upcoming_tickets) && count($upcoming_tickets) || isset($late_milestones) && is_array($late_milestones) && count($late_milestones) || isset($late_tickets) && is_array($late_tickets) && count($late_tickets)) { ?> <div id="viewToggle"> <a href="<?php echo get_url('dashboard', 'weekly_schedule', array('view' => 'list')); ?> "><img src="<?php if ($view_type == "list") { echo get_image_url("icons/list_on.png"); } else { echo get_image_url("icons/list_off.png"); } ?> " title="<?php echo lang('list view'); ?>
<?php trace(__FILE__, "set_page_title(lang('overview')"); set_page_title(lang('overview')); trace(__FILE__, "project_crumbs(lang('overview'))"); project_crumbs(lang('overview')); add_stylesheet_to_page('project/project_log.css'); trace(__FILE__, 'stylesheet added'); $this->includeTemplate(get_template_path('project/pageactions')); if (active_project()->getParent()) { ?> <div class="block"> <div class="header parent"> <?php echo lang('parent project'); ?> : <a href="<?php echo active_project()->getParent()->getOverviewUrl(); ?> "><?php echo clean(active_project()->getParent()->getName()); ?> </a> </div> </div> <?php } // if if (trim(active_project()->getDescription()) && active_project()->getShowDescriptionInOverview()) { ?> <div id="project">
<?php trace(__FILE__, 'begin'); // Set page title and set crumbs to index set_page_title(lang('my tasks')); dashboard_tabbed_navigation(DASHBOARD_TAB_MY_TASKS); dashboard_crumbs(lang('my tasks')); add_stylesheet_to_page('dashboard/my_tasks.css'); if (logged_user()->canManageProjects()) { add_page_action(lang('add project'), get_url('project', 'add')); add_page_action(lang('copy project'), get_url('project', 'copy')); } // if add_page_action(lang('group by project'), get_url('dashboard', 'my_tasks')); add_page_action(lang('order by name'), get_url('dashboard', 'my_tasks_by_name')); add_page_action(lang('order by priority'), get_url('dashboard', 'my_tasks_by_priority')); add_page_action(lang('order by milestone'), get_url('dashboard', 'my_tasks_by_milestone')); // If user have any assigned task or milestone this variable will be changed to TRUE // else it will remain false $has_assigned_tasks = false; if (isset($active_projects) && is_array($active_projects) && count($active_projects)) { ?> <div id="myTasks"> <?php foreach ($active_projects as $active_project) { $assigned_milestones = $active_project->getUsersMilestones(logged_user()); $assigned_tasks = $active_project->getUsersTasks(logged_user()); if (is_array($assigned_milestones) && count($assigned_milestones) || is_array($assigned_tasks) && count($assigned_tasks)) { $has_assigned_tasks = true; ?> <div class="block">
<?php function load_template_tags() { foreach (array('task_list', 'task') as $sys_object) { require dirname(dirname(dirname(__FILE__))) . '/template_tags/' . $sys_object . '.php'; } } load_template_tags(); add_stylesheet_to_page('project/task_list.css'); $task_list_options = array(); if ($cc = $task_list->countComments()) { $task_list_options[] = '<span><a href="' . $task_list->getViewUrl() . '#objectComments">' . lang('comments') . '(' . $cc . ')</a></span>'; } global $the_task_list; $the_task_list = $task_list; ?> <div class="taskList"> <div class="block" id="taskList<?php echo $task_list->getId(); ?> "> <div class="header"> <?php task_list_view_link(); ?> <?php if ($task_list->isPrivate()) { ?> <div class="private" title="<?php echo lang('private task list');
<?php set_page_title(lang('search results')); project_tabbed_navigation(); project_crumbs(lang('search results')); add_stylesheet_to_page('project/search_results.css'); ?> <div id="searchForm"> <form action="<?php echo active_project()->getSearchUrl(); ?> " method="get"> <?php echo input_field('search_for', array_var($_GET, 'search_for')); ?> <input type="hidden" name="c" value="project" /> <input type="hidden" name="a" value="search" /> <input type="hidden" name="active_project" value="<?php echo active_project()->getId(); ?> " /> <?php echo submit_button(lang('search')); ?> <?php echo lang('search hint'); ?> </form> </div> <?php
<?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 // Set page title and set crumbs to index set_page_title(lang('company card of', $company->getName())); dashboard_tabbed_navigation(); if (logged_user()->isMemberOfOwnerCompany()) { dashboard_crumbs(array(array(lang('contacts'), get_url('dashboard', 'contacts')), array($company->getName()))); } else { dashboard_crumbs(array(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 (Contact::canAdd(logged_user(), $company)) { add_page_action(lang('add contact'), $company->getAddContactUrl()); } // if add_stylesheet_to_page('dashboard/company_list.css'); $this->includeTemplate(get_template_path('company_card', 'company'));
<?php set_page_title(lang('milestones')); project_tabbed_navigation('milestones'); project_crumbs(array(array(lang('milestones'), get_url('milestone', 'index')), array(lang('view calendar')))); if (ProjectMilestone::canAdd(logged_user(), active_project())) { add_page_action(lang('add milestone'), get_url('milestone', 'add')); } // if add_stylesheet_to_page('project/calendar.css'); $view_image = $view_type == "list" ? "icons/list_on.png" : "icons/list_off.png"; add_view_option(lang('list'), get_image_url($view_image), get_url('milestone', 'index', array("view" => "list"))); $view_image = $view_type == "card" ? "icons/excerpt_on.png" : "icons/excerpt_off.png"; add_view_option(lang('card'), get_image_url($view_image), get_url('milestone', 'index', array("view" => "details"))); add_view_option(lang('calendar'), get_image_url("icons/calendar_off.png"), get_url('milestone', 'calendar')); ?> <div class="calendar"> <h2><?php echo clean(lang(sprintf('month %u', $month))); ?> <?php echo $year; ?> </h2> <?php $calendar = array(); if (is_array($milestones) && count($milestones)) { foreach ($milestones as $milestone) { $due = $milestone->getDueDate(); if ($due->getYear() != $year or $due->getMonth() != $month) { continue;
<?php set_page_title(lang('people')); project_tabbed_navigation(); project_crumbs(lang('people')); if (active_project()->canChangePermissions(logged_user())) { add_page_action(lang('permissions'), get_url('project', 'permissions')); } // if add_stylesheet_to_page('project/people.css'); if (isset($project_companies) && is_array($project_companies) && count($project_companies)) { ?> <div id="people"> <?php foreach ($project_companies as $company) { ?> <div class="projectCompany"> <div class="projectCompanyLogo"><img src="<?php echo $company->getLogoUrl(); ?> " alt="<?php echo clean($company->getName()); ?> " /></div> <div class="projectCompanyMeta"> <div class="projectCompanyInfo"> <div class="projectCompanyName"><a href="<?php echo $company->getCardUrl(); ?> " class="companyName"><?php echo clean($company->getName());
<?php add_stylesheet_to_page('project/comments.css'); ?> <div id="objectComments"> <h2><?php echo lang('comments'); ?> </h2> <?php $comments = $__comments_object->getComments(); if (is_array($comments) && count($comments)) { $counter = 0; foreach ($comments as $comment) { $counter++; ?> <div class="comment <?php echo $counter % 2 ? 'even' : 'odd'; if ($comment->isPrivate()) { echo ' private'; } ?> " id="comment<?php echo $comment->getId(); ?> "> <?php if ($comment->isPrivate()) { ?> <div class="private" title="<?php echo lang('private comment');
<?php set_page_title(lang('permissions')); project_tabbed_navigation(PROJECT_TAB_PEOPLE); project_crumbs(array(array(lang('people'), get_url('project', 'people')), array(lang('permissions')))); add_stylesheet_to_page('project/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/updatePermissionsForm.js'); ?> "></script> <script type="text/javascript"> App.modules.updatePermissionsForm.owner_company_id = <?php echo owner_company()->getId(); ?> ; App.modules.updatePermissionsForm.project_permissions = new Array(<?php echo implode(', ', $quoted_permissions); ?> ); </script> <?php if (isset($companies) && is_array($companies) && count($companies)) { ?> <form action="<?php
<?php set_page_title(lang('radio')); add_stylesheet_to_page('radio.css'); ?> <script type="text/javascript" src="<?php echo get_javascript_url('/nativeradio/swfobject.js'); ?> "></script> <div id="flashcontent1">No flash, no radio<br /> <a href="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash">Download Flash</a> </div> <script type="text/javascript"> // <![CDATA[ var so = new SWFObject("<?php echo get_javascript_url('nativeradio/nativeradio2small.swf'); ?> ", "nativeradio2small", "200", "50", "10", "#cccccc"); so.addParam("scale", "noscale"); so.addVariable("swfcolor", "333333"); so.addVariable("swfwidth", "200"); so.addVariable("swfradiochannel", "TrackFM.nl"); so.addVariable("swfstreamurl", "http://stream.trackfm.nl:8000/medium"); so.addVariable("swfpause", "0"); so.write("flashcontent1"); if (document.all) { self.resizeTo(215+12, 145+35); } else { self.resizeTo(215, 145);
<?php set_page_title($message->getTitle()); project_tabbed_navigation('messages'); project_crumbs(array(array(lang('messages'), get_url('message', 'index')), array(lang('view message')))); if (ProjectMessage::canAdd(logged_user(), active_project())) { add_page_action(lang('add message'), get_url('message', 'add')); } // if add_stylesheet_to_page('project/messages.css'); $createdBy = $message->getCreatedBy(); ?> <div class="message block"> <div class="header"> <?php if ($message->isPrivate()) { ?> <div class="private" title="<?php echo lang('private message'); ?> "><span><?php echo lang('private message'); ?> </span></div> <?php } // if if ($message->getCreatedBy() instanceof User) { ?> <div class="author"><?php echo lang('posted on by', format_datetime($message->getCreatedOn()), $message->getCreatedBy()->getCardUrl(), clean($message->getCreatedBy()->getDisplayName()));
<?php // Set page title and set crumbs to index set_page_title($contact->getDisplayName()); dashboard_tabbed_navigation(DASHBOARD_TAB_CONTACTS); if (logged_user()->isMemberOfOwnerCompany()) { dashboard_crumbs(array(array(lang('contacts'), get_url('dashboard', 'contacts')), array($contact->getCompany()->getName(), $contact->getCompany()->getCardUrl()), array($contact->getDisplayName()))); } else { dashboard_crumbs(array(array($contact->getCompany()->getName(), $contact->getCompany()->getCardUrl()), array($contact->getDisplayName()))); } // if if ($contact->canUpdateProfile(logged_user())) { add_page_action(array(lang('update profile') => $contact->getEditUrl())); } // if if (logged_user()->isAdministrator() && logged_user()->getId() != $contact->getUserId()) { if ($contact->hasUserAccount()) { add_page_action(array(lang('edit user account') => $contact->getEditUserAccountUrl())); add_page_action(array(lang('delete user account') => $contact->getDeleteUserAccountUrl())); } else { add_page_action(array(lang('add user account') => $contact->getAddUserAccountUrl())); } } elseif (logged_user()->getContact()->getId() == $contact->getId()) { add_page_action(array(lang('edit user account') => $contact->getEditUserAccountUrl())); } // if add_stylesheet_to_page('admin/contact_list.css'); $this->includeTemplate(get_template_path('contact_card', 'contacts'));
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"> App.modules.updateUserPermissions.project_permissions = new Array(<?php echo implode(', ', $quoted_permissions); ?> );
<?php set_page_title(lang('reorder tasks')); project_tabbed_navigation(PROJECT_TAB_TASKS); project_crumbs(array(array(lang('tasks'), get_url('task')), array($task_list->getName(), $task_list->getViewUrl()), array(lang('reorder tasks')))); add_stylesheet_to_page('project/reorder_tasks.css'); ?> <div id="reorderTasks"> <form action="<?php echo $task_list->getReorderTasksUrl($back_to_list); ?> " method="post"> <table class="blank"> <tr> <th><?php echo lang('order'); ?> </th> <th><?php echo lang('task'); ?> </th> </tr> <?php foreach ($tasks as $task) { ?> <tr> <td><?php echo text_field('task_' . $task->getId(), $task->getOrder(), array('class' => 'short')); ?> </td>
<?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 add_stylesheet_to_page('project/progressbar.css'); $open = 0; $done = 0; $total = 0; $milestones = $project->getMilestones(); if (is_array($milestones)) { foreach ($milestones as $milestone) { $task_lists = $milestone->getTaskLists(); if (is_array($task_lists)) { foreach ($task_lists as $task_list) { $open += count($task_list->getOpenTasks()); $done += count($task_list->getCompletedTasks()); $total += $task_list->countAllTasks(); } } } } // if if ($total > 0) { $percent = round($done * 100 / $total); } else { $percent = 0; } // if $completed = $project->getCompletedOn(); if ($total > 0) { ?> <div class="progressBar"> <?php
<?php add_stylesheet_to_page('application_logs.css'); if (isset($application_logs_entries) && is_array($application_logs_entries) && count($application_logs_entries)) { ?> <table class="applicationLogs blank"> <tr> <th></th> <th><?php echo lang('application log details column name'); ?> </th> <?php if ($application_logs_show_project_column) { ?> <th class="right"><?php echo lang('application log project column name'); ?> </th> <?php } else { ?> <th class="right"><?php echo lang('application log taken on column name'); ?> </th> <?php } // if ?> </tr>
<?php add_stylesheet_to_page('project/attach_files.css'); if (isset($attached_files) && is_array($attached_files) && count($attached_files)) { ?> <div class="objectFiles"> <div class="objectFilesTitle"><span><?php echo lang('attached files'); ?> :</span></div> <ul> <?php foreach ($attached_files as $attached_file) { if ($attached_file->isPrivate() && !logged_user()->isMemberOfOwnerCompany()) { continue; } ?> <li> <?php $attached_file_options = array(); $attached_file_options[] = '<a href="' . $attached_file->getDetailsUrl() . '">' . lang('file details') . '</a>'; if ($attached_files_object->canDetachFile(logged_user(), $attached_file)) { $attached_file_options[] = '<a href="' . $attached_files_object->getDetachFileUrl($attached_file) . '" onclick="return confirm(\'' . lang('confirm detach file') . '\')">' . lang('detach file') . '</a>'; } ?> <a href="<?php echo $attached_file->getDownloadUrl(); ?> "><span><?php echo clean($attached_file->getFilename()); ?>
<?php add_stylesheet_to_page('admin/user_list.css'); if (isset($users) && is_array($users) && count($users)) { ?> <div id="usersList"> <?php $counter = 0; foreach ($users as $user) { $counter++; ?> <div class="listedUser <?php echo $counter % 2 ? 'even' : 'odd'; ?> "> <div class="icon"><img src="<?php echo $user->getContact()->getAvatarUrl(); ?> " alt="<?php echo clean($user->getDisplayName()); ?> <?php echo lang('avatar'); ?> " /></div> <div class="details"> <div class="name"><a href="<?php echo $user->getCardUrl(); ?> "><?php echo clean($user->getDisplayName());
<?php set_page_title(lang('my projects')); dashboard_tabbed_navigation(DASHBOARD_TAB_MY_PROJECTS); dashboard_crumbs(lang('my projects')); add_stylesheet_to_page('dashboard/my_projects.css'); if (logged_user()->canManageProjects()) { add_page_action(lang('add project'), get_url('project', 'add')); add_page_action(lang('copy project'), get_url('project', 'copy')); } // if add_page_action(lang('order by name'), get_url('dashboard', 'my_projects_by_name')); add_page_action(lang('order by priority'), get_url('dashboard', 'my_projects_by_priority')); add_page_action(lang('order by milestone'), get_url('dashboard', 'my_projects_by_milestone')); if (isset($active_projects) && is_array($active_projects) && count($active_projects)) { $show_icon = config_option('files_show_icons', '1') == '1'; foreach ($active_projects as $project) { ?> <div class="expand-container-all block"> <div class="header"> <?php if ($show_icon) { if ($project->hasLogo()) { ?> <div class="projectLogo"><img src="<?php echo $project->getLogoUrl(); ?> " alt="<?php echo $project->getName(); ?> " /></div>
<?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 add_stylesheet_to_page('project/milestones.css'); if ($milestone->isCompleted()) { ?> <div class="milestone block success"> <?php } elseif ($milestone->isToday()) { ?> <div class="milestone block important"> <?php } elseif ($milestone->isLate()) { ?> <div class="milestone block important"> <?php } else { ?> <div class="milestone block hint"> <?php } // if ?> <div class="header"> <?php $this->includeTemplate(get_template_path('view_progressbar', 'milestone')); if ($milestone->isPrivate()) { ?> <div class="private" title="<?php echo lang('private milestone'); ?> "><span><?php
<?php // Set page title and set crumbs to index set_page_title(lang('search results for', $search_term)); dashboard_tabbed_navigation(DASHBOARD_TAB_CONTACTS); dashboard_crumbs(array(array(lang('contacts'), get_url('dashboard', 'contacts')), lang('search results'))); if (logged_user()->isAdministrator(owner_company())) { add_page_action(lang('add company'), get_url('company', 'add_client')); add_page_action(lang('add contact'), get_url('contacts', 'add')); } add_stylesheet_to_page('dashboard/contact_list.css'); if (is_array($contacts) && count($contacts)) { ?> <div id="contactsList"> <div id="contactsPaginationTop"><?php echo advanced_pagination($contacts_pagination, get_url('dashboard', 'search_contacts', array('search_for' => $search_term, 'page' => '#PAGE#'))); ?> </div> <?php $counter = 0; if (is_array($contacts)) { foreach ($contacts as $contact) { $counter++; $company = $contact->getCompany(); ?> <div class="listedContact <?php echo $counter % 2 ? 'even' : 'odd'; ?> "> <div class="contactAvatar"><img src="<?php
<?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');
$files_crumbs[] = lang('file details'); project_crumbs($files_crumbs); if (ProjectFile::canAdd(logged_user(), active_project())) { if ($folder instanceof ProjectFolder) { add_page_action(lang('add file'), $folder->getAddFileUrl()); } else { add_page_action(lang('add file'), get_url('files', 'add_file')); } // if } // if if (ProjectFolder::canAdd(logged_user(), active_project())) { add_page_action(lang('add folder'), get_url('files', 'add_folder')); } // if add_stylesheet_to_page('project/files.css'); ?> <div id="fileDetails" class="block"> <?php if ($file->isPrivate()) { ?> <div class="private" title="<?php echo lang('private file'); ?> "><span><?php echo lang('private file'); ?> </span></div> <?php } // if
<?php set_page_title(lang('edit logo')); project_tabbed_navigation(); project_crumbs(array(array(lang('links'), get_url('links')), array(lang('edit logo')))); add_stylesheet_to_page('imgareaselect/imgareaselect-animated.css'); ?> <script type='text/javascript'> $(function () { $('#snapshot').imgAreaSelect({ aspectRatio: '1:1', handles: true, fadeSpeed: 200, resizeable:false, maxHeight:300, maxWidth:300, minHeight:20, minWidth:20, show: true, x1: 0, y1: 0, x2: 50, y2: 50, onSelectChange: preview, onSelectEnd: selectend }); }); function preview(img, selection) { if (!selection.width || !selection.height) return;