formdata.php 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. global $app, $lang;
  3. $config->webhook->form = new stdclass();
  4. $config->webhook->form->create = array();
  5. $config->webhook->form->create['type'] = array('type' => 'string', 'control' => 'picker', 'required' => false, 'default' => '', 'options' => $lang->webhook->typeList);
  6. $config->webhook->form->create['name'] = array('type' => 'string', 'control' => 'text', 'required' => true, 'default' => '', 'filter' => 'trim');
  7. $config->webhook->form->create['url'] = array('type' => 'string', 'control' => 'text', 'required' => false, 'default' => '', 'filter' => 'trim');
  8. $config->webhook->form->create['secret'] = array('type' => 'string', 'control' => 'text', 'required' => false, 'default' => '', 'filter' => 'trim');
  9. $config->webhook->form->create['agentId'] = array('type' => 'string', 'control' => 'text', 'required' => false, 'default' => '', 'filter' => 'trim');
  10. $config->webhook->form->create['appKey'] = array('type' => 'string', 'control' => 'text', 'required' => false, 'default' => '', 'filter' => 'trim');
  11. $config->webhook->form->create['appSecret'] = array('type' => 'string', 'control' => 'text', 'required' => false, 'default' => '', 'filter' => 'trim');
  12. $config->webhook->form->create['wechatCorpId'] = array('type' => 'string', 'control' => 'text', 'required' => false, 'default' => '', 'filter' => 'trim');
  13. $config->webhook->form->create['wechatCorpSecret'] = array('type' => 'string', 'control' => 'text', 'required' => false, 'default' => '', 'filter' => 'trim');
  14. $config->webhook->form->create['wechatAgentId'] = array('type' => 'string', 'control' => 'text', 'required' => false, 'default' => '', 'filter' => 'trim');
  15. $config->webhook->form->create['feishuAppId'] = array('type' => 'string', 'control' => 'text', 'required' => false, 'default' => '', 'filter' => 'trim');
  16. $config->webhook->form->create['feishuAppSecret'] = array('type' => 'string', 'control' => 'text', 'required' => false, 'default' => '', 'filter' => 'trim');
  17. $config->webhook->form->create['domain'] = array('type' => 'string', 'control' => 'text', 'required' => false, 'default' => '', 'filter' => 'trim');
  18. $config->webhook->form->create['sendType'] = array('type' => 'string', 'control' => 'picker', 'required' => false, 'default' => 'sync', 'options' => $lang->webhook->sendTypeList);
  19. $config->webhook->form->create['products'] = array('type' => 'array', 'control' => 'picker', 'required' => false, 'default' => '', 'filter' => 'join', 'multiple' => true);
  20. $config->webhook->form->create['executions'] = array('type' => 'array', 'control' => 'picker', 'required' => false, 'default' => '', 'filter' => 'join', 'multiple' => true);
  21. $config->webhook->form->create['params'] = array('type' => 'array', 'control' => 'checkList', 'required' => false, 'default' => '', 'options' => $lang->webhook->paramsList, 'width' => 'full', 'inline' => true);
  22. $config->webhook->form->create['desc'] = array('type' => 'string', 'control' => 'editor', 'required' => false, 'default' => '', 'width' => 'full');
  23. $config->webhook->form->edit = array();
  24. $config->webhook->form->edit['type'] = array('type' => 'string', 'control' => 'hidden', 'required' => false, 'default' => '');
  25. $config->webhook->form->edit['name'] = array('type' => 'string', 'control' => 'text', 'required' => true, 'default' => '', 'filter' => 'trim');
  26. $config->webhook->form->edit['url'] = array('type' => 'string', 'control' => 'text', 'required' => true, 'default' => '', 'filter' => 'trim');
  27. $config->webhook->form->edit['secret'] = array('type' => 'string', 'control' => 'text', 'required' => false, 'default' => '', 'filter' => 'trim');
  28. $config->webhook->form->edit['agentId'] = array('type' => 'string', 'control' => 'text', 'required' => false, 'default' => '', 'filter' => 'trim');
  29. $config->webhook->form->edit['appKey'] = array('type' => 'string', 'control' => 'text', 'required' => false, 'default' => '', 'filter' => 'trim');
  30. $config->webhook->form->edit['appSecret'] = array('type' => 'string', 'control' => 'text', 'required' => false, 'default' => '', 'filter' => 'trim');
  31. $config->webhook->form->edit['wechatCorpId'] = array('type' => 'string', 'control' => 'text', 'required' => false, 'default' => '', 'filter' => 'trim');
  32. $config->webhook->form->edit['wechatCorpSecret'] = array('type' => 'string', 'control' => 'text', 'required' => false, 'default' => '', 'filter' => 'trim');
  33. $config->webhook->form->edit['wechatAgentId'] = array('type' => 'string', 'control' => 'text', 'required' => false, 'default' => '', 'filter' => 'trim');
  34. $config->webhook->form->edit['feishuAppId'] = array('type' => 'string', 'control' => 'text', 'required' => false, 'default' => '', 'filter' => 'trim');
  35. $config->webhook->form->edit['feishuAppSecret'] = array('type' => 'string', 'control' => 'text', 'required' => false, 'default' => '', 'filter' => 'trim');
  36. $config->webhook->form->edit['domain'] = array('type' => 'string', 'control' => 'text', 'required' => false, 'default' => '', 'filter' => 'trim');
  37. $config->webhook->form->edit['sendType'] = array('type' => 'string', 'control' => 'picker', 'required' => false, 'default' => '', 'options' => $lang->webhook->sendTypeList);
  38. $config->webhook->form->edit['products'] = array('type' => 'array', 'control' => 'picker', 'required' => false, 'default' => '', 'filter' => 'join', 'multiple' => true);
  39. $config->webhook->form->edit['executions'] = array('type' => 'array', 'control' => 'picker', 'required' => false, 'default' => '', 'filter' => 'join', 'multiple' => true);
  40. $config->webhook->form->edit['params'] = array('type' => 'array', 'control' => 'checkList', 'required' => false, 'default' => '', 'options' => $lang->webhook->paramsList, 'width' => 'full', 'inline' => true);
  41. $config->webhook->form->edit['desc'] = array('type' => 'string', 'control' => 'editor', 'required' => false, 'default' => '', 'width' => 'full');