echo '<form method="post" id="form-new_project">'; else echo '<form method="post" id="form-new_project" action="index.php?sec=projects&sec2=operation/projects/project_overview">'; // Main project table if ($create_mode == 0){ // Print title and menu. $section_title = __('Project management'); $section_subtitle = get_db_value ("name", "tproject", "id", $id_project); $p_menu = false; $print_help = false; if (!$clean_output) { $print_help = "project_detail"; $p_menu = print_project_tabs('overview'); } print_title_with_menu ($section_title, $section_subtitle, $print_help, 'projects', $p_menu, 'overview'); } else { echo '<h2>'.__('Projects').'</h2>'; echo '<h4>'.__('Create project').'</h4>'; // Right/Left Tables $table = new stdClass; $table->width = '100%'; $table->class = "search-table-button"; $table->style[0] = 'width: 20%'; $table->style[1] = 'width: 20%'; $table->style[2] = 'width: 20%';
$id = (int) get_parameter ('id_project'); $project = get_db_row ('tproject', 'id', $id); $project_access = get_project_access ($config['id_user'], $project['id']); // ACL - To see the project, you should have read access if ($project === false || ! $project_access['read']) { // Doesn't have access to this page audit_db ($config['id_user'], $config["REMOTE_ADDR"], "ACL Violation", "Trying to access project ".$id); no_permission(); } // Print title and menu. $section_title = __('Project tracking'); $section_subtitle = __("Project:")." ".$project['name']; $p_menu = print_project_tabs(); print_title_with_menu ($section_title, $section_subtitle, "project_tracking", 'projects', $p_menu, 'tracking'); $trackings = get_db_all_rows_field_filter ('tproject_track', 'id_project', $id); if ($trackings !== false) { $table = new stdClass; $table->width = "100%"; $table->class = 'listing'; $table->data = array (); $table->head = array (); $table->head[1] = __('Description'); $table->head[2] = __('User'); $table->head[3] = __('Date');
task_tracking ($id_task, TASK_MOVED); } else { no_permission (); } } // MAIN LIST OF TASKS $search_text = (string) get_parameter ('search_text', ''); if (!$pure) { // Print title and menu. $section_title = __('Task management'); $section_subtitle = $project['name']; $p_menu = print_project_tabs('task_list'); print_title_with_menu ($section_title, $section_subtitle, "task", 'projects', $p_menu, 'task_list'); } else { echo '<h2>'.__('Task management').'</h2>'; echo '<h4>'.$project['name']; echo "<div id='button-bar-title'>"; echo "<ul>"; echo '<li class="ui-tabs">'; echo "<a href='index.php?sec=projects&sec2=operation/projects/task&id_project=$id_project'>".print_image ("images/flecha_volver.png", true, array("title" => __("Back to task list")))."</a>"; echo '</li>'; echo "</ul>"; echo "</div>"; echo '</h4>'; }
ORDER BY tworkunit.timestamp DESC', $id_project); } else { $sql = sprintf ('SELECT tworkunit.id FROM tworkunit, tworkunit_task, ttask WHERE tworkunit_task.id_task = ttask.id AND ttask.id_project = %d '. $sql_filter .' AND id_user = "******"id_user"].'" AND tworkunit_task.id_workunit = tworkunit.id ORDER BY tworkunit.timestamp DESC', $id_project); } if (!$pure) { $section_title = __('Workunit resume'); $section_subtitle = $project_name.' - ' . __('All tasks'); $p_menu = print_project_tabs('workunits'); print_title_with_menu ($section_title, $section_subtitle, "task_workunit", 'projects', $p_menu, 'workunits'); } else { echo '<h2>'.__('Workunit resume') . "</h2>"; echo '<h4>' . $project_name.' - ' . __('All tasks'); echo integria_help ("task_workunit", true); echo '<ul class="ui-tabs-nav"><li class="ui-tabs">'; echo "<a href='index.php?sec=projects&sec2=operation/projects/task_workunit&id_project=$id_project&pure=0' title='".__("Back to view")."'><img src='images/go-previous.png'></a>"; echo '</li>'; echo '</ul>'; echo '</h4>'; } } $workunits = get_db_all_rows_sql ($sql);
$project_name = ""; $clean_output = get_parameter ("clean_output", 0); $project_access = get_project_access ($config['id_user'], $id_project); // ACL - To see the project, you should have read access if ($id_project != -1 && !$project_access['read']) { audit_db($id_user, $config["REMOTE_ADDR"], "ACL Violation","Trying to access to the gant graph of the project $project_name"); no_permission(); } if (!$clean_output) { // Print title and menu. $section_title = __('Gantt graph'); $section_subtitle = __("Project:") . " " .$project_name; $p_menu = print_project_tabs('gantt'); print_title_with_menu ($section_title, $section_subtitle, 'gantt', 'projects', $p_menu, 'gantt'); } else { echo "<h2>".__('Gantt graph'). "</h2><h4>" . __("Project:") . " " .$project_name; echo"</h4>"; } $scales = array ("month" => __("Month"), "week" => __("Week"), "day" => __("Day")); $op_actual = array(0 => __("No"), 1 => __("Yes")); echo '<div id="msg_box"></div>'; echo "<form id='gantt_form' method='post'>"; echo "<table class='gantt_buttons'>"; echo "<tr>"; echo "<td>";