index.php 1.3 KB

123456789101112131415161718192021222324252627282930
  1. <?php
  2. $altCfg = $ubillingConfig->getAlter();
  3. if ($altCfg['DEALWITHIT_ENABLED']) {
  4. if (cfr('DEALWITHIT')) {
  5. $dealWithIt = new DealWithIt();
  6. $controls = wf_Link('?module=report_dealwithit', wf_img('skins/dealwithitsmall.png') . ' ' . __('Available Held jobs for all users'), false, 'ubButton');
  7. $controls.= wf_Link('?module=report_dealwithit&history=true', wf_img('skins/icon_calendar.gif') . ' ' . __('History'), false, 'ubButton');
  8. $controls.= wf_Link('?module=pl_dealwithit', wf_img('skins/icon_dealwithit_cron.png') . ' ' . __('Bulk creation of tasks'), false, 'ubButton');
  9. show_window('', $controls);
  10. if (wf_CheckGet(array('history'))) {
  11. //json reply
  12. if (wf_CheckGet(array('ajax'))) {
  13. $dealWithIt->AjaxDataTasksHistory();
  14. }
  15. show_window(__('Scheduler history'),$dealWithIt->renderTasksHistoryAjax());
  16. } else {
  17. //json reply
  18. if (wf_CheckGet(array('ajax'))) {
  19. $dealWithIt->AjaxDataTasksList();
  20. }
  21. show_window(__('Available Held jobs for all users'), $dealWithIt->renderTasksListAjax());
  22. }
  23. } else {
  24. show_error(__('Access denied'));
  25. }
  26. } else {
  27. show_error(__('This module is disabled'));
  28. }
  29. ?>