Skip to content

Commit c95bd47

Browse files
committed
fixed url mode
1 parent 7854068 commit c95bd47

28 files changed

+1057
-89
lines changed

.htaccess

-6
This file was deleted.

Conf/columns.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<?php return array ( 'columns' => array ( 'Menu' => array ( 'id' => 'ID', 'title' => '标题', 'link' => '链接', 'order' => '顺序', 'target' => '目标', ), 'test' => array ( 'test' => 'test', ), 'Log' => array ( 'update_user' => '用户', 'operate' => '操作路径', 'ip' => 'IP', 'update_time' => '时间', 'status' => '', ), 'Module_table' => array ( 'name' => '名称', 'title' => '标题', 'module' => '模块', 'group' => '分组', 'rows' => '记录', 'data_length' => '数据长度', 'index_length' => '索引大小', 'engine' => '引擎', 'collation' => '字符集', ), 'Module_refer' => array ( 'id' => '', 'module' => '参照表名', 'fk' => '参照外键', 'module_refer' => '被参照表', 'pk' => '参照主键', 'condition' => '参照条件', 'refer_type' => '参照类型', 'field_show' => '显示字段', 'limit' => '关联条目', ), 'Module' => array ( 'id' => 'ID', 'name' => '名称', ), 'Iuser' => array ( 'id' => 'ID', 'username' => '名称', 'numb' => '手机号', ), 'Passport' => array ( 'id' => 'ID', 'xing' => '', 'ming' => '', 'numb' => '护照编号', ), 'Broadband' => array ( 'user_id' => '用户', 'phone' => '宽带手机号', 'cat_id' => '类别', 'start_date' => '安装日期', 'end_date' => '结束日期', 'use_during' => '使用时长', 'cost' => '安装费用', 'manager' => '发展人', 'username' => '宽带账号', 'password' => '宽带密码', 'status' => '状态', ), 'Broadband_cat' => array ( 'id' => 'ID', 'name' => '宽带类型', ), 'Department' => array ( 'id' => 'ID', 'numb' => '编号', 'name' => '名称', 'update_time' => '更新时间', ), 'View' => array ( 'name' => '名称', 'column_name' => '名称', 'column_title' => '标题', 'query_able' => '查询', 'list_show' => '显示', 'add_show' => '显示', 'control_type' => '控件类型', 'validate' => '验证条件', ), 'User' => array ( 'id' => '', 'username' => '用户名', 'display_name' => '名称', 'email' => 'email', 'register_time' => '注册时间', 'status' => '状态', ), 'Role' => array ( 'id' => '', 'numb' => '编号', 'name' => '名称', 'status' => '状态', ), 'Authority' => array ( 'id' => '', 'numb' => '编号', 'name' => '名称', 'url' => 'URL', 'status' => '状态', ), 'Group' => array ( 'id' => '', 'numb' => '编号', 'name' => '名称', 'status' => '状态', ), 'Parameters' => array ( 'id' => '', 'name' => '名称', 'value' => '', 'default' => '默认值', 'type' => '类型', 'desc' => '描述', 'status' => '状态', ), 'Article' => array ( 'id' => '', 'title' => '标题', 'author' => '作者', 'tags' => '标签', 'commentStatus' => '评论', 'status' => '状态', ), 'Backup' => array ( 'id' => '', 'path' => '路径', 'backup_time' => '时间', 'desc' => '描述', 'status' => '状态', ), 'Atest' => array ( 'id' => '', 'user_id' => '用户名', 'textbox' => '文本框', 'select' => '列表框', 'datetime' => '日期时间', 'checkbox' => '复选框', 'time' => '时间', ), 'Account' => array ( 'id' => '', 'admin_profile' => '', 'activation_key' => '', 'reset_token' => '', 'last_login_date' => '', 'last_modified' => '', 'last_failed_attempt' => '', 'last_login_ip' => '', 'failed_logins' => '', 'lockout_expires' => '', 'last_failed_ip' => '', ), ), );?>
1+
<?php return array ( 'columns' => array ( 'Menu' => array ( 'id' => 'ID', 'title' => '标题', 'link' => '链接', 'order' => '顺序', 'target' => '目标', ), 'test' => array ( 'test' => 'test', ), 'Log' => array ( 'id' => '', 'operate' => '操作路径', 'ip' => 'IP', 'username' => '用户', 'update_time' => '时间', 'status' => '', ), 'Module_table' => array ( 'name' => '名称', 'title' => '标题', 'module' => '模块', 'group' => '分组', 'rows' => '记录', 'data_length' => '数据长度', 'index_length' => '索引大小', 'engine' => '引擎', 'collation' => '字符集', ), 'Module_refer' => array ( 'id' => '', 'module' => '参照表名', 'fk' => '参照外键', 'module_refer' => '被参照表', 'pk' => '参照主键', 'condition' => '参照条件', 'refer_type' => '参照类型', 'field_show' => '显示字段', 'limit' => '关联条目', ), 'Module' => array ( 'id' => 'ID', 'name' => '名称', ), 'Iuser' => array ( 'id' => 'ID', 'username' => '名称', 'numb' => '手机号', ), 'Passport' => array ( 'username' => '', 'userid' => '用户', 'numb' => '护照编号', 'xing' => '姓', 'ming' => '名', 'sex' => '性别', 'birthday' => '出生日期', 'birth_place' => '出生地', 'issue_place' => '签发地', 'issue_date' => '签发日期', 'expiry' => '过期日期', 'authority' => '签发机关', 'update_user' => '', 'update_time' => '', ), 'Broadband' => array ( 'id' => '', 'username' => '用户', 'phone' => '宽带手机号', 'name' => '类别', 'start_date' => '安装日期', 'end_date' => '结束日期', 'use_during' => '使用时长', 'cost' => '安装费用', 'manager' => '发展人', 'status' => '状态', ), 'Broadband_cat' => array ( 'id' => '', 'name' => '', ), 'Department' => array ( 'id' => 'ID', 'numb' => '编号', 'name' => '名称', 'update_time' => '更新时间', ), 'View' => array ( 'name' => '名称', 'column_name' => '名称', 'column_title' => '标题', 'query_able' => '查询', 'list_show' => '显示', 'add_show' => '显示', 'control_type' => '控件类型', 'validate' => '验证条件', ), 'User' => array ( 'id' => '', 'username' => '用户名', 'display_name' => '名称', 'email' => 'email', 'register_time' => '注册时间', 'status' => '状态', ), 'Role' => array ( 'id' => '', 'numb' => '编号', 'name' => '名称', 'status' => '状态', ), 'Authority' => array ( 'id' => '', 'numb' => '编号', 'name' => '名称', 'url' => 'URL', 'status' => '状态', ), 'Group' => array ( 'id' => '', 'numb' => '编号', 'name' => '名称', 'status' => '状态', ), 'Parameters' => array ( 'id' => '', 'name' => '名称', 'value' => '值', 'default' => '默认值', 'type' => '类型', 'desc' => '描述', 'status' => '状态', ), 'Article' => array ( 'id' => '', 'title' => '标题', 'excerpt' => '摘要', 'content' => '内容', 'author' => '作者', 'author_id' => '作者ID', 'catgory' => '分类', 'post_date' => '发布日期', 'name' => '名称', 'tags' => '标签', 'reference' => '引用地址', 'password' => '密码', 'type' => '文章类型', 'status' => '状态', 'thumbnails' => '缩略图', 'attament' => '附件', 'comment_status' => '评论', 'update_time' => '更新时间', 'lock_type' => '', ), 'Backup' => array ( 'id' => '', 'path' => '路径', 'backup_time' => '时间', 'desc' => '描述', 'status' => '状态', ), 'Atest' => array ( 'id' => '', 'user_id' => '用户名', 'textbox' => '文本框', 'select' => '列表框', 'datetime' => '日期时间', 'checkbox' => '复选框', 'time' => '时间', ), 'Account' => array ( 'id' => '', 'admin_profile' => '', 'activation_key' => '', 'reset_token' => '', 'last_login_date' => '', 'last_modified' => '', 'last_failed_attempt' => '', 'last_login_ip' => '', 'failed_logins' => '', 'lockout_expires' => '', 'last_failed_ip' => '', ), 'Cron' => array ( 'id' => '', 'available' => '', 'type' => '', 'name' => '', 'filename' => '', 'lastrun' => '', 'nextrun' => '', 'weekday' => '', 'day' => '', 'hour' => '', 'minute' => '', ), 'User_role' => array ( 'id' => '', 'username' => '用户', 'name' => '角色', 'status' => '状态', 'is_deleted' => '', ), 'Attachment' => array ( 'id' => '', 'pid' => '', 'type' => '', 'url' => '', 'file_name' => '', 'file_size' => '', 'extension' => '', 'description' => '', 'downloads' => '', ), 'Comments' => array ( 'id' => '', 'article_id' => '', 'author' => '', 'email' => '', 'url' => '', 'ip' => '', 'comment_date' => '', 'content' => '', 'approved' => '', 'agent' => '', 'type' => '', 'parent' => '', 'userid' => '', ), 'Test' => array ( 'id' => '', 'char20' => 'char20', 'varchar45' => 'varchar45', 'BLOB' => 'BLOB', 'TINYBLOB' => 'TINYBLOB', 'DATE' => 'DAT', 'TIME' => 'TIME', 'DATETIME' => 'DATETIME', 'TIMESTAMP' => 'TIMESPAMP', 'YEAR' => 'YEAR', 'TINYINT' => 'TINYINT', 'SMALLINT' => 'SMALLINT', 'MEDIUMINT' => 'MEDIUMINT', 'INT' => 'INT', 'FLOAT' => 'FLOAT', 'DOUBLE' => 'DOUBLE', 'DECIMAL' => 'DECIMAL', 'BIGINT' => 'BIGINT', 'BIT' => 'BIT', 'ENUMab' => 'ENUMab', 'setabc' => 'setabc', 'LONGTEXT' => 'LONGTEXT', 'MEDIUMTEXT' => 'MEDIUMTEXT', 'TEXT' => 'TEXT', 'TINYTEXT' => 'TINYTEXT', ), 'Topic' => array ( 'id' => '', 'views' => '查看次数', 'comments' => '评论次数', 'good' => '赞 次数', 'download' => '下载次数', 'favorite' => '收藏次数', 'share' => '', 'post_date' => '', ), 'User_profile' => array ( 'id' => '', 'realname' => '', 'gender' => '', 'birthyear' => '', 'birthmonth' => '', 'birthday' => '', 'constellation' => '', 'zodiac' => '', 'telephone' => '', 'mobile' => '', 'idcardtype' => '', 'idcard' => '', 'address' => '', 'zipcode' => '', 'nationality' => '', 'birthprovince' => '', 'birthcity' => '', 'birthdist' => '', 'birthcommunity' => '', 'resideprovince' => '', 'residecity' => '', 'residedist' => '', 'residecommunity' => '', 'residesuite' => '', 'graduateschool' => '', 'company' => '', 'education' => '', 'occupation' => '', 'position' => '', 'revenue' => '', 'affectivestatus' => '', 'lookingfor' => '', 'bloodtype' => '', 'height' => '', 'weight' => '', 'alipay' => '', 'icq' => '', 'qq' => '', 'yahoo' => '', 'msn' => '', 'taobao' => '', 'site' => '', 'bio' => '', 'interest' => '', ), ), );?>

Conf/config.php

+5-5
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
'DB_HOST' => 'localhost',// 服务器地址
99
'DB_NAME' => 'commlib', // 数据库名
1010
'DB_USER' => 'root', // 用户名
11-
'DB_PWD' => 'sanyue%', // 密码
11+
'DB_PWD' => '', // 密码
1212
'DB_PORT' => 3306, // 端口
1313
'DB_PREFIX' => '', // 数据库表前缀
1414
'DB_DEPLOY_TYPE' => 0, // 数据库部署方式 0 集中式 1 分布式 0
@@ -38,11 +38,11 @@
3838
'DEFAULT_THEME' => '',
3939

4040
'EMPTY_MODULE' => 'Department,Role,Broadband,Broadband_cat,Passport,Parameters,Log,', //允许通过EmptyAction处理的模块,注意以,结尾
41-
'EMPTY_ACTION' => 'index,add,edit,save,delete,refer,view,',//允许通过EmptyAction处理的Action,注意以,结尾
41+
'EMPTY_ACTION' => 'index,add,edit,save,delete,refer,view,operate,',//允许通过EmptyAction处理的Action,注意以,结尾
4242

4343
'LazyInc' => '6',
4444

45-
'LOAD_EXT_CONFIG'=>'columns,query',
45+
'LOAD_EXT_CONFIG'=>'columns,query,pill',
4646

4747
'TMPL_SIRIP_SPACE'=>false,
4848
//LAYOUT
@@ -87,10 +87,10 @@
8787
*/
8888
//URL设置
8989
'URL_CASE_INSENSITIVE' =>FALSE, // URL是否不区分大小写 false
90-
'URL_MODEL' =>2, // URL访问模式支持 0 (普通模式); 1 (PATHINFO 模式); 2 (REWRITE 模式);3 (兼容模式)
90+
'URL_MODEL' =>1, // URL访问模式支持 0 (普通模式); 1 (PATHINFO 模式); 2 (REWRITE 模式);3 (兼容模式)
9191
//'URL_PATHINFO_DEPR' => '/', // PATHINFO模式下的参数分割符 /
9292
//'URL_PATHINFO_FETCH'=>, // 用于兼容判断PATH_INFO 参数的SERVER替代变量列表 ORIG_PATH_INFO;REDIRECT_PATH_INFO;REDIRECT_URL
93-
//'URL_HTML_SUFFIX' =>'htm', // URL伪静态后缀设置
93+
'URL_HTML_SUFFIX' =>'jsp', // URL伪静态后缀设置
9494
//'URL_404_REDIRECT' =>, // 404跳转页面 部署模式有效(3.1新增)
9595
//'URL_PARAMS_BIND' =>, // URL变量绑定到Action方法参数(3.1新增) true
9696

Conf/pill.php

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<?php return array ('pill' => array ( 'Role' => array('status=1'=>'已启用','stauts=0'=>'已禁用',), ),);?>

Conf/query.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<?php return array ( 'query' => array ( 'Role' => array ( 'numb' => array ( 'title' => '编号', 'type' => 'eq', 'value' => '', ), 'name' => array ( 'title' => '名称', 'type' => 'like', 'value' => '%like%', ), 'type' => array ( 'title' => '开始', 'type' => '', 'value' => 'getName', ), 'status' => array ( 'title' => '状态', 'type' => '', 'value' => 'false', ), ), 'Atest' => array ( 'user_id' => array ( 'title' => '用户名', 'query_type' => 'eq', 'control_type' => 'getField', 'value' => NULL, ), 'textbox' => array ( 'title' => '文本框', 'query_type' => 'like', 'control_type' => 'text', 'value' => NULL, ), 'select' => array ( 'title' => '列表框', 'query_type' => 'eq', 'control_type' => 'select', 'value' => 'a,b,c', ), 'datetime' => array ( 'title' => '日期时间', 'query_type' => 'between', 'control_type' => 'datetime', 'value' => 'a,b,c', ), 'checkbox' => array ( 'title' => '复选框', 'query_type' => 'eq', 'control_type' => 'checkbox', 'value' => 'a,b,c', ), ), 'Module_refer' => array ( ), 'Broadband' => array ( 'user_id' => array ( 'title' => '用户', 'query_type' => 'eq', 'control_type' => 'refer', 'value' => 'broadband-user_id-user-id,id,username,User/refer', ), 'phone' => array ( 'title' => '宽带手机号', 'query_type' => 'like', 'control_type' => 'text', 'value' => 'broadband-user_id-user-id,id,username,User/refer', ), 'cat_id' => array ( 'title' => '类别', 'query_type' => 'eq', 'control_type' => 'refer', 'value' => 'broadband-cat_id-broadband_cat-id,id,name,Broadband_cat/refer', ), 'start_date' => array ( 'title' => '安装日期', 'query_type' => 'between', 'control_type' => 'date', 'value' => 'broadband-cat_id-broadband_cat-id,id,name,Broadband_cat/refer', ), 'end_date' => array ( 'title' => '结束日期', 'query_type' => 'between', 'control_type' => 'date', 'value' => 'broadband-cat_id-broadband_cat-id,id,name,Broadband_cat/refer', ), 'use_during' => array ( 'title' => '使用时长', 'query_type' => 'eq', 'control_type' => 'digit', 'value' => 'broadband-cat_id-broadband_cat-id,id,name,Broadband_cat/refer', ), 'manager' => array ( 'title' => '发展人', 'query_type' => 'like', 'control_type' => 'digit', 'value' => 'broadband-cat_id-broadband_cat-id,id,name,Broadband_cat/refer', ), ), 'Log' => array ( 'ip' => array ( 'title' => 'IP', 'query_type' => 'like', 'control_type' => 'text', 'value' => NULL, ), 'update_user' => array ( 'title' => '用户', 'query_type' => 'eq', 'control_type' => 'refer', 'value' => 'log-update_user-user-id,id,username,User/refer', ), 'update_time' => array ( 'title' => '时间', 'query_type' => 'between', 'control_type' => 'text', 'value' => 'log-update_user-user-id,id,username,User/refer', ), ), 'Account' => array ( ), ), );?>
1+
<?php return array ( 'query' => array ( 'Role' => array ( 'numb' => array ( 'title' => '编号', 'type' => 'eq', 'value' => '', ), 'name' => array ( 'title' => '名称', 'type' => 'like', 'value' => '%like%', ), 'type' => array ( 'title' => '开始', 'type' => '', 'value' => 'getName', ), 'status' => array ( 'title' => '状态', 'type' => '', 'value' => 'false', ), ), 'Atest' => array ( 'user_id' => array ( 'title' => '用户名', 'query_type' => 'eq', 'control_type' => 'text', 'value' => NULL, ), 'textbox' => array ( 'title' => '文本框', 'query_type' => 'like', 'control_type' => 'text', 'value' => NULL, ), 'select' => array ( 'title' => '列表框', 'query_type' => 'eq', 'control_type' => 'select', 'value' => 'a,b,c', ), 'datetime' => array ( 'title' => '日期时间', 'query_type' => 'between', 'control_type' => 'datetime', 'value' => 'a,b,c', ), 'checkbox' => array ( 'title' => '复选框', 'query_type' => 'eq', 'control_type' => 'checkbox', 'value' => 'a,b,c', ), ), 'Module_refer' => array ( ), 'Broadband' => array ( 'user_id' => array ( 'title' => '用户', 'query_type' => 'eq', 'control_type' => 'refer', 'value' => 'broadband-user_id-user-id,id,username,User/refer', ), 'phone' => array ( 'title' => '宽带手机号', 'query_type' => 'eq', 'control_type' => 'text', 'value' => 'broadband-user_id-user-id,id,username,User/refer', ), 'cat_id' => array ( 'title' => '类别', 'query_type' => 'eq', 'control_type' => 'refer', 'value' => 'broadband-cat_id-broadband_cat-id,id,name,Broadband_cat/refer', ), 'start_date' => array ( 'title' => '安装日期', 'query_type' => 'between', 'control_type' => 'date', 'value' => 'broadband-cat_id-broadband_cat-id,id,name,Broadband_cat/refer', ), 'end_date' => array ( 'title' => '结束日期', 'query_type' => 'between', 'control_type' => 'date', 'value' => 'broadband-cat_id-broadband_cat-id,id,name,Broadband_cat/refer', ), 'use_during' => array ( 'title' => '使用时长', 'query_type' => 'eq', 'control_type' => 'digit', 'value' => 'broadband-cat_id-broadband_cat-id,id,name,Broadband_cat/refer', ), 'cost' => array ( 'title' => '安装费用', 'query_type' => 'eq', 'control_type' => 'digit', 'value' => 'broadband-cat_id-broadband_cat-id,id,name,Broadband_cat/refer', ), 'manager' => array ( 'title' => '发展人', 'query_type' => 'eq', 'control_type' => 'digit', 'value' => 'broadband-cat_id-broadband_cat-id,id,name,Broadband_cat/refer', ), ), 'Log' => array ( 'ip' => array ( 'title' => 'IP', 'query_type' => 'like', 'control_type' => 'text', 'value' => NULL, ), 'update_user' => array ( 'title' => '用户', 'query_type' => 'eq', 'control_type' => 'refer', 'value' => 'log-update_user-user-id,id,username,User/refer', ), 'update_time' => array ( 'title' => '时间', 'query_type' => 'between', 'control_type' => 'text', 'value' => 'log-update_user-user-id,id,username,User/refer', ), ), 'Account' => array ( ), 'Cron' => array ( ), 'User_role' => array ( 'uid' => array ( 'title' => '用户', 'query_type' => 'eq', 'control_type' => 'refer', 'value' => 'user_role-uid-user-id,id,username,User/refer', ), 'rid' => array ( 'title' => '角色', 'query_type' => 'eq', 'control_type' => 'refer', 'value' => 'user_role-rid-role-id,id,name,Role/refer', ), 'status' => array ( 'title' => '状态', 'query_type' => 'eq', 'control_type' => 'text', 'value' => 'user_role-rid-role-id,id,name,Role/refer', ), ), 'Article' => array ( ), 'Attachment' => array ( ), 'Broadband_cat' => array ( ), 'Comments' => array ( ), 'Passport' => array ( ), 'Test' => array ( ), 'Topic' => array ( ), 'User_profile' => array ( ), ), );?>

0 commit comments

Comments
 (0)