本文整理汇总了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();
}
示例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;
}
示例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();
}
示例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();
}
示例5: onDefault
public function onDefault()
{
$header['title'] = '图片库';
page::header($header);
page::top();
page::bottom();
page::footer();
}
示例6: onDefault
public function onDefault()
{
$header['title'] = '侧边条';
$header['body']['class'] = 'side';
page::header($header);
echo '<div style="height:600px;">dddd</div>';
page::footer();
}
示例7: onInfo
public function onInfo()
{
$header['title'] = '控制中心';
page::header($header);
page::top();
page::navbar($this->navbar());
page::bottom();
page::footer();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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;
}
示例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;
}