Files
EasySoft-ZenTaoPMS/module/ci/view/editcredential.html.php
T
2019-12-13 10:09:58 +08:00

85 lines
3.8 KiB
PHP

<?php
/**
* The edit view file of credential module of ZenTaoPMS.
*
* @copyright Copyright 2009-2017 青岛易软天创网络科技有限公司(QingDao Nature Easy Soft Network Technology Co,LTD, www.cnezsoft.com)
* @license ZPL (http://zpl.pub/page/zplv12.html)
* @author Gang Liu <liugang@cnezsoft.com>
* @package credential
* @version $Id$
* @link http://www.zentao.net
*/
?>
<?php include 'header.html.php'; ?>
<?php include '../../common/view/form.html.php'; ?>
<?php js::set('type', $credential->type)?>
<div id='mainContent' class='main-row'>
<div class='side-col' id='sidebar'>
<?php include 'menu.html.php'; ?>
</div>
<div class='main-col main-content'>
<div class='center-block'>
<div class='main-header'>
<h2><?php echo $lang->credential->edit; ?></h2>
</div>
<form id='credentialForm' method='post' class='form-ajax'>
<table class='table table-form'>
<tr>
<th class='thWidth'><?php echo $lang->credential->type; ?></th>
<td style="width:550px"><?php echo html::select('type', $lang->credential->typeList, $credential->type, "class='form-control'"); ?></td>
<td></td>
</tr>
<tr>
<th><?php echo $lang->credential->name; ?></th>
<td class='required'><?php echo html::input('name', $credential->name, "class='form-control'"); ?></td>
<td></td>
</tr>
<tr>
<th><?php echo $lang->credential->username; ?></th>
<td><?php echo html::input('username', $credential->username, "class='form-control'"); ?></td>
<td></td>
</tr>
<tr id="password-field">
<th><?php echo $lang->credential->password; ?></th>
<td><?php echo html::input('password', $credential->password, "class='form-control'"); ?></td>
<td></td>
</tr>
<tr id="privateKey-field">
<th><?php echo $lang->credential->privateKey; ?></th>
<td><?php echo html::textarea('privateKey', $credential->privateKey, "rows='3' class='form-control'"); ?></td>
<td></td>
</tr>
<tr id="passphrase-field">
<th><?php echo $lang->credential->passphrase; ?></th>
<td><?php echo html::password('passphrase', $credential->passphrase, "rows='3' class='form-control'"); ?></td>
<td></td>
</tr>
<tr id="token-field">
<th><?php echo $lang->credential->token; ?></th>
<td><?php echo html::input('token', $credential->token, "class='form-control'"); ?></td>
<td></td>
</tr>
<tr>
<th><?php echo $lang->credential->desc; ?></th>
<td><?php echo html::textarea('desc', $credential->desc, "rows='3' class='form-control'"); ?></td>
<td></td>
</tr>
<tr>
<th></th>
<td class='text-center form-actions'>
<?php echo html::submitButton(); ?>
<?php echo html::backButton() ?>
</td>
</tr>
</table>
</form>
</div>
</div>
</div>
<?php include '../../common/view/footer.html.php'; ?>