browse.html.php 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <?php
  2. /**
  3. * The browse view file of client module of XXB.
  4. *
  5. * @copyright Copyright 2009-2023 禅道软件(青岛)有限公司(ZenTao Software (Qingdao) Co., Ltd., www.zentao.net)
  6. * @license ZOSL (https://zpl.pub/page/zoslv1.html)
  7. * @author Memory <lvtao@cnezsoft.com>
  8. * @package client
  9. * @version $Id$
  10. * @link https://xuanim.com
  11. */
  12. ?>
  13. <?php include '../../common/view/header.html.php';?>
  14. <?php include '../../common/view/marked.html.php';?>
  15. <div class='panel'>
  16. <div class='panel-heading'>
  17. <strong><?php echo $lang->client->browse?></strong>
  18. <div class='pull-right panel-actions'>
  19. <?php commonModel::printLink('client', 'checkUpgrade', '', $lang->client->checkUpgrade, 'class="btn btn-primary"');?>
  20. <?php commonModel::printLink('client', 'create', '', "<i class='icon icon-plus'> ". $lang->client->create . "</i>", 'class="btn btn-primary" data-toggle="modal"');?>
  21. </div>
  22. </div>
  23. <table class='table table-hover'>
  24. <thead>
  25. <tr>
  26. <th class="w-80px text-center"><?php echo $lang->client->id?></th>
  27. <th class="w-150px text-center"><?php echo $lang->client->version?></th>
  28. <th class="text-left"><?php echo $lang->client->desc?></th>
  29. <th class="w-150px text-center"><?php echo $lang->client->strategy?></th>
  30. <th class="w-150px text-center"><?php echo $lang->client->releaseStatus?></th>
  31. <th class="w-150px text-center"><?php echo $lang->actions?></th>
  32. </tr>
  33. </thead>
  34. <tbody>
  35. <?php foreach($clients as $client):?>
  36. <tr class="text-center">
  37. <td><?php echo $client->id?></td>
  38. <td><?php echo $client->version?></td>
  39. <td class="text-left" title='<?php echo $client->desc;?>'><?php echo $client->desc?></td>
  40. <td><?php echo $lang->client->strategies[$client->strategy]?></td>
  41. <td><?php echo $lang->client->status[$client->status]?></td>
  42. <td>
  43. <?php if(empty($client->changeLog)):?>
  44. <a class='disabled'><?php echo $lang->client->changeLog;?></a>
  45. <?php else:?>
  46. <?php commonModel::printLink('client', 'changelog', "id={$client->id}", $lang->client->changeLog, "data-toggle='modal' data-title='{$lang->client->changeLog} {$client->version}' data-size='lg'");?>
  47. <?php endif;?>
  48. <?php commonModel::printLink('client', 'edit', "id={$client->id}", $lang->edit, "data-toggle='modal'");?>
  49. <?php commonModel::printLink('client', 'delete', "id={$client->id}", $lang->delete, "class='deleter'");?>
  50. </td>
  51. </tr>
  52. <?php endforeach;?>
  53. </tbody>
  54. </table>
  55. </div>
  56. <?php include '../../common/view/footer.html.php';?>