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


PHP page::display方法代码示例

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


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

示例1: actionIndex

 public function actionIndex($parentid = 0)
 {
     $folder = zotop::model('system.folder');
     if (form::isPostBack()) {
         $post = form::post();
         foreach ((array) $post['id'] as $i => $id) {
             $folder->update(array('order' => $i + 1), $id);
         }
         if (!$folder->error()) {
             msg::success('保存成功', zotop::url('system/folder/index'));
         }
         msg::error($folder->msg());
     }
     $folders = $folder->getAll();
     $tree = new tree($folders, 0);
     $rows = $tree->getChild($parentid);
     $position = $tree->getPosition($parentid);
     foreach ($position as $p) {
         $pos[zotop::url('system/folder/index/' . $p['id'])] = $p['title'];
     }
     $page = new page();
     $page->set('title', zotop::t('文件管理'));
     $page->set('navbar', $this->navbar($parentid));
     $page->set('position', array(zotop::url('system/file') => zotop::t('文件管理'), zotop::url('system/folder') => zotop::t('分类管理')) + (array) $pos + array('列表'));
     $page->set('folders', $folders);
     $page->set('rows', $rows);
     $page->set('hash', $hash);
     $page->display();
 }
开发者ID:dalinhuang,项目名称:zotop,代码行数:29,代码来源:folder.php

示例2: actionIndex

 public function actionIndex($parentid = 0)
 {
     $category = zotop::model('content.category');
     if (form::isPostBack()) {
         $ids = zotop::post('id');
         $category->order($ids);
         if (!$category->error()) {
             msg::success('保存成功');
         }
         msg::error($category->msg());
     }
     $categorys = $category->db()->where('parentid', '=', $parentid)->orderby('order', 'asc')->getAll();
     $types = $category->types();
     $model = zotop::model('content.model');
     $models = $model->cache();
     $position = $category->getPosition($parentid);
     foreach ($position as $p) {
         $pos[zotop::url('content/category/index/' . $p['id'])] = $p['title'];
     }
     $page = new page();
     $page->set('title', zotop::t('栏目管理'));
     $page->set('position', array(zotop::url('content') => zotop::t('内容管理'), zotop::url('content/category') => zotop::t('栏目管理')) + (array) $pos + array('栏目列表'));
     $page->set('navbar', $this->navbar($parentid));
     $page->set('categorys', $categorys);
     $page->set('models', $models);
     $page->set('types', $types);
     $page->display();
 }
开发者ID:dalinhuang,项目名称:zotop,代码行数:28,代码来源:category.php

示例3: actionIndex

 public function actionIndex()
 {
     $page = new page();
     $page->title = zotop::t('系统管理');
     $page->navbar = $this->navbar();
     $page->display();
 }
开发者ID:dalinhuang,项目名称:zotop,代码行数:7,代码来源:system.php

示例4: actionIndex

 public function actionIndex($type = '')
 {
     $file = zotop::model('zotop.file');
     if (!empty($type)) {
         $where = array('type', '=', $type);
     }
     $files = $file->db()->where($where)->orderby('createtime', 'desc')->getPage();
     $pagination = new pagination();
     $pagination->page = $files['page'];
     $pagination->pagesize = $files['pagesize'];
     $pagination->total = $files['total'];
     $p = $pagination->render();
     $totalsize = $file->totalsize();
     $totalcount = $file->count();
     $page = new page();
     $page->set('title', zotop::t('文件管理'));
     $page->set('navbar', $this->navbar());
     $page->set('page', $files['page']);
     $page->set('pagesize', $files['pagesize']);
     $page->set('total', $files['total']);
     $page->set('files', $files['data']);
     $page->set('totalsize', $totalsize);
     $page->set('totalcount', $totalcount);
     $page->set('pagination', $p);
     $page->display();
 }
开发者ID:dalinhuang,项目名称:zotop,代码行数:26,代码来源:file.php

示例5: actionIndex

 public function actionIndex()
 {
     $page = new page();
     $page->title = zotop::t('模板管理');
     $page->set('navbar', $this->navbar());
     $page->display();
 }
开发者ID:dalinhuang,项目名称:zotop,代码行数:7,代码来源:template.php

示例6: actionIndex

 public function actionIndex()
 {
     $page = new page();
     $page->title = '系统管理中心';
     $page->body = array('class' => 'frame');
     $page->set('user', $this->user);
     $page->display();
 }
开发者ID:dalinhuang,项目名称:zotop,代码行数:8,代码来源:index.php

示例7: actionDetail

 public function actionDetail($id)
 {
     $content = zotop::model('content.content');
     $content->read($id);
     $page = new page();
     $page->set('content', $content);
     $page->set('body', array('class' => 'detail'));
     $page->display($content->template);
 }
开发者ID:dalinhuang,项目名称:zotop,代码行数:9,代码来源:detail.php

示例8: actionLocation

 public function actionLocation($globalid)
 {
     $file = zotop::model('system.file');
     $images = $file->db()->where('type', '=', 'image')->where('globalid', '=', $globalid)->orderby('createtime', 'desc')->getAll();
     $page = new page();
     $page->set('title', '已上传图片');
     $page->set('globalid', $globalid);
     $page->set('images', $images);
     $page->display();
 }
开发者ID:dalinhuang,项目名称:zotop,代码行数:10,代码来源:image.php

示例9: actionUninstalled

 public function actionUninstalled()
 {
     $module = zotop::model('system.module');
     $modules = $module->getUnInstalled();
     $page = new page();
     $page->set('title', '模块安装 ');
     $page->set('position', $position);
     $page->set('navbar', $this->navbar());
     $page->set('modules', $modules);
     $page->display();
 }
开发者ID:dalinhuang,项目名称:zotop,代码行数:11,代码来源:module.php

示例10: actionIndex

 public function actionIndex()
 {
     $module = zotop::module('content');
     $menus = array(array('id' => 'category', 'icon' => '', 'title' => '内容管理', 'url' => zotop::url('content/content'), 'description' => '内容管理,添加,编辑以及删除等操作'), array('id' => 'category', 'icon' => '', 'title' => '栏目管理', 'url' => zotop::url('content/category'), 'description' => '栏目分类管理,新建栏目及调整栏目顺序'), array('id' => 'category', 'icon' => '', 'title' => '模型管理', 'url' => zotop::url('content/model'), 'description' => '内容模型管理,可以自定义内容模型'), array('id' => 'category', 'icon' => '', 'title' => '模块设置', 'url' => zotop::url('content/setting'), 'description' => '内容模块的相关设置'));
     $page = new page();
     $page->set('title', $module['title']);
     //$page->set('description', $module['description']);
     $page->set('navbar', $this->navbar());
     $page->set('module', $module);
     $page->set('menus', $menus);
     $page->display();
 }
开发者ID:dalinhuang,项目名称:zotop,代码行数:12,代码来源:index.php

示例11: uninstalledAction

 public function uninstalledAction($id = '')
 {
     $module = zotop::model('zotop.module');
     $modules = $module->getUnInstalled();
     if (!empty($id) && isset($modules[$id])) {
         zotop::redirect('zotop/module/license', array('id' => $id));
         exit;
     }
     $page = new page();
     $page->set('title', '系统模块管理 ');
     $page->set('position', $position);
     $page->set('navbar', $this->navbar());
     $page->set('modules', $modules);
     $page->display();
 }
开发者ID:dalinhuang,项目名称:zotop,代码行数:15,代码来源:module.php

示例12: actionUninstalled

 public function actionUninstalled($path = '')
 {
     $module = zotop::model('zotop.module');
     $modules = $module->getUnInstalled();
     if (!empty($path)) {
         zotop::redirect('zotop/module/license', array('path' => url::encode($path)));
         exit;
     }
     $page = new page();
     $page->set('title', '系统模块管理 ');
     $page->set('position', $position);
     $page->set('navbar', $this->navbar());
     $page->set('modules', $modules);
     $page->display();
 }
开发者ID:dalinhuang,项目名称:zotop,代码行数:15,代码来源:module.php

示例13: indexAction

 public function indexAction()
 {
     $apps = array();
     $modules = (array) zotop::module();
     foreach ($modules as $module) {
         if ($module['type'] == 'plugin') {
             $apps[] = $module;
         }
     }
     $page = new page();
     $page->set('apps', $apps);
     $page->addScript('$common/js/side.js');
     $page->body = array('class' => 'side');
     $page->display();
 }
开发者ID:dalinhuang,项目名称:zotop,代码行数:15,代码来源:side.php

示例14: indexAction

 public function indexAction()
 {
     $db = zotop::db();
     $database = $db->config();
     $database['version'] = $db->version();
     $database['size'] = $db->size();
     $tables = zotop::db()->tables(true);
     $page = new page();
     $page->title = '数据库管理';
     $page->set('position', $database['database'] . ' @ ' . $database['hostname']);
     $page->set('navbar', $this->navbar());
     $page->set('database', $database);
     $page->set('tables', $tables);
     $page->display();
 }
开发者ID:dalinhuang,项目名称:zotop,代码行数:15,代码来源:table.php

示例15: actionBakup

 public function actionBakup()
 {
     $db = zotop::model('database.database');
     if (form::isPostBack()) {
         msg::error('功能开发中……');
     }
     $database = $db->db()->config();
     $tables = $db->tables();
     $page = new page();
     $page->title = '数据库备份';
     $page->set('position', $database['database'] . ' @ ' . $database['hostname']);
     $page->set('navbar', $this->navbar());
     $page->set('database', $database);
     $page->set('tables', $tables);
     $page->display();
 }
开发者ID:dalinhuang,项目名称:zotop,代码行数:16,代码来源:manage.php


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