<?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();
<?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")) }) })
<?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();
<?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>';
$('button[name=options]').click(function(){ location.href = "<?php echo zotop::url('site://'); ?> "; }); }); </script> <div id="topbar"> <a href="<?php echo zotop::url('site://'); ?> ">网站首页</a> <b>|</b> <a href="javascript:void(0);" class="addFavorite">加入收藏夹</a> <b>|</b> <a href="<?php echo zotop::url('zotop/login/shortcut', array('title' => url::encode($title), 'url' => url::encode(url::location()))); ?> ">设为桌面图标</a> </div> <?php box::header(array('title' => $title, 'icon' => 'user', 'action' => '')); form::header(array('title' => '', 'description' => '请输入您的帐户和密码登录', 'class' => 'small')); form::field(array('type' => 'text', 'label' => zotop::t('帐 户'), 'name' => 'username', 'value' => zotop::cookie('username'), 'valid' => 'required:true')); form::field(array('type' => 'password', 'label' => zotop::t('密 码'), 'name' => 'password', 'value' => '', 'valid' => 'required:true')); form::buttons(array('type' => 'submit', 'value' => '登录'), array('type' => 'button', 'name' => 'options', 'value' => '取消')); form::footer(); box::footer(); $this->footer();
}); </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();
$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(
<?php $this->header(); $this->top(); $this->navbar(); form::header(); box::header('基本信息'); form::field(array('type' => 'text', 'label' => zotop::t('模型名称'), 'name' => 'name', 'value' => $data['name'], 'valid' => 'required:true', 'description' => zotop::t('模型名称为模型的标识名称,如 <b>新闻模型</b>'))); form::field(array('type' => 'text', 'label' => zotop::t('模型数据表'), 'name' => 'id', 'value' => $data['tablename'], 'valid' => 'required:true,alphanumeric:true,maxlength:32', 'description' => zotop::t('不含数据表的前缀,如 <b>新闻模型</b> 的数据表可以是:<b>news</b>。只允许英文字符、数字或者下划线'))); form::field(array('type' => 'text', 'label' => zotop::t('模型标题'), 'name' => 'title', 'value' => $data['title'], 'valid' => 'required:true', 'description' => zotop::t('显示标题,如 <b>新闻模型</b> 的显示标题可以是:<b>新闻</b>'))); form::field(array('type' => 'text', 'label' => zotop::t('模型单位'), 'name' => 'unit', 'value' => $data['unit'], 'valid' => 'required:true', 'description' => zotop::t('模型单位,如 <b>篇</b>、<b>个</b>、 <b>条</b> 等'))); form::field(array('type' => 'textarea', 'label' => zotop::t('说明'), 'name' => 'description', 'value' => $data['description'], 'valid' => '', 'description' => zotop::t(''))); box::footer(); box::header('模板设置'); form::field(array('type' => 'template', 'label' => zotop::t('首页模板'), 'name' => 'settings[template_index]', 'value' => $data['settings']['template_index'], 'description' => zotop::t(''))); form::field(array('type' => 'template', 'label' => zotop::t('列表页面模板'), 'name' => 'settings[template_list]', 'value' => $data['settings']['template_list'], 'description' => zotop::t(''))); form::field(array('type' => 'template', 'label' => zotop::t('详细页面模板'), 'name' => 'settings[template_detail]', 'value' => $data['settings']['template_detail'], 'description' => zotop::t(''))); form::field(array('type' => 'template', 'label' => zotop::t('打印页面模板'), 'name' => 'settings[template_print]', 'value' => $data['settings']['template_print'], 'description' => zotop::t(''))); box::footer(); form::buttons(array('type' => 'submit', 'value' => '保存'), array('type' => 'back')); form::footer(); $this->bottom(); $this->footer();
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();
?> " 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();
echo zotop::url('system/file'); ?> " target="mainIframe"><span>文件管理</span></a> </div> <ul> <li><?php echo '<span class="zotop-icon zotop-icon-cagetory"></span><a href="' . zotop::url('system/folder') . '" target="mainIframe">' . zotop::t('分类管理') . '</a>'; ?> </li> <li class="open"> <span class="zotop-icon zotop-icon-folder"></span><a href="<?php echo zotop::url('system/file'); ?> " target="mainIframe"><span>文件库</span></a> <?php echo $folders_tree; ?> </li> <li><?php echo '<span class="zotop-icon zotop-icon-cagetory"></span><a href="' . zotop::url('system/folder') . '" target="mainIframe">' . zotop::t('分类管理') . '</a>'; ?> </li> </ul> </div> <?php box::footer(); box::header('<span class="zotop-icon zotop-icon-search"></span>' . '文件搜索'); box::footer(); $this->bottom(); $this->footer();
<?php $this->header(); $this->top(); box::header(array('title' => '快捷操作', 'class' => 'expanded', 'icon' => '', 'action' => '<a href="#">管理</a>')); box::add($modules); box::footer(); box::header(array('title' => '个人信息', 'class' => 'expanded', 'icon' => '')); box::add('<ul class="list">'); box::add('<li><a href="' . zotop::url('system/mine/info') . '" target="mainIframe">修改资料</a></li>'); box::add('<li><a href="' . zotop::url('system/mine/password') . '" target="mainIframe">修改密码</a></li>'); zotop::run('zotop.index.side.mine'); box::add('</ul>'); box::footer(); $this->bottom(); $this->footer();
?> "><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
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(); }
<?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
</div> </div> <div id="side"> <?php box::header('数据表信息'); table::header(); table::row(array('w60 bold' => '名称', '2' => '' . $table['name'] . '')); table::row(array('w60 bold' => '大小', '2' => '' . format::byte($table['size']) . '')); table::row(array('w60 bold' => '记录数', '2' => '<b>' . $table['rows'] . '</b> ')); table::row(array('w60 bold' => '整理', '2' => '' . $table['collation'] . '')); table::row(array('w60 bold' => '创建时间', '2' => '' . $table['createtime'] . '')); table::row(array('w60 bold' => '更新时间', '2' => '' . $table['updatetime'] . '')); //table::row(array('w60 bold'=>'注释','2'=>''.$table['comment'].'')); table::footer(); box::footer(); box::header('索引信息'); $column = array(); //$column['i w10'] = ''; $column['field'] = '字段'; $column['type w50'] = '类型'; $column['manage dropindex'] = '删除'; table::header('list', $column); foreach ($indexes as $index) { $column = array(); //$column['i w10 center'] = '>'; $column['field'] = '<b>' . $index['field'] . '</b>'; $column['type w50'] = $index['type']; $column['manage dropindex'] = '<a href="' . url::build('database/field/dropindex/' . $tablename . '/' . $index['name']) . '" class="confirm">删除</a>'; table::row($column, 'select'); } table::footer();
<?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();
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(); }
<?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']; ?>
<?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();