• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP admincp类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: 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


示例2: 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


示例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: 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


示例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: 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


示例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: doextract

 function doextract()
 {
     include iPATH . 'include/forum.class.php';
     $forum = new forum();
     include admincp::tpl();
 }
开发者ID:idreamsoft,项目名称:iCMS5.0,代码行数:6,代码来源:files.mo.php


示例15: doAddfield

 function doAddfield()
 {
     $mid = (int) $_GET['id'];
     $fid = (int) $_GET['fid'];
     if ($fid) {
         $rs = iCMS_DB::getRow("SELECT * FROM `#iCMS@__field` where `id`='{$fid}'", ARRAY_A);
         $rs['option'] = unserialize($rs['option']);
     } else {
         $rs['show'] = 0;
     }
     include admincp::tpl();
 }
开发者ID:idreamsoft,项目名称:iCMS5.1,代码行数:12,代码来源:models.mo.php


示例16: 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


示例17: doDefault

 function doDefault()
 {
     Admin::MP("menu_defaults");
     $defArray = $this->iCMS->getCache('system/default');
     include admincp::tpl('default');
 }
开发者ID:idreamsoft,项目名称:iCMS5.0,代码行数:6,代码来源:defaults.mo.php


示例18: doDefault

 function doDefault()
 {
     Admin::MP("menu_forums_manage");
     $forum = new forum();
     $do && set_cookie('selectopt', $do);
     $do = get_cookie('selectopt');
     empty($do) && ($do = 'fold');
     include admincp::tpl("forums.manage");
 }
开发者ID:idreamsoft,项目名称:iCMS5.0,代码行数:9,代码来源:forums.mo.php


示例19: doPage

 function doPage()
 {
     Admin::MP(array("menu_html_all", "menu_html_page"));
     $forum = new forum();
     include admincp::tpl();
 }
开发者ID:idreamsoft,项目名称:iCMS5.0,代码行数:6,代码来源:html.mo.php


示例20: exit

<?php

/**
 * @package iCMS
 * @copyright 2007-2010, iDreamSoft
 * @license http://www.idreamsoft.com iDreamSoft
 * @author coolmoo <[email protected]>
 */
!defined('iPATH') && exit('What are you doing?');
admincp::head($this->module != 'dialog');
?>
<style type="text/css">
#explorer {width:<?php 
echo $this->module == 'dialog' ? '740px' : '100%';
?>
; border-collapse:collapse; word-break:break-all; border:solid 1px #ECE9D8; border-bottom:solid 1px #959385; background-color:#ECE9D8; font:12px Verdana, Arial, Helvetica, sans-serif; color: #333;}
#explorer #m { background-color:#ECE9D8; width:5px; }
#explorer #tddir { background-color: #FFF; width:220px !important; height:350px; border-right:solid 1px #7F9DB9; border-top:solid 1px #ACA899; }
#explorer #tdfile { background-color: #FFF; width:<?php 
echo $this->module == 'dialog' ? '600px' : 'auto';
?>
; border-left:solid 1px #7F9DB9; border-top:solid 1px #7F9DB9; }
.dirlist { width:220px; height:350px; overflow-x:auto; overflow-y:scroll; clear: both; list-style:none; margin: 0px; display: block; padding: 0px 0px 0px 4px; }
.dirlist li { clear: both; height: 16px; margin-top: 1px; text-align: left; }
.dirlist li span { margin-left:36px; display: block; cursor:pointer;}
.dirlist ul { clear: both; list-style:none; margin: 0px; display: block; padding: 0px 0px 0px 16px; }
/*缩略图*/
#filelist { width:100%; height:375px; overflow-y:scroll; clear: both; list-style:none; margin: 0px 0px; padding: 0px; display: block; margin-top: 4px; }
#filelist li { float:left; width:96px; height:96px; border:solid 1px #ECE9D8; margin-left:8px; }
/*缩略图 end*/
#fList {clear:both;width:100%;margin: 0px; padding: 0px;height:350px;overflow-y: scroll; overflow-x: visible; }
开发者ID:idreamsoft,项目名称:iCMS5.1,代码行数:31,代码来源:files.manage.file.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP adoSchema类代码示例发布时间:2022-05-23
下一篇:
PHP adminbase类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap