E_shop.asp
Upload User: ahxunteng
Upload Date: 2022-05-16
Package Size: 1606k
Code Size: 5k
Development Platform:

VBScript

  1. <%@ LANGUAGE=VBScript CodePage=936%>
  2. <%option explicit%>
  3. <%Response.Buffer=True%>
  4. <!--#include file="Include/System.asp"-->
  5. <!--#include file="Include/StrLeft.asp"-->
  6. <%If Session("UserName")="" Then
  7. Response.Redirect"Server.asp"
  8. end if%>
  9. <SCRIPT language=javascript>
  10. function chkitem(str) {
  11. var strSource ="0123456789-";
  12. var ch;
  13. var i;
  14. var temp;
  15. for (i=0;i<=(str.length-1);i++) {
  16. ch = str.charAt(i);
  17. temp = strSource.indexOf(ch);
  18. if (temp==-1)
  19. {
  20. return 0;
  21. }
  22. }
  23. if (strSource.indexOf(ch)==-1) {
  24. return 0;
  25. }
  26. else
  27. {
  28. return 1;
  29. }
  30. }
  31. function FORM1_onsubmit() {
  32. if (chkitem(document.FORM1.Form_Id.value)==0) {
  33. alert("请输入正确的订单号码。");
  34. document.FORM1.Form_Id.focus();
  35. return false;
  36. }
  37. }
  38. </SCRIPT>
  39. <!--#include file="Include/Head.asp" -->
  40. <TABLE cellPadding=0 cellSpacing=0 class='Middle_Title'>
  41. <TR> 
  42. <TD vAlign=top class='M_Left_Td'> 
  43. <table cellpadding="0" cellspacing="0" align="center" class='M_Left_Title'>
  44. <tr>
  45. <td valign="top">
  46. <% Call Left_Member() %>
  47. </td>
  48. </tr>
  49. </table> 
  50. </TD>
  51. <%if strSkins <= 200 and strSkins >= 1 then%>
  52. <TD class='M_Jgx_TD'><IMG src='../img/1x1_pix.gif' width=1 height=2></TD>
  53. <%
  54. elseif strSkins <= 250 and strSkins >= 201 then '新风格==============================================================
  55. %>
  56. <%end if%>
  57. <TD vAlign=top> 
  58. <TABLE cellPadding=0 cellSpacing=0 align='center' class='M_Center_Title'>
  59. <% Call Style_Adcolumn() '广告栏 %>
  60. <!-- 订单查询 -->
  61. <TR>
  62. <TD>
  63. <TABLE cellSpacing=0 cellPadding=0 class='MC_Pt_Title'>
  64. <TR>
  65. <TD class='MC_Pt_TD1'><IMG src='../img/1x1_pix.gif' width=3 height=1></TD>
  66. <TD class='MC_Pt_TD2'><IMG src='../img/1x1_pix.gif' width=3 height=1></TD>
  67. <TD class='MC_Pt_TD3'><SPAN class=Glow>
  68. 订单查询
  69. &nbsp;</SPAN></TD>
  70. <TD class='MC_Pt_TD4'><div align="right">
  71. &nbsp;</div></TD>
  72. <TD class='MC_Pt_TD5'><IMG src='../img/1x1_pix.gif' width=3 height=1></TD>
  73. </TR>
  74. </TABLE>
  75. </TD>
  76. </TR>
  77. <TR> 
  78. <TD>
  79. <TABLE cellSpacing=0 cellPadding=0 class='MC_ServeNr_Title'>
  80. <TR><TD height=10><IMG src='../img/1x1_pix.gif' width=3 height=1></TD></TR>
  81. <TR vAlign=top > 
  82. <TD  width="100%" height="18">
  83. <form action="Orderofind.asp" method="post" name=FORM1 onSubmit="return FORM1_onsubmit()" language=javascript>
  84. <p align="center"> <font size="4" face="Arial"><%=Session("UserName")%></font><font color="#FF0000">&nbsp;&nbsp;您好</font></p>
  85. <p style="word-spacing: 0; margin-left: 10; margin-right: 10; margin-top: 0; margin-bottom: 0" align="center">下面是您已经在本站提交的订单。 
  86. <%
  87. dim Id,sql,rs
  88. Id=Session("UserName")
  89. set rs = Server.CreateObject("ADODB.recordset")
  90. sql="select * from OrderList where UserName='"&Id&"'"
  91. rs.open sql,conn,1,1
  92. %>
  93. </p>
  94. <p align="center" style="word-spacing: 0; margin-top: 0; margin-bottom: 0"
  95. >订单详细资料查询,请输入您要查询的订单号码<input type="text" name="Form_Id" size="11">
  96. <input type="submit" value="查询" name="B1"></form>
  97. <div align="center"> 
  98. <TABLE cellSpacing=0 cellPadding=0 width=100%>
  99. <TR> 
  100. <TD align=middle width="100%"> <p align="center" style="word-spacing: 0; margin-top: 0; margin-bottom: 0"><b>以下是您在本站提交的所有订单列表</b></p>
  101. <table border="0" cellpadding="2" cellspacing="1" width="100%" bgcolor="#000000">
  102. <tr > 
  103. <td width="26%" align="center" height="20" bgcolor="#CCCCCC"><font color="#000000">订单编号</font></td>
  104. <td width="21%" align="center" height="20" bgcolor="#CCCCCC"><font color="#000000">客户姓名</font></td>
  105. <td width="53%" align="center" height="20" bgcolor="#CCCCCC"><font color="#000000">对您的订单的处理情况</font></td>
  106. </tr>
  107. <% Do While Not rs.EOF %>
  108. <tr > 
  109. <td width="26%" align="center" height="25" bgcolor="#FFFFFF"><%=rs("Form_Id")%></td>
  110. <td width="21%" align="center" height="25" bgcolor="#FFFFFF"><%=rs("Somane")%></td>
  111. <td width="53%" align="center" height="25" bgcolor="#FFFFFF">
  112. <%If rs("Flag")="尚未处理" Then%>
  113. 您的款项尚未到我们的帐户,此订单本站尚未处理 
  114. <%else%> <font color="#FF0000">此订单已经发货给您,请注意查收!</font> 
  115. <%End If%>
  116. </td>
  117. </tr>
  118. <%
  119. rs.MoveNext
  120. Loop
  121. %>
  122. </table>
  123. </TD>
  124. </TR>
  125. </TABLE>
  126. </div>
  127. </TD>
  128. </TR>
  129. <TR vAlign=top > 
  130. <TD  width="100%" height="15"> </TD>
  131. </TR>
  132. </TABLE>
  133. </TD>
  134. </TR>
  135. <%
  136. rs.close
  137. set rs=nothing
  138. %>
  139. <!-- 订单查询 End -->
  140. <TR> 
  141. <TD> 
  142. <TABLE cellSpacing=0 cellPadding=0 class='MC_bottom_title'>
  143. <tr> 
  144. <td>
  145. </td>
  146. </tr>
  147. <tr><td class='MC_bottom_Td2'></td></tr>
  148. </table>
  149. </TD>
  150. </TR>
  151. <TR><TD height=10><IMG src='../img/1x1_pix.gif' width=3 height=1></TD></TR>
  152. </TABLE>
  153. </TD>
  154. <%if strSkins <= 200 and strSkins >= 1 then%>
  155. </TR>
  156. </TABLE>
  157. <!--#include file="Include/Foot.asp" -->
  158. <%
  159. elseif strSkins <= 250 and strSkins >= 201 then '新风格==============================================================
  160. %>
  161. <TD class='M_Jgx_TD'><IMG src='../img/1x1_pix.gif' width=1 height=2></TD>
  162. <TD vAlign=top background="../Skin/201/line-mid-glay.gif" width="6"><img border="0" src="../Skin/201/line-shadow-glay-
  163. mid.gif" width="6" height="146"></TD>
  164. <TD vAlign=top class='Mr_TitlePt'><% Call Right_Download() %></TD>
  165. </TR>
  166. </TABLE>
  167. <!--#include file="Include/Foot4.asp" -->
  168. <%end if%>