productmanage.asp

来自「网店批发系统,很好很强大,很好很强大很好很强大」· ASP 代码 · 共 182 行

ASP
182
字号
<!--#include file="conn.asp"-->
<!--#include file="checkAdmin.asp"-->
<!--#include file="../inc/check_inc.asp"-->
<!--#include file="../inc/page_inc.asp"-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<link href="css/css.css" rel="stylesheet" type="text/css" />
<script language="javascript" src="js/moveOrder.js" defer="defer"></script>
<title>商品管理页面</title>

</head>

<body>

<!--#include file="inc/productManage_inc.asp"-->

<table width="97%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="32%" height="22" class="listtitle" style="padding-top:2px;"><%
	if lx <> 1 then
%>
			<select name="ProductClass" onChange="window.open(options[selectedIndex].value,'_self')">
				<option value="Productmanage.asp">-请选择商品类别-</option>
<%
	for j = 0 to (n-1)
%>
				<option value="Productmanage.asp?ProductClassID=<%=NewProClass(0,j)%>" <%if Cint(NewProClass(0,j)) = Cint(ProductClassID) then%>selected<%end if%> <%if NewProClass(3,j) = "" then%> style="color:#3333FF;"<%end if%>><%=NewProClass(3,j)%><%=NewProClass(1,j)%></option>
<%
	next
%>
			</select>
<%
	end if
	if lx = 1 then
%>			
			<select name="ClassType" onChange="window.open(options[selectedIndex].value,'_self')">
				<option value="Productmanage.asp?lx=1">-请选择首页板块-</option>
				<option value="Productmanage.asp?ClassType=Tuijian&lx=1" <%if ClassType = "Tuijian" then%>selected<%end if%>>推荐商品</option>
				<option value="Productmanage.asp?ClassType=Tejia&lx=1" <%if ClassType = "Tejia" then%>selected<%end if%>>促销商品</option>
				<option value="Productmanage.asp?ClassType=Xinpin&lx=1" <%if ClassType = "Xinpin" then%>selected<%end if%>>新品上架</option>
				<option value="Productmanage.asp?ClassType=Remai&lx=1" <%if ClassType = "Remai" then%>selected<%end if%>>热卖商品</option>
			</select> 
            <%
	end if
%>
	</td>
			<script language="JavaScript" type="text/javascript">
	function change()
	{
		var key = document.getElementById("key").value;
		if(document.searchForm.keyType[0].checked==true)
		{
			var keyType = 0;
		}
		else
		{
			var keyType = 1;
		}
		window.location.href='Productmanage.asp?action=search&keyType='+keyType+'&key='+key+'';
	}
</script>
<%
	if lx <> 1 then
%>
	<form name="searchForm" id="searchForm">
    	<td width="68%" class="listtitle" style="padding-top:2px;">输入关键字
			<input name="key" type="text" class="input_text" id="key" value="" />
			<input name="keyType" type="radio" value="0" checked="checked" /> 
			按商品名称
			<input name="keyType" type="radio" value="1" /> 
			按商品序号
			<input name="submit" type="button" class="Button" onClick="return change()" value="搜索" />
		</td>	
	</form>
<%
	end if
%>
  </tr>
</table>
<%
	if lx = 1 then
%>
<table width="97%" border="0" cellpadding="0" cellspacing="0">
<tr>
  <td align="center">&nbsp;</td>
</tr>
<tr><td align="center" style="color:#FF3300">选择相应板块,将您想显示在首页相应板块的商品向上拖动,将按照您指定的顺序排列,详细方法<a href="demo/indexorder.htm" target="_blank" style="font-weight:bold;color:#0066FF;text-decoration:underline;">点击此处<img src="images/help.gif" width="15" height="15" border="0" align="absmiddle" /></a>查看演示视频</td></tr>
</table>
<table width="97%" border="0" cellpadding="0" cellspacing="0" id="PowerTable">
<%
	else
%>
<table width="97%" border="0" cellpadding="0" cellspacing="0" id="PowerTable">
	<tr>
	  <td></td>
	</tr>
</table>
<table width="97%" border="0" cellpadding="0" cellspacing="0">
<%
	end if
%>
  <tr>
    <td width="120" align="center">&nbsp;</td>
    <td width="181" align="center">&nbsp;</td>
    <td width="300" align="center">&nbsp;</td>
    <td width="95" align="center">&nbsp;</td>
    <td width="180" align="center">&nbsp;</td>
    <td width="150" align="center">&nbsp;</td>
  </tr>
  <tr>
    <td height="24" align="center" class="listtop">商品序号</td>
	<td width="181" align="center" class="listtop">商品类别</td>
	<td align="center" class="listtop">商品名称</td>
	<td align="center" class="listtop"><a href="Productmanage.asp?action=Num">商品库存</a></td>
	<td width="180" align="center" class="listtop"><a href="Productmanage.asp">添加时间</a></td>
	<td width="150" align="center" class="listtop">操作</td>
  </tr>
<%
	if i <> -1 then
		k = 0
		i = i + 1
		if Cint(Page*PageNum-1)<Cint(i-1) then
			PageEnd = Page*PageNum-1
		else
			PageEnd = i-1
		end if
		
		for j = (Page-1)*PageNum to PageEnd
%>
  <tr onMouseOver="this.style.backgroundColor='#FBF9F4';" onMouseOut="this.style.backgroundColor='#FFFFFF'">
    <td height="24" align="center" class="listitem">
	<input id="Pro<%=k + 2%>" type="hidden" value="<%=Product(8,j)%>" />
	<%=Product(0,j)%></td>
	<td class="listitem" style="padding:0 30px 0 30px;"><A href="Productmanage.asp?ProductClassID=<%=Product(6,j)%>"><%=Product(1,j)%></A></td>
	<td class="listitem" style="padding:0 30px 0 30px;">
	<img src="images/icon-viewpic.gif" width="18" height="18" border="0" align="absmiddle" onMouseOver="document.getElementById('pic<%=Product(0,j)%>').style.display='block';" onMouseOut="document.getElementById('pic<%=Product(0,j)%>').style.display='none';" style="cursor:pointer;" />
	<div id="pic<%=Product(0,j)%>" style="position:absolute;z-index:1;display:none">
<%
	if instr(Product(4,j),".") then
%>
		<img src="../<%=Product(4,j)%>" border="0" style="border:1px solid #000000;" />
<%
	elseif instr(Product(5,j),".") then
%>
		<img src="../<%=Product(5,j)%>" border="0" style="border:1px solid #000000;" />
<%
	else
%>
		<img src="../images/emptybook.gif" border="0" style="border:1px solid #000000;" />
<%
	end if
%>
	</div>
	<a href="cs.asp"><%=left(Product(2,j),20)%></a></td>
	<td align="center" class="listitem">
<%
	if Product(7,j) <= 0 then
%>
		<A href="cs.asp"><font color="#FF0000">缺货</font></A>
<%
	else
%>
		<%=Product(7,j)%>
<%
	end if
%>	</td>
	<td align="center" class="listitem"><%=Product(3,j)%></td>
	<td align="center" class="listitem"><a href="cs.asp">编辑</a> <a href="cs.asp" onClick="return confirm('您确认要删除该商品吗?');">删除</a></td>
  </tr>	
<%
		k = k + 1
		next
	end if
%>
</table>
<%call PageTable()%>
<!--#include file="inc/closeconn_inc.asp"-->
</body>
</html>

⌨️ 快捷键说明

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