member_parent.php 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <?php
  2. $mid = Dever::input('mid');
  3. $desc = '';
  4. if ($mid) {
  5. $desc = '当前上级' . Dever::load('agent/lib/member')->getInfoString($mid);
  6. }
  7. return array
  8. (
  9. # 表名
  10. 'name' => 'member_parent',
  11. # 显示给用户看的名称
  12. 'lang' => '代理上级',
  13. 'menu' => false,
  14. 'end' => array
  15. (
  16. 'insert' => 'agent/lib/manage.setParent_commit',
  17. 'update' => 'agent/lib/manage.setParent_commit',
  18. ),
  19. # 数据结构
  20. 'struct' => array
  21. (
  22. 'id' => array
  23. (
  24. 'type' => 'int-11',
  25. 'name' => 'ID',
  26. 'default' => '',
  27. 'desc' => '',
  28. 'match' => 'is_numeric',
  29. 'search' => 'order',
  30. //'list' => true,
  31. ),
  32. 'mid' => array
  33. (
  34. 'type' => 'int-11',
  35. 'name' => '代理商',
  36. 'default' => '-1',
  37. 'desc' => '代理商',
  38. 'match' => 'is_string',
  39. 'update' => 'hidden',
  40. 'value' => $mid,
  41. ),
  42. 'parent_mobile' => array
  43. (
  44. 'type' => 'bigint-11',
  45. 'name' => '输入上级手机号-<font style="color:red">请谨慎操作,归属的上级不能与当前代理商同一团队,否则会影响归属后的业绩数据</font>',
  46. 'default' => '',
  47. 'desc' => '邀请人',
  48. 'match' => 'is_string',
  49. 'update' => 'text',
  50. ),
  51. 'state' => array
  52. (
  53. 'type' => 'tinyint-1',
  54. 'name' => '状态',
  55. 'default' => '1',
  56. 'desc' => '请选择状态',
  57. 'match' => 'is_numeric',
  58. ),
  59. 'cdate' => array
  60. (
  61. 'type' => 'int-11',
  62. 'name' => '申请时间',
  63. 'match' => array('is_numeric', time()),
  64. 'desc' => '',
  65. # 只有insert时才生效
  66. //'insert' => true,
  67. 'search' => 'date',
  68. 'list' => 'date("Y-m-d H:i:s", {cdate})',
  69. ),
  70. ),
  71. 'manage' => array
  72. (
  73. 'desc' => $desc,
  74. ),
  75. 'request' => array
  76. (
  77. ),
  78. );