public function printOne($task) { echo "<table>"; echo "<tr><td><b>\tid\t\t\t</b></td><td>\t\t\t\t {$task->id}\t\t\t\t\t\t </a></td></tr>"; echo "<tr><td><b>\tЗадание\t\t</b></td><td>\t\t\t\t {$task->name}\t\t\t\t\t </a></td></tr>"; echo "<tr><td><b>\tОписание\t</b></td><td>\t\t\t\t {$task->description}\t\t\t\t </a></td></tr>"; echo "<tr><td><b>\tПоручено\t</b></td><td>"; if (!is_null($task->insert_datetime)) { echo DateTime::createFromFormat("M d Y h:i:s:uA", $task->insert_datetime)->format("Y-m-d H:i"); } echo "</a></td></tr>"; echo "<tr><td><b>\tСрок\t\t</b></td><td>"; if (!is_null($task->deadlineDate)) { echo DateTime::createFromFormat("M d Y h:i:s:uA", $task->deadlineDate)->format("Y-m-d H:i"); } echo "</a></td></tr>"; echo "<tr><td><b>\tОкончено\t</b></td><td>"; if (!is_null($task->finishedDate)) { echo DateTime::createFromFormat("M d Y h:i:s:uA", $task->finishedDate)->format("Y-m-d H:i"); } echo "</a></td></tr>"; echo "<tr><td><b>\tКто поручил\t</b></td><td>" . user::GET($task->giver_userID)->username . "</a></td></tr>"; echo "<tr><td><b>\tКому поручено</b></td><td>" . user::GET($task->doer_userID)->username . "</a></td></tr>"; echo "<tr><td><b>\tПриоритет\t</b></td><td>" . priority::GET($task->priorityID)->name . "</a></td></tr>"; echo "<tr><td><b>\tСтатус\t\t</b></td><td>" . status::GET($task->statusID)->name . "</a></td></tr>"; echo "<tr><td><b>\tСайт\t\t</b></td><td><a href=\"/site/view/{$task->siteID}\">" . site::GET($task->siteID)->name . "</a>\t\t\t\t\t </a></td></tr>"; echo "</table>"; }