當前位置: 首頁>>代碼示例>>PHP>>正文


PHP page::top方法代碼示例

本文整理匯總了PHP中page::top方法的典型用法代碼示例。如果您正苦於以下問題:PHP page::top方法的具體用法?PHP page::top怎麽用?PHP page::top使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在page的用法示例。


在下文中一共展示了page::top方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: onDefault

 public function onDefault()
 {
     $header['title'] = '圖片庫';
     page::header($header);
     page::top();
     page::bottom();
     page::footer();
 }
開發者ID:dalinhuang,項目名稱:zotop,代碼行數:8,代碼來源:upload.php

示例2: onInfo

 public function onInfo()
 {
     $header['title'] = '控製中心';
     page::header($header);
     page::top();
     page::navbar($this->navbar());
     page::bottom();
     page::footer();
 }
開發者ID:dalinhuang,項目名稱:zotop,代碼行數:9,代碼來源:setting.php

示例3: onInfo

 public function onInfo()
 {
     $header['title'] = '控製中心';
     page::header($header);
     page::top();
     page::navbar(array(array('id' => 'main', 'title' => '首頁', 'href' => url::build('zotop/index/main')), array('id' => 'info', 'title' => '係統信息', 'href' => url::build('zotop/index/info'))));
     page::bottom();
     page::footer();
 }
開發者ID:dalinhuang,項目名稱:zotop,代碼行數:9,代碼來源:main.php

示例4: onDefault

 public function onDefault($status = -1)
 {
     $header['title'] = '測試文件係統';
     page::header($header);
     page::top();
     echo "<pre>";
     //print_r(file::brower(ZOTOP_SYSTEM,'php'));
     print_r(file::brower(ZOTOP_SYSTEM));
     echo "</pre>";
     page::footer();
 }
開發者ID:dalinhuang,項目名稱:zotop,代碼行數:11,代碼來源:io.php

示例5: onDefault

 public function onDefault()
 {
     $tables = $this->db->table()->get(true);
     $header['title'] = '數據庫管理';
     page::header($header);
     page::add('<div id="page" class="clearfix">');
     page::add('<div id="side">');
     block::header('數據庫基本信息');
     table::header();
     table::row(array('w60' => '數據庫名稱', '2' => '' . $this->db->config['database'] . ''));
     table::row(array('w60' => '數據庫版本', '2' => '' . $this->db->version(true) . ''));
     table::row(array('w60' => '數據庫大小', '2' => '<b>' . $this->db->size() . '</b> '));
     table::row(array('w60' => '數據表個數', '2' => '<b>' . count($tables) . '</b> 個'));
     table::footer();
     block::footer();
     page::add('</div>');
     page::add('<div id="main">');
     page::top();
     page::navbar($this->navbar(), 'table');
     //zotop::dump($tables);
     form::header(array('class' => 'ajax'));
     $column['select'] = '<input name="id" class="selectAll" type="checkbox"/>';
     $column['name'] = '數據表名稱';
     $column['size  w60'] = '大小';
     $column['Rows  w60'] = '記錄數';
     $column['Engine  w60'] = '類型';
     $column['Collation  w100'] = '整理';
     $column['manage view w60'] = '瀏覽';
     $column['manage delete'] = '刪除';
     table::header('list', $column);
     foreach ($tables as $table) {
         $size = $table['Data_length'] + $table['Index_length'];
         $column = array();
         $column['select'] = '<input name="id[]" class="select" type="checkbox"/>';
         $column['name'] = '<b>' . $table['Name'] . '</b><h5>' . $table['Comment'] . '</h5>';
         $column['size w60'] = (string) format::size($size);
         $column['Rows  w60'] = $table['Rows'];
         $column['Engine  w60'] = $table['Engine'];
         $column['collation  w100'] = $table['Collation'];
         $column['manage view w60'] = '<a href="' . url::build('system/database/table/record') . '">瀏覽</a>';
         $column['manage delete'] = '<a href="' . url::build('system/database/table/delete') . '" class="confirm">刪除</a>';
         table::row($column);
     }
     table::footer();
     page::add('<div style="height:200px;"></div>');
     form::buttons(array('type' => 'select', 'style' => 'width:180px', 'options' => array('check' => '優化', 'delete' => '刪除')), array('type' => 'submit', 'value' => '執行操作'));
     form::footer();
     page::bottom();
     page::add('</div>');
     page::add('</div>');
     page::footer();
 }
開發者ID:dalinhuang,項目名稱:zotop,代碼行數:52,代碼來源:database.php

示例6: onDefault

 public function onDefault($status = -1)
 {
     $header['title'] = '短消息';
     page::header($header);
     page::top();
     page::navbar(array(array('id' => 'main', 'title' => '短消息列表', 'href' => url::build('zotop/msg')), array('id' => 'send', 'title' => '發送短消息', 'href' => url::build('zotop/msg/send'), 'class' => 'dialog {width:600}')), 'main');
     echo '<div style="padding:4px 15px;">';
     echo '<table class="list">';
     echo '<tr><td class="list-side">程序版本:</td><td>' . zotop::config('zotop.version') . '</td></tr>';
     echo '<tr><td class="list-side">程序設計:</td><td>' . zotop::config('zotop.author') . '</td></tr>';
     echo '<tr><td class="list-side">程序開發:</td><td>' . zotop::config('zotop.authors') . '</td></tr>';
     echo '<tr><td class="list-side">官方網站:</td><td><a href="' . zotop::config('zotop.homepage') . '" target="_blank">' . zotop::config('zotop.homepage') . '</a></td></tr>';
     echo '<tr><td class="list-side">安裝時間:</td><td>' . zotop::config('zotop.install') . '</td></tr>';
     echo '</table>';
     echo '</div>';
     page::bottom();
     page::footer();
 }
開發者ID:dalinhuang,項目名稱:zotop,代碼行數:18,代碼來源:msg.php

示例7: onEdit

 public function onEdit($file)
 {
     if (form::isPostBack()) {
         $content = request::post('source');
         msg::success('保存測試', '測試,繼續編輯或者返回' . zotop::dump($content, true), 'reload');
     }
     $source = file::read(ROOT . $file);
     $page['title'] = '文件編輯器';
     page::header($page);
     page::top();
     page::navbar($this->navbar());
     form::header(array('class' => 'sourceEditor'));
     form::field(array('type' => 'label', 'label' => zotop::t('文件名稱'), 'name' => 'filename', 'value' => $file, 'valid' => '', 'description' => zotop::t('')));
     form::field(array('type' => 'source', 'label' => zotop::t('文件內容'), 'name' => 'source', 'value' => $source, 'valid' => 'required:true', 'description' => zotop::t('')));
     form::buttons(array('type' => 'submit', 'value' => '保存文件'), array('type' => 'back'));
     form::footer();
     page::bottom();
     page::footer();
 }
開發者ID:dalinhuang,項目名稱:zotop,代碼行數:19,代碼來源:file.php

示例8: onDefault

 public function onDefault()
 {
     $header['title'] = '測試表單';
     page::header($header);
     page::top();
     page::navbar(array(array('id' => 'form', 'title' => '測試表單', 'href' => url::build('system/test')), array('id' => 'info', 'title' => '係統信息', 'href' => url::build('system/index/info'))), 'form');
     form::header(array('class' => 'ajax'));
     block::header(array('title' => '基本信息', 'action' => 'more'));
     form::add(array('type' => 'checkbox', 'label' => t('多選框'), 'name' => 'test1', 'options' => array('1' => 'a1', '2' => 'a2', '3' => 'a1', '4' => 'a2', '5' => 'a1', '6' => 'a2'), 'value' => array('1', '2'), 'description' => '最多隻允許選擇三項'));
     form::add(array('type' => 'checkbox', 'label' => t('多選框'), 'name' => 'test11', 'options' => array('1' => 'a1', '2' => 'a2', '3' => 'a1'), 'value' => array('1', '2'), 'class' => 'block', 'description' => '最多隻允許選擇三項'));
     form::add(array('type' => 'select', 'label' => '下拉列表', 'name' => 'test22', 'options' => array('1' => 'a1', '2' => 'a2', '3' => 'a1', '4' => 'a2', '5' => 'a1', '6' => 'a2'), 'value' => array('2', '4'), 'description' => '提示信息'));
     form::add(array('type' => 'select', 'label' => '下拉列表', 'name' => 'test2', 'options' => array('1' => 'a1', '2' => 'a2', '3' => 'a1', '4' => 'a2', '5' => 'a1', '6' => 'a2'), 'value' => '2', 'description' => '提示信息'));
     form::add(array('type' => 'text', 'label' => '文本框', 'name' => 'test3', 'value' => '2的飛灑的發生地', 'description' => '提示信息'));
     block::footer();
     block::header(array('title' => '高級信息', 'action' => 'more'));
     form::add(array('type' => 'image', 'label' => '上傳圖片', 'name' => 'test4', 'value' => '2的飛灑的發生地', 'valid' => 'required:true', 'description' => '提示信息'));
     form::add(array('type' => 'textarea', 'label' => '文本框', 'name' => 'test32', 'value' => '2的飛灑的發生地', 'valid' => 'required:true,maxlength:500', 'description' => '提示信息'));
     form::add(array('label' => '組合', 'type' => 'group', 'fields' => array(array('label' => '年', 'name' => 'year', 'type' => 'text'), array('label' => '月', 'name' => 'month', 'type' => 'text'), array('label' => '日', 'name' => 'day', 'type' => 'text')), 'description' => '生成一個複合控件'));
     block::footer();
     form::buttons(array('type' => 'submit'), array('type' => 'reset'));
     form::footer();
     page::bottom();
     page::footer();
 }
開發者ID:dalinhuang,項目名稱:zotop,代碼行數:24,代碼來源:test.php

示例9: onBackup

 public function onBackup()
 {
     $header['title'] = '數據庫管理 <i>></i> 數據表設置:' . $tablename . ' ';
     page::header($header);
     page::top();
     page::navbar($this->navbar(), 'backup');
     form::header();
     form::field(array('type' => 'select', 'options' => array('all' => '全部數據', 'custom' => '自定義備份'), 'name' => 'type', 'label' => '備份類型', 'value' => 'all', 'valid' => '{required:true}'));
     form::field(array('type' => 'text', 'name' => 'length', 'label' => '分卷長度', 'value' => '2048', 'description' => '分卷備份時文件長度限製,單位:<b>KB</b>', 'valid' => '{required:true}'));
     form::field(array('type' => 'text', 'name' => 'filename', 'label' => '備份文件名', 'value' => '', 'valid' => '{required:true}'));
     form::buttons(array('type' => 'submit'), array('type' => 'button', 'value' => '返回前頁', 'class' => 'back', 'onclick' => 'history.go(-1);'));
     form::footer();
     page::bottom();
     page::footer();
 }
開發者ID:dalinhuang,項目名稱:zotop,代碼行數:15,代碼來源:table.php

示例10: onAdd

 public function onAdd()
 {
     if (form::isPostBack()) {
         $module = zotop::model('zotop.module');
         $post = form::post();
         $result = $module->insert($post);
         if ($result) {
             msg::success('保存成功', '添加成功,正在刷新頁麵,請稍後……', zotop::url('zotop/module'));
         }
     }
     $page['title'] = '新建模塊';
     page::header($page);
     page::top();
     page::navbar($this->navbar());
     form::header();
     block::header('基本信息');
     form::field(array('type' => 'text', 'label' => '模塊ID', 'name' => 'id', 'value' => $data['id'], 'valid' => 'required:true,minlength:3,maxlength:32,remote:"' . zotop::url('zotop/module/checkid') . '"', 'description' => '允許使用數字、英文字符(不區分大小寫)或者下劃線,不允許使用其它特殊字符,3~32位'));
     form::field(array('type' => 'text', 'label' => '模塊名稱', 'name' => 'name', 'value' => $data['name'], 'valid' => 'required:true', 'description' => ''));
     form::field(array('type' => 'radio', 'options' => array('system' => '核心模塊', 'plugin' => '插件模塊'), 'label' => '模塊類型', 'name' => 'type', 'value' => $data['type'], 'valid' => 'required:true', 'description' => ''));
     form::field(array('type' => 'text', 'label' => '訪問地址', 'name' => 'url', 'value' => $data['url'], 'valid' => 'url:true', 'description' => '可以為模塊綁定訪問域名,如:http://bbs.***.com/ 如果不綁定域名,請留空'));
     form::field(array('type' => 'textarea', 'label' => '模塊說明', 'name' => 'description', 'value' => $data['description'], 'valid' => '', 'description' => ''));
     block::footer();
     block::header('開發者信息');
     form::field(array('type' => 'text', 'label' => '開發者', 'name' => 'author', 'value' => $data['author'], 'valid' => 'required:true', 'description' => ''));
     form::field(array('type' => 'text', 'label' => '電子郵件', 'name' => 'email', 'value' => $data['email'], 'valid' => 'required:true,email:true', 'description' => ''));
     form::field(array('type' => 'text', 'label' => '官方網站', 'name' => 'site', 'value' => $data['site'], 'valid' => 'required:true', 'description' => ''));
     block::footer();
     form::buttons(array('type' => 'submit'), array('type' => 'back'));
     form::footer();
     page::bottom();
     page::footer();
 }
開發者ID:dalinhuang,項目名稱:zotop,代碼行數:32,代碼來源:module.php

示例11: onDefault

 public function onDefault($dir = '')
 {
     $path = ROOT . DS . trim($dir, DS);
     $path = path::clean($path);
     $folders = dir::folders($path);
     $files = dir::files($path);
     $fileext = array('php', 'css', 'js', 'jpg', 'jpeg', 'gif', 'png', 'bmp', 'psd', 'html', 'htm', 'tpl', 'rar', 'zip', 'mp3');
     $page['title'] = '文件管理器';
     page::header($page);
     page::add('<div id="page" class="clearfix">');
     page::add('<div id="main">');
     page::add('<div id="main-inner">');
     page::top();
     page::navbar($this->navbar(), 'default');
     $column = array();
     $column['select'] = '';
     $column['name'] = '名稱';
     $column['type'] = '類型';
     $column['size w60'] = '大小';
     $column['atime w120'] = '創建時間';
     $column['mtime w120'] = '修改時間';
     $column['manage rename w80'] = '重命名';
     $column['manage edit w80'] = '編輯';
     $column['manage delete'] = '刪除';
     table::header('list', $column);
     foreach ($folders as $folder) {
         $column = array();
         $column['select w20 center'] = html::image(url::theme() . '/image/fileext/folder.gif');
         $column['name'] = '<a href="' . zotop::url('filemanager/index/default', array('dir' => $dir . DS . $folder)) . '"><b>' . $folder . '</b></a>';
         $column['type w60'] = '文件夾';
         $column['size w60'] = '--';
         $column['atime w120'] = time::format(@fileatime($path . DS . $folder));
         $column['mtime w120'] = time::format(@filemtime($path . DS . $folder));
         $column['manage rename w80'] = '<a>重命名</a>';
         $column['manage edit w80'] = '<a class="disabled">編輯</a>';
         $column['manage delete'] = '<a>刪除</a>';
         table::row($column);
     }
     foreach ($files as $file) {
         $column = array();
         $column['select w20 center'] = in_array(file::ext($file), $fileext) ? html::image(url::theme() . '/image/fileext/' . file::ext($file) . '.gif') : html::image(url::theme() . '/image/fileext/unknown.gif');
         $column['name'] = '<a href="' . zotop::url('filemanager/index/default', array('dir' => $dir . DS . $file)) . '"><b>' . $file . '</b></a>';
         $column['type w60'] = '文件';
         $column['size w60'] = format::byte(@filesize($path . DS . $file));
         $column['atime w120'] = time::format(@fileatime($path . DS . $file));
         $column['mtime w120'] = time::format(@filemtime($path . DS . $file));
         $column['manage rename w80'] = '<a>重命名</a>';
         $column['manage edit w80'] = '<a href="' . zotop::url('filemanager/file/edit', array('filename' => $dir . DS . $file, 'dir' => '***')) . '">編輯</a>';
         $column['manage delete'] = '<a>刪除</a>';
         table::row($column);
     }
     table::footer();
     page::bottom();
     page::add('</div>');
     page::add('</div>');
     page::add('<div id="side">');
     block::header('快捷操作');
     echo '<ul class="list">';
     echo '<li class="file"><a href="' . zotop::url('zotop/file/newfile') . '" class="dialog">新建文件</a></li>';
     echo '<li class="folder"><a href="' . zotop::url('zotop/file/newfolder') . '" class="dialog">新建文件夾</a></li>';
     echo '<li class="folder"><a href="' . zotop::url('zotop/file/upload') . '" class="dialog">文件上傳</a></li>';
     echo '</ul>';
     block::footer();
     block::header('其他位置');
     echo '<ul class="list">';
     echo '<li class="root"><a>根目錄</a></li>';
     echo '<li class="root"><a>模板目錄</a></li>';
     echo '<li class="root"><a>模塊目錄</a></li>';
     echo '<li class="root"><a>緩存目錄</a></li>';
     echo '</ul>';
     block::footer();
     page::add('</div>');
     page::add('</div>');
     page::footer();
 }
開發者ID:dalinhuang,項目名稱:zotop,代碼行數:75,代碼來源:index.php

示例12: onChangeInfo

 public function onChangeInfo($id)
 {
     $user = zotop::model('zotop.user');
     $user->id = (int) $id;
     if (form::isPostBack()) {
         $post = form::post();
         $update = $user->update($post, $user->id);
         if ($update) {
             msg::success('保存成功', '資料設置成功,正在刷新頁麵,請稍後……', zotop::url('zotop/user'));
         }
     }
     $data = $user->read();
     $data['updatetime'] = TIME;
     $page['title'] = '修改我的資料';
     page::header($page);
     page::top();
     page::navbar($this->navbar());
     form::header();
     block::header('賬戶信息');
     form::field(array('type' => 'label', 'label' => zotop::t('賬戶名稱'), 'name' => 'username', 'value' => $data['username'], 'valid' => '', 'description' => zotop::t('')));
     form::field(array('type' => 'text', 'label' => zotop::t('安全問題'), 'name' => 'question', 'value' => $data['question'], 'valid' => '', 'description' => zotop::t('')));
     form::field(array('type' => 'text', 'label' => zotop::t('安全答案'), 'name' => 'answer', 'value' => $data['answer'], 'valid' => '', 'description' => zotop::t('')));
     block::footer();
     block::header('個人信息');
     form::field(array('type' => 'text', 'label' => zotop::t('真實姓名'), 'name' => 'name', 'value' => $data['name'], 'valid' => 'required:true', 'description' => zotop::t('')));
     form::field(array('type' => 'radio', 'options' => array('男' => '男', '女' => '女'), 'label' => zotop::t('性別'), 'name' => 'gender', 'value' => $data['gender'], 'valid' => '', 'description' => zotop::t('')));
     form::field(array('type' => 'image', 'label' => zotop::t('頭像'), 'name' => 'image', 'value' => $data['image'], 'valid' => '', 'description' => zotop::t('')));
     form::field(array('type' => 'text', 'label' => zotop::t('電子郵件'), 'name' => 'email', 'value' => $data['email'], 'valid' => 'required:true,email:true', 'description' => zotop::t('')));
     form::field(array('type' => 'textarea', 'label' => zotop::t('個人簽名'), 'name' => 'sign', 'value' => $data['sign'], 'valid' => '', 'description' => zotop::t('')));
     form::field(array('type' => 'hidden', 'label' => zotop::t('更新時間'), 'name' => 'updatetime', 'value' => $data['updatetime'], 'valid' => '', 'description' => zotop::t('')));
     block::footer();
     form::buttons(array('type' => 'submit'), array('type' => 'back'));
     form::footer();
     page::bottom();
     page::footer();
 }
開發者ID:dalinhuang,項目名稱:zotop,代碼行數:36,代碼來源:user.php

示例13: onEdit

 public function onEdit($tablename, $fieldname)
 {
     if (form::isPostBack()) {
         $field = array();
         $field['name'] = request::post('name');
         $field['length'] = request::post('len');
         $field['type'] = request::post('type');
         $field['collation'] = request::post('collation');
         $field['null'] = request::post('null');
         $field['default'] = request::post('default');
         $field['attribute'] = request::post('attribute');
         $field['extra'] = request::post('extra');
         $field['comment'] = request::post('comment');
         $field['position'] = request::post('position');
         $fieldname = request::post('fieldname');
         $result = zotop::db()->table($tablename)->field($fieldname)->rename($field['name']);
         $result = zotop::db()->table($tablename)->modify($field);
         if ($result) {
             msg::success('修改成功', '<h2>字段修改成功</h2>', form::referer());
         }
     }
     $tables = zotop::db()->tables(true);
     $table = $tables[$tablename];
     $fields = array();
     if (isset($table)) {
         $fields = zotop::db()->table($tablename)->fields(true);
     }
     $field = $fields[$fieldname];
     if (!isset($field)) {
         zotop::error(-10, '字段不存在,請勿修改瀏覽器參數');
     }
     $positions = array();
     $positions[-1] = '位於表頭';
     if ($fields) {
         foreach ($fields as $key => $val) {
             $positions[$key] = '位於 ' . $key . ' 之後';
         }
     }
     $positions[0] = ' ';
     $header['title'] = '<a href="' . zotop::url('zotop/database') . '">數據庫管理</a> <i>></i> <a href="' . zotop::url('system/database/fields/', array('table' => $tablename)) . '">數據表 [ ' . $tablename . ' ] </a>  <i>></i> 字段修改';
     page::header($header);
     page::top();
     page::navbar($this->navbar($tablename), 'edit');
     form::header();
     form::field(array('type' => 'hidden', 'name' => 'fieldname', 'label' => '字段名稱', 'value' => $field['name'], 'valid' => '{required:true}'));
     form::field(array('type' => 'text', 'name' => 'name', 'label' => '字段名稱', 'value' => $field['name'], 'valid' => '{required:true}', 'description' => '請輸入字段的名稱,3到32位,請勿使用特殊字符'));
     form::field(array('type' => 'text', 'name' => 'type', 'label' => '字段類型', 'value' => $field['type'], 'valid' => '{required:true}'));
     form::field(array('type' => 'text', 'name' => 'len', 'label' => '長度/值', 'value' => $field['length'], 'valid' => '{number:true,min:1}', 'description' => '請輸入字段的長度,如果字段無須定義長度,請保持空值'));
     form::field(array('type' => 'hidden', 'name' => 'collation', 'label' => '整理', 'value' => $field['collation'], 'valid' => '', 'description' => '默認使用 <b>utf8_general_ci</b>: Unicode (多語言), 不區分大小寫'));
     form::field(array('type' => 'select', 'options' => array('' => ' ', 'UNSIGNED' => 'UNSIGNED', 'UNSIGNED ZEROFILL' => 'UNSIGNED ZEROFILL', 'ON UPDATE CURRENT_TIMESTAMP' => 'ON UPDATE CURRENT_TIMESTAMP'), 'name' => 'attribute', 'label' => '屬性', 'value' => $field['attribute'], 'valid' => ''));
     form::field(array('type' => 'select', 'options' => array('' => 'NULL', 'NOT NULL' => 'NOT NULL'), 'name' => 'null', 'label' => 'null', 'value' => $field['null'], 'valid' => ''));
     form::field(array('type' => 'text', 'name' => 'default', 'label' => '默認值', 'value' => $field['default'], 'valid' => '', 'description' => '如果需要可以為字段設置一個默認值'));
     form::field(array('type' => 'select', 'options' => array('' => '', 'AUTO_INCREMENT' => 'AUTO_INCREMENT'), 'name' => 'extra', 'label' => '額外', 'value' => $field['extra'], 'valid' => '', 'description' => '設置為自動增加:<b>AUTO_INCREMENT</b>時,該字段必須為數字類型'));
     form::field(array('type' => 'text', 'name' => 'comment', 'label' => '注釋', 'value' => $field['comment'], 'valid' => ''));
     form::field(array('type' => 'select', 'name' => 'position', 'options' => $positions, 'label' => zotop::t('字段位置'), 'value' => $position, 'description' => ''));
     form::buttons(array('type' => 'submit'), array('type' => 'reset'));
     form::footer();
     page::bottom();
     page::footer();
 }
開發者ID:dalinhuang,項目名稱:zotop,代碼行數:60,代碼來源:field.php

示例14: onPhpInfo

 public function onPhpInfo()
 {
     ob_start();
     phpinfo();
     $phpinfo = ob_get_contents();
     ob_clean();
     if (preg_match('/<body><div class="center">([\\s\\S]*?)<\\/div><\\/body>/', $phpinfo, $match)) {
         $phpinfo = $match[1];
     }
     $phpinfo = str_replace('class="e"', 'style="color:#ff6600;"', $phpinfo);
     $phpinfo = str_replace('class="v"', '', $phpinfo);
     $phpinfo = str_replace('<table', '<table class="table list" style="table-layout:fixed;"', $phpinfo);
     $phpinfo = str_replace('<tr class="h">', '<tr class="title">', $phpinfo);
     $phpinfo = preg_replace('/<a href="http:\\/\\/www.php.net\\/"><img(.*)alt="PHP Logo" \\/><\\/a><h1 class="p">(.*)<\\/h1>/', "<h1>\\2</h1>", $phpinfo);
     $page['title'] = 'PHP探針';
     page::header($page);
     page::top();
     page::navbar($this->navbar());
     echo $phpinfo;
     page::bottom();
     page::footer();
 }
開發者ID:dalinhuang,項目名稱:zotop,代碼行數:22,代碼來源:main.php

示例15: onEdit

 public function onEdit($id)
 {
     $role = zotop::model('zotop.role');
     $role->id = (int) $id;
     if (form::isPostBack()) {
         $post = form::post();
         $result = $role->update($post);
         if ($result) {
             msg::success('操作成功', '保存成功,正在刷新頁麵,請稍後……', zotop::url('zotop/role'));
         }
     }
     $fields = $role->read();
     $page['title'] = '編輯係統角色';
     page::header($page);
     page::top();
     page::navbar($this->navbar());
     form::header();
     form::field(array('type' => 'text', 'label' => '角色名稱', 'name' => 'name', 'value' => $fields['name'], 'valid' => 'required:true,maxlength:50', 'description' => zotop::t('')));
     form::field(array('type' => 'textarea', 'label' => '角色說明', 'name' => 'description', 'value' => $fields['description'], 'valid' => '', 'description' => ''));
     form::buttons(array('type' => 'submit'), array('type' => 'back'));
     form::footer();
     page::bottom();
     page::footer();
 }
開發者ID:dalinhuang,項目名稱:zotop,代碼行數:24,代碼來源:role.php


注:本文中的page::top方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。