zentaomax.php 2.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. global $lang;
  3. $config->user->form->create['superior'] = array('required' => false, 'type' => 'string', 'default' => '');
  4. $config->user->form->edit['superior'] = array('required' => false, 'type' => 'string', 'default' => '');
  5. $tableField = array();
  6. foreach($config->user->form->batchCreate as $key => $field)
  7. {
  8. $tableField[$key] = $field;
  9. if($key == 'role') $tableField['superior'] = array('required' => false, 'type' => 'string', 'width' => '120px', 'name' => 'superior', 'label' => $lang->user->superior, 'control' => 'picker', 'items' => array());
  10. }
  11. $config->user->form->batchCreate = $tableField;
  12. $tableField = array();
  13. foreach($config->user->form->batchEdit as $key => $field)
  14. {
  15. $tableField[$key] = $field;
  16. if($key == 'role') $tableField['superior'] = array('required' => false, 'type' => 'string', 'width' => '120px', 'name' => 'superior', 'label' => $lang->user->superior, 'control' => 'picker', 'items' => array());
  17. }
  18. $config->user->form->batchEdit = $tableField;
  19. $config->user->listFields = 'dept,role,superior,gender,type';
  20. $config->user->templateFields = 'account,realname,dept,gender,type,role,superior,join,email,phone,mobile,weixin,qq,address';
  21. $config->user->export->listFields = explode(',', "dept,role,superior,gender,type");;
  22. $config->user->export->templateFields = explode(',', "account,realname,dept,gender,type,role,superior,join,email,phone,mobile,weixin,qq,address");;
  23. $config->user->list->customBatchCreateFields .= ',superior';
  24. $config->user->list->customBatchEditFields .= ',superior';
  25. $config->user->list->exportFields = 'id,account,realname,dept,gender,type,group,role,superior,join,email,phone,mobile,weixin,qq,address';
  26. $config->user->list->importFields = 'id,account,realname,dept,vision,type,group,role,superior,email,gender,password,join,phone,mobile,weixin,qq,address';;
  27. if(!isset($config->user->batchAppendFields)) $config->user->batchAppendFields = '';
  28. $config->user->batchAppendFields .= ',superior';