本文整理汇总了PHP中site::GET方法的典型用法代码示例。如果您正苦于以下问题:PHP site::GET方法的具体用法?PHP site::GET怎么用?PHP site::GET使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类site
的用法示例。
在下文中一共展示了site::GET方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: printOne
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: printOne
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: confirm
<?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: printOne
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>";
}