m.browse.html.php 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. /**
  3. * The browse mobile view file of release 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 Yidong Wang <yidong@cnezsoft.com>
  8. * @package release
  9. * @version $Id$
  10. * @link http://www.zentao.net
  11. */
  12. ?>
  13. <?php include '../../common/view/m.header.html.php';?>
  14. <section id='page' class='section list-with-pager'>
  15. <div class='heading'>
  16. <div class='title'>
  17. <strong><?php echo $lang->release->browse;?></strong>
  18. <?php if($product->type !== 'normal') echo '<span class="label label-info">' . $branches[$branch] . '</span>';?>
  19. </div>
  20. </div>
  21. <?php $refreshUrl = $this->createLink('release', 'browse', "productID={$product->id}&branch=$branch");?>
  22. <div data-refresh-url='<?php echo $refreshUrl ?>'>
  23. <table class='table bordered no-margin'>
  24. <thead class='text-center'>
  25. <tr>
  26. <th><?php echo $lang->release->name;?></th>
  27. <th class='w-100px'><?php echo $lang->release->date;?></th>
  28. <th class='w-80px'><?php echo $lang->release->status;?></th>
  29. </tr>
  30. </thead>
  31. <?php foreach($releases as $release):?>
  32. <tr class='text-center' data-url='<?php echo $this->createLink('release', 'view', "id={$release->id}")?>' data-id='<?php echo$release->id;?>'>
  33. <td class='text-left'>
  34. <?php if($product->type != 'normal') echo "<span class='label label-branch label-badge'>{$branches[$release->branch]}</span>"?>
  35. <?php echo $release->name;?>
  36. </td>
  37. <td><?php echo $release->date;?></td>
  38. <td><?php echo $lang->release->statusList[$release->status];?></td>
  39. </tr>
  40. <?php endforeach;?>
  41. </table>
  42. </div>
  43. </section>
  44. <?php include '../../common/view/m.footer.html.php';?>