index.php 681 B

123456789101112131415161718
  1. <?php
  2. if (cfr('BUILDSREPORT')) {
  3. $buildReport = new ReportBuilds();
  4. if (ubRouting::checkGet($buildReport::ROUTE_AJLIST)) {
  5. $buildReport->renderAjBuildList();
  6. }
  7. show_window('', $buildReport->renderFiltersForm());
  8. if (!ubRouting::checkGet($buildReport::ROUTE_EXPORTS)) {
  9. $exportControls = wf_Link($buildReport::URL_ME . '&' . $buildReport::ROUTE_EXPORTS . '=true', web_icon_download(__('Export')));
  10. } else {
  11. $exportControls = wf_Link($buildReport::URL_ME, web_icon_search(__('Report')));
  12. }
  13. show_window(__('Builds report') . ' ' . $exportControls, $buildReport->renderBuilds());
  14. } else {
  15. show_error(__('Access denied'));
  16. }