OrderEdit.asp
上传用户:dbstep
上传日期:2022-08-06
资源大小:2803k
文件大小:8k
- <HTML>
- <HEAD>
- <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8" />
- <TITLE>查看、修改、回复订单</TITLE>
- <link rel="stylesheet" href="Images/CssAdmin.css">
- <script language="javascript" src="../skweb/JS/Admin.js"></script>
- </HEAD>
- <!--#include file="../skweb/Const.asp" -->
- <!--#include file="../skweb/ConnSiteData.asp" -->
- <!--#include file="CheckAdmin.asp"-->
- <%
- if Instr(session("AdminPurview"),"|81,")=0 then
- response.write ("<script language=javascript> alert('你不具有该管理模块的操作权限,请返回!');history.back(-1);</script>")
- end if
- %>
- <%
- if Instr(session("AdminPurview"),"|94,")=0 then
- response.write ("<font color='red')>你不具有该管理模块的操作权限,请返回!</font>")
- response.end
- end if
- '========判断是否具有管理权限
- %>
- <BODY>
- <%
- dim Result
- Result=request.QueryString("Result")
- dim ReplyContent,ReplyTime,ID,ProductName,ProductNo,Amount,Remark,start_date
- dim Linkman,Company,Address,ZipCode,Telephone,Fax,Mobile,Email,AddTime
- ID=request.QueryString("ID")
- call OrderEdit()
- %>
- <table width="100%" border="0" cellpadding="3" >
- <form name="editForm" method="post" action="OrderEdit.asp?Action=SaveEdit&Result=<%=Result%>&ID=<%=ID%>">
- <tr>
- <td height="24" nowrap bgcolor="#EBF2F9"><table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#CCCCCC" id=editProduct idth="100%">
- <tr>
- <td height="29" colspan="2" background="Images/menutitle.gif" bgcolor="#FFFFFF"><table width="470" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td width="121"><strong><font color="#000000" size="2">产品管理</font></strong></td>
- <td width="87"><a href="ProductEdit.asp?Result=Add"><img src="Images/x1.gif" width="52" height="17" border="0"></a></td>
- <td width="87"><a href="ProductList.asp"><img src="Images/xlm.gif" width="52" height="17" border="0"></a></td>
- <td width="87"><a href="ProductSort.asp"><img src="Images/xx.gif" width="52" height="17" border="0"></a></td>
- <td width="88"><a href="OrderList.asp"><img src="Images/xdd.gif" width="52" height="17" border="0"></a></td>
- </tr>
- </table></td>
- </tr>
- <tr>
- <td height="20" align="right" bgcolor="#FFFFFF">产品名称:</td>
- <td bgcolor="#FFFFFF"><input name="ProductName" type="text" class="textfield" id="ProductName" style="WIDTH: 240;" value="<%=ProductName%>" readonly></td>
- </tr>
- <tr>
- <td height="20" align="right" bgcolor="#FFFFFF">预定时间:</td>
- <td bgcolor="#FFFFFF"><input name="start_date" type="text" class="textfield" id="ProductNo" style="WIDTH: 240;" value="<%=start_date%>" readonly></td>
- </tr>
- <tr>
- <td height="20" align="right" bgcolor="#FFFFFF">产品编号:</td>
- <td bgcolor="#FFFFFF"><input name="ProductNo" type="text" class="textfield" id="ProductNo" style="WIDTH: 240;" value="<%=ProductNo%>" readonly></td>
- </tr>
- <tr>
- <td height="20" align="right" bgcolor="#FFFFFF">订购数量:</td>
- <td bgcolor="#FFFFFF"><input name="Amount" type="text" class="textfield" id="Amount" style="WIDTH: 120;" value="<%=Amount%>" readonly></td>
- </tr>
- <tr>
- <td height="20" align="right" valign="top" bgcolor="#FFFFFF">补充说明:
- <td bgcolor="#FFFFFF"><textarea name="Remark" rows="6" class="textfield" id="Remark" style="WIDTH: 76%;" readonly><%=Remark%></textarea></td>
- </tr>
- <tr>
- <td height="20" align="right" bgcolor="#FFFFFF">订 购 者:</td>
- <td bgcolor="#FFFFFF"><%=Linkman%></td>
- </tr>
- <tr>
- <td height="20" align="right" bgcolor="#FFFFFF">单位名称:</td>
- <td bgcolor="#FFFFFF"><input name="Company" type="text" class="textfield" id="Company" style="WIDTH: 240;" value="<%=Company%>" readonly></td>
- </tr>
- <tr>
- <td height="20" align="right" bgcolor="#FFFFFF">通信地址:</td>
- <td bgcolor="#FFFFFF"><input name="Address" type="text" class="textfield" id="Address" style="WIDTH: 240;" value="<%=Address%>" readonly></td>
- </tr>
- <tr>
- <td height="20" align="right" bgcolor="#FFFFFF">邮 编:</td>
- <td bgcolor="#FFFFFF"><input name="ZipCode" type="text" class="textfield" id="ZipCode" style="WIDTH: 120" value="<%=ZipCode%>" readonly></td>
- </tr>
- <tr>
- <td height="20" align="right" bgcolor="#FFFFFF">电 话:</td>
- <td bgcolor="#FFFFFF"><input name="Telephone" type="text" class="textfield" id="Telephone" style="WIDTH: 240;" value="<%=Telephone%>" readonly></td>
- </tr>
- <tr>
- <td height="20" align="right" bgcolor="#FFFFFF">传 真:</td>
- <td bgcolor="#FFFFFF"><input name="Fax" type="text" class="textfield" id="Fax" style="WIDTH: 120" value="<%=Fax%>" readonly></td>
- </tr>
- <tr>
- <td height="20" align="right" bgcolor="#FFFFFF">移动电话:</td>
- <td bgcolor="#FFFFFF"><input name="Mobile" type="text" class="textfield" id="Mobile" style="WIDTH: 120" value="<%=Mobile%>" readonly></td>
- </tr>
- <tr>
- <td height="20" align="right" bgcolor="#FFFFFF">电子邮箱:</td>
- <td bgcolor="#FFFFFF"><input name="Email" type="text" class="textfield" id="Email" style="WIDTH: 240" value="<%=Email%>" readonly></td>
- </tr>
- <tr>
- <td height="20" align="right" bgcolor="#FFFFFF">订购时间:</td>
- <td bgcolor="#FFFFFF"><input name="AddTime" type="text" class="textfield" id="AddTime" style="WIDTH: 240" value="<%=AddTime%>" readonly></td>
- </tr>
- <tr>
- <td height="20" align="right" bgcolor="#FFFFFF">回复时间:</td>
- <td bgcolor="#FFFFFF"><input name="ReplyTime" type="text" class="textfield" id="ReplyTime" style="WIDTH: 240" value="<%=ReplyTime%>" readonly></td>
- </tr>
- <tr>
- <td height="20" align="right" valign="top" bgcolor="#FFFFFF">回复内容:</td>
- <td bgcolor="#FFFFFF"><textarea name="ReplyContent" rows="6" class="textfield" id="ReplyContent" style="WIDTH: 76%;"><%=ReplyContent%></textarea></td>
- </tr>
- <tr>
- <td height="30" align="right" bgcolor="#FFFFFF"> </td>
- <td valign="bottom" bgcolor="#FFFFFF"><input name="submitSaveEdit" type="submit" class="button" id="submitSaveEdit" value="保存" style="WIDTH: 80;" ></td>
- </tr>
- </table></td>
- </tr>
- </form>
- </table>
- </BODY>
- </HTML>
- <%
- sub OrderEdit()
- dim Action,rsCheckAdd,rs,sql
- Action=request.QueryString("Action")
- if Action="SaveEdit" then '保存编辑管理员信息
- set rs = server.createobject("adodb.recordset")
- if Result="Modify" then '修改网站管理员
- sql="select * from sk_Order where ID="&ID
- rs.open sql,conn,1,3
- rs("ReplyContent")=StrReplace(Request.Form("ReplyContent"))
- if not (trim(request.Form("ReplyContent"))="" or trim(request.Form("ReplyTime"))<>"") then
- rs("ReplyTime")=now()
- end if
- end if
- rs.update
- rs.close
- set rs=nothing
- Response.Redirect("Tips/dd.asp")
- else '提取留言信息
- if Result="Modify" then
- set rs = server.createobject("adodb.recordset")
- sql="select * from sk_Order where ID="& ID
- rs.open sql,conn,1,1
- start_date=rs("start_date")
- ProductName=rs("ProductName")
- ProductNo=rs("ProductNo")
- Amount=rs("Amount")
- Remark=ReStrReplace(rs("Remark"))
- Linkman=GuestInfo(rs("MemID"),rs("Linkman"),rs("Sex"))
- Company=rs("Company")
- Address=rs("Address")
- ZipCode=rs("ZipCode")
- Telephone=rs("Telephone")
- Fax=rs("Fax")
- Mobile=rs("Mobile")
- Email=rs("Email")
- AddTime=rs("AddTime")
- ReplyContent=ReStrReplace(rs("ReplyContent"))
- ReplyTime=rs("ReplyTime")
- rs.close
- set rs=nothing
- end if
- end if
- end sub
- function GuestInfo(ID,Guest,Sex)
- Dim rs,sql
- Set rs=server.CreateObject("adodb.recordset")
- sql="Select * From sk_Members where ID="&ID
- rs.open sql,conn,1,1
- if rs.bof and rs.eof then
- GuestInfo=Guest & " " & Sex
- else
- GuestInfo="<font color='green'>会员 </font><a href='MemEdit.asp?Result=Modify&ID="&ID&"' onClick='changeAdminFlag(""前台会员资料"")'>"&Guest&"</a>"&Sex
- end if
- rs.close
- set rs=nothing
- end function
- %>