user_money_sign.php 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <?php
  2. $status = array
  3. (
  4. 1 => array('name' => '待入账', 'style' => 'font-weight:bold;color:#436EEE'),
  5. 2 => array('name' => '已入账', 'style' => 'font-weight:bold;color:green'),
  6. 3 => array('name' => '已作废', 'style' => 'font-weight:bold;color:#CD3700'),
  7. );
  8. return array
  9. (
  10. # 表名
  11. 'name' => 'use_money_sign',
  12. # 显示给用户看的名称
  13. 'lang' => '用户资金流水',
  14. 'order' => 99,
  15. 'menu' => false,
  16. # 数据结构
  17. 'struct' => array
  18. (
  19. 'id' => array
  20. (
  21. 'type' => 'int-11',
  22. 'name' => 'ID',
  23. 'default' => '',
  24. 'desc' => '',
  25. 'match' => 'is_numeric',
  26. 'search' => 'order',
  27. //'list' => true,
  28. ),
  29. 'uid' => array
  30. (
  31. 'type' => 'int-11',
  32. 'name' => '用户信息',
  33. 'default' => '-1',
  34. 'desc' => '用户信息',
  35. 'match' => 'is_string',
  36. 'update' => 'text',
  37. 'list' =>'Dever::load("shop/lib/money.showUser", {uid})',
  38. 'list_order' => 2,
  39. ),
  40. 'state' => array
  41. (
  42. 'type' => 'tinyint-1',
  43. 'name' => '状态',
  44. 'default' => '1',
  45. 'desc' => '请选择状态',
  46. 'match' => 'is_numeric',
  47. ),
  48. 'cdate' => array
  49. (
  50. 'type' => 'int-11',
  51. 'name' => '交易时间',
  52. 'match' => array('is_numeric', time()),
  53. 'desc' => '',
  54. # 只有insert时才生效
  55. 'insert' => true,
  56. 'search' => 'date',
  57. //'list_name' => '交易时间<br />审核时间',
  58. //'list' => 'Dever::load("bill/lib/cash.order_num#num", {id})',
  59. //'list_order' => 20,
  60. ),
  61. ),
  62. 'manage' => array
  63. (
  64. 'insert' => false,
  65. 'delete' => false,
  66. 'edit' => false,
  67. 'page_list' => 'user_money',
  68. ),
  69. 'request' => array
  70. (
  71. ),
  72. );