当前位置: 首页>>代码示例>>PHP>>正文


PHP box::header方法代码示例

本文整理汇总了PHP中box::header方法的典型用法代码示例。如果您正苦于以下问题:PHP box::header方法的具体用法?PHP box::header怎么用?PHP box::header使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在box的用法示例。


在下文中一共展示了box::header方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: foreach

<?php

$this->header();
$this->top();
$this->navbar();
form::header();
box::header('选择数据表');
echo '';
echo '<table class="table">';
echo '<tr><td class="w30 center"><input name="tables" class="selectAll select" type="checkbox" id="tables" checked="checked"/></td><td><label for="tables"><b>选择全部数据表</b></span></td><td colspan="4"></td></tr>';
echo '<tr class="item">';
$i = 0;
foreach ($tables as $name => $table) {
    if ($i % 3 == 0) {
        echo '</tr><tr class="item">';
    }
    echo '<td class="w30 center"><input type="checkbox" name="tables[]" value="' . $table['name'] . '" class="select" id="table' . $i . '" checked="checked"/></td><td><label for="table' . $i . '"><b>' . $table['name'] . '</b><h5>' . $table['comment'] . '</h5></label></td>';
    $i++;
}
echo '</tr>';
echo '</table>';
box::footer();
box::header(array('title' => '备份选项', 'class' => 'collapsed'));
form::field(array('name' => 'sizelimit', 'type' => 'text', 'value' => '2048', 'valid' => 'required:true,number:true,min:100', 'label' => '分卷长度', 'description' => '使用分卷备份时每个分卷文件的长度,单位 <b>KB</b>'));
form::field(array('name' => 'sqlcompat', 'type' => 'radio', 'options' => array('' => '默认(MySQL5)', 'MYSQL40' => 'MySQL 3.23/4.0.x', 'MYSQL41' => 'MySQL 4.1.x/5.x'), 'value' => '', 'valid' => '', 'label' => '语句格式'));
box::footer();
form::buttons(array('type' => 'submit', 'value' => '备 份'));
form::footer();
$this->bottom();
$this->footer();
开发者ID:dalinhuang,项目名称:zotop,代码行数:30,代码来源:bakup.php

示例2: array

<?php

$this->header();
$this->top();
$this->navbar();
form::header($globalid);
form::field(array('type' => 'hidden', 'label' => zotop::t('日志编号'), 'name' => 'id', 'value' => $data['id'], 'description' => zotop::t('')));
form::field(array('type' => 'html', 'label' => '', 'name' => 'option', 'value' => ' ' . html::checkbox(array('name' => 'link', 'label' => zotop::t('转向链接'), 'value' => '1', 'checked' => (bool) $data['link'])) . ' '));
form::field(array('type' => 'title', 'label' => zotop::t('日志标题'), 'name' => 'title', 'class' => 'long', 'value' => $data['title'], 'style' => $data['style'], 'valid' => 'required:true', 'description' => zotop::t('')));
form::field(array('type' => 'image', 'label' => zotop::t('标题图片'), 'name' => 'image', 'class' => 'long', 'value' => $data['image'], 'description' => zotop::t('')));
form::field(array('type' => 'text', 'label' => zotop::t('转向链接'), 'name' => 'url', 'class' => 'long', 'value' => $data['url'], 'display' => 'none', 'description' => zotop::t('填写此项后,页面将直接跳转到链接地址页面,链接地址必须以<b>http://</b>开头')));
form::field(array('type' => 'editor', 'label' => zotop::t('日志内容'), 'name' => 'content', 'class' => 'long', 'value' => $data['content']));
form::field(array('type' => 'textarea', 'label' => zotop::t('日志摘要'), 'name' => 'description', 'class' => 'long', 'value' => $data['description'], 'valid' => 'maxlength:255', 'description' => zotop::t('')));
form::field(array('type' => 'keywords', 'label' => zotop::t('日志标签'), 'name' => 'keywords', 'class' => 'long', 'value' => $data['keywords'], 'valid' => '', 'description' => zotop::t('多个标签请用空格分开')));
form::field(array('type' => 'select', 'options' => arr::hashmap($categorys, 'id', 'title'), 'label' => zotop::t('日志类别'), 'name' => 'categoryid', 'value' => (int) $data['categoryid'], 'valid' => 'required:true', 'description' => zotop::t('')));
box::header(array('title' => '<span class="zotop-icon"></span>高级设置', 'class' => 'collapsed'));
form::field(array('type' => 'text', 'label' => zotop::t('日志权重'), 'name' => 'order', 'value' => (int) $data['order'], 'valid' => 'required:true,number:true', 'description' => zotop::t('日志权重参数,数字较大者排在较前位置')));
form::field(array('type' => 'radio', 'options' => $status, 'label' => zotop::t('日志状态'), 'name' => 'status', 'value' => (int) $data['status'], 'description' => zotop::t('')));
form::field(array('type' => 'radio', 'options' => array(0 => '允许评论', -1 => '禁止评论'), 'label' => zotop::t('日志评论'), 'name' => 'comment', 'value' => (int) $data['comment'], 'description' => zotop::t('')));
box::footer();
form::buttons(array('type' => 'submit', 'value' => '保存'), array('type' => 'back'));
form::footer();
?>
<script type="text/javascript">
//转向链接
$(function(){	
	showlink($("input[name=link]").is(":checked"));
	$("input[name=link]").click(function(){
		showlink($(this).is(":checked"))														 
	})   
})
开发者ID:dalinhuang,项目名称:zotop,代码行数:31,代码来源:edit.php

示例3:

<?php 
box::header(array('title' => '系统工具', 'icon' => '', 'class' => 'expanded'));
box::add('<ul class="list">');
box::add('<li><a href="' . zotop::url('system/setting') . '" target="mainIframe">系统设置</a></li>');
box::add('<li><a href="' . zotop::url('system/config') . '" target="mainIframe">注册表管理</a></li>');
box::add('<li><a href="' . zotop::url('system/module') . '" target="mainIframe">模块管理</a><span class="extra"><a href="' . zotop::url('zotop/module/uninstalled') . '" target="mainIframe">模块安装</a></span></li>');
zotop::run('zotop.system.side.tools');
box::add('</ul>');
box::footer();
?>

<?php 
box::header(array('title' => '文件管理', 'icon' => '', 'class' => 'expanded'));
box::add('<ul class="list">');
box::add('<li><a href="' . zotop::url('system/file') . '" target="mainIframe">文件管理</a></li>');
box::add('<li><a href="' . zotop::url('system/file/add') . '" target="mainIframe">上传文件</a></li>');
box::add('</ul>');
box::footer();
zotop::run('zotop.system.side.file');
?>

<?php 
box::header(array('title' => '系统用户', 'icon' => '', 'class' => 'expanded'));
box::add('<ul class="list">');
box::add('<li><a href="' . zotop::url('system/user') . '" target="mainIframe">系统用户管理</a></li>');
box::add('<li><a href="' . zotop::url('system/usergroup') . '" target="mainIframe">系统用户组管理</a></li>');
zotop::run('zotop.system.side.user');
box::add('</ul>');
box::footer();
$this->bottom();
$this->footer();
开发者ID:dalinhuang,项目名称:zotop,代码行数:31,代码来源:side.php

示例4: array

<?php

$this->header();
$this->top();
$this->navbar();
?>

<?php 
echo html::msg('<h2>什么是模块(module)?</h2><div>模块是对系统现有功能的扩展。如:内容发布用的内容管理模块(content),会员系统(member),日志模块(blog)等,获取最新模块请登陆官方网站</div>');
box::header('模块列表');
$column = array();
$column['status w30 center'] = '状态';
$column['logo w40 center'] = '标识';
$column['name'] = '模块名称 ( 模块ID )';
//$column['path'] = '安装目录';
$column['varsion w60 center'] = '版本号';
$column['updatetime'] = '更新时间';
$column['manage rename'] = '设置';
$column['manage edit'] = '权限';
$column['manage lock'] = '禁用';
$column['manage delete'] = '卸载';
table::header('list', $column);
foreach ($modules as $module) {
    $column = array();
    $column['status w30 center'] = $module['status'] == -1 ? '<span class="zotop-icon zotop-icon-lock"></span>' : '<span class="zotop-icon zotop-icon-ok"></span>';
    $column['logo center'] = empty($module['icon']) ? '<div class="zotop-icon zotop-icon-module"></div>' : html::image($module['icon'], array('width' => '32px'));
    $column['name'] = '<a class="dialog" href="' . zotop::url('system/module/about/' . $module['id']) . '"><b>' . $module['name'] . ' ( ' . $module['id'] . ' )</b></a><h5>' . $module['description'] . '</h5>';
    //$column['loginnum w60'] = $module['path'];
    $column['loginip w60 center'] = $module['version'];
    $column['logintime w130'] = time::format($module['updatetime']);
    $column['manage setting'] = file::exists($module['path'] . DS . 'admin' . DS . 'setting.php') ? '<a href="' . zotop::url($module['id'] . '/setting') . '">设置</a>' : '<span class="disabled">设置</span>';
开发者ID:dalinhuang,项目名称:zotop,代码行数:31,代码来源:index.php

示例5: array

});
</script>
<style type="text/css">
body.dialog {width:700px;}
body.dialog .form-body{height:400px;overflow:auto;}
</style>
<?php 
form::header(array('icon' => 'category', 'title' => zotop::t('新建栏目'), 'description' => zotop::t('新建一个栏目,并设置栏目的名称,模型及相关属性')));
box::header('基本信息');
form::field(array('type' => 'hidden', 'label' => zotop::t('栏目编号'), 'name' => 'id', 'valid' => '', 'description' => zotop::t('')));
form::field(array('type' => 'hidden', 'label' => zotop::t('上级栏目'), 'name' => 'parentid', 'value' => (int) $data['id']));
form::field(array('type' => 'disabled', 'label' => zotop::t('上级栏目'), 'name' => 'parent_name', 'value' => $data['title']));
form::field(array('type' => 'text', 'label' => zotop::t('栏目名称'), 'name' => 'title', 'valid' => 'required:true', 'description' => zotop::t('')));
form::field(array('type' => 'textarea', 'label' => zotop::t('栏目说明'), 'name' => 'description', 'description' => zotop::t('')));
form::field(array('type' => 'select', 'options' => array('' => zotop::t('请选择栏目模型')) + arr::hashmap($models, 'id', 'name'), 'label' => zotop::t('栏目模型'), 'name' => 'modelid', 'class' => 'box', 'valid' => 'required:true', 'value' => $data['modelid']));
box::footer();
box::header('模板设置');
form::field(array('type' => 'template', 'label' => zotop::t('首页模板'), 'name' => 'settings[template_index]', 'id' => 'template_index', 'value' => $data['settings']['template_index'], 'valid' => 'required:true', 'description' => zotop::t('')));
form::field(array('type' => 'template', 'label' => zotop::t('列表页面模板'), 'name' => 'settings[template_list]', 'value' => $data['settings']['template_list'], 'id' => 'template_list', 'valid' => 'required:true', 'description' => zotop::t('')));
form::field(array('type' => 'template', 'label' => zotop::t('详细页面模板'), 'name' => 'settings[template_detail]', 'id' => 'template_detail', 'value' => $data['settings']['template_detail'], 'valid' => 'required:true', 'description' => zotop::t('')));
form::field(array('type' => 'template', 'label' => zotop::t('打印页面模板'), 'name' => 'settings[template_print]', 'id' => 'template_print', 'value' => $data['settings']['template_print'], 'valid' => 'required:true', 'description' => zotop::t('')));
box::footer();
box::header('搜索优化');
form::field(array('type' => 'text', 'label' => zotop::t('栏目标题'), 'name' => 'settings[meta_title]', 'value' => $data['settings']['meta_title'], 'description' => zotop::t('针对搜索引擎设置的标题(meta title)')));
form::field(array('type' => 'text', 'label' => zotop::t('栏目关键词'), 'name' => 'settings[meta_keywords]', 'value' => $data['settings']['meta_keywords'], 'description' => zotop::t('针对搜索引擎设置的关键词(meta keywords)')));
form::field(array('type' => 'text', 'label' => zotop::t('栏目描述'), 'name' => 'settings[meta_description]', 'value' => $data['settings']['meta_description'], 'description' => zotop::t('针对搜索引擎设置的网页描述(meta description)')));
box::footer();
form::buttons(array('type' => 'submit', 'value' => '保存'), array('type' => 'button', 'value' => '关闭', 'class' => 'zotop-dialog-close'));
form::footer();
$this->bottom();
$this->footer();
开发者ID:dalinhuang,项目名称:zotop,代码行数:31,代码来源:add.php

示例6: array

    $column['Engine  w60'] = $table['engine'];
    $column['collation  w100'] = $table['collation'];
    $column['manage view w60'] = '<a href="' . zotop::url('database/table/edit/' . $table['name']) . '" class="dialog">设置</a>';
    $column['manage delete'] = '<a href="' . zotop::url('database/table/delete/' . $table['name']) . '" class="confirm">删除</a>';
    table::row($column, 'select');
}
table::footer();
form::buttons(array('type' => 'select', 'name' => 'operation', 'style' => 'width:180px', 'options' => array('optimize' => '优化', 'delete' => '删除'), 'value' => 'check'), array('type' => 'submit', 'value' => '执行操作'));
form::footer();
$this->bottom();
?>
</div>
</div>
<div id="side">
<?php 
box::header('数据库基本信息');
table::header();
table::row(array('w60' => '主机名称', '2' => '' . $database['hostname'] . ''));
table::row(array('w60' => '端口', '2' => '' . $database['hostport'] . ''));
table::row(array('w60' => '数据库', '2' => '' . $database['database'] . ''));
table::row(array('w60' => '用户名', '2' => '' . $database['username'] . ''));
table::row(array('w60' => '密码', '2' => '' . $database['password'] . ''));
table::row(array('w60' => '版本', '2' => '' . $database['version'] . ''));
table::row(array('w60' => '总大小', '2' => '<b>' . $database['size'] . '</b> '));
table::row(array('w60' => '数据表', '2' => '<b>' . count($tables) . '</b> 个'));
table::footer();
box::footer();
/*
box::header('创建数据表');
	form::header(array('action'=>zotop::url('database/table/create'),'template'=>'div'));
	form::field(array(
开发者ID:dalinhuang,项目名称:zotop,代码行数:31,代码来源:index.php

示例7: foreach

		location.href = "<?php 
echo zotop::url('system/config/edit');
?>
/<?php 
echo $field['id'];
?>
/"+type;
	}
</script>
<?php 
form::header();
box::header('控件设置');
form::field(array('type' => 'select', 'options' => $types, 'name' => 'type', 'label' => '控件类型', 'onchange' => 'Reselect();', 'value' => $field['type'], 'valid' => '{required:true}'));
foreach ($controls as $key => $control) {
    if (in_array($key, explode(',', $attrs))) {
        $control['value'] = $field['settings'][$key];
        form::field($control);
    }
}
box::footer();
box::header('节点设置');
form::field(array('type' => 'text', 'name' => 'id', 'label' => '节点键名', 'value' => $field['id'], 'valid' => '{required:true,maxlength:64,minlength:3}', 'description' => '3到64位,允许使用英文、数字,英文点号和下划线,请勿使用特殊字符'));
form::field(array('type' => 'hidden', 'name' => 'parentid', 'label' => '父节点编号', 'value' => $field['parentid'], 'valid' => '', 'description' => ''));
form::field(array('type' => 'text', 'name' => 'value', 'label' => '默认数值', 'value' => $field['value'], 'valid' => '', 'description' => ''));
form::field(array('type' => 'text', 'name' => 'title', 'label' => '节点名称', 'value' => $field['title'], 'valid' => '{required:true,maxlength:64}', 'description' => '请输入节点的标题名称'));
form::field(array('type' => 'text', 'name' => 'description', 'label' => '节点说明', 'value' => $field['description'], 'valid' => '', 'description' => ''));
box::footer();
form::buttons(array('type' => 'submit'), array('type' => 'back'));
form::footer();
//$this->bottom();
$this->footer();
开发者ID:dalinhuang,项目名称:zotop,代码行数:31,代码来源:edit.php

示例8:

?>
" target="mainIframe">待审核</a></li>
		<li><span class="zotop-icon zotop-icon-draft"></span><a href="<?php 
echo zotop::url('content/content/draft');
?>
" target="mainIframe">草稿箱</a></li>
		<li><span class="zotop-icon zotop-icon-recycle"></span><a href="<?php 
echo zotop::url('content/content/recycle');
?>
" target="mainIframe">回收站</a></li>
	
	</ul>
</div>
<?php 
box::footer();
box::header();
?>
	<form class="smallsearch" target="mainIframe" method="get" action="<?php 
echo zotop::url('content/content/index');
?>
">
		<input type="text" name="keywords" class="text" value="<?php 
echo zotop::get('keywords');
?>
" title="请输入关键词进行搜索"/>
		<button type="submit"><span class="zotop-icon zotop-icon-search button-icon"></span></button>
	</form>
<?php 
box::footer();
$this->bottom();
$this->footer();
开发者ID:dalinhuang,项目名称:zotop,代码行数:31,代码来源:side.php

示例9:

    ?>
"><span class="zotop-icon zotop-icon-folder"></span><?php 
    echo $c['title'];
    ?>
</a></li>
		<?php 
}
?>
	</ul>
</div>
<?php 
box::footer();
?>

<?php 
box::header(array('title' => zotop::module('blog', 'name')));
?>
<table class="table">	
	<tr><td><?php 
echo zotop::module('blog', 'description');
?>
</td></tr>
	<tr><td>版本:<?php 
echo zotop::module('blog', 'version');
?>
</td></tr>
	<tr><td>作者:<?php 
echo zotop::module('blog', 'author');
?>
</td></tr>
	<tr><td>主页:<?php 
开发者ID:dalinhuang,项目名称:zotop,代码行数:31,代码来源:index.php

示例10: blog_side

function blog_side($blog = '')
{
    box::header(array('title' => '精彩评论', 'action' => '<a class="dialog" href="' . zotop::url('comment/add/blog/' . $blog->id) . '">发表评论</a>|<a class="more" href="' . zotop::url('comment/list') . '">更多</a>'));
    echo '<div style="height:200px;"></div>';
    box::footer();
}
开发者ID:dalinhuang,项目名称:zotop,代码行数:6,代码来源:site.php

示例11: array

<?php

$this->header();
$this->top();
$this->navbar();
?>

<?php 
echo html::msg(zotop::t('<h2>如何安装新模块?</h2><div>1,安装模块前,请确认将该模块文件夹上传至服务器上的模块目录下面目录下面({$modules})</div><div>2,上传完成后,<a class="zotop-reload" href="javascript:location.reload();">刷新本页面</a>,模块将会出现在下面的待安装模块列表中,点击模块后面的 <a>安装</a>,根据系统提示完成模块安装</div>', array('modules' => ZOTOP_URL_MODULES)));
box::header('待安装模块');
$column = array();
$column['logo w40 center'] = '标识';
$column['name'] = '名称';
$column['version w50 center'] = '版本号';
$column['manage edit'] = '安装';
$column['manage delete'] = '删除';
table::header('list', $column);
foreach ($modules as $module) {
    $column = array();
    $column['logo center'] = empty($module['icon']) ? '<div class="zotop-icon zotop-icon-module"></div>' : html::image($module['icon'], array('width' => '32px'));
    $column['name'] = '<a><b>' . $module['name'] . ' ( ' . $module['id'] . ' )</b></a><h5>' . $module['description'] . '</h5>';
    $column['version center'] = $module['version'];
    $column['manage edit'] = '<a href="' . zotop::url('system/module/install/' . $module['id']) . '" class="dialog">' . zotop::t('安装') . '</a>';
    $column['manage delete'] = html::a(zotop::url('system/module/delete/' . $module['id']), zotop::t('删除'), array('class' => 'confirm'));
    table::row($column);
}
table::footer();
box::footer();
?>

<?php 
开发者ID:dalinhuang,项目名称:zotop,代码行数:31,代码来源:uninstalled.php

示例12: array

<?php

$this->header();
$this->top();
$this->navbar();
form::header($globalid);
box::header('账户信息');
form::field(array('type' => 'disabled', '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('')));
box::footer();
box::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('1' => '先生', '0' => '女士'), '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('')));
box::footer();
form::buttons(array('type' => 'submit'), array('type' => 'back'));
form::footer();
$this->bottom();
$this->footer();
开发者ID:dalinhuang,项目名称:zotop,代码行数:23,代码来源:info.php

示例13: favorite_box

function favorite_box()
{
    box::header(array('title' => '我的收藏夹', 'action' => '<a class="dialog" href="' . zotop::url('system/quick/add') . '">管理</a>|<a class="more" href="' . zotop::url('system/notepad') . '">更多</a>'));
    echo '<div style="height:200px;"></div>';
    box::footer();
}
开发者ID:dalinhuang,项目名称:zotop,代码行数:6,代码来源:admin.php

示例14:

				<?php 
}
?>
				</ul>
			</div>
			<?php 
echo $pagination;
?>
		</div>
	</div>
	</div>

	<div class="column-sub">
	<div class="column-sub-inner">
	<?php 
box::header(array('title' => '日志分类'));
?>
	<div class="navbarlist">
		<ul>
			<?php 
foreach ($categorys as $c) {
    ?>
			<li<?php 
    echo $categoryid == $c['id'] ? ' class="selected"' : '';
    ?>
><a class="textflow" href="<?php 
    echo zotop::url('blog/list/' . $c['id']);
    ?>
"><span class="zotop-icon zotop-icon-folder"></span><?php 
    echo $c['title'];
    ?>
开发者ID:dalinhuang,项目名称:zotop,代码行数:31,代码来源:list.php

示例15: array

<?php

$this->header();
$this->top();
$this->navbar();
form::header();
box::header('站点主题');
box::footer();
box::header('系统主题');
box::footer();
form::buttons(array('type' => 'submit'), array('type' => 'back'));
form::footer();
$this->bottom();
$this->footer();
开发者ID:dalinhuang,项目名称:zotop,代码行数:14,代码来源:theme.php


注:本文中的box::header方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。