browsebylist.html.php 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <?php
  2. /**
  3. * The browse view file of space module of ZenTaoPMS.
  4. *
  5. * @copyright Copyright 2009-2023 禅道软件(青岛)有限公司(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 Jianhua Wang <wangjianhua@easycorp.ltd>
  8. * @package space
  9. * @version $Id$
  10. * @link https://www.zentao.net
  11. */
  12. ?>
  13. <div class='main-col'>
  14. <?php if(empty($instances)):?>
  15. <div class="table-empty-tip">
  16. <p><?php echo html::a($this->createLink('store', 'browse'), $lang->space->noApps . ', ' . $lang->space->notice->toInstall, '', "class='btn btn-info'");?></p>
  17. </div>
  18. <?php else:?>
  19. <form class='main-table table-user' data-ride='table' method='post' data-checkable='false' id='appListForm'>
  20. <table class="table has-sort-head">
  21. <thead>
  22. <tr>
  23. <th><?php echo $lang->instance->name;?></th>
  24. <th><?php echo $lang->instance->appName;?></th>
  25. <th><?php echo $lang->version;?></th>
  26. <th><?php echo $lang->space->status;?></th>
  27. <th><?php echo $lang->operation;?></th>
  28. </tr>
  29. </thead>
  30. <tbody>
  31. <?php foreach($instances as $instance):?>
  32. <tr>
  33. <td><?php echo html::a($this->createLink('instance', 'view', "id=$instance->id"), $instance->name);?></td>
  34. <td><?php echo html::a($this->createLink('store', 'appview', "id=$instance->appID"), $instance->appName);?></td>
  35. <td><?php echo $instance->appVersion;?></td>
  36. <td class="instance-status" instance-id="<?php echo $instance->id;?>" data-status="<?php echo $instance->status;?>">
  37. <?php $this->instance->printStatus($instance);?>
  38. </td>
  39. <td>
  40. <?php $this->instance->printIconActions($instance);?>
  41. <?php if(!empty($instance->latestVersion)):?>
  42. <?php echo html::a(helper::createLink('instance', 'upgrade', "id=$instance->id", '', true), "<i class='icon-sync'></i>", '', "class='btn btn-action iframe' title='{$lang->space->upgrade}' data-width='500' data-app='space'");?>
  43. <?php endif;?>
  44. </td>
  45. </tr>
  46. <?php endforeach;?>
  47. </tbody>
  48. </table>
  49. <?php if($instances):?>
  50. <div class='table-footer'>
  51. <?php $pager->show('right', 'pagerjs');?>
  52. </div>
  53. <?php endif;?>
  54. </form>
  55. <?php endif;?>
  56. </div>