config.php 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <?php
  2. return array
  3. (
  4. # 表名
  5. 'name' => 'config',
  6. # 显示给用户看的名称
  7. 'lang' => '新增认证码',
  8. 'order' => 1,
  9. 'menu' => false,
  10. 'end' => array
  11. (
  12. 'update' => 'code/lib/manage.create',
  13. 'insert' => 'code/lib/manage.create',
  14. ),
  15. # 数据结构
  16. 'struct' => array
  17. (
  18. 'id' => array
  19. (
  20. 'type' => 'int-11',
  21. 'name' => '系统ID',
  22. 'default' => '',
  23. 'desc' => '',
  24. 'match' => 'is_numeric',
  25. 'value' => Dever::input('where_id'),
  26. ),
  27. 'product' => array
  28. (
  29. 'type' => 'varchar-200',
  30. 'name' => '选择课程',
  31. 'default' => '',
  32. 'desc' => '选择课程',
  33. 'search' => 'linkage',
  34. 'update' => 'linkage',//多级联动 用于搜索
  35. 'option' => Dever::url('lib/manage.search_cate_course', 'course'),
  36. ),
  37. 'product_id' => array
  38. (
  39. 'type' => 'int-11',
  40. 'name' => '选择课程',
  41. 'default' => '',
  42. 'desc' => '选择课程',
  43. 'match' => 'option',
  44. //'update' => 'select',
  45. //'update_search' => 'journal/lib/manage.search_journal',
  46. ),
  47. 'num' => array
  48. (
  49. 'type' => 'varchar-32',
  50. 'name' => '认证码数量',
  51. 'default' => '',
  52. 'desc' => '认证码数量',
  53. 'match' => 'is_string',
  54. 'update' => 'text',
  55. 'value' => '',
  56. ),
  57. 'cdate' => array
  58. (
  59. 'type' => 'int-11',
  60. 'name' => '录入时间',
  61. 'match' => array('is_numeric', time()),
  62. 'desc' => '',
  63. # 只有insert时才生效
  64. 'insert' => true,
  65. ),
  66. ),
  67. 'manage' => array
  68. (
  69. # 后台管理不要列表页
  70. 'list' => 'update',
  71. ),
  72. );