<?php
/**
 * The create view file of vm module of ZenTaoPMS.
 *
 * @copyright   Copyright 2009-2015 青岛易软天创网络科技有限公司(QingDao Nature Easy Soft Network Technology Co,LTD, www.cnezsoft.com)
 * @license     ZPL (http://zpl.pub/page/zplv12.html)
 * @author      xiawenlong <xiawenlong@cnezsoft.com>
 * @package     host
 * @version     $Id$
 * @link        http://www.zentao.net
 */
?>
<?php include '../../common/view/header.html.php';?>
<div id='mainContent' class='main-content'>
  <div class='main-header'>
    <h2><?php echo $lang->vm->create;?></h2>
  </div>
  <form method='post' id="ajaxForm">
    <table class='table table-form'>
      <tr>
        <th class='w-100px'><?php echo $lang->vm->osCategory;?></th>
        <td><?php echo html::select('osCategory', $lang->vm->osCategoryList, '', "class='form-control chosen' onchange=loadOsList(this.value)")?></td>
        <td></td>
      </tr>
      <tr>
        <th class='w-100px'><?php echo $lang->vm->osType;?></th>
        <td><?php echo html::select('osType', '', '', "class='form-control chosen' onchange=changeOs(this.value)")?></td>
      </tr>
      <tr>
        <th class='w-100px'><?php echo $lang->vm->baseImage;?></th>
        <td><?php echo html::select('baseImageID', '', '', "class='form-control chosen'")?></td>
      </tr>
      <tr>
        <th class='w-100px'><?php echo $lang->vm->vmTemplate;?></th>
        <td><?php echo html::select('vmTemplateID', '', '', "class='form-control chosen'")?></td>
      </tr>
      <tr>
        <th class='w-100px'><?php echo $lang->vm->public;?></th>
        <td><?php echo html::radio('public', $lang->vm->publicList, 1);?></td>
      </tr>
      <tr>
        <th></th>
        <td class='text-center form-actions'>
          <?php echo html::submitButton();?>
          <?php echo html::backButton();?>
        </td>
      </tr>
    </table>
  </form>
</div>
<?php include '../../common/view/footer.html.php';?>

