view.html.php 4.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <?php include $app->getModuleRoot() . 'common/view/header.html.php';?>
  2. <?php include $app->getModuleRoot() . 'common/view/kindeditor.html.php';?>
  3. <div id="mainMenu" class="clearfix">
  4. <div class="btn-toolbar pull-left">
  5. <?php if(!isonlybody()):?>
  6. <?php echo html::a(inlink('browse'), '<i class="icon icon-back icon-sm"></i> ' . $lang->goback, '', "class='btn btn-secondary'");?>
  7. <div class="divider"></div>
  8. <?php endif;?>
  9. <div class="page-title">
  10. <span class="label label-id"><?php echo $demandpool->id?></span>
  11. <span class="text" title='<?php echo $demandpool->name;?>'><?php echo $demandpool->name;?></span>
  12. <?php if($demandpool->deleted):?>
  13. <span class='label label-danger'><?php echo $lang->demandpool->deleted;?></span>
  14. <?php endif; ?>
  15. </div>
  16. </div>
  17. </div>
  18. <div id="mainContent" class="main-row">
  19. <div class="main-col col-8">
  20. <div class="cell">
  21. <div class="detail">
  22. <div class="detail-title"><?php echo $lang->demandpool->desc;?></div>
  23. <div class="detail-content article-content">
  24. <?php echo !empty($demandpool->desc) ? $demandpool->desc : "<div class='text-center text-muted'>" . $lang->noData . '</div>';?>
  25. </div>
  26. </div>
  27. <?php echo $this->fetch('file', 'printFiles', array('files' => $demandpool->files, 'fieldset' => 'true', 'object' => $demandpool));?>
  28. <?php $actionFormLink = $this->createLink('action', 'comment', "objectType=demandpool&objectID=$demandpool->id");?>
  29. </div>
  30. <div class="cell"><?php include $app->getModuleRoot() . 'common/view/action.html.php';?></div>
  31. <div class='main-actions'>
  32. <div class="btn-toolbar">
  33. <?php common::printBack(inlink('browse'));?>
  34. <div class='divider'></div>
  35. <?php
  36. if($demandpool->status == 'normal') common::printIcon('demandpool', 'close', "demandpoolID=$demandpool->id", $demandpool, 'button', 'off', '', 'iframe', true);
  37. if($demandpool->status == 'closed') common::printIcon('demandpool', 'activate', "demandpoolID=$demandpool->id", $demandpool, 'button', 'magic', '', 'iframe', true);
  38. common::printIcon('demandpool', 'edit', "demandpoolID=$demandpool->id", $demandpool, 'button');
  39. common::printIcon('demandpool', 'delete', "demandpoolID=$demandpool->id", $demandpool, 'button', 'trash', 'hiddenwin');
  40. ?>
  41. </div>
  42. </div>
  43. </div>
  44. <div class="side-col col-4">
  45. <div class="cell">
  46. <div class="detail">
  47. <div class="detail-title"><?php echo $lang->demandpool->basicInfo;?></div>
  48. <div class='detail-content'>
  49. <table class='table table-data'>
  50. <tbody>
  51. <tr>
  52. <th class='w-100px'><?php echo $lang->demandpool->owner;?></th>
  53. <td><?php foreach(explode(',', $demandpool->owner) as $user) echo zget($users, $user, '') . ' ';?></td>
  54. </tr>
  55. <tr>
  56. <th class='w-100px'><?php echo $lang->demandpool->reviewer;?></th>
  57. <td><?php foreach(explode(',', $demandpool->reviewer) as $user) echo zget($users, $user, '') . ' ';?></td>
  58. </tr>
  59. <tr>
  60. <th><?php echo $lang->demandpool->status;?></th>
  61. <td><?php echo zget($lang->demandpool->statusList, $demandpool->status, '');?></td>
  62. </tr>
  63. <tr>
  64. <th class='bindproduct'><?php echo $lang->demandpool->products;?></th>
  65. <td>
  66. <?php
  67. $productList = '';
  68. foreach(explode(',', $demandpool->products) as $product) $productList .= "<p>" . zget($products, $product, '') . "</p>";
  69. echo $productList;
  70. ?>
  71. </td>
  72. </tr>
  73. <tr>
  74. <th><?php echo $lang->demandpool->acl;?></th>
  75. <td><?php echo zget($lang->demandpool->aclList, $demandpool->acl, '');?></td>
  76. </tr>
  77. <tr>
  78. <th><?php echo $lang->demandpool->createdBy;?></th>
  79. <td><?php echo zget($users, $demandpool->createdBy, '');?></td>
  80. </tr>
  81. <tr>
  82. <th><?php echo $lang->demandpool->createdDate;?></th>
  83. <td><?php echo $demandpool->createdDate;?></td>
  84. </tr>
  85. </tbody>
  86. </table>
  87. </div>
  88. </div>
  89. </div>
  90. </div>
  91. </div>
  92. <?php include $app->getModuleRoot() . 'common/view/footer.html.php';?>