function fetch_directory_full($did) { if ($did == NULL) { return "/"; } elseif (fetch_directory_change($did) == FALSE) { return FALSE; } else { $db_array = fetch_directory_change($did); $directory_name = $db_array[0]['name']; $directroy_base_id = $db_array[0]['did_base']; if ($directroy_base_id == NULL) { return "/" . $directory_name . "/"; } elseif ($directroy_base_id != NULL) { return $directory_full = fetch_directory_full($directroy_base_id) . $directory_name . "/"; } } }
</script> <table id="file_changes" class="zebra-striped"> <thead> <th class="yellow">Ver</th> <th class="red">Location & File Name</th> <th class="blue">Size</th> <th class="green">Operation</th> <th class="green">Time</th> <th class="purple">Description</th> </thead> <?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>";
); </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;