本文整理汇总了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");
}
示例2: domanage
function domanage()
{
member::MP("menu_plugin_manage");
$plugins = $this->iCMS->getCache('system/plugins');
$rs = plugin::doList();
include admincp::tpl();
}
示例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");
}
示例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");
}
示例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();
}
示例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();
}
示例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");
}
示例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');
}
示例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');
}
示例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");
}
示例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');
}
示例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');
}
示例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");
}
示例14: doAddfield
function doAddfield()
{
$id = (int) $_GET['id'];
include admincp::tpl();
}
示例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');
}