<?php if ($object->isNew() || $object->canLinkObject(logged_user(), $project)) { ?> <div style="display: none" id="<?php echo $genid; ?> add_linked_objects_div"> <fieldset> <?php $show_help_option = user_config_option('show_context_help'); if ($show_help_option == 'always' || $show_help_option == 'until_close' && user_config_option('show_upload_file_linked_objects_context_help', true, logged_user()->getId())) { ?> <div id="uploadFileContextHelp" class="contextHelpStyle"> <?php render_context_help($this, 'chelp upload file linked objects', 'upload_file_linked_objects'); ?> </div> <?php } ?> <legend><?php echo lang('linked objects'); ?> </legend> <?php echo render_object_link_form($object); ?> </fieldset> </div> <?php
merge-changes-hidden" type="hidden" name="merge-changes" value="" > <input id="<?php echo $genid; ?> genid" type="hidden" name="genid" value="<?php echo $genid; ?> " > <?php $show_help_option = user_config_option('show_context_help'); if ($show_help_option == 'always' || $show_help_option == 'until_close' && user_config_option('show_add_contact_context_help', true, logged_user()->getId())) { ?> <div id="contactPanelContextHelp" class="contextHelpStyle"> <?php render_context_help($this, 'chelp add contact', 'add_contact'); ?> </div> <?php } ?> <?php if ($all) { ?> <div id="<?php echo $genid; ?> add_contact_select_workspace_div" style="display:block"> <?php } else {
<?php $show_help_option = user_config_option('show_context_help'); if ($show_help_option == 'always' || $show_help_option == 'until_close' && user_config_option('show_calendar_widget_context_help', true, logged_user()->getId())) { render_context_help($this, 'chelp calendar widget', 'calendar_widget'); } require_javascript('og/EventPopUp.js'); $tags = active_tag(); //$startday = date("d",mktime()) - (date("N", mktime()) %7); if (user_config_option("start_monday")) { $startday = date("j") - date("N") + 1; // beginning of the week, monday } else { $startday = date("j") - date("w"); // beginning of the week, sunday } user_config_option('show_two_weeks_calendar', null, logged_user()->getId()) ? $my_weeks = 2 : ($my_weeks = 1); $endday = $startday + 7 * $my_weeks; $today = DateTimeValueLib::now()->add('h', logged_user()->getTimezone()); $currentday = $today->getDay(); $currentmonth = $today->getMonth(); $currentyear = $today->getYear(); $user_comp_filter = user_config_option('pending tasks widget assigned to filter'); $exploded = explode(":", $user_comp_filter); $user_filter_id = array_var($exploded, 1); $user_filter = $user_filter_id > 0 ? Users::findById($user_filter_id) : null; $date_start = new DateTimeValue(mktime(0, 0, 0, $currentmonth, $startday, $currentyear)); $date_end = new DateTimeValue(mktime(0, 0, 0, $currentmonth, $endday, $currentyear)); //FIXME $milestones = ProjectMilestones::getRangeMilestones($date_start, $date_end); $tmp_tasks = ProjectTasks::getRangeTasksByUser($date_start, $date_end, $user_filter); //FIXME
<div class="card" style="padding:0px;"> <?php $show_help_option = user_config_option('show_context_help'); if ($isUserAccount && ($show_help_option == 'always' || $show_help_option == 'until_close' && user_config_option('show_account_context_help', true, logged_user()->getId()))) { ?> <div style="padding-bottom:10px;"> <?php if ($user->getId() == logged_user()->getId()) { $hd_key = 'chelp personal account'; } else { $hd_key = 'chelp user account'; if (logged_user()->isAdministrator()) { $hd_key .= ' admin'; } } render_context_help($this, $hd_key, 'account'); ?> </div> <?php } ?> <div class="cardIcon"><img src="<?php echo $user->getAvatarUrl(); ?> " alt="<?php echo clean($user->getDisplayName()); ?> avatar" /></div> <div class="cardData">
<?php $show_help_option = user_config_option('show_context_help'); if ($show_help_option == 'always' || ($show_help_option == 'until_close' && user_config_option('show_emails_widget_context_help', true, logged_user()->getId()))) { render_context_help($this, 'chelp emails widget', 'emails_widget'); }?> <div style="padding:10px"> <table id="dashTableEmails" style="width:100%"> <?php $c = 0; $emails = array(); if (is_array($unread_emails)) { $emails = $unread_emails; } foreach ($emails as $email){ if (!$email->getIsDeleted()) { $c++;?> <tr class="<?php echo $c % 2 == 1? '':'dashAltRow'; echo ' ' . ($c > 5? 'dashSMUC':''); ?>" style="<?php echo $c > 5? 'display:none':'' ?>"> <td><div class="db-ico ico-email" /></td> <td style="padding-left:5px"> <?php $mws = $email->getWorkspaces(logged_user()->getWorkspacesQuery()); $projectLinks = array(); foreach ($mws as $ws) { $projectLinks[] = $ws->getId(); } echo '<span class="project-replace">' . implode(',',$projectLinks) . '</span>'; //Commented as unread emails are not yet assignable to workspaces*/?> <a class="internalLink" style="font-weight:bold" href="<?php echo get_url('mail','view', array('id' => $email->getId()))?>" title=""> <?php echo clean($email->getSubject()) ?> </a><br/><table width="100%" style="color:#888"><tr><td><?php echo clean($email->getFrom())?></td><td align=right><?php echo $email->getSentDate() instanceof DateTimeValue ? ($email->getSentDate()->isToday() ? format_time($email->getSentDate()) : format_date($email->getSentDate()) ) : lang("n/a")?></td></tr></table></td></tr>
</div> </div> <div class="adminSeparator"></div> <div class="adminMainBlock"> <?php echo lang('welcome to administration info'); ?> <br/> <br/> <?php $show_help_option = user_config_option('show_context_help'); if ($show_help_option == 'always' || $show_help_option == 'until_close' && user_config_option('show_administration_context_help', true, logged_user()->getId())) { ?> <div id="administrationPanelContextHelp" style="padding-left:7px;padding:15px;background-color:white;"> <?php render_context_help($this, 'chelp administrator panel', 'administration'); ?> </div> <?php } ?> <div style="width:100%;max-width:700px; text-align:center;position:relative"> <?php // print administration icons if (count($icons > 0)) { ?> <table><tr> <?php $count = 0; foreach ($icons as $icon) {
<?php $show_help_option = user_config_option('show_context_help'); if ($show_help_option == 'always' || $show_help_option == 'until_close' && user_config_option('show_pending_tasks_widget_context_help', true, logged_user()->getId())) { render_context_help($this, 'chelp pending tasks widget', 'pending_tasks_widget'); } ?> <script>//ogTasks.loadStatusList();</script> <div style="padding:10px"> <table id="dashTablePT" style="width:100%"> <?php $genid = gen_id(); $c = 0; foreach ($dashtasks as $task) { $stCount = $task->countAllSubTasks(); $c++; $text = $task->getText(); if ($text != '') { $text = ": " . $text; } if (strlen_utf($text) > 100) { $text = substr_utf($text, 0, 100) . " ..."; } $text = clean($text); ?> <tr class="<?php echo $c % 2 == 1 ? '' : 'dashAltRow'; echo ' ' . ($c > 5 ? 'dashSMTC' : ''); ?> " style="<?php
<?php $show_help_option = user_config_option('show_context_help'); if ($show_help_option == 'always' || ($show_help_option == 'until_close' && user_config_option('show_active_tasks_widget_context_help', true, logged_user()->getId()))) { render_context_help($this, 'chelp active tasks widget', 'active_tasks_widget'); } ?> <div style="padding:10px"> <table id="dashTableTIP" style="width:100%;"> <?php $c = 0; foreach ($tasks_in_progress as $task) { $stCount = $task->countAllSubTasks(); $c++; $text = $task->getText(); if ($text != '') $text = ": " . $text; if(strlen_utf($text)>100) $text = substr_utf($text,0,100) . " ..."; $text = clean($text); ?> <tr class="<?php echo $c % 2 == 1? '':'dashAltRow'?>"><td><div class="db-ico ico-task"> ></div></td><td style="padding-left:5px;padding-bottom:2px"> <?php $dws = $task->getWorkspaces(logged_user()->getWorkspacesQuery()); $projectLinks = array(); foreach ($dws as $ws) { $projectLinks[] = $ws->getId(); } echo '<span class="project-replace">' . implode(',',$projectLinks) . '</span>';?> <a class='internalLink' href='<?php echo $task->getViewUrl() ?>'><?php echo clean($task->getTitle())?><?php echo $text ?></a></td> <?php /*<td align="right"><?php $timeslot = Timeslots::getOpenTimeslotByObject($task,logged_user()); if ($timeslot) {
?> colspan=2 style="background-color:white"> <div style="padding:10px"> <?php // MAIN PAGES $show_help_option = user_config_option('show_context_help'); if ($show_help_option == 'always' || $show_help_option == 'until_close' && user_config_option('show_reporting_panel_context_help', true, logged_user()->getId())) { $hd_key = 'chelp reporting panel'; if (can_manage_reports(logged_user())) { $hd_key .= ' manage'; if (logged_user()->isAdministrator() && can_manage_security(logged_user())) { $hd_key .= ' admin'; } } render_context_help($this, $hd_key, 'reporting_panel'); echo '<br/>'; } foreach ($reportPages as $pageTitle => $pageInfo) { ?> <div class="inner_report_menu_div" id="<?php echo $genid . $pageTitle; ?> " style="display:<?php echo $pageTitle == $selectedPage ? 'block' : 'none'; ?> "> <?php // Show default (non-custom) reports $hasNonCustomReports = true;
<?php if (isset($company) && $company instanceof Company) { ?> <div class="card"> <?php $show_help_option = user_config_option('show_context_help'); if ($show_help_option == 'always' || $show_help_option == 'until_close' && user_config_option('show_company_context_help', true, logged_user()->getId())) { ?> <div style="padding-bottom:10px;"> <?php render_context_help($this, 'chelp company card', 'company'); ?> </div> <?php } ?> <div class="cardIcon"><img src="<?php echo $company->getLogoUrl(); ?> " alt="<?php echo clean($company->getName()); ?> logo" /></div> <div class="cardData"> <div class="cardBlock"> <div class="link-ico ico-email" style="padding-bottom:3px;"><span><?php echo lang('email address');
<?php if ($object->isNew() || $object->canLinkObject(logged_user(), $project)) { ?> <div style="display:none" id="<?php echo $genid; ?> add_linked_objects_div"> <fieldset> <?php $show_help_option = user_config_option('show_context_help'); if ($show_help_option == 'always' || $show_help_option == 'until_close' && user_config_option('show_add_task_linked_objects_context_help', true, logged_user()->getId())) { ?> <div id="tasksPanelContextHelp" class="contextHelpStyle"> <?php render_context_help($this, 'chelp add new task linked object', 'add_task_linked_objects'); ?> </div> <?php } ?> <legend><?php echo lang('linked objects'); ?> </legend> <?php $pre_linked_objects = null; if (isset($from_email) && $from_email instanceof MailContent) { $pre_linked_objects = array($from_email); $attachments = $from_email->getLinkedObjects(); foreach ($attachments as $att) {
echo format_descriptive_date($task_list->getDueDate(), 0); ?> </div> <?php } // if } // if ?> <?php $show_help_option = user_config_option('show_context_help'); if ($show_help_option == 'always' || $show_help_option == 'until_close' && user_config_option('show_list_task_context_help', true, logged_user()->getId())) { ?> <div id="tasksCardContextHelp" class="contextHelpStyle"> <?php render_context_help($this, 'chelp task card', 'list_task'); ?> </div> <?php } ?> <?php if ($task_list->getObjectSubtype() > 0) { $subType = ProjectCoTypes::findById($task_list->getObjectSubtype()); if ($subType instanceof ProjectCoType) { echo "<div><b>" . lang('object type') . ":</b> " . $subType->getName() . "</div>"; } } ?>
</div> </td> </tr></table> </div> </div> </td> <td class="coViewTopRight"> </td> </tr> <tr> <td class="coViewRight"> </td> </tr> <?php $show_help_option = user_config_option('show_context_help'); if ($show_help_option == 'always' || $show_help_option == 'until_close' && user_config_option('show_general_timeslots_context_help', true, logged_user()->getId())) { echo "<tr><td colspan=2>"; render_context_help($this, 'chelp general timeslots panel', 'general_timeslots'); echo "</td><td class=\"coViewRight\"></td></tr> "; } ?> <tr> <td colspan=2 class="coViewBody"> <div id="<?php echo $genid; ?> TMTimespanContents" style="width:100%" class="TMTimespanContents"> <div style="padding:7px"> <table style="width:100%" id="<?php echo $genid; ?> TMTimespanTable"> <tr>
<?php $show_help_option = user_config_option('show_context_help'); if ($show_help_option == 'always' || $show_help_option == 'until_close' && user_config_option('show_documents_widget_context_help', true, logged_user()->getId())) { render_context_help($this, 'chelp documents widget', 'documents_widget'); } ?> <div style="padding:10px"> <table id="dashTableDocuments" style="width:100%"> <?php $c = 0; foreach ($documents as $document) { $c++; ?> <tr class="<?php echo $c % 2 == 1 ? '' : 'dashAltRow'; echo ' ' . ($c > 5 ? 'dashSMDC' : ''); ?> " style="<?php echo $c > 5 ? 'display:none' : ''; ?> "> <td width=18> <div class="db-ico ico-unknown ico-<?php echo str_replace(".", "_", str_replace("/", "-", $document->getTypeString())); ?> ico-ext-<?php echo pathinfo($document->getFilename(), PATHINFO_EXTENSION); ?> "></div>
<?php $show_help_option = user_config_option('show_context_help'); if ($show_help_option == 'always' || $show_help_option == 'until_close' && user_config_option('show_dashboard_info_widget_context_help', true, logged_user()->getId())) { render_context_help($this, 'chelp dashboard info widget', 'dashboard_info_widget'); } $date_format = user_config_option('date_format'); ?> <div style="padding:10px"> <?php $project = active_project(); $contacts = ProjectContacts::getContactsByProject($project); //if (can_manage_contacts(logged_user())){ if (count($contacts) > 0) { ?> <div class='endSeparatorDiv'> <b><?php echo lang('workspace contacts'); ?> :</b> <div style='padding-left:15px'><?php $c = 0; foreach ($contacts as $contact) { if ($c != 0) { echo '<br/>'; } $c++; if ($contact->canView(logged_user())) { ?> <span><a href="<?php
<div class="adminUsersList" style="height:100%;background-color:white"> <div class="adminHeader"> <div class="adminTitle"><?php echo lang('users') . (config_option('max_users') ? ' (' . Users::count() . ' / ' . config_option('max_users') . ')' : ''); ?> </div> </div> <div class="adminSeparator"></div> <div class="adminMainBlock"> <?php $show_help_option = user_config_option('show_context_help'); if ($show_help_option == 'always' || $show_help_option == 'until_close' && user_config_option('show_member_context_help', true, logged_user()->getId())) { ?> <div id="membersPanelContextHelp" style="padding-left:7px;padding:15px;background-color:white;"> <?php render_context_help($this, 'chelp members page', 'member'); ?> </div> <?php } ?> <?php foreach ($users_by_company as $company_row) { $company = $company_row['details']; $users = $company_row['users']; tpl_assign('users', $users); tpl_assign('company', $company); ?> <div style='padding-bottom:20px;max-width:700px'> <div style="padding:10px;padding-bottom:13px;background-color:#D7E5F5"> <h1 style="font-size:140%;font-weight:bold"><a class="internalLink" href="<?php
<?php if ($object->isNew() || $object->canLinkObject(logged_user(), $project)) { ?> <div style="display: none" id="<?php echo $genid; ?> add_linked_objects_div"> <fieldset><?php $show_help_option = user_config_option('show_context_help'); if ($show_help_option == 'always' || $show_help_option == 'until_close' && user_config_option('show_add_webpage_linked_objects_context_help', true, logged_user()->getId())) { ?> <div id="webpagePanelContextHelp" class="contextHelpStyle"><?php render_context_help($this, 'chelp add webpage linked objects', 'add_webpage_linked_objects'); ?> </div> <?php } ?> <legend><?php echo lang('linked objects'); ?> </legend> <?php echo render_object_link_form($object); ?> </fieldset> </div> <?php }
<?php $show_help_option = user_config_option('show_context_help'); if ($show_help_option == 'always' || ($show_help_option == 'until_close' && user_config_option('show_comments_widget_context_help', true, logged_user()->getId()))) { render_context_help($this, 'chelp comments widget', 'comments_widget'); } ?> <div style="padding:10px"> <table id="dashTableComments" style="width:100%"> <?php $c = 0; foreach ($comments as $comment){ $c++;?> <tr class="<?php echo $c % 2 == 1? '':'dashAltRow'; echo ' ' . ($c > 5? 'dashSMCoC':''); ?>" style="<?php echo $c > 5? 'display:none':'' ?>"> <td><div class="db-ico ico-comment"></div></td> <td style="padding-left:5px"> <a class="internalLink" href="<?php echo $comment->getViewUrl()?>" title="<?php echo lang('comment posted on by linktitle', format_datetime($comment->getCreatedOn()), clean($comment->getCreatedByDisplayName())) ?>"> <?php echo clean($comment->getObject()->getObjectName()) ?> </a> <span class="previewText"><?php echo clean($comment->getPreviewText(100)) ?></span> </td></tr> <?php } // foreach?> <?php /*if ($c >= 10) {?> <tr class="dashSMCoC" style="display:none"><td></td> <td style="text-align:right"><a href="#" onclick="Ext.getCmp('tabs-panel').activate('messages-panel');"><?php echo lang('show all') ?>...</a> </td></tr> <?php } */ ?> </table> <?php if ($c > 5) { ?> <div id="dashSMCoT" style="width:100%;text-align:right"> <a href="#" onclick="og.hideAndShowByClass('dashSMCoT', 'dashSMCoC', 'dashTableComments'); return false;"><?php echo lang("show more amount", $c -5) ?>...</a> </div>
<?php } ?> <div id="<?php echo $genid; ?> workspace_description" style="display:none"> <fieldset> <?php $show_help_option = user_config_option('show_context_help'); if ($show_help_option == 'always' || $show_help_option == 'until_close' && user_config_option('show_add_workspace_context_help', true, logged_user()->getId())) { ?> <div id="tasksPanelContextHelp" class="contextHelpStyle"> <?php render_context_help($this, 'chelp add workspace description', 'add_workspace'); ?> </div> <?php } ?> <legend><?php echo lang('description'); ?> </legend> <?php echo textarea_field('project[description]', array_var($project_data, 'description'), array('id' => 'projectFormDescription', 'tabindex' => '10')); ?> <?php echo label_tag(lang('show project desciption in overview'));
<?php $show_help_option = user_config_option('show_context_help'); if ($show_help_option == 'always' || ($show_help_option == 'until_close' && user_config_option('show_messages_widget_context_help', true, logged_user()->getId()))) { render_context_help($this, 'chelp messages widget', 'messages_widget'); } ?> <div style="padding:10px"> <table id="dashTableMessages" style="width:100%"> <?php $c = 0; foreach ($messages as $message){ $c++;?> <tr class="<?php echo $c % 2 == 1? '':'dashAltRow'; echo ' ' . ($c > 5? 'dashSMMC':''); ?>" style="<?php echo $c > 5? 'display:none':'' ?>"> <td><div class="db-ico ico-message"></div></td> <td style="padding-left:5px"> <?php $mws = $message->getWorkspaces(logged_user()->getWorkspacesQuery()); $projectLinks = array(); foreach ($mws as $ws) { $projectLinks[] = $ws->getId(); } echo '<span class="project-replace">' . implode(',',$projectLinks) . '</span>';?> <a class="internalLink" href="<?php echo get_url('message','view', array('id' => $message->getId()))?>" title="<?php echo lang('message posted on by linktitle', format_datetime($message->getCreatedOn()), clean($message->getCreatedByDisplayName())) ?>"> <?php echo clean($message->getTitle()) ?> </a></td></tr> <?php } // foreach?> <?php if ($c >= 10) {?> <tr class="dashSMMC" style="display:none"><td></td> <td style="text-align:right"><a href="#" onclick="Ext.getCmp('tabs-panel').activate('messages-panel');"><?php echo lang('show all') ?>...</a> </td></tr> <?php } ?> </table>
<?php if ($object->isNew() || $object->canLinkObject(logged_user(), $project)) { ?> <div style="display:none" id="<?php echo $genid; ?> add_linked_objects_div"> <fieldset> <?php $show_help_option = user_config_option('show_context_help'); if ($show_help_option == 'always' || $show_help_option == 'until_close' && user_config_option('show_add_milestone_linked_object_context_help', true, logged_user()->getId())) { ?> <div id="milestonePanelContextHelp" class="contextHelpStyle"> <?php render_context_help($this, 'chelp add milestone linked object', 'add_milestone_linked_object'); ?> </div> <?php } ?> <legend><?php echo lang('linked objects'); ?> </legend> <?php echo render_object_link_form($object); ?> </fieldset> </div> <?php
<?php $show_help_option = user_config_option('show_context_help'); if ($show_help_option == 'always' || ($show_help_option == 'until_close' && user_config_option('show_late_tasks_widget_context_help', true, logged_user()->getId()))) { render_context_help($this, 'chelp late tasks widget', 'late_tasks_widget'); } // if ?> <div style="padding:10px"> <?php if($hasLate) { $c = 0; ?> <div> <table id="dashTableMS" style="width:100%"> <?php if (isset($late_milestones) && is_array($late_milestones) && count($late_milestones)) foreach($late_milestones as $milestone) { $c++; ?> <tr class="<?php echo $c % 2 == 1? '':'dashAltRow'; echo ' ' . ($c > 5? 'noDispLM':''); ?>" style="<?php echo $c > 5? 'display:none':'' ?>"> <td><div class="db-ico ico-milestone"> </div></td> <td style="padding-left:5px;padding-bottom:2px"> <?php $dws = $milestone->getWorkspaces(logged_user()->getWorkspacesQuery()); $projectLinks = array(); foreach ($dws as $ws) { $projectLinks[] = $ws->getId(); } echo '<span class="project-replace">' . implode(',',$projectLinks) . '</span>';?> <a class="internalLink" href="<?php echo $milestone->getViewUrl() ?>" title="<?php echo clean($milestone->getName()) ?>"> <?php if($milestone->getAssignedTo() instanceof ApplicationDataObject) { ?> <span style="font-weight:bold"> <?php echo clean($milestone->getAssignedTo()->getObjectName()) ?>: </span><?php echo clean($milestone->getName()) ?> <?php } else { ?>
?> </a> <?php } ?> </div> </div> <div class="adminSeparator"></div> <div class="adminMainBlock"> <?php $show_help_option = user_config_option('show_context_help'); if ($show_help_option == 'always' || $show_help_option == 'until_close' && user_config_option('show_add_company_context_help', true, logged_user()->getId())) { ?> <div id="contactPanelContextHelp" class="contextHelpStyle"> <?php render_context_help($this, 'chelp add company', 'add_company'); ?> </div> <?php } ?> <?php if ($all) { ?> <div id="<?php echo $genid; ?> add_company_select_workspace_div" style="display:block"> <?php } else {
} // if ?> <div id="<?php echo $genid; ?> add_event_invitation_div" style="display:none" class="og-add-subscribers"> <fieldset id="emailNotification"> <?php $show_help_option = user_config_option('show_context_help'); if ($show_help_option == 'always' || $show_help_option == 'until_close' && user_config_option('show_add_event_invitation_context_help', true, logged_user()->getId())) { ?> <div id="addEventPanelContextHelp" class="contextHelpStyle"> <?php render_context_help($this, 'chelp add event invitation', 'add_event_invitation'); ?> </div> <?php } ?> <legend><?php echo lang('event invitations'); ?> </legend> <?php // ComboBox for Assistance confirmation if (!$event->isNew()) { $event_invs = $event->getInvitations(); if (isset($event_invs[$filter_user])) { $event_inv_state = $event_invs[$filter_user]->getInvitationState();
?> <?php echo submit_button(lang('generate report'), 's', array('style' => 'margin-top:0px;margin-left:10px')); ?> </div> </div> </div> <div class="coInputSeparator"></div> <div class="coInputMainBlock"> <?php $show_help_option = user_config_option('show_context_help'); if ($show_help_option == 'always' || $show_help_option == 'until_close' && user_config_option('show_print_report_context_help', true, logged_user()->getId())) { ?> <div id="printReportPanelContextHelp" style="padding-left:7px;padding:15px;background-color:white;"> <?php render_context_help($this, 'chelp time panel print report', 'print_report'); ?> </div> <?php } ?> <div style="width:600px;padding-bottom:20px"><?php echo lang('task time report description'); ?> </div> <table> <tr style='height:30px;'> <td><b><?php echo lang("date"); ?>
<?php if ($object->isNew() || $object->canLinkObject(logged_user(), $project)) { ?> <div style="display:none" id="<?php echo $genid; ?> add_linked_objects_div"> <fieldset> <?php $show_help_option = user_config_option('show_context_help'); if ($show_help_option == 'always' || $show_help_option == 'until_close' && user_config_option('show_add_note_linked_object_context_help', true, logged_user()->getId())) { ?> <div id="addNotesPanelContextHelp" class="contextHelpStyle"> <?php render_context_help($this, 'chelp add note linked objects', 'add_note_linked_object'); ?> </div> <?php } ?> <legend><?php echo lang('linked objects'); ?> </legend> <?php echo render_object_link_form($object); ?> </fieldset> </div> <?php
echo clean(str_replace('"', "'", str_replace("'", "\\'", json_encode($object_subtypes_array)))); ?> "/> </div> <div id="tasksPanel" class="ogContentPanel" style="background-color:white;background-color:#F0F0F0;height:100%;width:100%;"> <div id="tasksPanelTopToolbar" class="x-panel-tbar" style="width:100%;height:30px;display:block;background-color:#F0F0F0;"></div> <div id="tasksPanelBottomToolbar" class="x-panel-tbar" style="width:100%;height:30px;display:block;background-color:#F0F0F0;border-bottom:1px solid #CCC;"></div> <div id="tasksPanelContent" style="background-color:white;padding:7px;padding-top:0px;overflow-y:scroll;position:relative;"> <?php $show_help_option = user_config_option('show_context_help'); if ($show_help_option == 'always' || $show_help_option == 'until_close' && user_config_option('show_tasks_context_help', true, logged_user()->getId())) { ?> <div class="tasksPanelContextHelp"> <?php render_context_help($this, 'chelp tasks list', 'tasks', 'tasks'); ?> </div> <?php } ?> <?php if (isset($displayTooManyTasks) && $displayTooManyTasks) { ?> <div class="tasksPanelWarning ico-warning32" style="font-size:10px;color:#666;background-repeat:no-repeat;padding-left:40px;max-width:920px; margin:20px;border:1px solid #E3AD00;background-color:#FFF690;background-position:4px 4px;"> <div style="font-weight:bold;width:99%;text-align:center;padding:4px;color:#AF8300;"><?php echo lang('too many tasks to display', user_config_option('task_display_limit')); ?> </div> </div> <?php