2023-05-16 10:50:42 +08:00

101 lines
4.7 KiB
PHP

<?php
/**
* The create view file of host module of ZenTaoPMS.
*
* @copyright Copyright 2009-2015 禅道软件(青岛)有限公司(ZenTao Software (Qingdao) Co., Ltd. www.cnezsoft.com)
* @license ZPL(http://zpl.pub/page/zplv12.html) or AGPL(https://www.gnu.org/licenses/agpl-3.0.en.html)
* @author Jiangxiu Peng <pengjiangxiu@cnezsoft.com>
* @package host
* @version $Id$
* @link http://www.zentao.net
*/
?>
<?php include $app->getModuleRoot() . 'common/view/header.html.php';?>
<div id='mainContent' class='main-content'>
<div class='main-header'>
<h2><?php echo $lang->host->editAction;?></h2>
</div>
<form method='post' target='hiddenwin' id='ajaxForm'>
<table class='table table-form'>
<tr>
<th class='w-100px'><?php echo $lang->host->name;?></th>
<td><?php echo html::input('name', $host->name, "class='form-control'");?></td>
<th><?php echo $lang->host->admin;?></th>
<td><?php echo html::select('admin', $accounts, $host->admin, "class='form-control chosen'");?></td>
<td></td>
</tr>
<tr>
<th><?php echo $lang->host->cpuBrand;?></th>
<td><?php echo html::select('cpuBrand', $lang->host->cpuBrandList, $host->cpuBrand, "class='form-control chosen'");?></td>
<th><?php echo $lang->host->cpuModel;?></th>
<td><?php echo html::input('cpuModel', $host->cpuModel, "class='form-control'");?></td>
</tr>
<tr>
<th><?php echo $lang->host->cpuNumber;?></th>
<td><?php echo html::input('cpuNumber', $host->cpuNumber, "class='form-control'");?></td>
<th><?php echo $lang->host->cpuCores;?></th>
<td><?php echo html::input('cpuCores', $host->cpuCores, "class='form-control'");?></td>
</tr>
<tr>
<th><?php echo $lang->host->memory;?></th>
<td>
<div class='input-group'>
<?php echo html::input('memory', $host->memory, "class='form-control'");?>
<span class="input-group-addon"><?php echo $lang->host->unitList['GB'];?></span>
</div>
</td>
<th><?php echo $lang->host->diskSize;?></th>
<td>
<div class='input-group'>
<?php echo html::input('diskSize', $host->diskSize, "class='form-control'");?>
<span class="input-group-addon"><?php echo $lang->host->unitList['GB'];?></span>
</div>
</td>
</tr>
<tr>
<th><?php echo $lang->host->group;?></th>
<td><?php echo html::select('group', $optionMenu, $host->group, "class='form-control chosen'");?></td>
<th class='w-90px'><?php echo $lang->host->serverRoom;?></th>
<td><?php echo html::select('serverRoom', $rooms, $host->serverRoom, 'class="form-control chosen" data-max_drop_width="150"');?></td>
</tr>
<tr>
<th><?php echo $lang->host->serverModel;?></th>
<td><?php echo html::input('serverModel', $host->serverModel, "class='form-control'");?></td>
<th><?php echo $lang->host->hostType;?></th>
<td><?php echo html::select('hostType', $lang->host->hostTypeList, $host->hostType, "class='form-control'");?></td>
</tr>
<tr>
<th><?php echo $lang->host->osName;?></th>
<td><?php echo html::select('osName', $lang->host->osNameList, $host->osName, "class='form-control chosen'");?></td>
<th><?php echo $lang->host->osVersion;?></th>
<td><?php echo html::select('osVersion', empty($lang->host->{$host->osName . 'List'}) ? '' : $lang->host->{$host->osName . 'List'}, $host->osVersion, "class='form-control chosen'");?></td>
</tr>
<tr>
<th><?php echo $lang->host->zap?></th>
<td><?php echo html::input('zap', $host->zap, "class='form-control'");?></td>
<th><?php echo $lang->host->tags?></th>
<td><?php echo html::select('vsoft', $lang->host->tagsList, $host->vsoft, "class='form-control chosen'");?></td>
</tr>
<tr>
<th><?php echo $lang->host->intranet;?></th>
<td><?php echo html::input('intranet', $host->intranet, "class='form-control'");?></td>
<th><?php echo $lang->host->extranet;?></th>
<td><?php echo html::input('extranet', $host->extranet, "class='form-control'");?></td>
</tr>
<tr>
<th><?php echo $lang->host->provider?></th>
<td><?php echo html::select('provider', $lang->host->providerList, $host->provider, "class='form-control chosen'");?></td>
<th></th>
</tr>
<tr>
<td colspan='4' class='text-center form-actions'>
<?php echo html::hidden('status', $host->status);?>
<?php echo html::submitButton();?>
<?php echo html::backButton();?>
</td>
</tr>
</table>
</form>
</div>
<?php include $app->getModuleRoot() . 'common/view/footer.html.php';?>