本文整理匯總了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();
示例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"))
})
})
示例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();
示例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>';
示例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();
示例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(
示例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();
示例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();
示例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
示例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();
}
示例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
示例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();
示例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();
}
示例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'];
?>
示例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();