import.php 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <?php
  2. return array
  3. (
  4. # 表名
  5. 'name' => 'import',
  6. # 显示给用户看的名称
  7. 'lang' => '导入',
  8. 'menu' => false,
  9. 'end' => array
  10. (
  11. 'insert' => 'upload/lib/manage.import',
  12. ),
  13. # 数据结构
  14. 'struct' => array
  15. (
  16. 'id' => array
  17. (
  18. 'type' => 'int-11',
  19. 'name' => 'ID',
  20. 'default' => '',
  21. 'desc' => '',
  22. 'match' => 'is_numeric',
  23. 'search' => 'order',
  24. 'list' => true,
  25. ),
  26. 'file' => array
  27. (
  28. 'type' => 'varchar-150',
  29. 'name' => '选择导入文件',
  30. 'default' => '',
  31. 'desc' => '选择导入文件',
  32. 'match' => 'option',
  33. 'update' => 'upload',
  34. 'key' => Dever::input('key', 4),
  35. ),
  36. 'call' => array
  37. (
  38. 'type' => 'varchar-800',
  39. 'name' => 'call',
  40. 'default' => '',
  41. 'desc' => '选择导入文件',
  42. 'match' => 'option',
  43. 'update' => 'hidden',
  44. 'value' => Dever::input('call'),
  45. ),
  46. 'state' => array
  47. (
  48. 'type' => 'tinyint-1',
  49. 'name' => '状态',
  50. 'default' => '1',
  51. 'desc' => '请选择状态',
  52. 'match' => 'is_numeric',
  53. ),
  54. 'cdate' => array
  55. (
  56. 'type' => 'int-11',
  57. 'name' => '创建时间',
  58. 'match' => array('is_numeric', time()),
  59. 'desc' => '',
  60. # 只有insert时才生效
  61. 'insert' => true,
  62. //'search' => 'date',
  63. 'list' => 'date("Y-m-d H:i:s", {cdate})',
  64. ),
  65. ),
  66. 'manage' => array
  67. (
  68. //'excel' => true,
  69. //'delete' => false,
  70. //'edit' => false,
  71. //'insert' => false,
  72. ),
  73. );