view.html.php 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. <?php
  2. /**
  3. * The view file of marketreport module of ZenTaoPMS.
  4. *
  5. * @copyright Copyright 2009-2015 禅道软件(青岛)有限公司(ZenTao Software (Qingdao) Co., Ltd. www.cnezsoft.com)
  6. * @license ZPL(http://zpl.pub/page/zplv12.html) or AGPL(https://www.gnu.org/licenses/agpl-3.0.en.html)
  7. * @author Deqing Chai <chaideqing@easycorp.ltd>
  8. * @package marketreport
  9. * @version $Id: view.html.php 4808 2023-08-28 09:48:13Z zhujinyonging@gmail.com $
  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/kindeditor.html.php';?>
  15. <div id="mainMenu" class="clearfix">
  16. <div class="btn-toolbar pull-left">
  17. <?php if(!isonlybody()):?>
  18. <?php echo html::a($browseLink, '<i class="icon icon-back icon-sm"></i> ' . $lang->goback, '', "class='btn btn-secondary'");?>
  19. <div class="divider"></div>
  20. <?php endif;?>
  21. <div class="page-title">
  22. <span class="label label-id"><?php echo $report->id?></span>
  23. <span class="text" title='<?php echo $report->name;?>'><?php echo $report->name;?></span>
  24. <?php if($report->deleted):?>
  25. <span class='label label-danger'><?php echo $lang->marketreport->deleted;?></span>
  26. <?php else:?>
  27. <?php if($report->status == 'published'):?>
  28. <span class='label label-success'><?php echo $lang->marketreport->statusList['published'];?></span>
  29. <?php elseif($report->status == 'draft'):?>
  30. <span class='label label-info'><?php echo $lang->marketreport->statusList['draft'];?></span>
  31. <?php endif;?>
  32. <?php endif;?>
  33. </div>
  34. </div>
  35. <?php if(!isonlybody()):?>
  36. <div class="btn-toolbar pull-right">
  37. <?php
  38. $link = $this->createLink('marketreport', 'create', "marketID={$this->session->marketID}");
  39. if(common::hasPriv('marketreport', 'create')) echo html::a($link, "<i class='icon icon-plus'></i> {$lang->marketreport->create}", '', "class='btn btn-primary'");
  40. ?>
  41. </div>
  42. <?php endif;?>
  43. </div>
  44. <?php if($this->app->getViewType() == 'xhtml'):?>
  45. <div id="scrollContent">
  46. <?php endif;?>
  47. <div id="mainContent" class="main-row">
  48. <div class="main-col col-8">
  49. <div class="cell">
  50. <div class="detail0">
  51. <div class="detail-title"><?php echo $lang->marketreport->legendBasic;?></div>
  52. <div class="detail-content">
  53. <table class="table table-borderless table-data">
  54. <tbody>
  55. <tr>
  56. <th class="thwidth"><?php echo $lang->marketreport->market;?></th>
  57. <td><?php echo empty($report->market) ? '' : html::a(helper::createLink('market', 'view', "marketID=$report->market"), zget($marketList, $report->market, ''));?></td>
  58. </tr>
  59. <tr>
  60. <th><?php echo $lang->marketreport->source;?></th>
  61. <td><?php echo zget($lang->marketreport->sourceList, $report->source, '');?></td>
  62. </tr>
  63. <?php if($report->source == 'inside'):?>
  64. <tr>
  65. <th><?php echo $lang->marketreport->research;?></th>
  66. <td><?php echo empty($report->research) ? '' : html::a(helper::createLink('marketresearch', 'task', "researchID=$report->research"), zget($researchList, $report->research, ''));?></td>
  67. </tr>
  68. <tr>
  69. <th><?php echo $lang->marketreport->owner;?></th>
  70. <td><?php echo zget($users, $report->owner);?></td>
  71. </tr>
  72. <tr>
  73. <th><?php echo $lang->marketreport->participants;?></th>
  74. <td><?php echo $report->participants;?></td>
  75. </tr>
  76. <?php endif;?>
  77. <tr>
  78. <th><?php echo $lang->marketreport->desc;?></th>
  79. <td>
  80. <div class="report-desc">
  81. <?php echo $report->desc;?>
  82. </div>
  83. </td>
  84. </tr>
  85. </tbody>
  86. </table>
  87. </div>
  88. </div>
  89. <?php
  90. echo $this->fetch('marketreport', 'printcardfiles', array('files' => $report->files, 'fieldset' => 'true', 'object' => $report, 'method' => 'view', 'showDelete' => true));
  91. $canBeChanged = common::canBeChanged('marketreport', $report);
  92. if($canBeChanged) $actionFormLink = $this->createLink('action', 'comment', "objectType=marketreport&objectID=$report->id");
  93. ?>
  94. </div>
  95. <div class='main-actions'>
  96. <div class="btn-toolbar">
  97. <?php if(!isonlybody() and $this->app->getViewType() != 'xhtml'):?>
  98. <?php echo html::a($browseLink, '<i class="icon icon-back icon-sm"></i> ' . $lang->goback, '', "class='btn'");?>
  99. <?php echo "<div class='divider'></div>";?>
  100. <?php endif;?>
  101. <?php echo $this->marketreport->buildOperateMenu($report, 'view', $fromMarket);?>
  102. </div>
  103. </div>
  104. </div>
  105. <div class="side-col col-4">
  106. <?php if($this->app->getViewType() != 'xhtml'):?>
  107. <div class="cell"><?php include $app->getModuleRoot() . 'common/view/action.html.php';?></div>
  108. <?php endif;?>
  109. </div>
  110. </div>
  111. <?php if($this->app->getViewType() == 'xhtml'):?>
  112. </div>
  113. <?php endif;?>
  114. <script>
  115. </script>
  116. <?php include $app->getModuleRoot() . 'common/view/syntaxhighlighter.html.php';?>
  117. <?php include $app->getModuleRoot() . 'common/view/footer.html.php';?>