browse.html.php 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <?php include $app->getModuleRoot() . 'common/view/header.html.php';?>
  2. <div id="mainMenu" class="clearfix">
  3. <div class='pull-right'>
  4. <?php if(common::canModify('project', $project)) common::printLink('cm', 'create', "project=$projectID", "<i class='icon icon-plus'></i>" . $lang->cm->create, '', "class='btn btn-primary'");?>
  5. </div>
  6. </div>
  7. <div id="mainContent" class="main-row fade in">
  8. <div class="main-col">
  9. <?php if(empty($baselines)):?>
  10. <div class="table-empty-tip">
  11. <p>
  12. <span class="text-muted"><?php echo $lang->cm->noData;?></span>
  13. <?php if(common::canModify('project', $project) && common::hasPriv('cm', 'create')):?>
  14. <?php echo html::a($this->createLink('cm', 'create', "progrm=$projectID"), "<i class='icon icon-plus'></i> " . $lang->cm->create, '', "class='btn btn-info'");?>
  15. <?php endif;?>
  16. </p>
  17. </div>
  18. <?php else:?>
  19. <form class='main-table' method='post'>
  20. <table class="table has-sort-head table-fixed">
  21. <thead>
  22. <tr>
  23. <th class='c-id'><?php echo $lang->idAB;?></th>
  24. <th class='w-150px'><?php echo $lang->cm->object;?></th>
  25. <th><?php echo $lang->cm->title;?></th>
  26. <th class='w-160px'><?php echo $lang->cm->version;?></th>
  27. <th class='w-120px'><?php echo $lang->cm->createdBy;?></th>
  28. <th class='w-120px'><?php echo $lang->cm->createdDate;?></th>
  29. <th class='w-80px'><?php echo $lang->actions;?></th>
  30. </tr>
  31. </thead>
  32. <?php foreach($baselines as $baseline):?>
  33. <tr>
  34. <td><?php echo $baseline->id;?></td>
  35. <td><?php echo zget($lang->baseline->objectList, $baseline->category);?></td>
  36. <td><?php echo html::a(helper::createLink('cm', 'view', "baselineID=$baseline->id"), $baseline->title);?></td>
  37. <td><?php echo $baseline->version;?></td>
  38. <td><?php echo zget($users, $baseline->createdBy);?></td>
  39. <td><?php echo $baseline->createdDate;?></td>
  40. <td class='c-actions'>
  41. <?php common::printIcon('cm', 'edit', "id=$baseline->id", $baseline, 'edit');?>
  42. <?php common::printIcon('cm', 'delete', "id=$baseline->id", $baseline, 'closed', 'trash', 'hiddenwin');?>
  43. </td>
  44. </tr>
  45. <?php endforeach;?>
  46. </table>
  47. <div class='table-footer'> <?php $pager->show('right', 'pagerjs');?> </div>
  48. </form>
  49. <?php endif;?>
  50. </div>
  51. </div>
  52. <?php include $app->getModuleRoot() . 'common/view/footer.html.php';?>