report.html.php 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <?php
  2. /**
  3. * The report view file of flow module of ZDOO.
  4. *
  5. * @copyright Copyright 2009-2020 青岛易软天创网络科技有限公司(QingDao Nature Easy Soft Network Technology Co,LTD, www.cnezsoft.com)
  6. * @license ZPL (http://zpl.pub/page/zplv12.html)
  7. * @author Dongdong Jia <jiadongdong@easycorp.ltd>
  8. * @package flow
  9. * @version $Id$
  10. * @link http://www.zdoo.com
  11. */
  12. ?>
  13. <?php include $app->getModuleRoot() . 'common/view/header.html.php';?>
  14. <?php include $app->getModuleRoot() . 'common/view/chart.html.php';?>
  15. <?php js::set('moduleName', $flow->module);?>
  16. <?php js::set('buildin', $flow->buildin);?>
  17. <?php js::set('chartData', $chartData);?>
  18. <div class='main-row'>
  19. <div class='side-col col-3'>
  20. <div class='panel panel-sm'>
  21. <div class='panel-heading'><strong><?php echo $lang->workflowreport->select;?></strong></div>
  22. <div class='panel-body'>
  23. <form method='post' action='<?php echo $this->createLink($flow->module, 'report');?>'>
  24. <?php echo html::checkBox('reports', $reportPairs, $checkedReports, '', 'block');?>
  25. <p><?php echo html::selectAll() . html::submitButton($lang->workflowreport->generate);?></p>
  26. </form>
  27. </div>
  28. </div>
  29. </div>
  30. <div class='main-col col-9'>
  31. <div class='panel panel-sm'>
  32. <div class='panel-heading'>
  33. <strong><?php echo $lang->workflowreport->report;?></strong>
  34. <span class='text-warning'><?php echo $lang->workflowreport->tips->source;?></span>
  35. </div>
  36. <table class='table active-disabled'>
  37. <?php foreach($charts as $chart):?>
  38. <tr class='text-top'>
  39. <td>
  40. <div class='chart-wrapper text-center' style="position: relative;">
  41. <h5><?php echo $chart->name;?></h5>
  42. <div class='chart-canvas'>
  43. <?php if($chart->type != 'pie'):?>
  44. <div class="legend <?php echo $chart->type;?>-legend"></div>
  45. <?php endif;?>
  46. <canvas id='chart-<?php echo $chart->id;?>' data-type='<?php echo $chart->type;?>' data-legend='<?php echo $chart->legend;?>' data-displaytype='<?php echo $chart->displayType;?>' width='<?php echo $config->flow->report->width;?>' height='<?php echo $config->flow->report->height;?>' data-responsive='true'></canvas>
  47. </div>
  48. <?php if($chart->type == 'pie'):?>
  49. <div class="legend pie-legend scrollbar-hover"></div>
  50. <?php endif;?>
  51. </div>
  52. </td>
  53. </tr>
  54. <?php endforeach;?>
  55. </table>
  56. </div>
  57. </div>
  58. </div>
  59. <?php include $app->getModuleRoot() . 'common/view/footer.html.php';?>