74 lines
2.1 KiB
HTML
Executable File
74 lines
2.1 KiB
HTML
Executable File
<!-- $Id: category_info.htm 16752 2009-10-20 09:59:38Z wangleisvn $ -->
|
|
{include file="pageheader.htm"}
|
|
<!-- start add new category form -->
|
|
<div class="main-div">
|
|
<form action="facility.php" method="post" name="theForm" enctype="multipart/form-data" onsubmit="return validate()">
|
|
<table width="100%" id="general-table">
|
|
<tr>
|
|
<td class="label">名稱:</td>
|
|
<td>
|
|
<input type='text' name='name' maxlength="20" value='{$fac.name|escape:html}' size='27' /> <font color="red">*</font>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="label">排序:</td>
|
|
<td>
|
|
<input type="text" name='sort_order' {if $fac.sort_order}value='{$fac.sort_order}'{else} value="50"{/if} size="15" />
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td class="label">是否有效:</td>
|
|
<td>
|
|
<input type="radio" name="is_show" value="1" {if $fac.is_show neq 0} checked="true"{/if}/> {$lang.yes}
|
|
<input type="radio" name="is_show" value="0" {if $fac.is_show eq 0} checked="true"{/if} /> {$lang.no}
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="label">上傳檔案:</td>
|
|
<td>
|
|
<input type="file" name="image"/><br />
|
|
<div style="padding:10px 0px">
|
|
{if $fac.image neq ''}
|
|
<a href="javascript:void(0);" onClick="openwindow('../{$fac.image}','照片',800,500);">
|
|
<img src="../{$fac.image}" width="100" height="100" />
|
|
</a>
|
|
{else}
|
|
{$lang.msg_na}
|
|
{/if}
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
|
|
</table>
|
|
<div class="button-div">
|
|
<input type="submit" value="確定" />
|
|
<input type="reset" value="重置" />
|
|
</div>
|
|
<input type="hidden" name="act" value="{$form_act}" />
|
|
<input type="hidden" name="id" value="{$fac.id}" />
|
|
</form>
|
|
</div>
|
|
{insert_scripts files="../js/utils.js,validator.js"}
|
|
{literal}
|
|
<script language="JavaScript">
|
|
<!--
|
|
document.forms['theForm'].elements['name'].focus();
|
|
/**
|
|
* 检查表单输入的数据
|
|
*/
|
|
function validate()
|
|
{
|
|
validator = new Validator("theForm");
|
|
validator.required("name",'名稱未填');
|
|
return validator.passed();
|
|
}
|
|
|
|
onload = function()
|
|
{
|
|
}
|
|
|
|
//-->
|
|
</script>
|
|
{/literal}
|
|
{include file="pagefooter.htm"} |