company_qiquan.php 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <?php
  2. # 常用的col
  3. $col = '*';
  4. return array
  5. (
  6. # 表名
  7. 'name' => 'company_qiquan',
  8. # 显示给用户看的名称
  9. 'lang' => '期权类型配置',
  10. 'order' => -100,
  11. 'menu' => false,
  12. # 数据结构
  13. 'struct' => array
  14. (
  15. 'id' => array
  16. (
  17. 'type' => 'int-11',
  18. 'name' => 'ID',
  19. 'default' => '',
  20. 'desc' => '',
  21. 'match' => 'is_numeric',
  22. 'list' => true,
  23. ),
  24. 'company_id' => array
  25. (
  26. 'type' => 'int-11',
  27. 'name' => '所属公司',
  28. 'default' => '-1',
  29. 'desc' => '所属公司',
  30. 'match' => 'is_numeric',
  31. 'update' => 'hidden',
  32. 'value' => Dever::input('search_option_company_id'),
  33. //'list' => true,
  34. ),
  35. 'name' => array
  36. (
  37. 'type' => 'varchar-80',
  38. 'name' => '期权类型名称',
  39. 'default' => '',
  40. 'desc' => '期权类型名称',
  41. 'match' => 'is_string',
  42. 'update' => 'text',
  43. 'list' => true,
  44. 'search' => 'fulltext',
  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. 'list' => 'date("Y-m-d H:i", {cdate})',
  63. ),
  64. ),
  65. 'default' => array
  66. (
  67. 'col' => 'id,name,company_id,state,cdate',
  68. 'value' => array
  69. (
  70. '1,"期权", 1, 1,' . DEVER_TIME,
  71. '2,"原始期权", 1, 1,' . DEVER_TIME,
  72. ),
  73. ),
  74. # 管理功能
  75. 'manage' => array
  76. (
  77. ),
  78. 'request' => array
  79. (
  80. ),
  81. );