supply_area.php 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <?php
  2. /*
  3. |--------------------------------------------------------------------------
  4. | supply_area.php 供应地域关联表
  5. |--------------------------------------------------------------------------
  6. */
  7. return array
  8. (
  9. # 表名
  10. 'name' => 'supply_area',
  11. # 显示给用户看的名称
  12. 'lang' => '供应地域关联表',
  13. 'menu' => false,
  14. # 数据结构
  15. 'struct' => array
  16. (
  17. 'id' => array
  18. (
  19. 'type' => 'int-11',
  20. 'name' => 'ID',
  21. 'default' => '',
  22. 'desc' => '',
  23. 'match' => 'is_numeric',
  24. 'search' => 'order',
  25. //'list' => true,
  26. ),
  27. 'supply_id' => array
  28. (
  29. 'type' => 'int-11',
  30. 'name' => '供应ID',
  31. 'default' => '',
  32. 'desc' => '供应ID',
  33. 'match' => 'is_numeric',
  34. 'update' => 'text',
  35. 'list' => true,
  36. ),
  37. 'area_id' => array
  38. (
  39. 'type' => 'int-11',
  40. 'name' => '地域ID',
  41. 'default' => '',
  42. 'desc' => '地域ID',
  43. 'match' => 'is_numeric',
  44. 'update' => 'text',
  45. 'list' => true,
  46. ),
  47. 'cdate' => array
  48. (
  49. 'type' => 'int-11',
  50. 'name' => '录入时间',
  51. 'match' => array('is_numeric', DEVER_TIME),
  52. 'desc' => '',
  53. # 只有insert时才生效
  54. 'insert' => true,
  55. 'list' => 'date("Y-m-d H:i:s", {cdate})',
  56. ),
  57. ),
  58. 'manage' => array
  59. (
  60. 'delete' => false,
  61. 'edit' => false,
  62. 'insert' => false,
  63. ),
  64. );