m.all.html.php 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <?php
  2. /**
  3. * The all mobile view file of product 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 product
  9. * @version $Id$
  10. * @link http://www.zentao.net
  11. */
  12. $bodyClass = 'with-menu-top';
  13. ?>
  14. <?php include "../../common/view/m.header.html.php";?>
  15. <nav id='menu' class='menu nav affix dock-top canvas'>
  16. <?php echo html::a(inlink("all", "browseType=noclosed"), $lang->product->unclosed, '', "id='noclosedTab'");?>
  17. <?php echo html::a(inlink("all", "browseType=closed"), $lang->product->statusList['closed'], '', "id='closedTab'");?>
  18. <?php echo html::a(inlink("all", "browseType=all"), $lang->product->allProduct, '', "id='allTab'");?>
  19. <a class='moreMenu hidden' data-display='dropdown' data-placement='beside-bottom'><?php echo $lang->more;?></a>
  20. <div id='moreMenu' class='list dropdown-menu'></div>
  21. </nav>
  22. <div class='heading'>
  23. <div class='title'>
  24. <a id='sortTrigger' class='text-right sort-trigger' data-display data-target='#sortPanel' data-backdrop='true'><i class='icon icon-sort'></i>&nbsp;<span class='sort-name'><?php echo $lang->sort ?></span></a>
  25. </div>
  26. </div>
  27. <section id='page' class='section list-with-pager'>
  28. <?php $refreshUrl = $this->createLink('product', 'all', http_build_query($this->app->getParams()));?>
  29. <div class='box' data-refresh-url='<?php echo $refreshUrl ?>'>
  30. <table class='table bordered no-margin'>
  31. <thead>
  32. <tr>
  33. <th><?php echo $lang->product->name;?></th>
  34. <th class='w-80px'><?php echo $lang->statusAB;?></th>
  35. </tr>
  36. </thead>
  37. <?php foreach($productStats as $product):?>
  38. <tr class='text-center' data-url='<?php echo $this->createLink('product', 'browse', "product=$product->id")?>'>
  39. <td class='text-left'><?php echo $product->name;?></td>
  40. <td><?php echo zget($lang->product->statusList, $product->status);?></td>
  41. </tr>
  42. <?php endforeach;?>
  43. </table>
  44. </div>
  45. </section>
  46. <div class='list sort-panel hidden affix enter-from-bottom layer' id='sortPanel'>
  47. <?php
  48. $vars = "browseType=$status&orderBy=%s";
  49. $sortOrders = array('id', 'name', 'order');
  50. foreach ($sortOrders as $order)
  51. {
  52. commonModel::printOrderLink($order, $orderBy, $vars, '<i class="icon icon-sort-indicator"></i>' . ($order == 'id' ? 'ID' : $lang->product->{$order}));
  53. }
  54. ?>
  55. </div>
  56. <script>$("#<?php echo $browseType;?>Tab").addClass('active');</script>
  57. <?php include '../../common/view/m.footer.html.php';?>