zhaopin.php 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. <?php
  2. $group = function()
  3. {
  4. $array = array();
  5. $info = Dever::db('main/group')->state();
  6. if($info)
  7. {
  8. $array += $info;
  9. }
  10. return $array;
  11. };
  12. $type = array
  13. (
  14. 1 => '全职',
  15. 2 => '兼职',
  16. );
  17. $config = array
  18. (
  19. # 表名
  20. 'name' => 'zhaopin',
  21. # 显示给用户看的名称
  22. 'lang' => '招聘信息',
  23. # 后台菜单排序
  24. 'order' => 1,
  25. 'config_type' => $type,
  26. # 数据结构
  27. 'struct' => array
  28. (
  29. 'id' => array
  30. (
  31. 'type' => 'int-11',
  32. 'name' => 'ID',
  33. 'default' => '',
  34. 'desc' => '',
  35. 'match' => 'is_numeric',
  36. //'search' => 'order',
  37. //'list' => true,
  38. 'order' => 'desc',
  39. ),
  40. 'name' => array
  41. (
  42. 'type' => 'varchar-80',
  43. 'name' => '职位名称',
  44. 'default' => '',
  45. 'desc' => '职位名称',
  46. 'match' => 'is_string',
  47. 'update' => 'text',
  48. 'search' => 'fulltext',
  49. 'list' => true,
  50. ),
  51. 'group_id' => array
  52. (
  53. 'type' => 'int-11',
  54. 'name' => '所属部门',
  55. 'default' => '1',
  56. 'desc' => '所属部门',
  57. 'match' => 'is_numeric',
  58. 'update' => 'select',
  59. 'option' => $group,
  60. 'search' => 'select',
  61. 'list' => true,
  62. ),
  63. 'type' => array
  64. (
  65. 'type' => 'int-11',
  66. 'name' => '职位类型',
  67. 'default' => '1',
  68. 'desc' => '职位类型',
  69. 'match' => 'is_numeric',
  70. 'update' => 'radio',
  71. 'option' => $type,
  72. 'search' => 'select',
  73. 'list' => true,
  74. ),
  75. 'area' => array
  76. (
  77. 'type' => 'varchar-80',
  78. 'name' => '所在地区',
  79. 'default' => '',
  80. 'desc' => '所在地区',
  81. 'match' => 'is_string',
  82. 'update' => 'text',
  83. ),
  84. 'desc' => array
  85. (
  86. 'type' => 'text-255',
  87. 'name' => '岗位描述',
  88. 'default' => '',
  89. 'desc' => '岗位描述',
  90. 'match' => 'is_string',
  91. 'update' => 'editor',
  92. 'key' => 1,
  93. ),
  94. 'content' => array
  95. (
  96. 'type' => 'text-255',
  97. 'name' => '任职要求',
  98. 'default' => '',
  99. 'desc' => '任职要求',
  100. 'match' => 'is_string',
  101. 'update' => 'editor',
  102. 'key' => 1,
  103. ),
  104. 'reorder' => array
  105. (
  106. 'type' => 'int-11',
  107. 'name' => '排序(数值越大越靠前)',
  108. 'default' => '1',
  109. 'desc' => '请输入排序',
  110. 'match' => 'option',
  111. 'update' => 'text',
  112. 'search' => 'order',
  113. 'list' => true,
  114. 'order' => 'desc',
  115. 'edit' => true,
  116. ),
  117. 'state' => array
  118. (
  119. 'type' => 'tinyint-1',
  120. 'name' => '状态',
  121. 'default' => '1',
  122. 'desc' => '请选择状态',
  123. 'match' => 'is_numeric',
  124. ),
  125. 'cdate' => array
  126. (
  127. 'type' => 'int-11',
  128. 'name' => '录入时间',
  129. 'match' => array('is_numeric', time()),
  130. 'desc' => '',
  131. # 只有insert时才生效
  132. 'insert' => true,
  133. 'list' => 'date("Y-m-d H:i:s", {cdate})',
  134. ),
  135. ),
  136. 'manage' => array
  137. (
  138. 'button' => array
  139. (
  140. '部门管理' => array('list', 'group&oper_parent=zhaopin&oper_project=main'),
  141. ),
  142. ),
  143. 'request' => array
  144. (
  145. )
  146. );
  147. return $config;