form.php 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. <?php
  2. global $lang;
  3. $config->user->form = new stdclass();
  4. $config->user->form->create = array();
  5. $config->user->form->create['type'] = array('required' => true, 'type' => 'string', 'default' => 'inside');
  6. $config->user->form->create['company'] = array('required' => false, 'type' => 'int', 'default' => 0);
  7. $config->user->form->create['new'] = array('required' => false, 'type' => 'int', 'default' => 0);
  8. $config->user->form->create['newCompany'] = array('required' => false, 'type' => 'string', 'default' => '');
  9. $config->user->form->create['dept'] = array('required' => false, 'type' => 'int', 'default' => 0);
  10. $config->user->form->create['account'] = array('required' => true, 'type' => 'string', 'default' => '');
  11. $config->user->form->create['password1'] = array('required' => true, 'type' => 'string', 'default' => '');
  12. $config->user->form->create['password2'] = array('required' => true, 'type' => 'string', 'default' => '');
  13. $config->user->form->create['visions'] = array('required' => true, 'type' => 'array', 'default' => [], 'filter' => 'join');
  14. $config->user->form->create['realname'] = array('required' => true, 'type' => 'string', 'default' => '');
  15. $config->user->form->create['join'] = array('required' => false, 'type' => 'date', 'default' => null);
  16. $config->user->form->create['role'] = array('required' => false, 'type' => 'string', 'default' => '');
  17. $config->user->form->create['group'] = array('required' => false, 'type' => 'array', 'default' => []);
  18. $config->user->form->create['email'] = array('required' => false, 'type' => 'string', 'default' => '');
  19. $config->user->form->create['commiter'] = array('required' => false, 'type' => 'string', 'default' => '');
  20. $config->user->form->create['gender'] = array('required' => false, 'type' => 'string', 'default' => '');
  21. $config->user->form->create['verifyPassword'] = array('required' => true, 'type' => 'string', 'default' => '');
  22. $config->user->form->create['passwordLength'] = array('required' => false, 'type' => 'int', 'default' => 0);
  23. $config->user->form->create['passwordStrength'] = array('required' => false, 'type' => 'int', 'default' => 0);
  24. $config->user->form->batchCreate = array();
  25. $config->user->form->batchCreate['type'] = array('required' => true, 'type' => 'string', 'default' => 'inside');
  26. $config->user->form->batchCreate['dept'] = array('required' => false, 'type' => 'int', 'default' => 0);
  27. $config->user->form->batchCreate['company'] = array('required' => false, 'type' => 'int', 'default' => 0);
  28. $config->user->form->batchCreate['new'] = array('required' => false, 'type' => 'int', 'default' => 0);
  29. $config->user->form->batchCreate['newCompany'] = array('required' => false, 'type' => 'string', 'default' => '');
  30. $config->user->form->batchCreate['account'] = array('required' => true, 'type' => 'string', 'default' => '', 'base' => true);
  31. $config->user->form->batchCreate['realname'] = array('required' => true, 'type' => 'string', 'default' => '');
  32. $config->user->form->batchCreate['visions'] = array('required' => true, 'type' => 'array', 'default' => [], 'filter' => 'join');
  33. $config->user->form->batchCreate['role'] = array('required' => false, 'type' => 'string', 'default' => '');
  34. $config->user->form->batchCreate['group'] = array('required' => false, 'type' => 'array', 'default' => []);
  35. $config->user->form->batchCreate['email'] = array('required' => false, 'type' => 'string', 'default' => '');
  36. $config->user->form->batchCreate['commiter'] = array('required' => false, 'type' => 'string', 'default' => '');
  37. $config->user->form->batchCreate['gender'] = array('required' => false, 'type' => 'string', 'default' => '');
  38. $config->user->form->batchCreate['passwordfield'] = array('required' => true, 'type' => 'string', 'default' => '');
  39. $config->user->form->batchCreate['join'] = array('required' => false, 'type' => 'date', 'default' => null);
  40. $config->user->form->batchCreate['mobile'] = array('required' => false, 'type' => 'string', 'default' => '');
  41. $config->user->form->batchCreate['phone'] = array('required' => false, 'type' => 'string', 'default' => '');
  42. $config->user->form->batchCreate['qq'] = array('required' => false, 'type' => 'string', 'default' => '');
  43. $config->user->form->batchCreate['dingding'] = array('required' => false, 'type' => 'string', 'default' => '');
  44. $config->user->form->batchCreate['weixin'] = array('required' => false, 'type' => 'string', 'default' => '');
  45. $config->user->form->batchCreate['skype'] = array('required' => false, 'type' => 'string', 'default' => '');
  46. $config->user->form->batchCreate['whatsapp'] = array('required' => false, 'type' => 'string', 'default' => '');
  47. $config->user->form->batchCreate['slack'] = array('required' => false, 'type' => 'string', 'default' => '');
  48. $config->user->form->batchCreate['address'] = array('required' => false, 'type' => 'string', 'default' => '');
  49. $config->user->form->batchCreate['zipcode'] = array('required' => false, 'type' => 'string', 'default' => '');
  50. $config->user->form->edit = array();
  51. $config->user->form->edit['type'] = array('required' => true, 'type' => 'string', 'default' => 'inside');
  52. $config->user->form->edit['company'] = array('required' => false, 'type' => 'int', 'default' => 0);
  53. $config->user->form->edit['new'] = array('required' => false, 'type' => 'int', 'default' => 0);
  54. $config->user->form->edit['newCompany'] = array('required' => false, 'type' => 'string', 'default' => '');
  55. $config->user->form->edit['dept'] = array('required' => false, 'type' => 'int', 'default' => 0);
  56. $config->user->form->edit['account'] = array('required' => true, 'type' => 'string', 'default' => '');
  57. $config->user->form->edit['password1'] = array('required' => false, 'type' => 'string', 'default' => '');
  58. $config->user->form->edit['password2'] = array('required' => false, 'type' => 'string', 'default' => '');
  59. $config->user->form->edit['visions'] = array('required' => true, 'type' => 'array', 'default' => [], 'filter' => 'join');
  60. $config->user->form->edit['realname'] = array('required' => true, 'type' => 'string', 'default' => '');
  61. $config->user->form->edit['join'] = array('required' => false, 'type' => 'date', 'default' => null);
  62. $config->user->form->edit['role'] = array('required' => false, 'type' => 'string', 'default' => '');
  63. $config->user->form->edit['group'] = array('required' => false, 'type' => 'array', 'default' => []);
  64. $config->user->form->edit['email'] = array('required' => false, 'type' => 'string', 'default' => '');
  65. $config->user->form->edit['gender'] = array('required' => false, 'type' => 'string', 'default' => '');
  66. $config->user->form->edit['commiter'] = array('required' => false, 'type' => 'string', 'default' => '');
  67. $config->user->form->edit['mobile'] = array('required' => false, 'type' => 'string', 'default' => '');
  68. $config->user->form->edit['phone'] = array('required' => false, 'type' => 'string', 'default' => '');
  69. $config->user->form->edit['qq'] = array('required' => false, 'type' => 'string', 'default' => '');
  70. $config->user->form->edit['dingding'] = array('required' => false, 'type' => 'string', 'default' => '');
  71. $config->user->form->edit['weixin'] = array('required' => false, 'type' => 'string', 'default' => '');
  72. $config->user->form->edit['skype'] = array('required' => false, 'type' => 'string', 'default' => '');
  73. $config->user->form->edit['whatsapp'] = array('required' => false, 'type' => 'string', 'default' => '');
  74. $config->user->form->edit['slack'] = array('required' => false, 'type' => 'string', 'default' => '');
  75. $config->user->form->edit['address'] = array('required' => false, 'type' => 'string', 'default' => '');
  76. $config->user->form->edit['zipcode'] = array('required' => false, 'type' => 'string', 'default' => '');
  77. $config->user->form->edit['verifyPassword'] = array('required' => true, 'type' => 'string', 'default' => '');
  78. $config->user->form->edit['passwordLength'] = array('required' => false, 'type' => 'int', 'default' => 0);
  79. $config->user->form->edit['passwordStrength'] = array('required' => false, 'type' => 'int', 'default' => 0);
  80. $config->user->form->batchEdit = array();
  81. $config->user->form->batchEdit['dept'] = array('required' => false, 'type' => 'int', 'width' => '200px', 'name' => 'dept', 'label' => $lang->user->dept, 'control' => array('control' => 'picker', 'required' => true), 'default' => 0, 'ditto' => true, 'defaultDitto' => 'off');
  82. $config->user->form->batchEdit['company'] = array('required' => false, 'type' => 'int', 'width' => '200px', 'name' => 'company', 'label' => $lang->user->company, 'control' => 'picker', 'default' => 0);
  83. $config->user->form->batchEdit['account'] = array('required' => true, 'type' => 'string', 'width' => '140px', 'name' => 'account', 'label' => $lang->user->account, 'control' => 'text', 'default' => '', 'readonly' => true, 'base' => true);
  84. $config->user->form->batchEdit['realname'] = array('required' => true, 'type' => 'string', 'width' => '96px', 'name' => 'realname', 'label' => $lang->user->realname, 'control' => 'text', 'default' => '');
  85. $config->user->form->batchEdit['visions'] = array('required' => true, 'type' => 'array', 'width' => '240px', 'name' => 'visions', 'label' => $lang->user->visions, 'control' => 'picker', 'default' => [], 'multiple' => true, 'filter' => 'join');
  86. $config->user->form->batchEdit['role'] = array('required' => false, 'type' => 'string', 'width' => '160px', 'name' => 'role', 'label' => $lang->user->role, 'control' => 'picker', 'default' => '', 'ditto' => true, 'defaultDitto' => 'off', 'items' => $lang->user->roleList);
  87. $config->user->form->batchEdit['email'] = array('required' => false, 'type' => 'string', 'width' => '160px', 'name' => 'email', 'label' => $lang->user->email, 'control' => 'text', 'default' => '');
  88. $config->user->form->batchEdit['gender'] = array('required' => false, 'type' => 'string', 'width' => '100px', 'name' => 'gender', 'label' => $lang->user->gender, 'control' => array('control' => 'radioList', 'inline' => true), 'default' => 'm', 'items' => $lang->user->genderList);
  89. $config->user->form->batchEdit['commiter'] = array('required' => false, 'type' => 'string', 'width' => '120px', 'name' => 'commiter', 'label' => $lang->user->commiter, 'control' => 'text', 'default' => '');
  90. $config->user->form->batchEdit['join'] = array('required' => false, 'type' => 'date', 'width' => '120px', 'name' => 'join', 'label' => $lang->user->join, 'control' => 'date', 'default' => '');
  91. $config->user->form->batchEdit['mobile'] = array('required' => false, 'type' => 'string', 'width' => '120px', 'name' => 'mobile', 'label' => $lang->user->mobile, 'control' => 'text', 'default' => '');
  92. $config->user->form->batchEdit['phone'] = array('required' => false, 'type' => 'string', 'width' => '120px', 'name' => 'phone', 'label' => $lang->user->phone, 'control' => 'text', 'default' => '');
  93. $config->user->form->batchEdit['qq'] = array('required' => false, 'type' => 'string', 'width' => '120px', 'name' => 'qq', 'label' => $lang->user->qq, 'control' => 'text', 'default' => '');
  94. $config->user->form->batchEdit['dingding'] = array('required' => false, 'type' => 'string', 'width' => '120px', 'name' => 'dingding', 'label' => $lang->user->dingding, 'control' => 'text', 'default' => '');
  95. $config->user->form->batchEdit['weixin'] = array('required' => false, 'type' => 'string', 'width' => '120px', 'name' => 'weixin', 'label' => $lang->user->weixin, 'control' => 'text', 'default' => '');
  96. $config->user->form->batchEdit['skype'] = array('required' => false, 'type' => 'string', 'width' => '120px', 'name' => 'skype', 'label' => $lang->user->skype, 'control' => 'text', 'default' => '');
  97. $config->user->form->batchEdit['whatsapp'] = array('required' => false, 'type' => 'string', 'width' => '120px', 'name' => 'whatsapp', 'label' => $lang->user->whatsapp, 'control' => 'text', 'default' => '');
  98. $config->user->form->batchEdit['slack'] = array('required' => false, 'type' => 'string', 'width' => '120px', 'name' => 'slack', 'label' => $lang->user->slack, 'control' => 'text', 'default' => '');
  99. $config->user->form->batchEdit['address'] = array('required' => false, 'type' => 'string', 'width' => '160px', 'name' => 'address', 'label' => $lang->user->address, 'control' => 'text', 'default' => '');
  100. $config->user->form->batchEdit['zipcode'] = array('required' => false, 'type' => 'string', 'width' => '120px', 'name' => 'zipcode', 'label' => $lang->user->zipcode, 'control' => 'text', 'default' => '');
  101. $config->user->form->reset = array();
  102. $config->user->form->reset['account'] = array('required' => true, 'type' => 'string', 'default' => '');
  103. $config->user->form->reset['password1'] = array('required' => true, 'type' => 'string', 'default' => '');
  104. $config->user->form->reset['password2'] = array('required' => true, 'type' => 'string', 'default' => '');
  105. $config->user->form->reset['passwordLength'] = array('required' => false, 'type' => 'int', 'default' => 0);
  106. $config->user->form->reset['passwordStrength'] = array('required' => false, 'type' => 'int', 'default' => 0);
  107. $config->user->form->forgetPassword = array();
  108. $config->user->form->forgetPassword['account'] = array('required' => true, 'type' => 'string', 'default' => '');
  109. $config->user->form->forgetPassword['email'] = array('required' => true, 'type' => 'string', 'default' => '');
  110. $config->user->form->resetPassword = array();
  111. $config->user->form->resetPassword['password1'] = array('required' => true, 'type' => 'string', 'default' => '');
  112. $config->user->form->resetPassword['password2'] = array('required' => true, 'type' => 'string', 'default' => '');
  113. $config->user->form->resetPassword['passwordLength'] = array('required' => false, 'type' => 'int', 'default' => 0);
  114. $config->user->form->resetPassword['passwordStrength'] = array('required' => false, 'type' => 'int', 'default' => 0);
  115. $config->user->form->cropAvatar = array();
  116. $config->user->form->cropAvatar['originWidth'] = array('required' => false, 'type' => 'int', 'default' => 0);
  117. $config->user->form->cropAvatar['originHeight'] = array('required' => false, 'type' => 'int', 'default' => 0);
  118. $config->user->form->cropAvatar['scaleWidth'] = array('required' => false, 'type' => 'int', 'default' => 0);
  119. $config->user->form->cropAvatar['scaleHeight'] = array('required' => false, 'type' => 'int', 'default' => 0);
  120. $config->user->form->cropAvatar['width'] = array('required' => false, 'type' => 'int', 'default' => 0);
  121. $config->user->form->cropAvatar['height'] = array('required' => false, 'type' => 'int', 'default' => 0);
  122. $config->user->form->cropAvatar['left'] = array('required' => false, 'type' => 'int', 'default' => 0);
  123. $config->user->form->cropAvatar['top'] = array('required' => false, 'type' => 'int', 'default' => 0);
  124. $config->user->form->cropAvatar['right'] = array('required' => false, 'type' => 'int', 'default' => 0);
  125. $config->user->form->cropAvatar['bottom'] = array('required' => false, 'type' => 'int', 'default' => 0);
  126. $config->user->form->cropAvatar['scaled'] = array('required' => false, 'type' => 'bool', 'default' => false);
  127. $config->user->form->ajaxSaveTemplate = array();
  128. $config->user->form->ajaxSaveTemplate['type'] = array('required' => false, 'type' => 'string', 'default' => '');
  129. $config->user->form->ajaxSaveTemplate['title'] = array('required' => false, 'type' => 'string', 'default' => '');
  130. $config->user->form->ajaxSaveTemplate['content'] = array('required' => false, 'type' => 'editor', 'default' => '');
  131. $config->user->form->ajaxSaveTemplate['public'] = array('required' => false, 'type' => 'int', 'default' => 0);