當前位置: 首頁>>代碼示例>>PHP>>正文


PHP manager::GET方法代碼示例

本文整理匯總了PHP中manager::GET方法的典型用法代碼示例。如果您正苦於以下問題:PHP manager::GET方法的具體用法?PHP manager::GET怎麽用?PHP manager::GET使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在manager的用法示例。


在下文中一共展示了manager::GET方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: printArray

 public function printArray($all)
 {
     if (is_array($all)) {
         // Kint::dump($all);
         echo "<table border=1px>";
         echo "\r\n\t\t\t\t<thead>\r\n\t\t\t\t\t<th></th>\r\n    \t\t\t\t<th>id</th>\r\n \t\t\t\t\t<th>Задание</th>\r\n \t\t\t\t\t<th>Описание</th>\r\n \t\t\t\t\t<th>Поручено</th>\r\n \t\t\t\t\t<th>Срок</th>\r\n \t\t\t\t\t<th>Окончено</th>\r\n \t\t\t\t\t<th>Кто поручил</th>\r\n \t\t\t\t\t<th>Кому поручено</th>\r\n \t\t\t\t\t<th>Приоритет</th>\r\n \t\t\t\t\t<th>Статус</th>\r\n \t\t\t\t\t<th>Сайт</th>\r\n\t\t\t\t</thead>";
         foreach ($all as $x) {
             $id = $x->id;
             $hostingName = hosting::GET($x->hostingID)->name;
             $managerName = manager::GET($x->managerID)->name;
             $registratorName = registrator::GET($x->registratorID)->name;
             $from = $_SERVER['REQUEST_URI'];
             echo "\r\n\t\t\t\t\t<tr>\r\n\t\t\t\t\t\t<td>\r\n\t\t\t\t\t\t\t<a href=\"/task/edit/{$id}?return-url={$from}\">\r\n\t\t\t\t\t\t\t\tE\r\n\t\t\t\t\t\t\t</a>\r\n\t\t\t\t\t\t</td>\r\n\t\t\t\t\t\t<td>\r\n\t\t\t\t\t\t\t<a href=\"/task/view/{$id}\">\r\n\t\t\t\t\t\t\t\t{$id}\r\n\t\t\t\t\t\t\t</a>\r\n\t\t\t\t\t\t</td>\r\n\t\t\t\t\t\t<td><a href=\"/task/view/{$id}\">\r\n\t\t\t\t\t\t\t{$x->name}\r\n\t\t\t\t\t\t</td></a>\r\n\t\t\t\t\t\t<td>{$x->description}</td>\r\n\t\t\t\t\t\t<td>";
             if (!is_null($x->insert_datetime)) {
                 echo DateTime::createFromFormat("M d Y h:i:s:uA", $x->insert_datetime)->format("Y-m-d H:i");
             }
             echo "</td>\r\n\t\t\t\t\t\t<td>";
             if (!is_null($x->deadlineDate)) {
                 echo DateTime::createFromFormat("M d Y h:i:s:uA", $x->deadlineDate)->format("Y-m-d H:i");
             }
             echo "</td>\r\n\t\t\t\t\t\t<td>";
             if (!is_null($x->finishedDate)) {
                 echo DateTime::createFromFormat("M d Y h:i:s:uA", $x->finishedDate)->format("Y-m-d H:i");
             }
             echo "</td>\r\n\t\t\t\t\t\t<td><a href=\"/user/view/{$x->giver_userID}\">\r\n\t\t\t\t\t\t\t" . user::GET($x->giver_userID)->username . "\r\n\t\t\t\t\t\t</a></td>\r\n\t\t\t\t\t\t<td><a href=\"/user/view/{$x->doer_userID}\">\r\n\t\t\t\t\t\t\t" . user::GET($x->doer_userID)->username . "\r\n\t\t\t\t\t\t</a></td>\r\n\t\t\t\t\t\t<td>" . priority::GET($x->priorityID)->name . "</td>\r\n\t\t\t\t\t\t<td>" . status::GET($x->statusID)->name . "</td>\r\n\t\t\t\t\t\t<td><a href=\"/site/view/{$x->siteID}\">" . site::GET($x->siteID)->name . "</a></td>\r\n\t\t\t\t\t</tr>\r\n\t\t\t\t";
         }
         echo "</table>";
     }
 }
開發者ID:Tacit007,項目名稱:Tacit007-php-framework,代碼行數:29,代碼來源:task.php

示例2: confirm

<a href="/manager">INDEX</a><br><br>
<?php 
global $menuHover;
$menuHover->Add("Все", "/manager");
$menuHover->Add("Новый", "/manager/new");
$menuHover->Add("Изменить", "/manager/edit/" . $args['id']);
$menuHover->Add("Удалить", "/manager/delete/" . $args['id'], "return confirm('Are you sure?');");
?>

<?php 
$current = manager::GET($args['id']);
echo 'id: ' . $current->id . '<br>name: ' . $current->name;
?>
<br><br>
<!--  <a href="/manager/edit/<?php 
echo $args['id'];
?>
">EDIT</a><br>-->
<!--  <a href="/manager/delete/<?php 
echo $args['id'];
?>
" onclick="return confirm('Are you sure?');">DELETE</a><br>-->
<br><br><h3>sites of manager</h3>
<?php 
site::printArray(site::GETSQL("SELECT * FROM site WHERE deleted = 0 AND managerID=" . $current->id));
開發者ID:Tacit007,項目名稱:Tacit007-php-framework,代碼行數:25,代碼來源:view.php

示例3: printOne

 public function printOne($site)
 {
     $id = $site->id;
     $hostingName = hosting::GET($site->hostingID)->name;
     $managerName = manager::GET($site->managerID)->name;
     $registratorName = registrator::GET($site->registratorID)->name;
     echo "<table>";
     echo "<tr><td><b>\tid\t\t\t</b></td><td>\t\t\t\t\t\t\t\t\t\t\t\t\t\t{$site->id}\t\t\t</a></td></tr>";
     echo "<tr><td><b>\tИмя\t\t\t</b></td><td>\t\t\t\t\t\t\t\t\t\t\t\t\t\t{$site->name}\t\t\t</a></td></tr>";
     echo "<tr><td><b>\tХостинг\t\t</b></td><td><a \thref=\"/hosting/view/{$site->hostingID}\">\t\t{$hostingName}\t\t</a></td></tr>";
     echo "<tr><td><b>\tМенеджер\t</b></td><td><a \thref=\"/manager/view/{$site->managerID}\">\t\t{$managerName}\t\t</a></td></tr>";
     echo "<tr><td><b>\tРегистратор\t</b></td><td><a href=\"/registrator/view/{$site->registratorID}\">\t{$registratorName}\t</a></td></tr>";
     echo "</table>";
 }
開發者ID:Tacit007,項目名稱:Tacit007-php-framework,代碼行數:14,代碼來源:site.php

示例4: confirm

<!--  <a href="/manager">INDEX</a><br><br>-->
<?php 
global $menuHover;
$menuHover->Add("Все", "/manager");
$menuHover->Add("Новый", "/manager/new");
$menuHover->Add("Просмотр", "/manager/view/" . $args['id']);
$menuHover->Add("Удалить", "/manager/delete/" . $args['id'], "return confirm('Are you sure?');");
?>

<form method="post">
	name:<input name="name" type="text" value="<?php 
echo manager::GET($args['id'])->name;
?>
">
	<input type="submit">
</form>

<!-- <a href="/manager/view/<?php 
echo $args['id'];
?>
">VIEW</a><br> -->
開發者ID:Tacit007,項目名稱:Tacit007-php-framework,代碼行數:21,代碼來源:edit.php


注:本文中的manager::GET方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。