本文整理匯總了PHP中email::GET方法的典型用法代碼示例。如果您正苦於以下問題:PHP email::GET方法的具體用法?PHP email::GET怎麽用?PHP email::GET使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類email
的用法示例。
在下文中一共展示了email::GET方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的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: confirm
<a href="/email">INDEX</a><br><br>
<?php
global $menuHover;
$menuHover->Add("Все", "/email");
$menuHover->Add("Новый", "/email/new");
$menuHover->Add("Просмотр", "/email/view/" . $args['id']);
$menuHover->Add("Удалить", "/email/delete/" . $args['id'], "return confirm('Are you sure?');");
?>
<form method="post">
name:<input name="name" type="text" value="<?php
echo email::GET($args['id'])->name;
?>
">
<input type="submit">
</form>
<a href="/email/view/<?php
echo $args['id'];
?>
">VIEW</a><br>
示例3: confirm
<!-- <a href="/email">INDEX</a><br><br> -->
<?php
global $menuHover;
$menuHover->Add("Все", "/email");
$menuHover->Add("Новый", "/email/new");
$menuHover->Add("Изменить", "/email/edit/" . $args['id']);
$menuHover->Add("Удалить", "/email/delete/" . $args['id'], "return confirm('Are you sure?');");
?>
<?php
email::printOne(email::GET($args['id']));
?>
<br><br>
<br><br><h3>sites of email</h3>
<?php
site::printArray(site::GETSQL("\r\n\t\tSELECT site.*\r\n\t\tFROM site, siteEmail, email\r\n\t\tWHERE\r\n\t\t\tsite.id\t\t\t\t=\tsiteEmail.siteID AND\r\n\t\t\temail.id\t\t\t=\tsiteEmail.emailID AND\r\n\t\t\tsiteEmail.deleted\t=\t'False' AND\r\n\t\t\tsiteEmail.emailID\t=\t" . $args['id']));