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

📄 pdt_list.asp

📁 易方4.0程序+邮局接口+序列号+销售系统
💻 ASP
字号:
<!-- #include file="../inc_config.asp" -->
<!-- #include file="LoginCk.asp" -->
<%
Call PopCheck(15)
if Cmd = "Add" then

  If Len(Request("Sign")) = 0 Then
   Call ShowErMsgGo("请填写新产品!","Pdt_List.asp")
   Response.End
  End If

	If Conn.Num("EfangPdt","Pdt_Sign='" & Sign & "'")>0 Then ShowErMsg("商品编号重覆!")
	call Conn.Insert("EfangPdt","Pdt_Sign,Pdt_Name","'" & Sign & "','" & Sign & "'")
	WriteLog "添加商品 - " & Sign
	Call ShowErMsgGo("添加新商品成功!请继续设置其相关内容!","Pdt_Upd.asp?Sign=" & Sign)
End If
%>
<html>
<head>
<title>商品列表</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link id="style_sheet" href="css/save.css" type="text/css" rel="stylesheet">
	<script language="JavaScript">style_sheet.href = parent.parent.style_sheet.href;</script>
<%=Efs_Cfg_PHeader%>
</head>
<script language="JavaScript" src="js/common_Efang.js"></script>
	<body class="NormalPage">
	<form id="form_help" action="help_content.asp" method="get" target="working_area">
		<input name="help_topic" type="hidden" value="商品列表">
	</form>
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td id="headerToolBar" valign="middle" nowrap style="width:100%; height:22px;"><table cellpadding="0" cellspacing="0" class="HeaderPageControl">
				<tr>
					<td align="left" valign="middle" nowrap height="20">系统设置&gt;&gt; 商品管理 &gt;&gt; <b></b><b></b><b>商品列表</b></td>
					<td align="center" valign="middle" nowrap width="10" height="20"></td>
					<td align="right" valign="middle" width="100%" nowrap height="20"></td>
					<td align="center" valign="middle" nowrap width="10" height="20"></td>
					<td align="right" valign="middle" width="60" nowrap height="20"><img id="id_back" alt="返回上一页" onclick="JavaScript:history.back()" onmouseover="JavaScript:this.src=imgBackUp.src" onmouseout="JavaScript:this.src=imgBackDown.src" src="images/toolbar_back.gif" border="0" style="cursor:hand;width:22px; height:20px;"><img id="id_refresh" alt="刷新" onclick="JavaScript:fn_Refresh()" onmouseover="JavaScript:this.src=imgRefreshUp.src" onmouseout="JavaScript:this.src=imgRefreshDown.src" src="images/toolbar_refresh.gif" border="0" style="cursor:hand;width:22px; height:20px;"></td>
					<td align="right" valign="middle" width="25" nowrap height="20"><img src="images/toolbar_help.gif" alt="帮助" width="43" height="20" border="0" id="id_locate" style="cursor:hand;width:22px; height:20px;" onclick="JavaScript:fn_ShowHelp()" onmouseover="JavaScript:this.src=imgHelpUp.src" onmouseout="JavaScript:this.src=imgHelpDown.src"></td>
				</tr>
		</table></td>
	</tr>
	<tr>
		<td valign="top">
			<div id="viewPanel" style="visibility:visible; position:absolute; overflow:auto;">
		<br>  
	    <table width="85%" border="0" align="center" cellPadding="0" cellSpacing="0" class="datalist">
          <th width="10%" align="center" nowrap class="DataListHeader">排序值</th>
          <th width="11%" height="25" align="center" nowrap class="DataListHeader">商品编号</th>
          <th width="24%" height="25" align="center" nowrap class="DataListHeader">商品名称</th>
          <th width="12%" align="center" nowrap class="DataListHeader">商品类目</th>
          <th width="12%" align="center" nowrap class="DataListHeader">状态</th>
          <th width="17%" height="25" align="center" nowrap class="DataListHeader">零售价</th>
          <th width="14%" align="center" nowrap class="DataListHeader">修改</th>
        </tr>
        <%
Set PdtData=Conn.Query("EfangPdt","Order By Pdt_Sort,Pdt_Desc")
Do while not (PdtData.EOF or PdtData.BOF)
%>
        <tr>
          <td width="10%" align="center" nowrap class="DataListGrid">&nbsp;<%=PdtData("Pdt_Desc")%></td>
          <td width="11%" height="25" align="center" nowrap class="DataListGrid">&nbsp;<%=PdtData("Pdt_Sign")%></td>
          <td width="24%" align="center" nowrap class="DataListGrid">&nbsp;<%=PdtData("Pdt_Name")%> </td>
          <td width="12%" align="center" nowrap class="DataListGrid">&nbsp;<%=PdtData("Pdt_Sort")%> </td>
          <td width="12%" align="center" nowrap class="DataListGrid">&nbsp;<%
If PdtData("Pdt_State")=1 Then
Response.Write "上架"
ElseIf PdtData("Pdt_State")=2 Then
Response.Write "下架"
End If
%> </td>
          <td width="17%" align="center" nowrap class="DataListGrid"><%=PdtData("Pdt_Level1")%> 元</td>
          <td width="14%" align="center" nowrap class="DataListGrid"> <a href="Pdt_Upd.asp?Sign=<%=PdtData("Pdt_Sign")%>"><img src="pic/button_edit.png" width="12" height="13" border="0"></a></td>
        </tr>
        <%
PdtData.movenext 
Loop
Set PdtData=Nothing
%>
      </table>
      <br> 
      <table width="80%" border="0" align="center" cellpadding="0" cellspacing="0">
        <form name="form1" method="post" action="?Cmd=Add" onSubmit="return CheckForm(this)"><tr> 
          <td> 
              新产品编号 : 
              <input name="Sign" type="text" class="InputOne" id="Sign" maxlength="20">
              <input name="Submit" type="submit" class="ButtonOne" value="添加新产品">
              <script language="JavaScript">
function CheckForm(form){
	if (form.Sign.value=="") {
		alert("请填写新产品!");
		form.Sign.focus();
		return false;
	}
	return true;
}
</script>
            </td>
        </tr></form>
      </table></div>
		</td>
	</tr>
</table>
<% Call ExitEnd(False) %>
</body>
<script language="JavaScript">
<!--
	document.parentWindow.onresize = fn_RejustViewPanel ;
	fn_RejustViewPanel ( ) ;
	//alert ( document.body.clientWidth + ":" + viewPanel.clientWidth ) ;
//-->
</script>
</html>

⌨️ 快捷键说明

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