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


PHP page::footer方法代碼示例

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


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

示例1: onDefault

 public function onDefault()
 {
     if (form::isPostBack()) {
         $post = array();
         $post['username'] = request::post('username');
         $post['password'] = request::post('password');
         $post['logintime'] = time();
         $user = zotop::model('zotop.user');
         $data = $user->read($post['username'], 'username');
         //zotop::dump($data);
         if ($data == false) {
             msg::error('登陸失敗', zotop::t('賬戶名稱`{$username}`不存在,請檢查!', array('username' => $post['username'])));
         }
         zotop::user($data);
         msg::success('登陸成功', '登陸成功,係統正在加載中', 'reload', 2);
     }
     if (zotop::user() != null) {
         zotop::redirect('zotop/index');
     }
     $header['title'] = '用戶登錄';
     $header['js'] = url::module() . '/admin/js/login.js';
     $header['body']['class'] = "login";
     page::header($header);
     block::header(array('id' => 'LoginWindow', 'title' => '用戶登錄'));
     form::header(array('title' => '', 'description' => '請輸入用戶名和密碼', 'class' => 'small'));
     form::field(array('type' => 'text', 'label' => zotop::t('帳 戶(U)'), 'name' => 'username', 'value' => zotop::user('username'), 'valid' => 'required:true'));
     form::field(array('type' => 'password', 'label' => zotop::t('密 碼(P)'), 'name' => 'password', 'value' => ''));
     form::buttons(array('type' => 'submit', 'value' => '登 陸'), array('type' => 'button', 'name' => 'options', 'value' => '選 項'));
     form::footer();
     block::footer();
     page::footer();
 }
開發者ID:dalinhuang,項目名稱:zotop,代碼行數:32,代碼來源:login.php

示例2: show

 public static function show(array $msg)
 {
     $page = new page();
     $page->set('msg', $msg);
     $message = $page->render('msg');
     if ($message !== false) {
         echo $message;
     } else {
         $page->title = $msg['type'];
         $page->body = array('class' => 'msg');
         $page->header();
         $page->add('');
         $page->add('<div id="icon"><div class="zotop-icon zotop-icon-' . $msg['type'] . '"></div></div>');
         $page->add('<div id="msg" class="' . $msg['type'] . ' clearfix">');
         $page->add('	<div id="msg-type">' . $msg['type'] . '</div>');
         $page->add('	<div id="msg-life">' . (int) $msg['life'] . '</div>');
         $page->add('	<div id="msg-title">' . $msg['title'] . '</div>');
         $page->add('	<div id="msg-content">' . $msg['content'] . '</div>');
         $page->add('	<div id="msg-detail">' . $msg['detail'] . '</div>');
         $page->add('	<div id="msg-action">' . $msg['action'] . '</div>');
         $page->add('	<div id="msg-file">' . $msg['file'] . '</div>');
         $page->add('	<div id="msg-line">' . $msg['line'] . '</div>');
         if (!empty($msg['url'])) {
             $page->add('	<div>');
             $page->add('		<div><b>如果頁麵沒有自動跳轉,請點擊以下鏈接</b></div>');
             $page->add('		<a href="' . $msg['url'] . '" id="msg-url">' . $msg['url'] . '</a>');
             $page->add('	</div>');
         }
         $page->add('</div>');
         $page->add('<div id="powered">' . zotop::config('zotop.name') . ' ' . zotop::config('zotop.version') . '</div>');
         $page->footer();
     }
     exit;
 }
開發者ID:dalinhuang,項目名稱:zotop,代碼行數:34,代碼來源:msg.php

示例3: onDefault

 public function onDefault()
 {
     $header['title'] = '控製麵板';
     $header['js'][] = url::module() . '/admin/js/side.js';
     $header['body']['class'] = 'side';
     page::header($header);
     block::header(array('title' => '應用列表', 'action' => '<a href="#" title="欄目管理">管理</a>'));
     echo '<ul id="applications" class="list">';
     echo '	<li><a href="' . zotop::url('zotop/main') . '" target="mainIframe">控製中心</a></li>';
     echo '	<li><a href="' . zotop::url('zotop/test') . '" target="mainIframe">表單測試</a></li>';
     echo '	<li><a href="' . zotop::url('database') . '" target="mainIframe">數據庫管理</a></li>';
     echo '	<li><a href="' . zotop::url('filemanager') . '" target="mainIframe">文件管理</a></li>';
     echo '</ul>';
     block::footer();
     block::header(array('title' => '內容管理', 'action' => '<a href="javascript:zotop.frame.side().location.reload();">刷新</a> <a href="#" title="欄目管理">管理</a>'));
     echo '<ul class="list">';
     echo '	<li><a href="' . zotop::url('zotop/main') . '" target="mainIframe">控製中心</a></li>';
     echo '	<li><a href="' . zotop::url('zotop/test') . '" target="mainIframe">表單測試</a></li>';
     echo '	<li><a href="' . zotop::url('database') . '" target="mainIframe">數據庫管理</a></li>';
     echo '	<li><a href="' . zotop::url('filemanager') . '" target="mainIframe">文件管理</a></li>';
     echo '</ul>';
     block::footer();
     //echo '<div style="height:600px;"></div>';
     page::footer();
 }
開發者ID:dalinhuang,項目名稱:zotop,代碼行數:25,代碼來源:side.php

示例4: onSide

 public function onSide()
 {
     $header['title'] = '係統管理';
     $header['js'][] = url::module() . '/admin/js/side.js';
     $header['body']['class'] = 'side';
     page::header($header);
     block::header(array('title' => '係統工具', 'class' => 'show'));
     echo '<ul id="applications" class="list">';
     echo '	<li><a href="' . zotop::url('zotop/system/reboot') . '" target="mainIframe">係統關閉與重啟</a></li>';
     echo '	<li><a href="' . zotop::url('zotop/system/clearcahce') . '" target="mainIframe">緩存清理</a></li>';
     echo '	<li><a href="' . zotop::url('zotop/setting') . '" target="mainIframe">係統設置</a></li>';
     echo '	<li><a href="' . zotop::url('zotop/database') . '" target="mainIframe">數據庫備份與還原</a></li>';
     echo '	<li><a href="' . zotop::url('database') . '" target="mainIframe">數據庫管理</a></li>';
     echo '	<li><a href="' . zotop::url('filemanager') . '" target="mainIframe">文件管理</a></li>';
     echo '</ul>';
     block::footer();
     block::header(array('title' => '模塊管理', 'class' => 'show'));
     echo '<ul class="list">';
     echo '	<li><a href="' . zotop::url('zotop/module') . '" target="mainIframe">模塊管理</a></li>';
     echo '	<li><a href="' . zotop::url('zotop/module/add') . '" target="mainIframe">模塊添加</a></li>';
     echo '	<li><a href="' . zotop::url('zotop/module/install') . '" target="mainIframe">模塊安裝</a></li>';
     echo '</ul>';
     block::footer();
     block::header(array('title' => '管理員設置', 'class' => 'show'));
     echo '<ul class="list">';
     echo '	<li><a href="' . zotop::url('zotop/user') . '" target="mainIframe">係統用戶管理</a></li>';
     echo '	<li><a href="' . zotop::url('zotop/usergroup') . '" target="mainIframe">係統用戶組管理</a></li>';
     echo '	<li><a href="' . zotop::url('zotop/role') . '" target="mainIframe">係統角色管理</a></li>';
     echo '</ul>';
     block::footer();
     //echo '<div style="height:600px;"></div>';
     page::footer();
 }
開發者ID:dalinhuang,項目名稱:zotop,代碼行數:33,代碼來源:system.php

示例5: onDefault

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

示例6: onDefault

 public function onDefault()
 {
     $header['title'] = '側邊條';
     $header['body']['class'] = 'side';
     page::header($header);
     echo '<div style="height:600px;">dddd</div>';
     page::footer();
 }
開發者ID:dalinhuang,項目名稱:zotop,代碼行數:8,代碼來源:side.php

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

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

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

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

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

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

示例13: onDefault

    public function onDefault()
    {
        $header['title'] = '用戶登錄';
        $header['js'] = '
        	$(function(){
				$("div.block").show().center().drag(".block-header");
				window.onresize=function(){
					$("div.block").center();
				};
   		})
        ';
        $header['body']['class'] = "login";
        page::header($header);
        block::header(array('id' => 'LoginWindow', 'title' => '用戶登錄'));
        form::header(array('title' => '', 'description' => '請輸入用戶名和密碼', 'class' => 'ajax'));
        form::add(array('type' => 'text', 'label' => t('帳 戶(U)'), 'name' => 'username', 'value' => ''));
        form::add(array('type' => 'password', 'label' => t('密 碼(P)'), 'name' => 'password', 'value' => ''));
        form::buttons(array('type' => 'submit', 'value' => '登 陸'), array('type' => 'button', 'name' => 'options', 'value' => '選 項'));
        form::footer();
        block::footer();
        page::footer();
    }
開發者ID:dalinhuang,項目名稱:zotop,代碼行數:22,代碼來源:login.php

示例14: show

 public static function show($msg = array())
 {
     $header['title'] = '用戶登錄';
     $header['body']['class'] = "msg";
     page::header($header);
     page::add('<div id="msg" class="' . $msg['type'] . ' clearfix">');
     page::add('	<div id="msg-type">' . $msg['type'] . '</div>');
     page::add('	<div id="msg-life">' . $msg['life'] . '</div>');
     page::add('	<div class="zotop-msg zotop-msg-' . $msg['type'] . '">');
     page::add('		<div class="zotop-msg-icon"></div>');
     page::add('		<div class="zotop-msg-content">');
     page::add('			<div id="msg-title">' . $msg['title'] . '</div>');
     page::add('			<div id="msg-content">' . $msg['content'] . '</div>');
     page::add('			<a href="' . $msg['url'] . '" id="msg-url">' . $msg['url'] . '</a>');
     page::add('			<div id="msg-extra">' . $msg['extra'] . '</div>');
     page::add('			<div id="msg-powered">' . zotop::config('zotop.name') . ' ' . zotop::config('zotop.version') . '</div>');
     page::add('		</div>');
     page::add('		</div>');
     page::add('</div>');
     page::footer();
     exit;
 }
開發者ID:dalinhuang,項目名稱:zotop,代碼行數:22,代碼來源:msg.php

示例15: show

 public static function show(array $msg)
 {
     $page = new page();
     $page->title = $msg['type'];
     $page->body = array('class' => 'msg');
     $page->header();
     $page->add('<div id="msg" class="' . $msg['type'] . ' clearfix">');
     $page->add('	<div id="msg-type">' . $msg['type'] . '</div>');
     $page->add('	<div id="msg-life">' . $msg['life'] . '</div>');
     $page->add('	<div id="msg-title">' . $msg['title'] . '</div>');
     $page->add('	<div id="msg-content">' . $msg['content'] . '</div>');
     $page->add('	<div id="msg-extra">' . $msg['extra'] . '</div>');
     if (!empty($msg['url'])) {
         $page->add('	<div>');
         $page->add('		<div><b>如果頁麵沒有自動跳轉,請點擊以下鏈接</b></div>');
         $page->add('		<a href="' . $msg['url'] . '" id="msg-url">' . $msg['url'] . '</a>');
         $page->add('	</div>');
     }
     $page->add('</div>');
     $page->add('<div id="powered">' . zotop::config('zotop.name') . ' ' . zotop::config('zotop.version') . '</div>');
     $page->footer();
     exit;
 }
開發者ID:dalinhuang,項目名稱:zotop,代碼行數:23,代碼來源:msg.php


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