Files
EasySoft-ZenTaoPMS/module/product/view/edit.html.php
2011-06-24 10:11:25 +00:00

58 lines
2.5 KiB
PHP

<?php
/**
* The edit view of product module of ZenTaoPMS.
*
* @copyright Copyright 2009-2011 青岛易软天创网络科技有限公司 (QingDao Nature Easy Soft Network Technology Co,LTD www.cnezsoft.com)
* @license LGPL (http://www.gnu.org/licenses/lgpl.html)
* @author Chunsheng Wang <chunsheng@cnezsoft.com>
* @package product
* @version $Id$
* @link http://www.zentao.net
*/
?>
<?php include '../../common/view/header.html.php';?>
<?php include '../../common/view/kindeditor.html.php';?>
<form method='post' target='hiddenwin'>
<table align='center' class='table-1'>
<caption><?php echo $lang->product->edit;?></caption>
<tr>
<th class='rowhead'><?php echo $lang->product->name;?></th>
<td><?php echo html::input('name', $product->name, "class='text-3'");?></td>
</tr>
<tr>
<th class='rowhead'><?php echo $lang->product->code;?></th>
<td><?php echo html::input('code', $product->code, "class='text-3'");?></td>
</tr>
<tr>
<th class='rowhead'><?php echo $lang->product->PO;?></th>
<td><?php echo html::select('PO', $users, $product->PO, "class='select-3'");?></td>
</tr>
<tr>
<th class='rowhead'><?php echo $lang->product->QM;?></th>
<td><?php echo html::select('QM', $users, $product->QM, "class='select-3'");?></td>
</tr>
<tr>
<th class='rowhead'><?php echo $lang->product->RM;?></th>
<td><?php echo html::select('RM', $users, $product->RM, "class='select-3'");?></td>
</tr>
<tr>
<th class='rowhead'><?php echo $lang->product->status;?></th>
<td><?php echo html::select('status', $lang->product->statusList, $product->status, "class='select-3'");?></td>
</tr>
<tr>
<th class='rowhead'><?php echo $lang->product->desc;?></th>
<td><?php echo html::textarea('desc', htmlspecialchars($product->desc), "rows='8' class='area-1'");?></td>
</tr>
<tr>
<th class='rowhead'><?php echo $lang->product->acl;?></th>
<td><?php echo nl2br(html::radio('acl', $lang->product->aclList, $product->acl, "onclick='setWhite(this.value);'"));?></td>
</tr>
<tr id='whitelistBox' <?php if($product->acl != 'custom') echo "class='hidden'";?>>
<th class='rowhead'><?php echo $lang->product->whitelist;?></th>
<td><?php echo html::checkbox('whitelist', $groups, $product->whitelist);?></td>
</tr>
<tr><td colspan='2' class='a-center'><?php echo html::submitButton();?></td></tr>
</table>
</form>
<?php include '../../common/view/footer.html.php';?>