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

VBScript

  1. <%@ LANGUAGE=VBScript CodePage=936%>
  2. <%option explicit%>
  3. <%Response.Buffer=True%>
  4. <!--#include file="Include/En_System.asp"-->
  5. <!--#include file="Include/En_StrLeft.asp"-->
  6. <%If Session("UserName")="" Then
  7. Response.Redirect"En_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("Please input the correct order number. ");
  34. document.FORM1.Form_Id.focus();
  35. return false;
  36. }
  37. }
  38. </SCRIPT>
  39. <!--#include file="Include/En_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 align="center"  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. Order inquiry 
  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  align="center" 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="En_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;howdy</font></p>
  85. <p style="word-spacing: 0; margin-left: 10; margin-right: 10; margin-top: 0; margin-bottom: 0" align="center">The following is the order that you have already refer been in our stationed.  
  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. >Order detailed materials inquire about , <BR>please input you want order number that inquire about <input type="text" name="Form_Id" size="11">
  96. <input type="submit" value="Inquiry" name="B1">
  97. </form>
  98. <div align="center"> 
  99. <TABLE cellSpacing=0 cellPadding=0 align="center"  width=100%>
  100. <TR> 
  101. <TD align=middle width="100%"> <p align="center" style="word-spacing: 0; margin-top: 0; margin-bottom: 0">The following is that all orders which you refer in our station are tabulated </p>
  102. <table border="0" cellpadding="2" cellspacing="1" width="100%" bgcolor="#000000">
  103. <tr > 
  104. <td width="26%" align="center" height="20" bgcolor="#CCCCCC"><font color="#000000">OrderID</font></td>
  105. <td width="21%" align="center" height="20" bgcolor="#CCCCCC"><font color="#000000">CustomerName </font></td>
  106. <td width="53%" align="center" height="20" bgcolor="#CCCCCC"><font color="#000000">Situation of treatment to your order</font></td>
  107. </tr>
  108. <% While Not rs.EOF %>
  109. <tr > 
  110. <td width="26%" align="center" height="25" bgcolor="#FFFFFF"><%=rs("Form_Id")%></td>
  111. <td width="21%" align="center" height="25" bgcolor="#FFFFFF"><%=rs("Somane")%></td>
  112. <td width="53%" align="center" height="25" bgcolor="#FFFFFF">
  113. <%If rs("Flag")="尚未处理" Then%>
  114. Your fund has not reached our account yet, this order our station has not dealt with yet 
  115. <%else%> <font color="#FF0000">This order has already delivered to you, please pay attention to checking and accept! </font> 
  116. <%End If%>
  117. </td>
  118. </tr>
  119. <%
  120. rs.MoveNext
  121. Wend
  122. %>
  123. </table>
  124. </TD>
  125. </TR>
  126. </TABLE>
  127. </div>
  128. </TD>
  129. </TR>
  130. <TR vAlign=top > 
  131. <TD  width="100%" height="15"> &nbsp;&nbsp; </TD>
  132. </TR>
  133. </TABLE>
  134. </TD>
  135. </TR>
  136. <%
  137. rs.close
  138. set rs=nothing
  139. %>
  140. <!-- 订单查询 End -->
  141. <TR> 
  142. <TD> 
  143. <TABLE cellSpacing=0 cellPadding=0  align="center" class='MC_bottom_title'>
  144. <tr> 
  145. <td>
  146. </td>
  147. </tr>
  148. <tr><td class='MC_bottom_Td2'></td></tr>
  149. </table>
  150. </TD>
  151. </TR>
  152. <TR><TD height=10><IMG src='../img/1x1_pix.gif' width=3 height=1></TD></TR>
  153. </TABLE>
  154. </TD>
  155. <%if strSkins <= 200 and strSkins >= 1 then%>
  156. </TR>
  157. </TABLE>
  158. <!--#include file="Include/En_Foot.asp" -->
  159. <%
  160. elseif strSkins <= 250 and strSkins >= 201 then '新风格==============================================================
  161. %>
  162. <TD class='M_Jgx_TD'><IMG src='../img/1x1_pix.gif' width=1 height=2></TD>
  163. <TD vAlign=top background="../Skin/201/line-mid-glay.gif" width="6"><img border="0" src="../Skin/201/line-shadow-glay-
  164. mid.gif" width="6" height="146"></TD>
  165. <TD vAlign=top class='Mr_TitlePt'><% Call Right_Download() %></TD>
  166. </TR>
  167. </TABLE>
  168. <!--#include file="Include/en_Foot4.asp" -->
  169. <%end if%>