action.php 5.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <?php
  2. global $lang;
  3. $config->demand->actionList = array();
  4. $config->demand->actionList['change']['icon'] = 'alter';
  5. $config->demand->actionList['change']['text'] = $lang->demand->change;
  6. $config->demand->actionList['change']['hint'] = $lang->demand->change;
  7. $config->demand->actionList['change']['url'] = array('module' => 'demand', 'method' => 'change', 'params' => 'demandID={id}');
  8. $config->demand->actionList['change']['class'] = 'demand-change-btn';
  9. $config->demand->actionList['submitReview']['icon'] = 'confirm';
  10. $config->demand->actionList['submitReview']['text'] = $lang->demand->submitReview;
  11. $config->demand->actionList['submitReview']['hint'] = $lang->demand->submitReview;
  12. $config->demand->actionList['submitReview']['url'] = array('module' => 'demand', 'method' => 'submitReview', 'params' => 'demandID={id}');
  13. $config->demand->actionList['submitReview']['data-toggle'] = 'modal';
  14. $config->demand->actionList['review']['icon'] = 'search';
  15. $config->demand->actionList['review']['text'] = $lang->demand->review;
  16. $config->demand->actionList['review']['hint'] = $lang->demand->review;
  17. $config->demand->actionList['review']['url'] = array('module' => 'demand', 'method' => 'review', 'params' => 'demandID={id}');
  18. $config->demand->actionList['review']['class'] = 'demand-review-btn';
  19. $config->demand->actionList['recall']['icon'] = 'undo';
  20. $config->demand->actionList['recall']['text'] = $lang->demand->recall;
  21. $config->demand->actionList['recall']['hint'] = $lang->demand->recall;
  22. $config->demand->actionList['recall']['url'] = array('module' => 'demand', 'method' => 'recall', 'params' => 'demandID={id}');
  23. $config->demand->actionList['recall']['className'] = 'ajax-submit';
  24. $config->demand->actionList['distribute']['icon'] = 'sitemap';
  25. $config->demand->actionList['distribute']['text'] = $lang->demand->distribute;
  26. $config->demand->actionList['distribute']['hint'] = $lang->demand->distributeHint;
  27. $config->demand->actionList['distribute']['url'] = array('module' => 'demand', 'method' => 'distribute', 'params' => 'demandID={id}');
  28. $config->demand->actionList['distribute']['data-toggle'] = 'modal';
  29. $config->demand->actionList['distribute']['data-size'] = 'lg';
  30. $config->demand->actionList['edit']['icon'] = 'edit';
  31. $config->demand->actionList['edit']['text'] = $lang->demand->edit;
  32. $config->demand->actionList['edit']['hint'] = $lang->demand->edit;
  33. $config->demand->actionList['edit']['url'] = array('module' => 'demand', 'method' => 'edit', 'params' => 'demandID={id}');
  34. $config->demand->actionList['batchCreate']['icon'] = 'split';
  35. $config->demand->actionList['batchCreate']['text'] = $lang->demand->subdivide;
  36. $config->demand->actionList['batchCreate']['hint'] = $lang->demand->subdivideHint;
  37. $config->demand->actionList['batchCreate']['url'] = array('module' => 'demand', 'method' => 'batchCreate', 'params' => 'poolID={pool}&demandID={id}');
  38. $config->demand->actionList['close']['icon'] = 'off';
  39. $config->demand->actionList['close']['text'] = $lang->demand->close;
  40. $config->demand->actionList['close']['hint'] = $lang->demand->close;
  41. $config->demand->actionList['close']['url'] = array('module' => 'demand', 'method' => 'close', 'params' => 'demandID={id}');
  42. $config->demand->actionList['close']['data-toggle'] = 'modal';
  43. $config->demand->actionList['activate']['icon'] = 'magic';
  44. $config->demand->actionList['activate']['text'] = $lang->demand->activate;
  45. $config->demand->actionList['activate']['hint'] = $lang->demand->activate;
  46. $config->demand->actionList['activate']['url'] = array('module' => 'demand', 'method' => 'activate', 'params' => 'demandID={id}');
  47. $config->demand->actionList['activate']['data-toggle'] = 'modal';
  48. $config->demand->actionList['copy']['icon'] = 'copy';
  49. $config->demand->actionList['copy']['text'] = $lang->demand->copy;
  50. $config->demand->actionList['copy']['hint'] = $lang->demand->copy;
  51. $config->demand->actionList['copy']['url'] = array('module' => 'demand', 'method' => 'create', 'params' => 'poolID={pool}&demandID={id}');
  52. $config->demand->actionList['delete']['icon'] = 'trash';
  53. $config->demand->actionList['delete']['text'] = $lang->demand->delete;
  54. $config->demand->actionList['delete']['hint'] = $lang->demand->delete;
  55. $config->demand->actionList['delete']['url'] = array('module' => 'demand', 'method' => 'delete', 'params' => 'demandID={id}');
  56. $config->demand->actionList['delete']['className'] = 'ajax-submit';
  57. $config->demand->actionList['delete']['data-confirm'] = array('message' => $lang->demand->confirmDelete, 'icon' => 'icon-exclamation-sign', 'iconClass' => 'warning-pale rounded-full icon-2x');
  58. $config->demand->actionList['delete']['notInModal'] = true;
  59. $config->demand->actionList['processDemandChange']['icon'] = 'ok';
  60. $config->demand->actionList['processDemandChange']['text'] = $lang->demand->processDemandChange;
  61. $config->demand->actionList['processDemandChange']['hint'] = $lang->demand->processDemandChange;
  62. $config->demand->actionList['processDemandChange']['url'] = array('module' => 'demand', 'method' => 'processDemandChange', 'params' => 'demandID={id}');
  63. $config->demand->actions = new stdclass();
  64. $config->demand->actions->view = array();
  65. $config->demand->actions->view['mainActions'] = array('change', 'submitReview', 'review', 'recall', 'distribute', 'batchCreate', 'close', 'activate');
  66. $config->demand->actions->view['suffixActions'] = array('edit', 'copy', 'delete');