📄 info_product_attachment.tpl
字号:
<script language='javascript'>
<!--
function checkValue()
{
var Obj = document.frmInfo;
if(!Obj.ProductCoding.value)
{
alert('请先选择产品编号');
Obj.ProductCoding.focus();
return false;
}
if(!{IsModify} && !Obj.fileAttachment.value)
{
alert('请选择要添加的商品附件. ');
Obj.fileAttachment.focus();
return false;
}
return true;
}
function selectProduct(obj)
{
var ID = 0;
Coding = showModalDialog('{PHP_SELF}?act=product&code=sel_product', document.frmInfo, 'resizable:yes;status:no;center:yes;help:no;dialogWidth:' + (screen.availWidth - 200) + 'px;dialogHeight:' + (screen.availHeight - 100) + 'px');
if(Coding.length > 0) obj.value = Coding;
}
//-->
</script>
<form action="{ACTION}" method='POST' name='frmInfo' onSubmit='return checkValue();' enctype='multipart/form-data'>
<table width="100%" border="0" cellspacing=0 cellpadding=5 class=adminform>
<tr class='info_title'>
<td colspan="8"><strong>添加/修改商品附件</strong></td>
</tr>
<tr class='info_content'>
<td width=100>产品编号:</td>
<td>
<input type=text size=15 name=ProductCoding value='{ProductCoding}'>
<a href='#' onClick='selectProduct(frmInfo.ProductCoding);'>选择</a>
</td>
<td width=180>选择要设定的商品</td>
</tr>
<tr class='info_content'>
<td width=100>产品名称:</td>
<td>
<input type=text size=40 name=ProductName disabled value='{ProductName}'>
</td>
<td>产品对应的名称</td>
</tr>
<tr class='info_content'>
<td width=100>附件名称:</td>
<td>
<input type=text size=20 name=Title value='{Title}'>
</td>
<td>附件名称</td>
</tr>
<tr class='info_content'>
<td width=100>附件描述:</td>
<td>
<textarea name='Descript' cols=40 rows=5>{Descript}</textarea>
</td>
<td>商品附件描述</td>
</tr>
<tr class='info_content'>
<td width=100>选择附件:</td>
<td>
<input type=file size=40 name=fileAttachment>
<br>
<!-- beginRow ModifyBlock -->
附件已上传, 尺寸: {ModifyBlock.Size}<br>
如需更换请选择新附件, 否则请置空
<!-- endRow ModifyBlock -->
</td>
<td>选择要上传的附件</td>
</tr>
<tr align="center" class='info_bottom'>
<td colspan="4">
<input type="submit" value="{Caption}">
<input type="button" onClick='doCancle();' value="取消(C)" accesskey="c">
<input name="btnSubmit" type="hidden" id="btnSubmit" value="1">
<input type='hidden' value='{refer}' name='refer'>
</td>
</tr>
</table>
</form>
<script language='javascript'>
<!--
document.frmInfo.ProductCoding.focus();
//-->
</script>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -