view.html.php 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. <?php include $app->getModuleRoot() . 'common/view/header.html.php';?>
  2. <?php include $app->getModuleRoot() . 'common/view/kindeditor.html.php';?>
  3. <style>
  4. .card-container {display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px 20px; background-color: unset;}
  5. .card {position: relative; border-radius: 4px;}
  6. .card::before {content: ' '; display: block; padding-bottom: 56.25%;}
  7. .con {display: flex; justify-content: center; align-items: center; position: absolute; top: 0; bottom: 0; left: 0; right: 0;}
  8. .title {color: white; display: inline-block; text-align: left; padding: 0 20px; max-height: 100%; overflow: hidden; text-overflow: ellipsis;}
  9. .card-container li {list-style-type: none;}
  10. .item li.file {padding: 10px 10px 0px 10px;}
  11. .right-icon {padding-left: 6px;}
  12. .item li.file a span { display: inline-block;height: 1.2em;overflow: hidden;line-height: 1.2;}
  13. .label-primary.label-outline {border: none; font-size: 12px; font-weight: 600;}
  14. </style>
  15. <div id="mainContent" class="main-row">
  16. <div class="main-col col-12">
  17. <div class="cell">
  18. <div class="detail">
  19. <div class="detail-title">
  20. <?php echo $market->name;?>
  21. <span class="label label-released label-primary label-outline"><?php echo zget($lang->market->strategyList, $market->strategy);?></span>
  22. <?php if($market->deleted):?>
  23. <span class='label label-danger'><?php echo $lang->market->deleted;?></span>
  24. <?php endif; ?>
  25. </div>
  26. <div class="detail-content article-content">
  27. <?php echo !empty($market->desc) ? $market->desc : "<div class='text-center text-muted'>" . $lang->noData . '</div>';?>
  28. </div>
  29. </div>
  30. <div class="detail">
  31. <div class="detail-content">
  32. <table class="table table-data data-basic">
  33. <tbody>
  34. <tr>
  35. <th><?php echo $lang->market->industry;?></th>
  36. <td><strong><?php echo $market->industry;?></strong></td>
  37. <th><?php echo $lang->market->scale;?></th>
  38. <td><strong><?php echo $market->scale != 0 ? $market->scale . " " . $lang->market->hundredMillion : '';?></strong></td>
  39. <th></th>
  40. <td></td>
  41. </tr>
  42. <tr>
  43. <th><?php echo $lang->market->maturity;?></th>
  44. <td><strong><?php echo zget($lang->market->maturityList, $market->maturity);?></strong></td>
  45. <th><?php echo $lang->market->speed;?></th>
  46. <td><strong><?php echo zget($lang->market->speedList, $market->speed);?></strong></td>
  47. </tr>
  48. <tr>
  49. <th><?php echo $lang->market->competition;?></th>
  50. <td><strong><?php echo zget($lang->market->competitionList, $market->competition);?></strong></td>
  51. <th><?php echo $lang->market->ppm;?></th>
  52. <td><strong><?php echo zget($lang->market->ppmList, $market->ppm);?></strong></td>
  53. </tr>
  54. </tbody>
  55. </table>
  56. </div>
  57. </div>
  58. </div>
  59. <?php if($reportGroup):?>
  60. <?php $canView = common::hasPriv('marketreport', 'view');?>
  61. <?php foreach($reportGroup as $researchName => $reports):?>
  62. <div class="cell">
  63. <div class="detail">
  64. <div class="detail-title"><?php echo $researchName;?></div>
  65. <div class="detail-content">
  66. <div class="card-container cards cards-borderless">
  67. <?php foreach($reports as $report):?>
  68. <div class="item">
  69. <a href="<?php echo $canView ? $this->createLink('marketreport', 'view', "id=$report->id&fromMarket=$report->market") : 'javascript:void(0)';?>" title="<?php echo $report->name;?>">
  70. <div class="card bg-primary">
  71. <div class="con">
  72. <h2 class="title"><?php echo $report->name;?></h2>
  73. </div>
  74. </div>
  75. </a>
  76. <div>
  77. <span class="right-icon">
  78. <?php common::printIcon('marketreport', 'edit', "id=$report->id", $report, 'list', 'pencil-alt', '', 'btn-link text-primary');?>
  79. <?php common::printIcon('marketreport', 'delete', "id=$report->id", $report, 'list', 'trash', 'hiddenwin', 'btn-link text-primary');?>
  80. </span>
  81. </div>
  82. </div>
  83. <?php endforeach;?>
  84. </div>
  85. </div>
  86. </div>
  87. </div>
  88. <?php endforeach;?>
  89. <?php endif;?>
  90. <?php $actionFormLink = $this->createLink('action', 'comment', "objectType=market&objectID=$market->id");?>
  91. <div class="cell"><?php include $app->getModuleRoot() . 'common/view/action.html.php';?></div>
  92. <div class='main-actions'>
  93. <div class="btn-toolbar">
  94. <?php common::printBack(inlink('browse'));?>
  95. <div class='divider'></div>
  96. <?php echo $this->market->buildOperateViewMenu($market);?>
  97. </div>
  98. </div>
  99. </div>
  100. </div>
  101. <?php include $app->getModuleRoot() . 'common/view/footer.html.php';?>