예제 #1
0
파일: side.php 프로젝트: dalinhuang/zotop
 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();
 }
예제 #2
0
 public function onDefault()
 {
     if (form::isPostBack()) {
         msg::error('开发中', '数据保存开发中,请稍后……');
     }
     $header['title'] = '系统设置';
     page::header($header);
     page::top();
     page::navbar($this->navbar(), 'main');
     form::header();
     block::header('网站基本信息');
     form::field(array('type' => 'text', 'label' => zotop::t('网站名称'), 'name' => 'zotop.site.title', 'value' => zotop::config('zotop.site.title'), 'description' => zotop::t('网站名称,将显示在标题和导航中')));
     form::field(array('type' => 'text', 'label' => zotop::t('网站域名'), 'name' => 'zotop.site.domain', 'value' => zotop::config('zotop.site.domain'), 'description' => zotop::t('网站域名地址,不包含http://,如:www.zotop.com')));
     form::field(array('type' => 'text', 'label' => zotop::t('备案信息'), 'name' => 'zotop.site.icp', 'value' => zotop::config('zotop.site.icp'), 'description' => zotop::t('页面底部可以显示 ICP 备案信息,如果网站已备案,在此输入您的授权码,它将显示在页面底部,如果没有请留空')));
     form::field(array('type' => 'select', 'options' => array('0' => '不显示', '1' => '显示'), 'label' => zotop::t('授权信息'), 'name' => 'zotop.site.license', 'value' => zotop::config('zotop.site.license'), 'description' => zotop::t('页脚部位显示程序官方网站链接')));
     form::field(array('type' => 'textarea', 'label' => zotop::t('网站简介'), 'name' => 'zotop.site.about', 'value' => zotop::config('zotop.site.about')));
     block::footer();
     block::header('联系信息设置');
     form::field(array('type' => 'text', 'label' => zotop::t('公司名称'), 'name' => 'zotop.site.title', 'value' => '', 'description' => zotop::t('网站隶属的公司或者组织名称')));
     form::field(array('type' => 'textarea', 'label' => zotop::t('网站简介'), 'name' => 'zotop.site.about', 'value' => ''));
     block::footer();
     form::buttons(array('type' => 'submit'), array('type' => 'back'));
     form::footer();
     page::bottom();
     page::footer();
 }
예제 #3
0
파일: login.php 프로젝트: dalinhuang/zotop
 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();
 }
예제 #4
0
파일: system.php 프로젝트: dalinhuang/zotop
 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
0
 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();
 }
예제 #6
0
파일: login.php 프로젝트: dalinhuang/zotop
    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();
    }
예제 #7
0
파일: test.php 프로젝트: dalinhuang/zotop
 public function onDefault()
 {
     $header['title'] = '测试表单';
     page::header($header);
     page::top();
     page::navbar(array(array('id' => 'form', 'title' => '测试表单', 'href' => url::build('system/test')), array('id' => 'info', 'title' => '系统信息', 'href' => url::build('system/index/info'))), 'form');
     form::header(array('class' => 'ajax'));
     block::header(array('title' => '基本信息', 'action' => 'more'));
     form::add(array('type' => 'checkbox', 'label' => t('多选框'), 'name' => 'test1', 'options' => array('1' => 'a1', '2' => 'a2', '3' => 'a1', '4' => 'a2', '5' => 'a1', '6' => 'a2'), 'value' => array('1', '2'), 'description' => '最多只允许选择三项'));
     form::add(array('type' => 'checkbox', 'label' => t('多选框'), 'name' => 'test11', 'options' => array('1' => 'a1', '2' => 'a2', '3' => 'a1'), 'value' => array('1', '2'), 'class' => 'block', 'description' => '最多只允许选择三项'));
     form::add(array('type' => 'select', 'label' => '下拉列表', 'name' => 'test22', 'options' => array('1' => 'a1', '2' => 'a2', '3' => 'a1', '4' => 'a2', '5' => 'a1', '6' => 'a2'), 'value' => array('2', '4'), 'description' => '提示信息'));
     form::add(array('type' => 'select', 'label' => '下拉列表', 'name' => 'test2', 'options' => array('1' => 'a1', '2' => 'a2', '3' => 'a1', '4' => 'a2', '5' => 'a1', '6' => 'a2'), 'value' => '2', 'description' => '提示信息'));
     form::add(array('type' => 'text', 'label' => '文本框', 'name' => 'test3', 'value' => '2的飞洒的发生地', 'description' => '提示信息'));
     block::footer();
     block::header(array('title' => '高级信息', 'action' => 'more'));
     form::add(array('type' => 'image', 'label' => '上传图片', 'name' => 'test4', 'value' => '2的飞洒的发生地', 'valid' => 'required:true', 'description' => '提示信息'));
     form::add(array('type' => 'textarea', 'label' => '文本框', 'name' => 'test32', 'value' => '2的飞洒的发生地', 'valid' => 'required:true,maxlength:500', 'description' => '提示信息'));
     form::add(array('label' => '组合', 'type' => 'group', 'fields' => array(array('label' => '年', 'name' => 'year', 'type' => 'text'), array('label' => '月', 'name' => 'month', 'type' => 'text'), array('label' => '日', 'name' => 'day', 'type' => 'text')), 'description' => '生成一个复合控件'));
     block::footer();
     form::buttons(array('type' => 'submit'), array('type' => 'reset'));
     form::footer();
     page::bottom();
     page::footer();
 }
예제 #8
0
파일: module.php 프로젝트: dalinhuang/zotop
 public function onAdd()
 {
     if (form::isPostBack()) {
         $module = zotop::model('zotop.module');
         $post = form::post();
         $result = $module->insert($post);
         if ($result) {
             msg::success('保存成功', '添加成功,正在刷新页面,请稍后……', zotop::url('zotop/module'));
         }
     }
     $page['title'] = '新建模块';
     page::header($page);
     page::top();
     page::navbar($this->navbar());
     form::header();
     block::header('基本信息');
     form::field(array('type' => 'text', 'label' => '模块ID', 'name' => 'id', 'value' => $data['id'], 'valid' => 'required:true,minlength:3,maxlength:32,remote:"' . zotop::url('zotop/module/checkid') . '"', 'description' => '允许使用数字、英文字符(不区分大小写)或者下划线,不允许使用其它特殊字符,3~32位'));
     form::field(array('type' => 'text', 'label' => '模块名称', 'name' => 'name', 'value' => $data['name'], 'valid' => 'required:true', 'description' => ''));
     form::field(array('type' => 'radio', 'options' => array('system' => '核心模块', 'plugin' => '插件模块'), 'label' => '模块类型', 'name' => 'type', 'value' => $data['type'], 'valid' => 'required:true', 'description' => ''));
     form::field(array('type' => 'text', 'label' => '访问地址', 'name' => 'url', 'value' => $data['url'], 'valid' => 'url:true', 'description' => '可以为模块绑定访问域名,如:http://bbs.***.com/ 如果不绑定域名,请留空'));
     form::field(array('type' => 'textarea', 'label' => '模块说明', 'name' => 'description', 'value' => $data['description'], 'valid' => '', 'description' => ''));
     block::footer();
     block::header('开发者信息');
     form::field(array('type' => 'text', 'label' => '开发者', 'name' => 'author', 'value' => $data['author'], 'valid' => 'required:true', 'description' => ''));
     form::field(array('type' => 'text', 'label' => '电子邮件', 'name' => 'email', 'value' => $data['email'], 'valid' => 'required:true,email:true', 'description' => ''));
     form::field(array('type' => 'text', 'label' => '官方网站', 'name' => 'site', 'value' => $data['site'], 'valid' => 'required:true', 'description' => ''));
     block::footer();
     form::buttons(array('type' => 'submit'), array('type' => 'back'));
     form::footer();
     page::bottom();
     page::footer();
 }
예제 #9
0
파일: side.php 프로젝트: dalinhuang/zotop
<?php

$this->header();
?>

<?php 
block::header(array('title' => '快捷操作', 'class' => 'expanded', 'icon' => '', 'action' => '<a href="#">管理</a>'));
block::add($modules);
block::footer();
block::header(array('title' => '我的信息', 'class' => 'expanded', 'icon' => ''));
block::add('<ul class="list">');
block::add('<li><a href="' . zotop::url('zotop/mine/changeinfo') . '" target="mainIframe">修改我的资料</a></li>');
block::add('<li><a href="' . zotop::url('zotop/mine/changepassword') . '" target="mainIframe">修改我的密码</a></li>');
zotop::run('zotop.index.side.mine');
block::add('</ul>');
block::footer();
$this->footer();
예제 #10
0
파일: index.php 프로젝트: dalinhuang/zotop
<?php

$this->header();
?>

<?php 
block::header(array('title' => '应用列表', 'class' => 'expanded', 'action' => '<a href="#">管理</a>'));
block::add('<ul class="list">');
foreach ($apps as $id => $app) {
    block::add('<li><a href="' . zotop::url($app['id']) . '" target="mainIframe"><span>' . $app['name'] . '</span></a></li>');
}
block::add('</ul>');
block::footer();
?>

<?php 
$this->footer();
예제 #11
0
파일: quick.php 프로젝트: dalinhuang/zotop
function favorite()
{
    block::header(array('title' => '我的收藏夹', 'action' => '<a class="dialog" href="' . zotop::url('zotop/quick/add') . '">管理</a>|<a class="more" href="' . zotop::url('zotop/notepad') . '">更多</a>'));
    echo '<div style="height:200px;"></div>';
    block::footer();
}
예제 #12
0
function notepad()
{
    block::header(array('title' => '记事本', 'action' => '<a class="dialog" href="' . zotop::url('zotop/notepad/add') . '">新建记事</a>|<a class="more" href="' . zotop::url('zotop/notepad') . '">更多</a>'));
    echo '<div style="height:200px;"></div>';
    block::footer();
}
예제 #13
0
파일: add.php 프로젝트: dalinhuang/zotop
		var type = $('#type').val();
		var href = "<?php 
echo zotop::url('zotop/config/add', array('parentid' => $field['parentid'], 'type' => '__type__'));
?>
";
			href = href.replace(/__type__/i, type);

			location.href = zotop.url.join(href,'hash='+new Date().getTime());
	}
</script>
<?php 
form::header();
block::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))) {
        form::field($control);
    }
}
block::footer();
block::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' => 'title', 'label' => '节点名称', 'value' => $field['title'], 'valid' => '{required:true,maxlength:64}', 'description' => '请输入节点的标题名称'));
form::field(array('type' => 'text', 'name' => 'value', 'label' => '默认数值', 'value' => $field['value'], 'valid' => '', 'description' => ''));
form::field(array('type' => 'text', 'name' => 'valid', 'label' => '验证规则', 'value' => $field['valid'], 'valid' => '', 'description' => '节点值有效性验证规则,如:必选字段 <b>required:true</b>'));
form::field(array('type' => 'text', 'name' => 'description', 'label' => '节点说明', 'value' => $field['description'], 'valid' => '', 'description' => ''));
block::footer();
form::buttons(array('type' => 'submit', 'value' => '保 存'), array('type' => 'button', 'value' => '关 闭', 'class' => 'zotop-dialog-close'));
form::footer();
$this->footer();
예제 #14
0
파일: index.php 프로젝트: dalinhuang/zotop
    ?>
"><span class="zotop-icon zotop-icon-category"></span><?php 
    echo $c['title'];
    ?>
</a></li>
		<?php 
}
?>
	</ul>
</div>
<?php 
block::footer();
?>

<?php 
block::header(array('title' => zotop::modules('blog', 'name')));
?>
<table class="table">	
	<tr><td><?php 
echo zotop::modules('blog', 'description');
?>
</td></tr>
	<tr><td>版本:<?php 
echo zotop::modules('blog', 'version');
?>
</td></tr>
	<tr><td>作者:<?php 
echo zotop::modules('blog', 'author');
?>
</td></tr>
	<tr><td>主页:<?php 
예제 #15
0
파일: user.php 프로젝트: dalinhuang/zotop
 public function onChangeInfo($id)
 {
     $user = zotop::model('zotop.user');
     $user->id = (int) $id;
     if (form::isPostBack()) {
         $post = form::post();
         $update = $user->update($post, $user->id);
         if ($update) {
             msg::success('保存成功', '资料设置成功,正在刷新页面,请稍后……', zotop::url('zotop/user'));
         }
     }
     $data = $user->read();
     $data['updatetime'] = TIME;
     $page['title'] = '修改我的资料';
     page::header($page);
     page::top();
     page::navbar($this->navbar());
     form::header();
     block::header('账户信息');
     form::field(array('type' => 'label', '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('')));
     block::footer();
     block::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('男' => '男', '女' => '女'), '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('')));
     block::footer();
     form::buttons(array('type' => 'submit'), array('type' => 'back'));
     form::footer();
     page::bottom();
     page::footer();
 }
예제 #16
0
파일: index.php 프로젝트: dalinhuang/zotop
    $column['Engine  w60'] = $table['engine'];
    $column['collation  w100'] = $table['collation'];
    $column['manage view w60'] = '<a href="' . zotop::url('database/table/edit', array('tablename' => $table['name'])) . '" class="dialog">设置</a>';
    $column['manage delete'] = '<a href="' . zotop::url('database/table/delete', array('tablename' => $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 
block::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();
block::footer();
/*
block::header('创建数据表');
	form::header(array('action'=>zotop::url('database/table/create'),'template'=>'div'));
	form::field(array(
예제 #17
0
파일: field.php 프로젝트: dalinhuang/zotop
 public function onDefault($tablename)
 {
     $tables = zotop::db()->tables(true);
     $table = $tables[$tablename];
     $fields = array();
     if (isset($table)) {
         $fields = zotop::db()->table($tablename)->fields(true);
     }
     $indexes = zotop::db()->table($tablename)->index();
     $page['title'] = '数据库管理 <i>></i> 数据表 [ <b>' . $tablename . '</b> ]  <h6>' . $table['comment'] . '</h6>';
     page::header($page);
     page::add('<div id="page" class="clearfix">');
     page::add('<div id="main">');
     page::add('<div id="main-inner">');
     page::top();
     page::navbar($this->navbar($tablename), 'fields');
     form::header(array('class' => 'list'));
     $column = array();
     $column['select'] = html::checkbox(array('name' => 'id', 'class' => 'selectAll'));
     //$column['key w30 center'] = '索引';
     $column['name'] = '字段名称';
     $column['type w150'] = '字段类型';
     //$column['null w50'] = '空值';
     //$column['default w100'] = '默认值';
     //$column['comment'] = '注释';
     $column['manage pri'] = '主键';
     $column['manage index'] = '索引';
     $column['manage unique'] = '唯一';
     $column['manage fulltext'] = '全文';
     $column['manage edit'] = '修改';
     $column['manage delete'] = '删除';
     table::header('list', $column);
     foreach ($fields as $field) {
         $column = array();
         $column['select'] = html::checkbox(array('name' => 'id[]', 'class' => 'select'));
         //$column['key w30 center'] = '<span class="'.$field['key'].'">'.$field['key'].'</span>';
         $column['name'] = '<a href="' . zotop::url('database/field/edit', array('table' => $tablename, 'field' => $field['name'])) . '" title="注释:' . $field['comment'] . '&#13;默认:' . $field['default'] . '&#13;空值:' . $field['null'] . '&#13;整理:' . $field['collation'] . '"><b class="' . $field['key'] . '">' . $field['name'] . '</b></a><h5>' . $field['comment'] . '</h5>';
         $column['type w150'] = $field['type'] . (empty($field['length']) ? '' : '(' . $field['length'] . ')');
         //$column['null w50'] = $field['null'];
         //$column['default w100'] = $field['default'];
         //$column['comment'] = $field['comment'];
         $column['manage pri'] = '<a href="' . zotop::url('database/field/primaryKey', array('table' => $tablename, 'field' => $field['name'])) . '" class="confirm {content:\'<h2>确定要将该字段设置为主键?</h2>\'}">主键</a>';
         $column['manage index'] = '<a href="' . zotop::url('database/field/index', array('table' => $tablename, 'field' => $field['name'])) . '" class="confirm {content:\'<h2>确定要索引该字段?</h2>\'}">索引</a>';
         $column['manage unique'] = '<a href="' . zotop::url('database/field/unique', array('table' => $tablename, 'field' => $field['name'])) . '" class="confirm {content:\'<h2>确定要将该字段设置为唯一?</h2>\'}">唯一</a>';
         if (stripos((string) $field['type'], 'varchar') !== false || stripos((string) $field['type'], 'text') !== false) {
             $column['manage fulltext'] = '<a href="' . zotop::url('database/field/fulltext', array('table' => $tablename, 'field' => $field['name'])) . '" class="confirm {content:\'<h2>确定要将该字段设置为全文索引?</h2>\'}">全文</a>';
         } else {
             $column['manage fulltext'] = '<a class="disabled">全文</a>';
         }
         $column['manage edit'] = '<a href="' . zotop::url('database/field/edit', array('table' => $tablename, 'field' => $field['name'])) . '">修改</a>';
         $column['manage delete'] = '<a href="' . zotop::url('database/field/delete', array('table' => $tablename, 'field' => $field['name'])) . '" class="confirm">删除</a>';
         table::row($column, 'select');
     }
     table::footer();
     form::buttons(array('type' => 'submit', 'value' => '浏览选中项'));
     form::footer();
     page::bottom();
     page::add('</div>');
     page::add('</div>');
     page::add('<div id="side">');
     block::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();
     block::footer();
     block::header('索引信息');
     $column = array();
     $column['i w10'] = '';
     $column['field'] = '字段';
     $column['type w30'] = '类型';
     $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 w30'] = $index['type'];
         $column['manage dropindex'] = '<a href="' . url::build('database/field/dropindex', array('table' => $tablename, 'index' => $index['name'])) . '" class="confirm">删除</a>';
         table::row($column, 'select');
     }
     table::footer();
     block::footer();
     page::add('</div>');
     page::add('</div>');
     page::footer();
 }
예제 #18
0
파일: index.php 프로젝트: dalinhuang/zotop
<?php

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

<?php 
echo html::msg('<h2>什么是模块(module)?</h2><div>模块是对系统现有功能的扩展。如:内容发布用的内容管理模块(content),会员系统(member),日志模块(blog)等,获取最新模块请登陆官方网站</div>');
block::header('已安装模块');
if (empty($modules)) {
    echo '<div class="zotop-empty"><span>暂时没有数据</span></div>';
} else {
    $column = array();
    $column['status w30 center'] = '状态';
    //$column['modulename'] = '模块ID';
    $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) {
        $module['root'] = ZPATH_MODULES . DS . $module['id'];
        $module['status-icon'] = $module['status'] == -1 ? html::image(url::theme() . '/image/icon/lock.gif') : html::image(url::theme() . '/image/icon/ok.gif');
        $column = array();
        $column['status w30 center'] = $module['status-icon'];
        //$column['name w60'] = $module['id'];
예제 #19
0
파일: index.php 프로젝트: dalinhuang/zotop
<?php

$this->header();
block::header(array('title' => '系统管理登录', 'action' => '<a href="' . zotop::url('site://') . '">网站首页</a>'));
form::header(array('title' => '', 'description' => '请输入您的帐户和密码登录', 'class' => 'small'));
form::field(array('type' => 'text', 'label' => zotop::t('帐 户(U)'), 'name' => 'username', 'value' => zotop::cookie('admin.username'), 'valid' => 'required:true'));
form::field(array('type' => 'password', 'label' => zotop::t('密 码(P)'), 'name' => 'password', 'value' => '', 'valid' => 'required:true'));
form::buttons(array('type' => 'submit', 'value' => '登 录'), array('type' => 'button', 'name' => 'options', 'value' => '选 项'));
form::footer();
block::footer();
block::footer();
$this->footer();
예제 #20
0
파일: table.php 프로젝트: dalinhuang/zotop
 public function onDefault()
 {
     $db = zotop::db();
     $host = $db->config('hostname');
     $dbName = $db->config('database');
     $dbVersion = $db->version(true);
     $dbSize = $db->size();
     $tables = zotop::db()->tables(true);
     $header['title'] = '数据库管理:' . $dbName;
     page::header($header);
     page::add('<div id="page" class="clearfix">');
     page::add('<div id="side">');
     block::header('数据库基本信息');
     table::header();
     table::row(array('w60' => '数据库主机', '2' => '' . $host . ''));
     table::row(array('w60' => '数据库名称', '2' => '' . $dbName . ''));
     table::row(array('w60' => '数据库版本', '2' => '' . $dbVersion . ''));
     table::row(array('w60' => '数据库大小', '2' => '<b>' . $dbSize . '</b> '));
     table::row(array('w60' => '数据表个数', '2' => '<b>' . count($tables) . '</b> 个'));
     table::footer();
     block::footer();
     block::header('创建数据表');
     form::header(array('action' => zotop::url('database/table/create'), 'template' => 'div'));
     form::field(array('type' => 'text', 'name' => 'tablename', 'label' => zotop::t('表名称'), 'style' => 'width:180px', 'valid' => '{required:true}', 'description' => '不含前缀,系统会自动加上前缀'));
     form::buttons(array('type' => 'submit', 'value' => '创建'));
     form::footer();
     block::footer();
     page::add('</div>');
     page::add('<div id="main">');
     page::top();
     page::navbar($this->navbar(), 'tables');
     //zotop::dump($tables);
     form::header(array('class' => 'list', 'action' => zotop::url('database/table/action')));
     $column['select'] = html::checkbox(array('name' => 'table', 'class' => 'selectAll'));
     $column['name'] = '数据表名称';
     $column['size  w60'] = '大小';
     $column['Rows  w60'] = '记录数';
     $column['Engine  w60'] = '类型';
     $column['Collation  w100'] = '整理';
     $column['manage view w60'] = '浏览';
     $column['manage delete'] = '删除';
     page::add('<div style="height:400px;">');
     table::header('list', $column);
     foreach ($tables as $table) {
         $column = array();
         $column['select'] = html::checkbox(array('name' => 'table[]', 'value' => $table['name'], 'class' => 'select'));
         $column['name'] = '<a href="' . url::build('database/field/default', array('tablename' => $table['name'])) . '"><b>' . $table['name'] . '</b></a><h5>' . $table['comment'] . '</h5>';
         $column['size w60'] = (string) format::byte($table['size']);
         $column['Rows  w60'] = $table['rows'];
         $column['Engine  w60'] = $table['engine'];
         $column['collation  w100'] = $table['collation'];
         $column['manage view w60'] = '<a href="' . url::build('database/table/edit', array('tablename' => $table['name'])) . '">设置</a>';
         $column['manage delete'] = '<a href="' . url::build('database/table/delete', array('tablename' => $table['name'])) . '" class="confirm">删除</a>';
         table::row($column, 'select');
     }
     table::footer();
     page::add('</div>');
     form::buttons(array('type' => 'select', 'name' => 'operation', 'style' => 'width:180px', 'options' => array('optimize' => '优化', 'delete' => '删除'), 'value' => 'check'), array('type' => 'submit', 'value' => '执行操作'));
     form::footer();
     page::bottom();
     page::add('</div>');
     page::add('</div>');
     page::footer();
 }
예제 #21
0
파일: add.php 프로젝트: dalinhuang/zotop
<?php

$this->header();
$this->top();
$this->navbar();
form::header();
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('')));
block::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('')));
block::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"))														 
	})   
})
예제 #22
0
파일: index.php 프로젝트: dalinhuang/zotop
<?php

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

<?php 
echo html::msg('<h2>什么是模块(module)?</h2><div>模块是对系统现有功能的扩展。如:内容发布用的内容管理模块(content),会员系统(member),日志模块(blog)等,获取最新模块请登陆官方网站</div>');
block::header('系统模块列表');
if (empty($modules)) {
    echo '<div class="zotop-empty"><span>暂时没有数据</span></div>';
} else {
    $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'] = html::image(empty($module['icon']) ? '$theme/image/skin/none.png' : $module['icon'], array('width' => '32px'));
        $column['name'] = '<a class="dialog" href="' . zotop::url('zotop/module/about', array('id' => $module['id'])) . '"><b>' . $module['name'] . ' ( ' . $module['id'] . ' )</b></a><h5>' . $module['description'] . '</h5>';
        //$column['loginnum w60'] = $module['path'];
예제 #23
0
파일: index.php 프로젝트: dalinhuang/zotop
</div>
</div>
<div id="side">
<?php 
block::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();
block::footer();
block::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', array('table' => $tablename, 'index' => $index['name'])) . '" class="confirm">删除</a>';
    table::row($column, 'select');
}
table::footer();
예제 #24
0
파일: main.php 프로젝트: dalinhuang/zotop
 public function onSystem()
 {
     $header['title'] = '控制中心';
     $phpinfo = array();
     $server = $_SERVER['SERVER_ADDR'] . ' / ' . PHP_OS;
     $php = $_SERVER['SERVER_SOFTWARE'];
     $safemode = @ini_get('safe_mode') ? ' 开启' : '关闭';
     if (@ini_get('file_uploads')) {
         $upload_max_filesize = ini_get('upload_max_filesize');
     } else {
         $upload_max_filesize = '<b class="red">---</b>';
     }
     $upload_filesize = format::byte(dir::size(ZOTOP_UPLOAD));
     $database = zotop::db()->config();
     $database['size'] = zotop::db()->size();
     $database['version'] = zotop::db()->version();
     $database['db'] = $database['hostname'] . ':' . $database['hostport'] . '/' . $database['database'];
     page::header($header);
     page::top();
     page::navbar($this->navbar());
     block::header('服务器信息');
     table::header();
     table::row(array('side 1 w60' => '服务器', 'main  w300 1' => $server, 'side 2 w60 ' => 'WEB服务器', 'main 2' => $php));
     table::row(array('side 1 w60' => '安全模式', 'main 1' => $safemode, 'side 2 w60 ' => 'PHP版本', 'main 2' => PHP_VERSION));
     table::row(array('side 1 w60' => '程序版本', 'main 1' => zotop::config('zotop.version'), 'side 2 w60 ' => '程序根目录', 'main 2' => ROOT));
     table::footer();
     block::footer();
     block::header('文件夹权限<span>如果某个文件或目录被检查到“无法写入”(以红色列出),请即刻通过 FTP 或其他工具修改其属性(例如设置为 777),以确保程序功能的正常使用</span>');
     table::header();
     table::row(array('side 1 w60' => '配置目录', 'main w300 1' => '', 'side 2 w60 ' => '备份目录', 'main 2' => ''));
     table::row(array('side 1 w60' => '运行目录', 'main w300 1' => '', 'side 2 w60 ' => '模块目录', 'main 2' => ''));
     table::footer();
     block::footer();
     block::header('数据库信息');
     table::header();
     table::row(array('side 1 w60' => '驱动名称', 'main w300 1' => $database['driver'], 'side 2 w60 ' => '数据库', 'main 2' => $database['db']));
     table::row(array('side 1 w60' => '数据库版本', 'main 1' => $database['version'], 'side 2 w60 ' => '占用空间', 'main 2' => $database['size']));
     table::footer();
     block::footer();
     block::header('文件上传');
     table::header();
     table::row(array('side 1 w60' => '上传许可', 'main w300 1' => $upload_max_filesize, 'side 2 w60 ' => '已上传文件', 'main 2' => '<span class="loading">' . $upload_filesize . '</span>'));
     table::footer();
     block::footer();
     page::bottom();
     page::footer();
 }
예제 #25
0
파일: side.php 프로젝트: dalinhuang/zotop
<?php

$this->header();
?>

<?php 
block::header(array('title' => '系统工具', 'class' => 'expanded', 'action' => '<a href="#">管理</a>'));
block::add($tools);
block::footer();
?>

<?php 
block::header(array('title' => '系统用户管理', 'class' => 'expanded'));
block::add($users);
block::footer();
?>

<?php 
block::header(array('title' => '模块管理', 'class' => 'expanded'));
block::add($modules);
block::footer();
?>

<?php 
$this->footer();
예제 #26
0
파일: index.php 프로젝트: dalinhuang/zotop
 public function onDefault($dir = '')
 {
     $path = ROOT . DS . trim($dir, DS);
     $path = path::clean($path);
     $folders = dir::folders($path);
     $files = dir::files($path);
     $fileext = array('php', 'css', 'js', 'jpg', 'jpeg', 'gif', 'png', 'bmp', 'psd', 'html', 'htm', 'tpl', 'rar', 'zip', 'mp3');
     $page['title'] = '文件管理器';
     page::header($page);
     page::add('<div id="page" class="clearfix">');
     page::add('<div id="main">');
     page::add('<div id="main-inner">');
     page::top();
     page::navbar($this->navbar(), 'default');
     $column = array();
     $column['select'] = '';
     $column['name'] = '名称';
     $column['type'] = '类型';
     $column['size w60'] = '大小';
     $column['atime w120'] = '创建时间';
     $column['mtime w120'] = '修改时间';
     $column['manage rename w80'] = '重命名';
     $column['manage edit w80'] = '编辑';
     $column['manage delete'] = '删除';
     table::header('list', $column);
     foreach ($folders as $folder) {
         $column = array();
         $column['select w20 center'] = html::image(url::theme() . '/image/fileext/folder.gif');
         $column['name'] = '<a href="' . zotop::url('filemanager/index/default', array('dir' => $dir . DS . $folder)) . '"><b>' . $folder . '</b></a>';
         $column['type w60'] = '文件夹';
         $column['size w60'] = '--';
         $column['atime w120'] = time::format(@fileatime($path . DS . $folder));
         $column['mtime w120'] = time::format(@filemtime($path . DS . $folder));
         $column['manage rename w80'] = '<a>重命名</a>';
         $column['manage edit w80'] = '<a class="disabled">编辑</a>';
         $column['manage delete'] = '<a>删除</a>';
         table::row($column);
     }
     foreach ($files as $file) {
         $column = array();
         $column['select w20 center'] = in_array(file::ext($file), $fileext) ? html::image(url::theme() . '/image/fileext/' . file::ext($file) . '.gif') : html::image(url::theme() . '/image/fileext/unknown.gif');
         $column['name'] = '<a href="' . zotop::url('filemanager/index/default', array('dir' => $dir . DS . $file)) . '"><b>' . $file . '</b></a>';
         $column['type w60'] = '文件';
         $column['size w60'] = format::byte(@filesize($path . DS . $file));
         $column['atime w120'] = time::format(@fileatime($path . DS . $file));
         $column['mtime w120'] = time::format(@filemtime($path . DS . $file));
         $column['manage rename w80'] = '<a>重命名</a>';
         $column['manage edit w80'] = '<a href="' . zotop::url('filemanager/file/edit', array('filename' => $dir . DS . $file, 'dir' => '***')) . '">编辑</a>';
         $column['manage delete'] = '<a>删除</a>';
         table::row($column);
     }
     table::footer();
     page::bottom();
     page::add('</div>');
     page::add('</div>');
     page::add('<div id="side">');
     block::header('快捷操作');
     echo '<ul class="list">';
     echo '<li class="file"><a href="' . zotop::url('zotop/file/newfile') . '" class="dialog">新建文件</a></li>';
     echo '<li class="folder"><a href="' . zotop::url('zotop/file/newfolder') . '" class="dialog">新建文件夹</a></li>';
     echo '<li class="folder"><a href="' . zotop::url('zotop/file/upload') . '" class="dialog">文件上传</a></li>';
     echo '</ul>';
     block::footer();
     block::header('其他位置');
     echo '<ul class="list">';
     echo '<li class="root"><a>根目录</a></li>';
     echo '<li class="root"><a>模板目录</a></li>';
     echo '<li class="root"><a>模块目录</a></li>';
     echo '<li class="root"><a>缓存目录</a></li>';
     echo '</ul>';
     block::footer();
     page::add('</div>');
     page::add('</div>');
     page::footer();
 }
예제 #27
0
파일: add.php 프로젝트: dalinhuang/zotop
<?php

$this->header();
$this->top();
$this->navbar();
form::header();
block::header('账户信息');
form::field(array('type' => 'hidden', 'label' => zotop::t('账户编号'), 'name' => 'id', 'value' => $data['id']));
form::field(array('type' => 'text', 'label' => zotop::t('账户名称'), 'name' => 'username', 'value' => $data['username'], 'valid' => '{required:true,username:true,minlength:5,maxlength:32,remote:"' . zotop::url('zotop/user/checkusername') . '",messages:{remote:"该名称已经被占用,请选择其它名称"}}', 'description' => zotop::t('允许使用中文、数字、英文字符(不区分大小写)或者下划线,不允许使用其它特殊字符,5~32位')));
form::field(array('type' => 'password', 'label' => zotop::t('账户密码'), 'id' => 'password', 'name' => 'password', 'value' => '', 'valid' => 'required:true,minlength:6,maxlength:32', 'description' => zotop::t('请输入账户密码,6~32位之间')));
form::field(array('type' => 'password', 'label' => zotop::t('确认密码'), 'name' => '_password', 'value' => '', 'valid' => 'required:true,equalTo:"#password"', 'description' => zotop::t('为确保安全,请再次输入账户密码')));
form::field(array('type' => 'hidden', 'label' => zotop::t('安全问题'), 'name' => 'question', 'value' => $data['question'], 'valid' => '', 'description' => zotop::t('')));
form::field(array('type' => 'hidden', 'label' => zotop::t('安全答案'), 'name' => 'answer', 'value' => $data['answer'], 'valid' => '', 'description' => zotop::t('')));
form::field(array('type' => 'select', 'options' => $usergroups, 'label' => zotop::t('用户组'), 'name' => 'groupid', 'value' => $data['groupid'], 'valid' => 'required:true', 'description' => zotop::t('不同用户组所属角色不同,权限也不同')));
block::footer();
block::header('个人信息');
form::field(array('type' => 'text', 'label' => zotop::t('姓名'), 'name' => 'name', 'value' => $data['name'], 'valid' => '{required:true,messages:{required:\'请输入你的姓名或者昵称\'}}', 'description' => zotop::t('姓名或者昵称,显示在文章或者相关内容的编辑名称位置')));
form::field(array('type' => 'radio', 'options' => array('1' => '先生', '0' => '女士'), 'label' => zotop::t('性别'), 'name' => 'gender', 'value' => $data['gender'] || 1, '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('')));
block::footer();
form::footer(array(array('type' => 'submit', 'value' => '创 建'), array('type' => 'back', 'value' => '返回前页')));
$this->bottom();
$this->footer();
예제 #28
0
파일: bakup.php 프로젝트: dalinhuang/zotop
<?php

$this->header();
$this->top();
$this->navbar();
form::header();
block::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>';
block::footer();
block::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' => '语句格式'));
block::footer();
form::buttons(array('type' => 'submit', 'value' => '备 份'));
form::footer();
$this->bottom();
$this->footer();
예제 #29
0
파일: zlog.php 프로젝트: dalinhuang/zotop
function mylog()
{
    block::header(array('title' => '日志记录', 'action' => '<a class="more" href="' . zotop::url('zotop/log') . '">更多</a>'));
    echo '<div style="height:200px;"></div>';
    block::footer();
}
예제 #30
0
파일: index.php 프로젝트: dalinhuang/zotop
$this->mainFooter();
$this->sideHeader();
?>

<?php 
block::header('统计信息');
table::header();
table::row(array('w60' => zotop::t('文件大小'), '2' => format::byte($totalsize)));
table::row(array('w60' => zotop::t('文件数量'), '2' => $totalcount . zotop::t(' 个')));
table::footer();
block::footer();
?>


<?php 
block::header('按文件类型查看');
?>
<div class="navbarlist">
	<ul class="list2">
		<li><a href="<?php 
echo zotop::url('zotop/file/index');
?>
"><span class="zotop-icon zotop-icon-file all"></span>全部文件</a></li>
		<li><a href="<?php 
echo zotop::url('zotop/file/index', array('type' => 'document'));
?>
"><span class="zotop-icon zotop-icon-file document"></span>文档文件</a></li>
		<li><a href="<?php 
echo zotop::url('zotop/file/index', array('type' => 'text'));
?>
"><span class="zotop-icon zotop-icon-file text"></span>文本文件</a></li>