show.html.php 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <?php
  2. /**
  3. * The show view file of report module of ZenTaoPMS.
  4. *
  5. * @copyright Copyright 2009-2014 QingDao Nature Easy Soft Network Technology Co,LTD (www.cnezsoft.com)
  6. * @license LGPL (http://www.gnu.org/licenses/lgpl.html)
  7. * @author Yidong Wang <yidong@cnezsoft.com>
  8. * @package report
  9. * @version $Id$
  10. * @link http://www.zentao.net
  11. */
  12. ?>
  13. <?php include $app->getModuleRoot() . 'common/view/header.html.php';?>
  14. <?php include $app->getModuleRoot() . 'common/view/datatable.html.php';?>
  15. <?php if(strpos($report->module, 'product') !== false || strpos($report->module, 'project') !== false || strpos($report->module, 'test') !== false):?>
  16. <style>#mainContent > .side-col.col-lg{width: 235px;}</style>
  17. <?php endif;?>
  18. <?php if(strpos($report->module, 'staff') !== false):?>
  19. <style>#mainContent > .side-col.col-lg{width: 210px;}</style>
  20. <?php endif;?>
  21. <style>.hide-sidebar #sidebar{width: 0 !important}</style>
  22. <div id='mainContent' class='main-row'>
  23. <div class='side-col col-lg' id='sidebar'>
  24. <?php include './blockreportlist.html.php'?>
  25. </div>
  26. <div class='main-col'>
  27. <?php if($setVars):?>
  28. <div class="cell">
  29. <div class="with-padding">
  30. <form method='post'>
  31. <div class="table-row" id='conditions'>
  32. <?php include 'setvarvalues.html.php';?>
  33. <div class='col-md-3 col-sm-6'><?php echo html::submitButton($lang->crystal->query, '', 'btn btn-primary');?></div>
  34. </div>
  35. </form>
  36. </div>
  37. </div>
  38. <?php endif;?>
  39. <?php if(!empty($dataList) and isset($step)):?>
  40. <div class='cell'>
  41. <div class='panel'>
  42. <div class="panel-heading">
  43. <div class="panel-title">
  44. <?php echo $title;?>
  45. <?php
  46. $desc = json_decode($report->desc, true);
  47. $clientLang = $this->app->getClientLang();
  48. if(!empty($desc[$clientLang])):
  49. ?>
  50. <?php
  51. /* Replace project or product by workflow. */
  52. $desc[$clientLang] = $this->report->replace4Workflow($desc[$clientLang]);
  53. ?>
  54. <a data-toggle='tooltip' title='<?php echo $desc[$clientLang];?>'><i class='icon-help'></i></a>
  55. <?php endif;?>
  56. </div>
  57. <?php if(common::hasPriv('report', 'crystalExport')):?>
  58. <nav class="panel-actions btn-toolbar">
  59. <?php echo html::a($this->createLink('report', 'crystalExport', "step=$step&reportID=$reportID"), $lang->export, '', "data-width='600' class='export btn btn-primary btn-sm'")?>
  60. </nav>
  61. <?php endif;?>
  62. </div>
  63. <div class='panel-body' style='padding:0px;'><?php include 'reportdata.html.php';?> </div>
  64. <?php if($step == 1):?>
  65. <div class='panel-footer'><?php printf($lang->crystal->noticeResult, count($dataList), count($dataList))?></div>
  66. <?php endif;?>
  67. </div>
  68. </div>
  69. <?php else:?>
  70. <div class="cell">
  71. <div class="table-empty-tip">
  72. <p><span class="text-muted"><?php echo $lang->error->noData;?></span></p>
  73. </div>
  74. </div>
  75. <?php endif;?>
  76. </div>
  77. </div>
  78. <?php include $app->getModuleRoot() . 'common/view/footer.html.php';?>