createimage.html.php 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <?php
  2. /**
  3. * The create vm image view file of zahost 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 zahost
  9. * @version $Id$
  10. * @link https://www.zentao.net
  11. */
  12. ?>
  13. <?php include $app->getModuleRoot() . 'common/view/header.html.php';?>
  14. <?php js::set('zahostConfig', $config->zahost);?>
  15. <?php js::set('zahostLang', $lang->zahost);?>
  16. <?php js::set('hostID', $host->hostID);?>
  17. <div id='mainContent' class='main-content'>
  18. <div class='main-header'>
  19. <h2><?php echo $lang->zahost->image->createImage;?></h2>
  20. </div>
  21. <form method='post' id='ajaxForm' class="load-indicator main-form form-ajax">
  22. <table class='table table-form'>
  23. <tr>
  24. <th class='w-150px'><?php echo $lang->zahost->common;?></th>
  25. <td class='w-300px'><?php echo $host->name;?></td>
  26. </tr>
  27. <tr>
  28. <th><?php echo $lang->zahost->image->choseImage;?></th>
  29. <td><?php echo html::select('address', $imageOptions, '', "class='form-control chosen'")?></td>
  30. </tr>
  31. <tr>
  32. <th><?php echo $lang->zahost->name;?></th>
  33. <td><?php echo html::input('name', '', "class='form-control'");?></td>
  34. <td></td>
  35. </tr>
  36. <tr>
  37. <th><?php echo $lang->zahost->memory;?></th>
  38. <td>
  39. <div class='input-group'>
  40. <?php echo html::input('memory', '', "class='form-control'");?>
  41. <span class='input-group-addon'>MB</span>
  42. </div>
  43. </td>
  44. </tr>
  45. <tr>
  46. <th><?php echo $lang->zahost->disk;?></th>
  47. <td>
  48. <div class='input-group'>
  49. <?php echo html::input('disk', '', "class='form-control'");?>
  50. <span class='input-group-addon' id='unit'>GB</span>
  51. </div>
  52. </td>
  53. </tr>
  54. <tr>
  55. <th><?php echo $lang->zahost->image->osCategory;?></th>
  56. <td><?php echo html::select('osCategory', $config->zahost->os->list, '', "class='form-control chosen'")?></td>
  57. </tr>
  58. <tr>
  59. <th><?php echo $lang->zahost->image->osType;?></th>
  60. <td><?php echo html::select('osType', '', '', "class='form-control chosen'")?></td>
  61. </tr>
  62. <tr>
  63. <th><?php echo $lang->zahost->image->osVersion;?></th>
  64. <td><?php echo html::select('osVersion', '', '', "class='form-control chosen'")?></td>
  65. </tr>
  66. <tr>
  67. <th><?php echo $lang->zahost->image->osLang;?></th>
  68. <td><?php echo html::select('osLang', $lang->zahost->langList, '', "class='form-control chosen'")?></td>
  69. <tr>
  70. <td colspan='2' class='text-center form-actions'>
  71. <?php echo html::submitButton();?>
  72. <?php echo html::backButton();?>
  73. <?php echo html::hidden('hostID', $host->id);?>
  74. </td>
  75. </tr>
  76. </table>
  77. </form>
  78. </div>
  79. <?php include $app->getModuleRoot() . 'common/view/footer.html.php';?>