zhaopin.php 3.9 KB

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