<?php for ($i = 0; $i < $file_change_number; $i++) { $fcid = $db_array[$i]['fcid']; $version = $db_array[$i]['version']; $name = $db_array[$i]['name']; $directory = fetch_directory_full($db_array[$i]['did']); $size = file_size_convert($db_array[$i]['size']); $operation = $db_array[$i]['type']; $time = $db_array[$i]['time']; $description = $db_array[$i]['description']; echo '<tr class="td_link" onclick="location.href=\'download.php?fc=' . $fcid . '&fn=' . $name . '\'"><td>'; echo $version; echo '</td><td class="black">'; echo $directory . "<strong>" . $name . "</strong>"; echo "</td><td>"; echo $size; echo "</td><td>"; echo operation_code($operation); echo "</td><td>"; echo '[' . time_uk($time) . ']'; echo "</td><td>"; echo $description; echo "</td></tr>"; } echo '</table>'; } ?> <?php include 'style/footer.inc.php';
<?php include 'libraries/initial.inc.php'; include 'libraries/project.lib.php'; if (isset($_GET['f'])) { $f = $_GET['f']; } else { $f = 0; } if (fetch_file_change($f) == FALSE) { } else { //file name, last commit time, page title, page sub title $db_array = fetch_file_change($f); $db_array_file = fetch_file($f); $file_name = $db_array[0]['name']; $file_last_update = time_uk($db_array[0]['time']); $page_title = $file_name; $page_title_sub = "last commit : [" . $file_last_update . "]"; $file_change_number = count($db_array); if ($file_change_number <= 1) { $version_title = "version"; } else { $version_title = "versions"; } } include 'style/header.inc.php'; if (fetch_file_change($f) == FALSE) { ?> <div class="alert-message error"> <a class="close" href="<?php echo $after_login_redirect;
goto_url("task.php?t={$t}"); } else { error('empty task name'); } } } if (fetch_task_history($t) == FALSE or fetch_task($t) == FALSE) { } else { //task name, start/end time, page title, page sub title $db_array_task_history = fetch_task_history($t); $db_array_task = fetch_task($t); $db_array_task_file = fetch_task_file($t); $db_array_task_directory = fetch_task_directory($t); $task_name = $db_array_task[0]['name']; $task_start = time_uk($db_array_task[0]['start']); $task_end = time_uk($db_array_task[0]['end']); $page_title = $task_name; $page_title_sub = "[" . $task_start . "] → [" . $task_end . "]"; $directory_number = count($db_array_task_directory); $file_number = count($db_array_task_file); if ($file_number <= 1) { $version_label_file = "file"; } else { $version_label_file = "files"; } if ($directory_number <= 1) { $version_label_directory = "directory"; } else { $version_label_directory = "directories"; } }
); </script> <table id="project_tasks" class="zebra-striped"> <thead> <th class="red">Task</th> <th class="blue">User</th> <th class="green">Duration</th> <th class="orange">Priority</th> <th class="purple">Status</th> </thead> <?php for ($i = 0; $i < $project_task_history_number; $i++) { $tid = $db_array_task[$i]['tid']; $task = $db_array_task[$i]['name']; $start = time_uk($db_array_task[$i]['start']); $end = time_uk($db_array_task[$i]['end']); $array_user = fetch_user($db_array_task[$i]['uid']); $user = $array_user[0]['name_nickname'] . ' (' . $array_user[0]['name_first'] . ' ' . $array_user[0]['name_last'] . ')'; $priority = $db_array_task[$i]['priority']; $status = task_status($db_array_task[$i]['tid']); echo '<tr class="td_link" onclick="location.href=\'task.php?t=' . $tid . '\'"><td class="black">'; echo "<strong>" . $task . "</strong>"; echo "</td><td>"; echo $user; echo "</td><td>"; echo "[" . $start . "] → [" . $end . "]"; echo "</td><td>"; echo $priority; echo "</td><td>"; echo $status; echo "</td></tr>";
include 'libraries/project.lib.php'; if (isset($_GET['p'])) { $p = $_GET['p']; } else { $p = 0; } if (fetch_project($p) == FALSE) { } else { //project name, start/end time, page title, page sub title $db_array = fetch_project($p); $db_array_task = fetch_project_task($p); $db_array_task_history = fetch_project_task_history($p); $project_name = $db_array[0]['name']; $project_start = time_uk($db_array[0]['start']); $project_end = time_uk($db_array[0]['end']); $project_description = time_uk($db_array[0]['description']); $page_title = $project_name; $page_title_sub = "[" . $project_start . "] → [" . $project_end . "]"; $project_task_history_number = count($db_array_task_history); if ($project_task_history_number <= 1) { $tasks_title = "task"; } else { $tasks_title = "tasks"; } } include 'style/header.inc.php'; if (fetch_project($p) == FALSE) { ?> <div class="alert-message error"> <a class="close" href="<?php echo $after_login_redirect;
<?php include 'libraries/initial.inc.php'; include 'libraries/project.lib.php'; if (isset($_GET['d'])) { $d = $_GET['d']; } else { $d = 0; } if (fetch_directory_change($d) == FALSE) { } else { //directory name, last commit time, page title, page sub title $db_array = fetch_directory_change($d); $db_array_dir = fetch_directory($d); $directory_name = $db_array[0]['name']; $directory_last_update = time_uk($db_array[0]['time']); $page_title = $directory_name; $page_title_sub = "last commit : [" . $directory_last_update . "]"; $directory_change_number = count($db_array); if ($directory_change_number <= 1) { $version_title = "version"; } else { $version_title = "versions"; } } include 'style/header.inc.php'; if (fetch_directory_change($d) == FALSE) { ?> <div class="alert-message error"> <a class="close" href="<?php echo $after_login_redirect;
</script> <table id="task_directory" class="zebra-striped"> <thead> <th class="yellow">Ver</th> <th class="blue">Base</th> <th class="red">Name</th> <th class="green">Operation</th> <th class="green">Time</th> <th class="purple">Description</th> </thead> <?php for ($i = 0; $i < $directory_number; $i++) { $version = $db_array_task_directory[$i]['version']; $name = $db_array_task_directory[$i]['name']; $did_base = fetch_directory_full($db_array_task_directory[$i]['did_base']); $time = time_uk($db_array_task_directory[$i]['time']); $operation = $db_array_task_directory[$i]['type']; $description = $db_array_task_directory[$i]['description']; echo "<tr><td>"; echo $version; echo "</td><td>"; echo $did_base; echo '</td><td class="black">'; echo "<strong>" . $name . "</strong>"; echo "</td><td>"; echo operation_code($operation); echo "</td><td>"; echo '[' . $time . ']'; echo "</td><td>"; echo $description; echo "</td></tr>";
</script> <table id="directory_changes" class="zebra-striped"> <thead> <th class="yellow">Ver</th> <th class="blue">Base</th> <th class="red">Name</th> <th class="green">Operation</th> <th class="green">Time</th> <th class="purple">Description</th> </thead> <?php for ($i = 0; $i < $directory_change_number; $i++) { $version = $db_array[$i]['version']; $name = $db_array[$i]['name']; $did_base = fetch_directory_full($db_array[$i]['did_base']); $time = time_uk($db_array[$i]['time']); $operation = $db_array[$i]['type']; $description = $db_array[$i]['description']; echo "<tr><td>"; echo $version; echo "</td><td>"; echo $did_base; echo '</td><td class="black">'; echo "<strong>" . $name . "</strong>"; echo "</td><td>"; echo operation_code($operation); echo "</td><td>"; echo '[' . $time . ']'; echo "</td><td>"; echo $description; echo "</td></tr>";