combine.php 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <?php
  2. return array
  3. (
  4. # 表名
  5. 'name' => 'combine',
  6. # 显示给用户看的名称
  7. 'lang' => '合并管理',
  8. # 后台菜单排序
  9. 'order' => 1,
  10. 'menu' => false,
  11. # 数据结构
  12. 'struct' => array
  13. (
  14. 'id' => array
  15. (
  16. 'type' => 'int-11',
  17. 'name' => 'ID',
  18. 'default' => '',
  19. 'desc' => '',
  20. 'match' => 'is_numeric',
  21. 'search' => 'order',
  22. 'list' => true,
  23. 'order' => 'desc',
  24. ),
  25. 'old_uid' => array
  26. (
  27. 'type' => 'int-11',
  28. 'name' => '旧的uid',
  29. 'default' => '',
  30. 'desc' => '旧的uid',
  31. 'match' => 'is_numeric',
  32. 'update' => 'text',
  33. 'list' => true,
  34. ),
  35. 'new_uid' => array
  36. (
  37. 'type' => 'int-11',
  38. 'name' => '新的uid',
  39. 'default' => '',
  40. 'desc' => '新的uid',
  41. 'match' => 'is_numeric',
  42. 'update' => 'text',
  43. 'list' => true,
  44. ),
  45. 'state' => array
  46. (
  47. 'type' => 'tinyint-1',
  48. 'name' => '状态',
  49. 'default' => '1',
  50. 'desc' => '请选择状态',
  51. 'match' => 'is_numeric',
  52. ),
  53. 'cdate' => array
  54. (
  55. 'type' => 'int-11',
  56. 'name' => '录入时间',
  57. 'match' => array('is_numeric', time()),
  58. 'desc' => '',
  59. # 只有insert时才生效
  60. 'insert' => true,
  61. 'list' => 'date("Y-m-d H:i:s", {cdate})',
  62. ),
  63. ),
  64. );