當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。