money.php 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. <?php
  2. return array
  3. (
  4. # 表名
  5. 'name' => 'money',
  6. # 显示给用户看的名称
  7. 'lang' => '法定货币设置',
  8. # 是否显示在后台菜单
  9. 'info' => '排序最大的货币是默认主用货币',
  10. 'order' => -1,
  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. 'list' => true,
  22. 'order' => 'asc',
  23. ),
  24. 'name' => array
  25. (
  26. 'type' => 'varchar-150',
  27. 'name' => '货币名称',
  28. 'default' => '',
  29. 'desc' => '货币名称',
  30. 'match' => 'is_string',
  31. 'update' => 'text',
  32. 'search' => 'fulltext',
  33. 'list' => true,
  34. 'edit' => true,
  35. ),
  36. 'code' => array
  37. (
  38. 'type' => 'varchar-150',
  39. 'name' => '货币代码-如中文就是CNY',
  40. 'default' => '',
  41. 'desc' => '货币代码',
  42. 'match' => 'is_string',
  43. 'update' => 'text',
  44. 'search' => 'fulltext',
  45. 'list' => true,
  46. 'edit' => true,
  47. ),
  48. 'reorder' => array
  49. (
  50. 'type' => 'int-11',
  51. 'name' => '排序(数值越大越靠前)',
  52. 'default' => '1',
  53. 'desc' => '请输入排序',
  54. 'match' => 'option',
  55. //'update' => 'text',
  56. 'search' => 'order',
  57. 'list_name' => '排序',
  58. 'list' => true,
  59. 'order' => 'desc',
  60. 'edit' => true,
  61. ),
  62. 'state' => array
  63. (
  64. 'type' => 'tinyint-1',
  65. 'name' => '状态',
  66. 'default' => '1',
  67. 'desc' => '请选择状态',
  68. 'match' => 'is_numeric',
  69. ),
  70. 'cdate' => array
  71. (
  72. 'type' => 'int-11',
  73. 'name' => '录入时间',
  74. 'match' => array('is_numeric', time()),
  75. 'desc' => '',
  76. # 只有insert时才生效
  77. 'insert' => true,
  78. //'search' => 'date',
  79. //'list' => 'date("Y-m-d H:i:s", {cdate})',
  80. ),
  81. ),
  82. 'manage' => array
  83. (
  84. ),
  85. 'default' => array
  86. (
  87. 'col' => 'name,code,state,cdate',
  88. 'value' => array
  89. (
  90. '"人民币","CNY", 1,' . DEVER_TIME,
  91. ),
  92. ),
  93. 'request' => array
  94. (
  95. )
  96. );