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


PHP admincp::tpl方法代码示例

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


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

示例1: dofpower

 function dofpower()
 {
     $rs = iCMS_DB::getRow("SELECT * FROM `#iCMS@__members` WHERE `uid`='" . intval($_GET['uid']) . "'");
     $forum = new forum();
     $forum->allArray();
     include admincp::tpl("account.fpower");
 }
开发者ID:idreamsoft,项目名称:iCMS5.1,代码行数:7,代码来源:account.mo.php

示例2: domanage

 function domanage()
 {
     member::MP("menu_plugin_manage");
     $plugins = $this->iCMS->getCache('system/plugins');
     $rs = plugin::doList();
     include admincp::tpl();
 }
开发者ID:idreamsoft,项目名称:iCMS5.1,代码行数:7,代码来源:plugins.mo.php

示例3: doDefault

 function doDefault()
 {
     //数据统计
     $rs = iCMS_DB::getArray("SHOW FULL TABLES FROM `" . DB_NAME . "` WHERE table_type = 'BASE TABLE';");
     foreach ($rs as $k => $val) {
         if (strstr(DB_PREFIX, $val['Tables_in_' . DB_NAME]) === false) {
             $iCMSTable[] = $val['Tables_in_' . DB_NAME];
         } else {
             $oTable[] = $val['Tables_in_' . DB_NAME];
         }
     }
     $content_datasize = 0;
     $tables = iCMS_DB::getArray("SHOW TABLE STATUS");
     $_count = count($tables);
     $tableStr = strtoupper(implode(",", $iCMSTable));
     for ($i = 0; $i < $_count; $i++) {
         $tableName = strtoupper($tables[$i]['Name']);
         if (stristr($tableStr, $tableName)) {
             $datasize += $tables[$i]['Data_length'];
             $indexsize += $tables[$i]['Index_length'];
             if (stristr(strtoupper(DB_PREFIX . "article," . DB_PREFIX . "forum," . DB_PREFIX . "comment," . DB_PREFIX . "article_data"), $tableName)) {
                 $content_datasize += $tables[$i]['Data_length'] + $tables[$i]['Index_length'];
             }
         }
     }
     $c = iCMS_DB::getValue("SELECT count(*) FROM #iCMS@__forum");
     $a = iCMS_DB::getValue("SELECT count(*) FROM #iCMS@__article");
     file_exists(iPATH . 'license.php') && ($license = (include iPATH . 'license.php'));
     include admincp::tpl("home");
 }
开发者ID:idreamsoft,项目名称:iCMS5.1,代码行数:30,代码来源:home.mo.php

示例4: dofpower

 function dofpower()
 {
     include_once iPATH . 'include/forum.class.php';
     $rs = iCMS_DB::getRow("SELECT * FROM `#iCMS@__admin` WHERE `uid`='" . intval($_GET['uid']) . "'");
     $forum = new forum();
     $forum->allArray();
     include admincp::tpl("account.fpower");
 }
开发者ID:idreamsoft,项目名称:iCMS5.0,代码行数:8,代码来源:account.mo.php

示例5: dofpower

 function dofpower()
 {
     $rs = iCMS_DB::getRow("SELECT * FROM `#iCMS@__group` WHERE `gid`='" . intval($_GET['groupid']) . "'");
     admincp::head();
     $forum = new forum();
     $forum->allArray();
     include admincp::tpl();
 }
开发者ID:idreamsoft,项目名称:iCMS5.1,代码行数:8,代码来源:groups.mo.php

示例6: doedit

 function doedit()
 {
     $path = trim($_GET["path"]);
     $FileData = FS::read(iPATH . "templates" . $path);
     $strpos = strpos(__REF__, '?');
     $REFERER = $strpos === false ? '' : substr(__REF__, $strpos);
     include admincp::tpl();
 }
开发者ID:idreamsoft,项目名称:iCMS5.0,代码行数:8,代码来源:templates.mo.php

示例7: doDefault

 function doDefault()
 {
     $_configRs = iCMS_DB::getArray("SELECT * FROM `#iCMS@__config`");
     foreach ($_configRs as $_C) {
         $configRs[$_C['name']] = $_C['value'];
     }
     include admincp::tpl("setting");
 }
开发者ID:idreamsoft,项目名称:iCMS5.1,代码行数:8,代码来源:setting.mo.php

示例8: doDefault

 function doDefault()
 {
     member::MP("menu_filter");
     $cache = $this->iCMS->getCache(array('system/word.filter', 'system/word.disable'));
     foreach ((array) $cache['system/word.filter'] as $k => $val) {
         $filterArray[$k] = implode("=", (array) $val);
     }
     include admincp::tpl('filter');
 }
开发者ID:idreamsoft,项目名称:iCMS5.1,代码行数:9,代码来源:filter.mo.php

示例9: dodefault

 function dodefault()
 {
     member::MP("menu_search");
     $maxperpage = 20;
     $total = $page == 1 || empty($_GET['rowNum']) ? iCMS_DB::getValue("SELECT count(*) FROM `#iCMS@__search`") : (int) $_GET['rowNum'];
     page($total, $maxperpage, "个关键字");
     $rs = iCMS_DB::getArray("SELECT * FROM `#iCMS@__search` order by id DESC LIMIT {$this->firstcount},{$maxperpage}");
     $_count = count($rs);
     include admincp::tpl('search');
 }
开发者ID:idreamsoft,项目名称:iCMS5.1,代码行数:10,代码来源:search.mo.php

示例10: dodefault

 function dodefault()
 {
     member::MP(array("menu_index_advertise", "menu_advertise"));
     $maxperpage = 30;
     $total = $page == 1 || empty($_GET['rowNum']) ? iCMS_DB::getValue("SELECT count(*) FROM `#iCMS@__advertise`") : (int) $_GET['rowNum'];
     page($total, $maxperpage, "个广告");
     $rs = iCMS_DB::getArray("SELECT * FROM `#iCMS@__advertise` order by id DESC LIMIT {$this->firstcount},{$maxperpage}");
     $_count = count($rs);
     include admincp::tpl("advertise");
 }
开发者ID:idreamsoft,项目名称:iCMS5.1,代码行数:10,代码来源:advertise.mo.php

示例11: dodefault

 function dodefault()
 {
     Admin::MP(array("menu_index_link", "menu_link"));
     $maxperpage = 60;
     $total = $page == 1 || empty($_GET['rowNum']) ? iCMS_DB::getValue("SELECT count(*) FROM `#iCMS@__links`") : (int) $_GET['rowNum'];
     page($total, $maxperpage, '个链接');
     $rs = iCMS_DB::getArray("SELECT * FROM `#iCMS@__links` ORDER BY `logo`, `orderNum` ASC LIMIT {$this->firstcount},{$maxperpage}");
     $_count = count($rs);
     include admincp::tpl('link');
 }
开发者ID:idreamsoft,项目名称:iCMS5.0,代码行数:10,代码来源:link.mo.php

示例12: dodefault

 function dodefault()
 {
     member::MP("menu_keywords");
     $_GET['keywords'] && ($sql[] = " `keyword` REGEXP '{$_GET['keywords']}'");
     $_GET['replace'] && ($sql[] = " `replace` REGEXP '{$_GET['replace']}'");
     isset($_GET['status']) && $_GET['status'] != '-1' && ($sql[] = " `status`='" . $_GET['status'] . "'");
     $where = $sql ? ' where ' . implode(' AND ', (array) $sql) : '';
     $maxperpage = (int) $_GET['perpage'] > 0 ? $_GET['perpage'] : 20;
     $total = $page == 1 || empty($_GET['rowNum']) ? iCMS_DB::getValue("SELECT count(*) FROM `#iCMS@__keywords` {$where}") : (int) $_GET['rowNum'];
     page($total, $maxperpage, "个关键字");
     $rs = iCMS_DB::getArray("SELECT * FROM `#iCMS@__keywords` {$where} order by id DESC LIMIT {$this->firstcount},{$maxperpage}");
     $_count = count($rs);
     include admincp::tpl('keywords');
 }
开发者ID:idreamsoft,项目名称:iCMS5.1,代码行数:14,代码来源:keywords.mo.php

示例13: doinstall

 function doinstall($download = false)
 {
     $a = patch::init(isset($_GET['force']) ? true : false);
     if (empty($a)) {
         echo "iCMS版本目前是最新版本:iCMS " . iCMS_VER . " [" . iCMS_RELEASE . "]";
         return;
     }
     $msg = '';
     if ($download) {
         $msg .= patch::download($a[1]);
     }
     //下载
     $msg .= patch::update($a[1]);
     //更新
     if ($a[2]) {
         $msg .= patch::run($a[2]);
     }
     //执行升级程序
     include admincp::tpl("ipatch");
 }
开发者ID:idreamsoft,项目名称:iCMS5.1,代码行数:20,代码来源:ipatch.mo.php

示例14: doAddfield

 function doAddfield()
 {
     $id = (int) $_GET['id'];
     include admincp::tpl();
 }
开发者ID:idreamsoft,项目名称:iCMS5.0,代码行数:5,代码来源:models.mo.php

示例15: doedit

 function doedit()
 {
     $rs = iCMS_DB::getRow("SELECT * FROM `#iCMS@__members` WHERE `uid`='" . (int) $_GET['userid'] . "'");
     $rs->info = unserialize($rs->info);
     include admincp::tpl('user.add');
 }
开发者ID:idreamsoft,项目名称:iCMS5.1,代码行数:6,代码来源:user.mo.php


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