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

📄 goods_edit.asp

📁 校园二手交易系统,具有完备的后台操作以及应用功能!
💻 ASP
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="../Inc/AdminChk.asp"-->
<!--#include file="Conn.asp"-->
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>多多校园产品后台管理官方网站http://www.ddtaobao.com</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="keywords" content="多多校园产品后台管理官方网站http://www.ddtaobao.com">
<meta name="description" content="多多校园产品后台管理官方网站http://www.ddtaobao.com">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"><link rel="stylesheet" type="text/css" href="img/admin_style.css"><!--#include file="top.asp"-->

<%
set rs=server.createobject("adodb.recordset")
sql="select * from goods_info where goods_id="&request("goods_id")&""
rs.open sql,conn,1,3
if rs.eof or rs.bof then
%>
<table width="100%" border="0" cellpadding="2" cellspacing="1" bgcolor="#FFFFFF" class="border">
          
         
          <tr align="center">
    <td height=20 class="topbg" colspan="2">多多科技管理</tr>
        <tr> 
          <td>没有该商品!</td>
        </tr>
      </table>
<%else%>
<SCRIPT language=JavaScript>
function CheckInput(){

	if(input.goodsname.value==''){
		alert("商品名称不能为空!");
		input.goodsname.focus();
		return false;
	}

	if(input.goodscontent.value==''){
		alert("商品描述不能为空!");
		input.goodscontent.focus();
		return false;
	}
	if(input.goodsprice.value==''){
		alert("商品价格不能为空!");
		input.goodsprice.focus();
		return false;
	}
	if(input.goodsamount.value==''){
		alert("商品数量不能为空!");
		input.goodsamount.focus();
		return false;
	}

	
	return true;
}
</SCRIPT>
     <form action="goods_edit_save.asp" method="post" name="input" id="input" onsubmit=return(CheckInput())>
        <div align="center">
<table width="100%" border="0" cellpadding="2" cellspacing="1" bgcolor="#62C0FF" class="border" style="border-width: 0">
          
         
          <tr align="center">
    <td height=20 class="topbg" colspan="2">多多科技管理</tr>          <tr> 
            <td align="center" width="9%" bgcolor="#FFFFFF"><font class=font>商品名称:</font></td>
            <td width="89%" bgcolor="#FFFFFF"><input name="goodsname" type="text" id="goodsname" value="<%=rs("goods_name")%>" size="20" maxlength="20"> 
              <font color="#FF0000">*</font> 不超过20个字符</td>
          </tr>
          <tr> 
            <td align="center" width="9%" bgcolor="#FFFFFF"><font class=font>商品描述:</font></td>
            <td width="89%" bgcolor="#FFFFFF">
			<textarea name="goodscontent" cols="65" rows="11" id="goodscontent"><%=rs("goods_content")%></textarea> 
              <font color="#FF0000">*</font>不超过255个字符</td>
          </tr>
          <tr> 
            <td align="center" width="9%" bgcolor="#FFFFFF"><font class=font>商品价格:</font></td>
            <td width="89%" bgcolor="#FFFFFF"><input name="goodsprice" type="text" id="goodsprice" value="<%=rs("goods_price")%>" size="15" maxlength="15">
              元</td>
          </tr>
          <tr> 
            <td align="center" width="9%" bgcolor="#FFFFFF"><font class=font>商品数量:</font></td>
            <td width="89%" bgcolor="#FFFFFF"><input name="goodsamount" type="text" id="goodsamount" value="<%=rs("goods_amount")%>" size="10" maxlength="10">
              个 </td>
          </tr>
 
          <tr> 
            <td align="center" width="9%" bgcolor="#FFFFFF"><font class=font>商品图片:</font></td>
            <td width="89%" bgcolor="#FFFFFF"><input name="goodspic" type="text" id="goodspic" size="40" maxlength="40"></td>
          </tr>
          <tr align="center"> 
            <td colspan="2" bgcolor="#FFFFFF"> <input type="submit" name="Submit" value="提交"> <input type="reset" name="Submit2" value="重置"> 
<%
session("goods_id")=rs("goods_id")        
Randomize
num1=rnd()
num1=int(26*num1)+65
session("antry")="test"&chr(num1)
%>
              <input name="temp" type="hidden" id="temp" value="<%=session("antry")%>"> 
            </td>
          </tr>
        </table>
      	</div>
      </form>
<%end if%><!--#include file="copy.asp"-->

⌨️ 快捷键说明

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