本文整理汇总了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();
}
示例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();
}
示例3: actionIndex
public function actionIndex()
{
$page = new page();
$page->title = zotop::t('系统管理');
$page->navbar = $this->navbar();
$page->display();
}
示例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();
}
示例5: actionIndex
public function actionIndex()
{
$page = new page();
$page->title = zotop::t('模板管理');
$page->set('navbar', $this->navbar());
$page->display();
}
示例6: actionIndex
public function actionIndex()
{
$page = new page();
$page->title = '系统管理中心';
$page->body = array('class' => 'frame');
$page->set('user', $this->user);
$page->display();
}
示例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);
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}