Beispiel #1
0
     $p = new Template($_CONF['path_layout'] . 'nexproject');
     $p->set_file('task', 'edittask.thtml');
     $p->set_var($pluginLangLabels);
     $p->set_var('breadcrumb_trail', prj_breadcrumbs($id, $pid, $strings["add_task"]));
     $p->set_var('site_url', $_CONF['site_url']);
     $p->set_var('layout_url', $_CONF['layout_url']);
     $p->set_var('mode', 'create');
     $p->set_var('pid', $pid);
     $p->set_var('parent_task_options', $parent_task_options);
     $p->set_var('LANG_heading', $pluginLangLabels['LANG_add_task']);
     $p->set_var('show_changelog', 'none');
     $p->set_var('project_name', $A['name']);
     $p->set_var('priority_options', selectBox2($priority));
     $p->set_var('status_options', selectBox2($status));
     $p->set_var('progress_options', selectBox2($progress));
     $p->set_var('duration_options', selectBox2($duration));
     $p->set_var('resource_options', prj_getTeamMembersOptionList($pid));
     $p->set_var('VALUE_duration', '0');
     $p->set_var('VALUE_progress', '0');
     $p->set_var('VALUE_start_date', date("Y/m/d"));
     $p->set_var('VALUE_estimated_end_date', date("Y/m/d", mktime(0, 0, 0, date("m"), date("d") + 1, date("Y"))));
     $p->parse('output', 'task');
     echo $p->finish($p->get_var('output'));
 } else {
     $block = new block();
     $msg = 'permissiondenied';
     include "includes/messages.php";
     $block->messagebox($msgLabel);
     if ($listTasks->parent_task[$i] == 0) {
         $block->heading($strings["addTask"]);
     } else {
Beispiel #2
0
 echo COM_siteHeader(array('custom_showBlocks', $_PRJCONF['leftblocks']));
 $test = COM_optionList($_TABLES['users'], 'uid,fullname', $selected = '', $sortcol = 1, 'status = 0 and uid>1');
 $p = new Template($_CONF['path_layout'] . 'nexproject');
 $p->set_file('project', 'editproject.thtml');
 $p->set_var('breadcrumb_trail', prj_breadcrumbs(0, 0, $strings["add_project"]));
 $p->set_var($pluginLangLabels);
 // Set template variable for all the language variable keys
 $p->set_var('site_url', $_CONF['site_url']);
 $p->set_var('layout_url', $_CONF['layout_url']);
 $p->set_var('mode', 'create');
 $p->set_var('show_owner', 'none');
 $p->set_var('show_changelog', 'none');
 $p->set_var('LANG_heading', $pluginLangLabels['LANG_add_project']);
 $p->set_var('priority_options', selectBox2($priority));
 $p->set_var('status_options', selectBox2($status));
 $p->set_var('progress_options', selectBox2($progress));
 $nexfile = prj_nexFileExists();
 $forum = prj_forumExists();
 $p->set_var('linked_content_disabled', $nexfile ? '' : 'disabled="disabled"');
 $p->set_var('discussion_board_disabled', $forum ? '' : 'disabled="disabled"');
 $p->set_var('objective_options', nexlistOptionList('options', '', $_PRJCONF['nexlist_objective']));
 $p->set_var('location_options', nexlistOptionList('options', '', $_PRJCONF['nexlist_locations'], 0, '', '', -1, true));
 $p->set_var('department_options', nexlistOptionList('options', '', $_PRJCONF['nexlist_departments'], 0, '', '', -1, true));
 $p->set_var('category_options', nexlistOptionList('options', '', $_PRJCONF['nexlist_category'], 0, '', '', -1, true));
 $p->set_var('resource_options', COM_optionList($_TABLES['users'], 'uid,fullname', $selected = '', $sortcol = 1, "uid>1"));
 $p->set_var('VALUE_notification_enabled_flag', 'CHECKED');
 if ($nexfile) {
     $p->set_var('VALUE_is_using_docmgmt_flag_on', 'CHECKED');
     $p->set_var('VALUE_is_using_docmgmt_flag_off', '');
 } else {
     $p->set_var('VALUE_is_using_docmgmt_flag_on', '');