⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 info_commend.tpl

📁 渣渣网络商店系统ZZShop v1.0完整运行程序,MYSQL数据库,APACHE服务器
💻 TPL
字号:
<script language='javascript'>
<!--
	function checkValue()
	{
		var Obj = document.frmInfo;
		
		if(Obj.ProductID && !Obj.ProductID.value)
		{
			alert('请先选择产品编号');
			
			Obj.ProductID.focus();
			
			return false;
		}

		return true;
	}
	
	function selectProduct(obj)
	{
		var ID = 0;

		ID = showModalDialog('{PHP_SELF}?act=product&code=sel_product&return=ID', document.frmInfo, 'resizable:yes;status:no;center:yes;help:no;dialogWidth:' + (screen.availWidth - 200) + 'px;dialogHeight:' + (screen.availHeight - 100) + 'px');
		
		if(ID > 0) obj.value = ID;
	}
	
//-->
</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>
    	<select name='CategoryID'>
    		{CategoryList}
    	</select>

		<!-- beginRow MultipleProduct -->
		<input type=hidden value='{MultipleProduct.ID}' name='ProductID[]'>
		<!-- endRow MultipleProduct -->
    </td>
    <td width=150>选择推荐分类, 可多选</td>
  </tr>
  <!-- beginRow SingleProduct -->
  <tr class='info_content'>
    <td width=100>产品编号:</td>
    <td>
    	<input type=text size=15 name=ProductID value='{ProductID}' readonly> &nbsp;
    	<a href='#' onClick='selectProduct(frmInfo.ProductID);'>选择</a>
    </td>
    <td width=150>选择要推荐的产品</td>
  </tr>
  <tr class='info_content'>
    <td width=100>产品名称:</td>
    <td>
    	<input type=text size=40 name=ProductName disabled value='{ProductName}'>
    </td>
    <td width=150>产品对应的名称</td>
  </tr>
  <!-- endRow SingleProduct -->
<!--
  <tr class='info_content'>
    <td width=100>窗口:</td>
    <td>
    	<input name="Target" type="text" size=10 value='{Target}'>
    	<select onChange='document.frmInfo.Target.value=this.options[this.selectedIndex].value;'>
    		<option value='{Target}'>默认</option>
    		<option value='_blank'>新窗口</option>
    		<option value='_self'>本窗口</option>
    		<option value='_top'>顶层窗口</option>
    	</select>
    </td>
    <td width=150>点击后链接的视窗</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">
	</td>
  </tr>
</table>
</form>
<script language='javascript'>
<!--
	document.frmInfo.ProductID.focus();
//-->
</script>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -