本文整理汇总了PHP中Domain::load_domains方法的典型用法代码示例。如果您正苦于以下问题:PHP Domain::load_domains方法的具体用法?PHP Domain::load_domains怎么用?PHP Domain::load_domains使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Domain
的用法示例。
在下文中一共展示了Domain::load_domains方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: ShowDomains
public function ShowDomains()
{
global $LANG, $DB;
$objs = Domain::load_domains('*', "`username`='{$this->username}' AND `ServerID`='{$this->ServerID}'");
$count = count($objs);
$show = openForm(iSELF, 'get');
$show .= HiddenField('object', 'testdomain');
$show .= beginTable("{$count} {$LANG['Domain']}", '100%');
$show .= makeTH($LANG['Domain'], $LANG['DateClosed']);
foreach ($objs as $obj) {
$show .= makeTD("<input type='radio' name='url' value='{$obj->name}' />{$obj->name}", '');
}
$show .= ArrayDropBox('проверить', 'action', 'whois', array('http', 'HTTP', 'whois', 'WHOIS'));
$show .= Submitter('go', 'check');
$show .= endTable();
$show .= closeForm();
return $show;
}
示例2: list_domain
static function list_domain($pagenum = 1)
{
global $LANG, $DB;
$page_posts = 20;
$spos = ($pagenum - 1) * $page_posts;
$objs = Domain::load_domains('*', '', 'DomainID', 'DESC', $page_posts, $spos);
$count = $DB->count_objs('Domains');
$result = beginTable("{$count} {$LANG['Domains']}", '100%');
$result .= makeTH($LANG['ID'], $LANG['Title']);
foreach ($objs as $obj) {
$result .= makeTD("<a href='?object=domain&action=show&DomainID={$obj->id}'>{$obj->id}</a>", $obj->name);
}
$result .= '<tr><td colspan="10" class="nob">';
$result .= makePageNav($pagenum, $page_posts, $count, iSELF . '?object=domain&action=list&');
$result .= '</td></tr>';
$result .= endTable();
return $result;
}