browse.html.php 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <?php
  2. /**
  3. * The browse view file of jenkins 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 Gang Liu <liugang@cnezsoft.com>
  8. * @package jenkins
  9. * @version $Id$
  10. * @link https://www.zentao.net
  11. */
  12. ?>
  13. <?php include '../../common/view/header.html.php'; ?>
  14. <div id="mainMenu" class="clearfix">
  15. <div class="btn-toolbar pull-left">
  16. <?php echo html::a($this->createLink('jenkins', 'browse'), "<span class='text'>{$lang->jenkins->serverList}</span>", '', "class='btn btn-link btn-active-text'");?>
  17. </div>
  18. <div class="btn-toolbar pull-right">
  19. <?php if(common::hasPriv('jenkins', 'create')) common::printLink('jenkins', 'create', "", "<i class='icon icon-plus'></i> " . $lang->jenkins->create, '', "class='btn btn-primary'");?>
  20. </div>
  21. </div>
  22. <?php if(empty($jenkinsList)):?>
  23. <div class="table-empty-tip">
  24. <p>
  25. <span class="text-muted"><?php echo $lang->noData;?></span>
  26. <?php if(common::hasPriv('jenkins', 'create')):?>
  27. <?php echo html::a($this->createLink('jenkins', 'create'), "<i class='icon icon-plus'></i> " . $lang->jenkins->create, '', "class='btn btn-info'");?>
  28. <?php endif;?>
  29. </p>
  30. </div>
  31. <?php else:?>
  32. <div id='mainContent' class='main-row'>
  33. <form class='main-table' id='ajaxForm' method='post'>
  34. <table id='jenkinsList' class='table has-sort-head table-fixed'>
  35. <thead>
  36. <tr>
  37. <?php $vars = "orderBy=%s&recTotal={$pager->recTotal}&recPerPage={$pager->recPerPage}&pageID={$pager->pageID}"; ?>
  38. <th class='c-id'><?php common::printOrderLink('id', $orderBy, $vars, $lang->jenkins->id); ?></th>
  39. <th class='c-name w-300px'><?php common::printOrderLink('name', $orderBy, $vars, $lang->jenkins->name); ?></th>
  40. <th class='text'><?php common::printOrderLink('url', $orderBy, $vars, $lang->jenkins->url); ?></th>
  41. <th class='c-actions-2'><?php echo $lang->actions; ?></th>
  42. </tr>
  43. </thead>
  44. <tbody>
  45. <?php foreach ($jenkinsList as $id => $jenkins): ?>
  46. <tr>
  47. <td class='text'><?php echo $id; ?></td>
  48. <td class='text' title='<?php echo $jenkins->name; ?>'><?php echo $jenkins->name; ?></td>
  49. <td class='text' title='<?php echo $jenkins->url; ?>'><?php echo html::a($jenkins->url, $jenkins->url, '_blank'); ?></td>
  50. <td class='c-actions'>
  51. <?php
  52. common::printIcon('jenkins', 'edit', "jenkinsID=$id", '', 'list', 'edit');
  53. if(common::hasPriv('jenkins', 'delete')) echo html::a($this->createLink('jenkins', 'delete', "jenkinsID=$id"), '<i class="icon-trash"></i>', 'hiddenwin', "title='{$lang->jenkins->delete}' class='btn'");
  54. ?>
  55. </td>
  56. </tr>
  57. <?php endforeach; ?>
  58. </tbody>
  59. </table>
  60. <?php if($jenkinsList):?>
  61. <div class='table-footer'><?php $pager->show('right', 'pagerjs');?></div>
  62. <?php endif; ?>
  63. </form>
  64. </div>
  65. <?php endif;?>
  66. <?php include '../../common/view/footer.html.php'; ?>