WithDraw_Apply.asp
上传用户:jisenq
上传日期:2014-06-29
资源大小:7216k
文件大小:24k
源码类别:

数据库编程

开发平台:

ASP/ASPX

  1. <% Option Explicit %>
  2. <!--#include file="../../FS_Inc/Const.asp" -->
  3. <!--#include file="../../FS_InterFace/MF_Function.asp" -->
  4. <!--#include file="../../FS_Inc/Function.asp" -->
  5. <!--#include file="../lib/strlib.asp" -->
  6. <!--#include file="../lib/UserCheck.asp" -->
  7. <!--#include file="../../FS_Inc/Func_Page.asp" -->
  8. <% 'Copyright (c) 2006 Foosun Inc. Code by awen
  9. Dim FS_MS_WithDraw_Rs,This_Sub_Sql
  10. Dim int_RPP,int_Start,int_showNumberLink_,str_nonLinkColor_,toF_,toP10_,toP1_,toN1_,toN10_,toL_,showMorePageGo_Type_,cPageNo
  11. int_RPP=15 '设置每页显示数目
  12. int_showNumberLink_=10 '数字导航显示数目
  13. showMorePageGo_Type_ = 1 '是下拉菜单还是输入值跳转,当多次调用时只能选1
  14. str_nonLinkColor_="#999999" '非热链接颜色
  15. toF_="<font face=webdings>9</font>"    '首页 
  16. toP10_=" <font face=webdings>7</font>" '上十
  17. toP1_=" <font face=webdings>3</font>" '上一
  18. toN1_=" <font face=webdings>4</font>" '下一
  19. toN10_=" <font face=webdings>8</font>" '下十
  20. toL_="<font face=webdings>:</font>" '尾页
  21. Function and_where(sql)
  22. if instr(lcase(sql)," where ")>0 then 
  23. and_where = sql & " and "
  24. else
  25. and_where = sql & " where "
  26. end if
  27. End Function 
  28. Function Get_While_Info(Add_Sql)
  29. Dim Get_Html,This_Fun_Sql,ii,Str_Tmp,Arr_Tmp,New_Search_Str,Req_Str,regxp
  30. Str_Tmp = "ID,WithDrawNumber,OrderNumber,Descryption,State,Dealer,DealTime,ReturnInfo,RealName,Sex,Address,PostCode,Mobile,Tel"
  31. This_Fun_Sql = "select "&Str_Tmp&" from FS_MS_WithDraw where UserNumber='"&session("FS_UserNumber")&"'"
  32. if Add_Sql<>"" then 
  33. if instr(Add_Sql,"order by")>0 then 
  34. This_Fun_Sql = This_Fun_Sql &"  "& Add_Sql
  35. else
  36. This_Fun_Sql = and_where(This_Fun_Sql) & Add_Sql
  37. end if
  38. end if
  39. if request.QueryString("Act")="SearchGo" then 
  40. Arr_Tmp = split(Str_Tmp,",")
  41. for each Str_Tmp in Arr_Tmp
  42. if Trim(request.Form("frm_"&Str_Tmp))<>"" then 
  43. Req_Str = NoSqlHack(Trim(request.Form("frm_"&Str_Tmp)))
  44. select case Str_Tmp
  45. case "ID","State","DealTime"
  46. ''数字,日期
  47. regxp = "|<|>|=|<=|>=|<>|"
  48. if instr(regxp,"|"&left(Req_Str,1)&"|")>0 or instr(regxp,"|"&left(Req_Str,2)&"|")>0 then 
  49. New_Search_Str = and_where( New_Search_Str ) & Str_Tmp &" "& Req_Str
  50. elseif instr(Req_Str,"*")>0 then 
  51. if left(Req_Str,1)="*" then Req_Str = "%"&mid(Req_Str,2)
  52. if right(Req_Str,1)="*" then Req_Str = mid(Req_Str,1,len(Req_Str) - 1) & "%"
  53. New_Search_Str = and_where( New_Search_Str ) & Str_Tmp &" like '"& Req_Str &"'"
  54. else
  55. New_Search_Str = and_where( New_Search_Str ) & Str_Tmp &" = "& Req_Str
  56. end if
  57. case else
  58. ''字符
  59. New_Search_Str = and_where(New_Search_Str) & Search_TextArr(Req_Str,Str_Tmp,"")
  60. end select 
  61. end if
  62. next
  63. if New_Search_Str<>"" then This_Fun_Sql = and_where(This_Fun_Sql) & replace(New_Search_Str," where ","")
  64. 'response.End()
  65. end if
  66. Str_Tmp = ""
  67. Set FS_MS_WithDraw_Rs = CreateObject(G_FS_RS)
  68. FS_MS_WithDraw_Rs.Open This_Fun_Sql,Conn,1,1
  69. IF not FS_MS_WithDraw_Rs.eof THEN
  70. FS_MS_WithDraw_Rs.PageSize=int_RPP
  71. cPageNo=NoSqlHack(Request.QueryString("Page"))
  72. If cPageNo="" Then cPageNo = 1
  73. If not isnumeric(cPageNo) Then cPageNo = 1
  74. cPageNo = Clng(cPageNo)
  75. If cPageNo<=0 Then cPageNo=1
  76. If cPageNo>FS_MS_WithDraw_Rs.PageCount Then cPageNo=FS_MS_WithDraw_Rs.PageCount 
  77. FS_MS_WithDraw_Rs.AbsolutePage=cPageNo
  78.   FOR int_Start=1 TO int_RPP 
  79. Get_Html = Get_Html & "<tr class=""hback"">" & vbcrlf
  80. Get_Html = Get_Html & "<td align=""center"" style=""cursor:hand"" onclick=""javascript:if(TD_U_"&FS_MS_WithDraw_Rs("ID")&".style.display=='') TD_U_"&FS_MS_WithDraw_Rs("ID")&".style.display='none'; else TD_U_"&FS_MS_WithDraw_Rs("ID")&".style.display='';"" title='点击查看处理情况'>"&FS_MS_WithDraw_Rs("ID")&"</td>" & vbcrlf
  81. Get_Html = Get_Html & "<td align=""center"" style=""cursor:hand"" onclick=""javascript:if(TD_SH_"&FS_MS_WithDraw_Rs("ID")&".style.display=='') TD_SH_"&FS_MS_WithDraw_Rs("ID")&".style.display='none'; else TD_SH_"&FS_MS_WithDraw_Rs("ID")&".style.display='';"" title='点击查看收货人情况'>"&FS_MS_WithDraw_Rs("RealName")&"</td>" & vbcrlf
  82. Get_Html = Get_Html & "<td align=""center""><a href=""WithDraw_Apply.asp?Act=Edit&ID="&FS_MS_WithDraw_Rs("ID")&""" class=""otherset"" title='点击查看详细/修改'>"&FS_MS_WithDraw_Rs("WithDrawNumber")&"</a></td>" & vbcrlf
  83. Get_Html = Get_Html & "<td align=""center""><a href=""../order.asp?OrderNumber="&FS_MS_WithDraw_Rs("OrderNumber")&""" title=""查看该订单信息"" target=_blank>"&FS_MS_WithDraw_Rs("OrderNumber")&"</a></td>" & vbcrlf
  84. Get_Html = Get_Html & "<td align=""center"">"& left(FS_MS_WithDraw_Rs("Descryption"),50) & "...</td>" & vbcrlf
  85. Get_Html = Get_Html & "<td align=""center"">"& Replacestr(FS_MS_WithDraw_Rs("State"),"1:已处理,0:<span class=tx>未处理</span>,else:未知的状态") & "</td>" & vbcrlf
  86. Get_Html = Get_Html & "<td align=""center"" class=""ischeck""><input type=""checkbox"" name=""ID"" id=""ID"" value="""&FS_MS_WithDraw_Rs("ID")&""" /></td>" & vbcrlf
  87. Get_Html = Get_Html & "</tr>" & vbcrlf 
  88. ''++++++++++++++++++++++++++++++++++++++点开时显示详细信息。
  89. Get_Html = Get_Html & "<tr class=""hback"" id=""TD_SH_"& FS_MS_WithDraw_Rs("ID") &""" style=""display:none""><td colspan=20>" & vbcrlf
  90. Get_Html = Get_Html & "<table width=""100%"" height=""30"" border=""0"" cellspacing=""1"" cellpadding=""2"" class=""table"">" & vbcrlf 
  91. Get_Html = Get_Html & "<tr class=""hback"">" & vbcrlf &"<td>收货人姓名:"&FS_MS_WithDraw_Rs("RealName")& " 手机号码:"&FS_MS_WithDraw_Rs("Mobile")& " 联系电话:"&FS_MS_WithDraw_Rs("Tel")& "</td></tr>" & vbcrlf
  92. Get_Html = Get_Html & "<tr class=""hback"">" & vbcrlf &"<td>处理地址:"&FS_MS_WithDraw_Rs("Address") & " 邮政编码:"&FS_MS_WithDraw_Rs("PostCode") & "</td></tr>" & vbcrlf
  93. Get_Html = Get_Html & "</table>" & vbcrlf
  94. Get_Html = Get_Html &"</td></tr>" & vbcrlf
  95. ''+++++++++++++++++++++++++++++++++++++++
  96. ''++++++++++++++++++++++++++++++++++++++点开时显示详细信息。
  97. Get_Html = Get_Html & "<tr class=""hback"" id=""TD_U_"& FS_MS_WithDraw_Rs("ID") &""" style=""display:none""><td colspan=20>" & vbcrlf
  98. Get_Html = Get_Html & "<table width=""100%"" height=""30"" border=""0"" cellspacing=""1"" cellpadding=""2"" class=""table"">" & vbcrlf 
  99. Get_Html = Get_Html & "<tr class=""hback"">" & vbcrlf &"<td  colspan=10>处理反馈:<br />"&FS_MS_WithDraw_Rs("ReturnInfo")& "</td></tr>" & vbcrlf
  100. Get_Html = Get_Html & "<tr class=""hback"">" & vbcrlf &"<td>处理人姓名:"&FS_MS_WithDraw_Rs("Dealer") & "</td><td>处理时间:"&FS_MS_WithDraw_Rs("DealTime") & "</td></tr>" & vbcrlf
  101. Get_Html = Get_Html & "</table>" & vbcrlf
  102. Get_Html = Get_Html &"</td></tr>" & vbcrlf
  103. ''+++++++++++++++++++++++++++++++++++++++
  104. FS_MS_WithDraw_Rs.MoveNext
  105.   if FS_MS_WithDraw_Rs.eof or FS_MS_WithDraw_Rs.bof then exit for
  106.       NEXT
  107. END IF
  108. Get_Html = Get_Html & "<tr class=""hback""><td colspan=20 align=""center"" class=""ischeck"">"& vbcrlf &"<table width=""100%"" border=0><tr><td height=30>" & vbcrlf
  109. Get_Html = Get_Html & fPageCount(FS_MS_WithDraw_Rs,int_showNumberLink_,str_nonLinkColor_,toF_,toP10_,toP1_,toN1_,toN10_,toL_,showMorePageGo_Type_,cPageNo)  & vbcrlf
  110. Get_Html = Get_Html & "</td><td align=right><input type=""submit"" name=""submit"" value="" 删除 "" onclick=""javascript:return confirm('确定要删除所选项目吗?');""></td>"
  111. Get_Html = Get_Html &"</tr></table>"&vbNewLine&"</td></tr>"
  112. Get_Html = Get_Html &"</td></tr>"
  113. FS_MS_WithDraw_Rs.close
  114. Get_While_Info = Get_Html
  115. End Function
  116. Sub Del()
  117. Dim Str_Tmp
  118. if request.QueryString("ID")<>"" then 
  119. Conn.execute("Delete from FS_MS_WithDraw where ID = "&request.QueryString("ID"))
  120. else
  121. Str_Tmp = request.form("ID")
  122. if Str_Tmp="" then response.Redirect("../lib/error.asp?ErrCodes=<li>你必须至少选择一个进行删除。</li>")
  123. Str_Tmp = replace(Str_Tmp," ","")
  124. Conn.execute("Delete from FS_MS_WithDraw where ID in ("&Str_Tmp&")")
  125. end if
  126. response.Redirect("../lib/success.asp?ErrorUrl="&server.URLEncode( "../Mall/WithDraw_Apply.asp?Act=View" )&"&ErrCodes=<li>恭喜,删除成功。</li>")
  127. End Sub
  128. ''================================================================
  129. Function Get_WithDrawNumber()
  130. Dim this_Str
  131. this_Str = formatedate(year(now))&formatedate(month(now))&formatedate(day(now))&formatedate(hour(now))&formatedate(minute(now))&formatedate(second(now))
  132. this_Str = this_Str & GetRamCode(3)
  133. Get_WithDrawNumber = this_Str
  134. this_Str = ""
  135. End Function
  136. Function formatedate(str)
  137. select case len(str)
  138. case 3,4
  139. formatedate = right(str,2)
  140. case 1
  141. formatedate = "0"&str
  142. end select
  143. str = ""
  144. End Function
  145. ''得到相关表的值。
  146. Function Get_OtherTable_Value(This_Fun_Sql)
  147. Dim This_Fun_Rs
  148. if instr(This_Fun_Sql," FS_ME_")>0 then 
  149. set This_Fun_Rs = User_Conn.execute(This_Fun_Sql)
  150. else
  151. set This_Fun_Rs = Conn.execute(This_Fun_Sql)
  152. end if
  153. if not This_Fun_Rs.eof then 
  154. Get_OtherTable_Value = This_Fun_Rs(0)
  155. else
  156. Get_OtherTable_Value = ""
  157. end if
  158. if Err.Number>0 then 
  159. Err.Clear
  160. response.Redirect("../lib/error.asp?ErrCodes=<li>Get_OtherTable_Value未能得到相关数据。错误描述:"&Err.Description&"</li>") : response.End()
  161. end if
  162. set This_Fun_Rs=nothing 
  163. End Function
  164. Sub Save()
  165. Dim Str_Tmp,Arr_Tmp,ID,UserNumber
  166. Str_Tmp = "OrderNumber,Descryption,RealName,Sex,Address,PostCode,Mobile,Tel"
  167. Arr_Tmp = split(Str_Tmp,",") 
  168. ID = NoSqlHack(request.Form("ID"))
  169. if not isnumeric(ID) or ID = "" then ID = 0 
  170. This_Sub_Sql = "select WithDrawNumber,UserNumber,State,"&Str_Tmp&" from FS_MS_WithDraw where ID="&ID&" and  UserNumber='"&session("FS_UserNumber")&"'"
  171. Set FS_MS_WithDraw_Rs = CreateObject(G_FS_RS)
  172. FS_MS_WithDraw_Rs.Open This_Sub_Sql,Conn,3,3
  173. if ID > 0 then 
  174. ''修改
  175. for each Str_Tmp in Arr_Tmp
  176. FS_MS_WithDraw_Rs(Str_Tmp) = NoSqlHack(request.Form("frm_"&Str_Tmp))
  177. 'response.Write(Str_Tmp &":"&NoSqlHack(request.Form("frm_"&Str_Tmp)))&"<br>"
  178. next
  179. FS_MS_WithDraw_Rs.update
  180. FS_MS_WithDraw_Rs.close
  181. response.Redirect("../lib/success.asp?ErrorUrl="&server.URLEncode( "../Mall/WithDraw_Apply.asp?Act=Edit&ID="&ID )&"&ErrCodes=<li>恭喜,修改成功。</li>")
  182. else
  183. ''新增
  184. FS_MS_WithDraw_Rs.addnew
  185. FS_MS_WithDraw_Rs("State") = 0
  186. FS_MS_WithDraw_Rs("UserNumber") = session("FS_UserNumber")
  187. FS_MS_WithDraw_Rs("WithDrawNumber") = Get_WithDrawNumber()
  188. for each Str_Tmp in Arr_Tmp
  189. FS_MS_WithDraw_Rs(Str_Tmp) = NoSqlHack(request.Form("frm_"&Str_Tmp))
  190. next
  191. FS_MS_WithDraw_Rs.update
  192. FS_MS_WithDraw_Rs.close
  193. response.Redirect("../lib/success.asp?ErrorUrl="&server.URLEncode( "../Mall/WithDraw_Apply.asp" ) &"&ErrCodes=<li>恭喜,新增成功。</li>")
  194. end if
  195. End Sub
  196. ''=========================================================
  197. %>
  198. <html xmlns="http://www.w3.org/1999/xhtml">
  199. <title>退货申请管理---网站内容管理系统</title>
  200. <meta name="keywords" content="风讯cms,cms,FoosunCMS,FoosunOA,FoosunVif,vif,风讯网站内容管理系统">
  201. <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
  202. <meta content="MSHTML 6.00.3790.2491" name="GENERATOR" />
  203. <meta name="Keywords" content="Foosun,FoosunCMS,Foosun Inc.,风讯,风讯网站内容管理系统,风讯系统,风讯新闻系统,风讯商城,风讯b2c,新闻系统,CMS,域名空间,asp,jsp,asp.net,SQL,SQL SERVER" />
  204. <link href="../images/skin/Css_<%=Request.Cookies("FoosunUserCookies")("UserLogin_Style_Num")%>/<%=Request.Cookies("FoosunUserCookies")("UserLogin_Style_Num")%>.css" rel="stylesheet" type="text/css">
  205. <script language="JavaScript" src="../../FS_Inc/PublicJS_YanZheng.js"></script>
  206. <script language="JavaScript" type="text/JavaScript">
  207. <!--
  208. //点击标题排序
  209. var Old_Sql = document.URL;
  210. function OrderByName(FildName)
  211. {
  212. //alert(document.URL);
  213. var New_Sql;
  214. if(Old_Sql.indexOf('Add_Sql')<0)
  215. {
  216. if(Old_Sql.indexOf('?')<0)
  217. New_Sql = Old_Sql + "?Add_Sql=order by " + FildName;
  218. else
  219. New_Sql = Old_Sql + "&Add_Sql=order by " + FildName;
  220. }
  221. else
  222. {
  223. if(Old_Sql.indexOf("Add_Sql=order by " + FildName + " desc")>-1)
  224. {
  225. New_Sql = Old_Sql.substring(0,Old_Sql.indexOf("Add_Sql=")) + "Add_Sql=order by " + FildName;
  226. }
  227. else
  228. {
  229. New_Sql = Old_Sql.substring(0,Old_Sql.indexOf("Add_Sql=")) + "Add_Sql=order by " + FildName + " desc";
  230. }
  231. }
  232. //alert(New_Sql);
  233. location = New_Sql;
  234. }
  235. -->
  236. </script>
  237. <BODY LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0 scroll=yes  oncontextmenu="return true;">
  238. <table width="98%" border="0" align="center" cellpadding="1" cellspacing="1" class="table">
  239.   <tr>
  240.     <td>
  241.       <!--#include file="../top.asp" -->
  242.     </td>
  243.   </tr>
  244. </table>
  245. <table width="98%" height="135" border="0" align="center" cellpadding="1" cellspacing="1" class="table">
  246.   
  247.     <tr class="back"> 
  248.       <td   colspan="2" class="xingmu" height="26"> <!--#include file="../Top_navi.asp" --> </td>
  249.     </tr>
  250.     <tr class="back"> 
  251.       <td width="18%" valign="top" class="hback"> <div align="left"> 
  252.           <!--#include file="../menu.asp" -->
  253.         </div></td>
  254.       <td width="82%" valign="top" class="hback"><table width="98%" border="0" align="center" cellpadding="5" cellspacing="1" class="table">
  255.           <tr class="hback"> 
  256.             
  257.           <td class="hback"><strong>位置:</strong><a href="../../">网站首页</a> &gt;&gt; 
  258.             <a href="../main.asp">会员首页</a> &gt;&gt; <a href="../order.asp">定单管理</a>-退货申请管理</td>
  259.           </tr>
  260.         </table>
  261. <table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table">
  262.   <tr  class="hback"> 
  263.     <td class="xingmu" >退货申请管理</td>
  264.   </tr>
  265.   <tr  class="hback"> 
  266.     <td><a href="WithDraw_Apply.asp?Act=View">管理首页</a>
  267.  | <a href="WithDraw_Apply.asp?Act=Search">查询</a> | 
  268.  (<a href="WithDraw_Apply.asp?Act=View&Add_Sql=<%=server.URLEncode("state=0")%>">未处理</a> | <a href="WithDraw_Apply.asp?Act=View&Add_Sql=<%=server.URLEncode("state=1")%>">已处理</a>)</td>
  269.   </tr>
  270. </table>
  271. <%
  272. '******************************************************************
  273. select case request.QueryString("Act")
  274. case "","View","SearchGo"
  275. View
  276. case  "Add","Edit","Search"
  277. Add_Edit_Search
  278. case "Save"
  279. Save
  280. case "Del"
  281. Del
  282. case "OtherEdit"
  283. OtherEdit
  284. case else
  285. response.Write("请确认请求是否正确?")
  286. end select
  287. '******************************************************************
  288. Sub View()%>
  289. <table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table">
  290.   <form name="form1" method="post" action="?Act=Del">
  291.     <tr  class="hback"> 
  292.       <td align="center" class="xingmu"><a href="javascript:OrderByName('ID')" class="sd"><b>〖ID〗</b></a> <span id="Show_Oder_ID"></span></td>
  293.   <td align="center" class="xingmu"><a href="javascript:OrderByName('RealName')" class="sd"><b>收货人姓名</b></a> <span id="Show_Oder_RealName"></span></td>
  294.       <td align="center" class="xingmu"><a href="javascript:OrderByName('WithDrawNumber')" class="sd"><b>退货编号</b></a> <span id="Show_Oder_WithDrawNumber"></span></td>
  295.   <td align="center" class="xingmu"><a href="javascript:OrderByName('OrderNumber')" class="sd"><b>订单编号</b></a> <span id="Show_Oder_OrderNumber"></span></td>
  296.   <td align="center" class="xingmu"><a href="javascript:OrderByName('Descryption')" class="sd"><b>退货原因</b></a> <span id="Show_Oder_Descryption"></span></td>
  297.   <td align="center" class="xingmu"><a href="javascript:OrderByName('State')" class="sd"><b>退货状态</b></a> <span id="Show_Oder_State"></span></td>
  298.       <td width="2%" align="center" class="xingmu"><input name="ischeck" type="checkbox" value="checkbox" onClick="selectAll(this.form)" /></td>
  299.     </tr>
  300.     <%
  301. response.Write( Get_While_Info( request.QueryString("Add_Sql") ) )
  302. %>
  303.   </form>
  304. </table>
  305. <%End Sub
  306. Sub Add_Edit_Search()
  307. Dim ID,Bol_IsEdit,OrderNumber,State,RealName,Sex,Address,PostCode,Mobile,Tel
  308. Bol_IsEdit = false
  309. if request.QueryString("Act")="Edit" then 
  310. ID = request.QueryString("ID")
  311. if not isnumeric(ID) or ID="" then response.Redirect("../lib/error.asp?ErrorUrl=&ErrCodes=<li>必要的ID没有提供</li>") : response.End()
  312. This_Sub_Sql = "select ID,OrderNumber,Descryption,State,Dealer,DealTime,ReturnInfo,RealName,Sex,Address,PostCode,Mobile,Tel from FS_MS_WithDraw where ID="&ID&" and  UserNumber='"&session("FS_UserNumber")&"'"
  313. Set FS_MS_WithDraw_Rs = CreateObject(G_FS_RS)
  314. FS_MS_WithDraw_Rs.Open This_Sub_Sql,Conn,1,1
  315. if FS_MS_WithDraw_Rs.eof then response.Redirect("../lib/error.asp?ErrorUrl=&ErrCodes=<li>没有相关的内容,或该内容已不存在.</li>") : response.End()
  316. Bol_IsEdit = True
  317. OrderNumber = FS_MS_WithDraw_Rs("OrderNumber")
  318. State  = FS_MS_WithDraw_Rs("State")
  319. RealName = FS_MS_WithDraw_Rs("RealName")
  320. Sex = FS_MS_WithDraw_Rs("Sex")
  321. Address = FS_MS_WithDraw_Rs("Address")
  322. PostCode = FS_MS_WithDraw_Rs("PostCode")
  323. Mobile = FS_MS_WithDraw_Rs("Mobile")
  324. Tel = FS_MS_WithDraw_Rs("Tel")
  325. elseif request.QueryString("Act")="Add" then 
  326. State = 0
  327. OrderNumber = NoSqlHack(request.QueryString("OrderNumber"))
  328. set FS_MS_WithDraw_Rs = User_Conn.execute("select M_UserName,M_Address,M_Tel,M_PostCode,M_Mobile,M_Sex from FS_ME_Order where OrderNumber='"&OrderNumber&"' and UserNumber='"&session("FS_UserNumber")&"'")
  329. if FS_MS_WithDraw_Rs.eof then response.Redirect("../lib/error.asp?ErrorUrl=&ErrCodes=<li>没有相关的内容,或该内容已不存在.</li>") : response.End()
  330. RealName = FS_MS_WithDraw_Rs("M_UserName")
  331. Sex = FS_MS_WithDraw_Rs("M_Sex")
  332. Address = FS_MS_WithDraw_Rs("M_Address")
  333. PostCode = FS_MS_WithDraw_Rs("M_PostCode")
  334. Mobile = FS_MS_WithDraw_Rs("M_Mobile")
  335. Tel = FS_MS_WithDraw_Rs("M_Tel")
  336. end if
  337. %>
  338. <table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" class="table">
  339.   <form name="form_Save" onsubmit="return Validator.Validate(this,3);" method="post" action="<%if request.QueryString("Act")="Search" then response.Write("?Act=SearchGo") else response.Write("?Act=Save") end if%>">
  340.     <tr  class="hback"> 
  341.       <td colspan="3" align="left" class="xingmu" ><%if Bol_IsEdit then response.Write("修改退货信息<input type=""hidden"" name=""ID"" value="""&FS_MS_WithDraw_Rs(0)&""">") else response.Write("退货信息") end if%></td>
  342. </tr>
  343. <%if request.QueryString("Act")="Search" then %>
  344.     <tr  class="hback"> 
  345.        <td width="20%" align="right">退货ID</td>
  346.       <td>
  347. <input name="frm_ID" type="text" value="" size="50" maxlength="11">
  348.       </td>
  349.     </tr>
  350.     <tr  class="hback"> 
  351.       <td align="right">退货编号</td>
  352.       <td>
  353. <input name="frm_WithDrawNumber" type="text" value="" size="50" maxlength="20">
  354.       </td>
  355.     </tr>
  356. <%end if%>
  357.     <tr  class="hback"> 
  358.       <td align="right">对应订单编号</td>
  359.       <td>
  360.   <%if request.QueryString("Act")="Search" then %>
  361.     <input name="frm_OrderNumber" type="text" value="" size="50" maxlength="20">
  362.   <%else%>
  363. <input name="frm_OrderNumber" type="hidden" value="<%=OrderNumber%>">
  364.   <%end if%>
  365. <%response.Write("<a href=""../order.asp?OrderNumber="&OrderNumber&""" title=""查看对应的订单情况"" target=_blank>"&OrderNumber&"</a>")%>
  366.       </td>
  367.     </tr>
  368.     <tr  class="hback"> 
  369.       <td align="right">退货原因</td>
  370.       <td>
  371. <textarea name="frm_Descryption" cols="50" rows="10" <%if request.querystring("act")<>"Search" then response.Write("datatype=""Require"" msg=""退货原因必须填写""") end if%>><%if Bol_IsEdit then response.Write(FS_MS_WithDraw_Rs("Descryption")) end if%></textarea>
  372.       </td>
  373.     </tr>
  374.      <tr  class="hback"> 
  375.       <td align="right">收货人姓名</td>
  376.       <td>
  377. <input type="text" name="frm_RealName" size="50" maxlength="30" value="<%=RealName%>" <%if request.querystring("act")<>"Search" then response.Write("datatype=""Require"" msg=""收货人姓名必须填写""") end if%>>
  378.   </td>
  379.     </tr>
  380.      <tr  class="hback"> 
  381.       <td align="right">收货人性别</td>
  382.       <td>
  383. <select name="frm_Sex" <%if request.querystring("act")<>"Search" then response.Write("datatype=""Require"" msg=""收货人姓名必须填写""") end if%>>
  384.  <%=PrintOption(State,":请选择,1:女,0:男")%>
  385. </select>  
  386.   </td>
  387.     </tr>
  388.      <tr  class="hback"> 
  389.       <td align="right">收货人手机号码</td>
  390.       <td>
  391. <input type="text" name="frm_Mobile" size="50"  maxlength="20" value="<%=Mobile%>" <%if request.querystring("act")<>"Search" then response.Write("require=false datatype=""Mobile"" msg=""收货人手机号码格式不正确""") end if%>>
  392.   </td>
  393.     </tr>
  394.      <tr  class="hback"> 
  395.       <td align="right">收货人联系电话</td>
  396.       <td>
  397. <input type="text" name="frm_Tel" size="50"  maxlength="20" value="<%=Tel%>" <%if request.querystring("act")<>"Search" then response.Write("datatype=""Require"" msg=""收货人联系电话必须填写""") end if%>>
  398.   </td>
  399.     </tr>
  400.      <tr  class="hback"> 
  401.       <td align="right">收货地址</td>
  402.       <td>
  403. <input type="text" name="frm_Address" size="50"  maxlength="100" value="<%=Address%>" <%if request.querystring("act")<>"Search" then response.Write("datatype=""Require"" msg=""收货人地址必须填写""") end if%>>
  404.   </td>
  405.     </tr>
  406.      <tr  class="hback"> 
  407.       <td align="right">邮政编码</td>
  408.       <td>
  409. <input type="text" name="frm_PostCode" size="50"  maxlength="6" value="<%=PostCode%>" <%if request.querystring("act")<>"Search" then response.Write("datatype=""Zip"" msg=""邮政编码格式不正确""") end if%>>
  410.   </td>
  411.     </tr>
  412.     <tr  class="hback"> 
  413.       <td align="right">处理状态</td>
  414.       <td>
  415. <%if Bol_IsEdit then 
  416. response.Write(Replacestr(State,"1:已处理,else:<span class=tx>未处理</span>"))
  417. elseif request.QueryString("Act")="Search" then%>
  418. <select name="frm_State">
  419.  <%=PrintOption(State,":请选择,1:已处理,0:未处理")%>
  420. </select>
  421. <%end if%>
  422.   </td>
  423.     </tr>
  424.     <tr  class="hback"> 
  425.       <td align="right">处理人</td>
  426.       <td>   
  427. <%if Bol_IsEdit then 
  428. response.Write(FS_MS_WithDraw_Rs("Dealer"))
  429. elseif request.QueryString("Act")="Search" then%>
  430. <input type="text" name="frm_Dealer" size="50">
  431. <%end if%>
  432.   </td>
  433.     </tr>
  434.      <tr  class="hback"> 
  435.       <td align="right">处理时间</td>
  436.       <td>
  437. <%if Bol_IsEdit then 
  438. response.Write(FS_MS_WithDraw_Rs("DealTime"))
  439. elseif request.QueryString("Act")="Search" then%>
  440. <input type="text" name="frm_DealTime" size="50">
  441. <%end if%>
  442.   </td>
  443.     </tr>
  444.    <tr  class="hback"> 
  445.       <td align="right">处理意见反馈</td>
  446.       <td>
  447. <%if Bol_IsEdit then 
  448. response.Write(FS_MS_WithDraw_Rs("ReturnInfo"))
  449. elseif request.QueryString("Act")="Search" then%>
  450. <textarea name="frm_ReturnInfo" cols="50" rows="10"></textarea>
  451. <%end if%>
  452.   </td>
  453.     </tr>
  454.     <tr  class="hback"> 
  455.       <td colspan="4">
  456.   <table border="0" width="100%" cellpadding="0" cellspacing="0">
  457.           <tr> 
  458.             <td align="center"> <input type="submit" value=" <%if request.QueryString("Act")="Search" then response.Write("查询") else response.Write("保存") end if%> " <%if Bol_IsEdit then response.Write(Replacestr(State,"1:disabled title=""已经处理后的退货您不能编辑"",else:")) end if%> /> 
  459.               &nbsp; <input type="reset" value=" 重置 " />
  460.      &nbsp; <input type="button" value=" 删除 " <%if request.QueryString("Act")<>"Edit" then response.Write("disabled") end if%> onClick="if(confirm('确定删除该项目吗?')) location='<%=server.URLEncode("WithDraw_Apply.asp?Act=Del&ID="&ID)%>'">
  461.             </td>
  462.           </tr>
  463.         </table>
  464.       </td>
  465.     </tr>
  466.   </form>
  467. </table>
  468. <%End Sub%>
  469.        </td>
  470.     </tr>
  471.     <tr class="back"> 
  472.       <td height="20" colspan="2" class="xingmu"> <div align="left"> 
  473.           <!--#include file="../Copyright.asp" -->
  474.         </div></td>
  475.     </tr>
  476.  
  477. </table>
  478. </body>
  479. <%
  480. Set FS_MS_WithDraw_Rs=nothing
  481. Set Fs_User = Nothing
  482. %>
  483. <script language="JavaScript">
  484. <!--//判断后将排序完善.字段名后面显示指示
  485. var Req_FildName;
  486. var New_FildName='';
  487. if (Old_Sql.indexOf("Add_Sql=order by ")>-1)
  488. {
  489. if(Old_Sql.indexOf(" desc")>-1)
  490. Req_FildName = Old_Sql.substring(Old_Sql.indexOf("Add_Sql=order by ") + "Add_Sql=order by ".length , Old_Sql.indexOf(" desc"));
  491. else
  492. Req_FildName = Old_Sql.substring(Old_Sql.indexOf("Add_Sql=order by ") + "Add_Sql=order by ".length , Old_Sql.length);
  493. if (document.getElementById('Show_Oder_'+Req_FildName)!=null)  
  494. {
  495. if(Old_Sql.indexOf(Req_FildName + " desc")>-1)
  496. {
  497. eval('Show_Oder_'+Req_FildName).innerText = '↓';
  498. }
  499. else
  500. {
  501. eval('Show_Oder_'+Req_FildName).innerText = '↑';
  502. }
  503. }
  504. }
  505. -->
  506. </script>
  507. </html>
  508. <!-- Powered by: FoosunCMS4.0系列,Company:Foosun Inc. -->