Пример #1
0
 public function printOne($siteEmail)
 {
     $siteName = site::GET($siteEmail->siteID)->name;
     $emailName = email::GET($siteEmail->emailID)->name;
     echo "<table>";
     echo "<tr><td><b>\tСайт:\t</b></td><td><a  href=\"/site/view/{$siteEmail->siteID}\">\t{$siteName}\t</a></td></tr>";
     echo "<tr><td><b>\temail:\t</b></td><td><a href=\"/email/view/{$siteEmail->emailID}\">\t{$emailName}\t</a></td></tr>";
     echo "</table>";
 }
Пример #2
0
 public function printOne($sitePhone)
 {
     $siteName = site::GET($sitePhone->siteID)->name;
     $phoneName = phone::GET($sitePhone->phoneID)->name;
     echo "<table>";
     echo "<tr><td><b>\tСайт\t</b></td><td><a   href=\"/site/view/{$siteEmail->siteID}\">\t{$siteName}\t</a></td></tr>";
     echo "<tr><td><b>\tТелефон\t</b></td><td><a href=\"/phone/view/{$siteEmail->emailID}\">\t{$phoneName}\t</a></td></tr>";
     echo "</table>";
 }
Пример #3
0
<?php

$current = site::GET($args['id']);
?>
<!-- <p><a href="/site">INDEX</a></p> -->

<h2> Просмотр [<?php 
echo $current->name;
?>
]</h2>
<?php 
global $menuHover;
$root = "/site";
$menuHover->Add("Все", $root);
$menuHover->Add("Новый", $root . "/new");
$menuHover->Add("Изменить", $root . "/edit/" . $args['id']);
$menuHover->Add("Удалить", $root . "/delete/" . $args['id'], "return confirm('Are you sure?');");
site::printOne($current);
?>
<br><br>
<!-- <p><a 	href="/site/edit/<?php 
echo $current->id;
?>
">EDIT</a></p><br> -->
<!-- <p><a href="/site/delete/<?php 
echo $current->id;
?>
" onclick="return confirm('Are you sure?');">DELETE</a></p><br> -->
Пример #4
0
 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>";
 }