当前位置: 首页>>代码示例>>PHP>>正文


PHP paging::getHtmlSearchCode方法代码示例

本文整理汇总了PHP中paging::getHtmlSearchCode方法的典型用法代码示例。如果您正苦于以下问题:PHP paging::getHtmlSearchCode方法的具体用法?PHP paging::getHtmlSearchCode怎么用?PHP paging::getHtmlSearchCode使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在paging的用法示例。


在下文中一共展示了paging::getHtmlSearchCode方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: array

 if ($action == '') {
     $log->logAction(ADM_ACTION, LOG_NOTICE, "viewed admin_domains");
     $fields = array('d.domain' => $lng['domains']['domainname'], 'c.name' => $lng['customer']['name'], 'c.firstname' => $lng['customer']['firstname'], 'c.company' => $lng['customer']['company'], 'c.loginname' => $lng['login']['username'], 'd.aliasdomain' => $lng['domains']['aliasdomain']);
     $paging = new paging($userinfo, TABLE_PANEL_DOMAINS, $fields);
     $domains = '';
     $result_stmt = Database::prepare("\n\t\t\tSELECT `d`.*, `c`.`loginname`, `c`.`name`, `c`.`firstname`, `c`.`company`, `c`.`standardsubdomain`, `ad`.`id` AS `aliasdomainid`, `ad`.`domain` AS `aliasdomain`\n\t\t\tFROM `" . TABLE_PANEL_DOMAINS . "` `d`\n\t\t\tLEFT JOIN `" . TABLE_PANEL_CUSTOMERS . "` `c` USING(`customerid`)\n\t\t\tLEFT JOIN `" . TABLE_PANEL_DOMAINS . "` `ad` ON `d`.`aliasdomain`=`ad`.`id`\n\t\t\tWHERE `d`.`parentdomainid`='0' " . ($userinfo['customers_see_all'] ? '' : " AND `d`.`adminid` = :adminid ") . " " . $paging->getSqlWhere(true) . " " . $paging->getSqlOrderBy() . " " . $paging->getSqlLimit());
     $params = array();
     if ($userinfo['customers_see_all'] == '0') {
         $params['adminid'] = $userinfo['adminid'];
     }
     Database::pexecute($result_stmt, $params);
     $numrows_domains = Database::num_rows();
     $paging->setEntries($numrows_domains);
     $sortcode = $paging->getHtmlSortCode($lng);
     $arrowcode = $paging->getHtmlArrowCode($filename . '?page=' . $page . '&s=' . $s);
     $searchcode = $paging->getHtmlSearchCode($lng);
     $pagingcode = $paging->getHtmlPagingCode($filename . '?page=' . $page . '&s=' . $s);
     $domain_array = array();
     while ($row = $result_stmt->fetch(PDO::FETCH_ASSOC)) {
         $row['domain'] = $idna_convert->decode($row['domain']);
         $row['aliasdomain'] = $idna_convert->decode($row['aliasdomain']);
         $resultips_stmt = Database::prepare("\n\t\t\t\tSELECT `ips`.* FROM `" . TABLE_DOMAINTOIP . "` AS `dti`, `" . TABLE_PANEL_IPSANDPORTS . "` AS `ips`\n\t\t\t\tWHERE `dti`.`id_ipandports` = `ips`.`id` AND `dti`.`id_domain` = :domainid");
         Database::pexecute($resultips_stmt, array('domainid' => $row['id']));
         $row['ipandport'] = '';
         while ($rowip = $resultips_stmt->fetch(PDO::FETCH_ASSOC)) {
             if (filter_var($rowip['ip'], FILTER_VALIDATE_IP, FILTER_FLAG_IPV6)) {
                 $row['ipandport'] .= '[' . $rowip['ip'] . ']:' . $rowip['port'] . "\n";
             } else {
                 $row['ipandport'] .= $rowip['ip'] . ':' . $rowip['port'] . "\n";
             }
         }
开发者ID:mowamed,项目名称:Froxlor,代码行数:31,代码来源:admin_domains.php


注:本文中的paging::getHtmlSearchCode方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。