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; }
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; }