browse.html.php 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <?php
  2. /**
  3. * The browse view file of workflowreport 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 workflowreport
  9. * @version $Id$
  10. * @link http://www.zdoo.com
  11. */
  12. ?>
  13. <?php include '../../workflow/view/header.html.php';?>
  14. <?php include $app->getModuleRoot() . 'common/view/sortable.html.php';?>
  15. <?php include $app->getModuleRoot() . 'common/view/chart.html.php';?>
  16. <?php js::set('reportSize', sizeof($reports));?>
  17. <?php js::set('moduleName', $module);?>
  18. <?php js::set('id', $id);?>
  19. <div class='space space-sm'></div>
  20. <div class='main-row'>
  21. <div class='side-col'>
  22. <?php include '../../workflow/view/side.html.php';?>
  23. </div>
  24. <div class='main-col'>
  25. <div class="row">
  26. <div class="col-md-7">
  27. <div class="panel">
  28. <div class="panel-heading">
  29. <strong><?php echo $lang->workflowreport->preview;?></strong>
  30. </div>
  31. <div class="panel-body text-center" style="max-height: 726px;">
  32. <div class='noReport'>
  33. <?php
  34. echo $lang->workflowreport->tips->noReport;
  35. extCommonModel::printLink('workflowreport', 'create', "module=$flow->module", $lang->workflowreport->tips->toCreate, "data-toggle='modal'");
  36. ?>
  37. </div>
  38. <div class='existReport'></div>
  39. </div>
  40. </div>
  41. </div>
  42. <div class="col-md-5">
  43. <div class="panel">
  44. <div class="panel-heading">
  45. <strong><?php echo $lang->workflowreport->property;?></strong>
  46. <div class="panel-actions pull-right">
  47. <?php extCommonModel::printLink('workflowreport', 'create', "module=$flow->module", '<i class="icon-plus"> </i> ' . $lang->workflowreport->create, "class='btn btn-primary' data-toggle='modal'");?>
  48. </div>
  49. </div>
  50. <div class="panel-body main-table">
  51. <table class="table">
  52. <thead>
  53. <tr>
  54. <th class='w-70px text-center'> <?php echo $lang->sort;?></th>
  55. <th><?php echo $lang->workflowreport->name;?></th>
  56. <th class='w-100px'><?php echo $lang->workflowreport->type;?></th>
  57. <th class='w-100px text-center'><?php echo $lang->actions;?></th>
  58. </tr>
  59. </thead>
  60. <tbody class='sortable' id='reportList'>
  61. <?php foreach($reports as $report):?>
  62. <tr data-id='<?php echo $report->id;?>'>
  63. <td class='sort-handler text-center'><i class='icon icon-move text-muted'></i></td>
  64. <td title='<?php echo $report->name;?>'><?php echo $report->name;?></td>
  65. <td><?php echo zget($lang->workflowreport->typeList, $report->type, '');?></td>
  66. <td class='actions'>
  67. <?php
  68. extCommonModel::printLink('workflowreport', 'edit', "id=$report->id", $lang->edit, "class='edit' data-toggle='modal'");
  69. extCommonModel::printLink('workflowreport', 'delete', "id=$report->id", $lang->delete, "class='deleter'");
  70. ?>
  71. </td>
  72. </tr>
  73. <?php endforeach;?>
  74. </tbody>
  75. </table>
  76. </div>
  77. </div>
  78. </div>
  79. </div>
  80. </div>
  81. <?php include $app->getModuleRoot() . 'common/view/footer.html.php';?>