finish.html.php 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <?php
  2. /**
  3. * The finish view file of deploy 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 deploy
  9. * @version $Id$
  10. * @link http://www.zentao.net
  11. */
  12. ?>
  13. <?php include $app->getModuleRoot() . 'common/view/header.html.php';?>
  14. <?php include $app->getModuleRoot() . 'common/view/kindeditor.html.php';?>
  15. <?php js::set('showService', !empty($services));?>
  16. <div id='mainContent' class='main-content'>
  17. <div class='main-header'>
  18. <h2><?php echo $deploy->name . $lang->hyphen . $lang->deploy->finish;?></h2>
  19. </div>
  20. <form method='post' target='hiddenwin'>
  21. <table class='table table-form'>
  22. <tr>
  23. <th class='w-100px'><?php echo $lang->deploy->result?></th>
  24. <td class='w-p30'><?php echo html::select('result', $lang->deploy->resultList, '', "class='form-control'")?></td>
  25. <td></td>
  26. </tr>
  27. <tr id='serviceBox' class='hide'>
  28. <th><?php echo $lang->deploy->service?></th>
  29. <td colspan='2'>
  30. <table class='table table-fixed with-border'>
  31. <thead>
  32. <tr>
  33. <th class='w-id'><?php echo $lang->idAB?></th>
  34. <th><?php echo $lang->service->name?></th>
  35. <th class='w-120px'><?php echo $lang->service->version?></th>
  36. <th><?php echo $lang->service->softName?></th>
  37. <th class='w-120px'><?php echo $lang->service->softVersion?></th>
  38. <th class='w-90px'><?php echo $lang->deploy->updateHost?></th>
  39. </tr>
  40. </thead>
  41. <tbody>
  42. <?php foreach($services as $service):?>
  43. <tr>
  44. <td class='text-center'><?php echo $service->id?></td>
  45. <?php $serviceName = isset($optionMenu[$service->id]) ? $optionMenu[$service->id] : $service->name?>
  46. <td title='<?php echo $serviceName?>'><?php echo $serviceName?></td>
  47. <td><?php echo html::input("version[$service->id]", $service->version, "class='form-control'")?></td>
  48. <td title='<?php echo $service->softName?>'><?php echo html::input("softName[$service->id]", $service->softName, "class='form-control'")?></td>
  49. <td><?php echo html::input("softVersion[$service->id]", $service->softVersion, "class='form-control'")?></td>
  50. <td class='text-center updateHost'>
  51. <label class="checkbox-inline">
  52. <input name="updateHost[<?php echo $service->id?>]" value="1" checked="checked" type="checkbox">
  53. </label>
  54. </td>
  55. </tr>
  56. <?php endforeach?>
  57. </tbody>
  58. </table>
  59. </td>
  60. </tr>
  61. <tr>
  62. <th><?php echo $lang->comment?></th>
  63. <td colspan='2'><?php echo html::textarea('comment', '', "class='form-control'")?></td>
  64. </tr>
  65. <tr>
  66. <td colspan='3' class='text-center form-actions'>
  67. <?php echo html::submitButton();?>
  68. <?php echo html::backButton();?>
  69. </td>
  70. </tr>
  71. </table>
  72. </form>
  73. </div>
  74. <?php include $app->getModuleRoot() . 'common/view/footer.html.php';?>