top.jsp
上传用户:helenhuo66
上传日期:2007-06-01
资源大小:865k
文件大小:5k
源码类别:

百货/超市行业

开发平台:

Java

  1. <head>
  2. <link href="css.css" rel="stylesheet" type="text/css">
  3. <%!
  4. boolean IsMail(String user_mail){
  5. int index=user_mail.indexOf("@");
  6. int index2=user_mail.indexOf(".");
  7. if(index==-1 || index2==-1)
  8. return false;
  9. else return true;
  10. }
  11. public String getStr(String str)
  12. {
  13.   try
  14. {
  15. String temp_p=str;
  16. byte[] temp_t=temp_p.getBytes("ISO8859-1");
  17. String temp=new String(temp_t);
  18. return temp;
  19. }
  20. catch(Exception e)
  21. {
  22. e.printStackTrace();
  23.  }
  24. return "null";
  25. }
  26. %>
  27. <%!
  28.  int Cint(String cint)
  29.    {
  30.     try {
  31.   int n;
  32.       n= Integer.parseInt(cint);
  33.   return n;
  34.         }
  35.        catch (NumberFormatException e) {
  36.                  return 0;
  37.         }
  38. }
  39. %>
  40. <jsp:useBean id="mdb" class="ckstudio.db.faq" scope="page"/>
  41. <script>
  42.   function openbag(id) { window.open("basket.jsp?hw_id="+id,"","height=420,width=460,left=190,top=10,resizable=yes,scrollbars=yes,status=no,toolbar=no,menubar=no,location=no");} 
  43. </script>
  44. <script language="javascript">
  45. function openScript(url, width, height){
  46. var Win = window.open(url,"openScript",'width=' + width + ',height=' + height + ',resizable=1,scrollbars=yes,menubar=no,status=yes' );
  47. }
  48. </script>
  49. <title>
  50. <%
  51. //得到标题栏信息
  52. String sql="select top 1 * from system";
  53. ResultSet rs;
  54.  rs=mdb.executeQuery(sql);
  55. if(rs.next()){   
  56. %>
  57. <%=rs.getString("web")%> - <%=rs.getString("sitename")%>
  58. <%
  59. }
  60. else{
  61. out.print("ckstudio");
  62. }
  63. %>
  64. </title></head> 
  65. <body onload="if(event.shiftKey){location.href='a/'}" topmargin="0" leftmargin="0">
  66. <table align="center" border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="778"><tr><td>
  67.      <table border="0" height="28" style="border-collapse: collapse" bordercolor="#111111" cellpadding="0" cellspacing="0"><tr>
  68.           <td width="98" align="center" height="28" background="img/main.gif"> <a href="index.jsp">主页</a></td>
  69.      <!--set rs2=server.createobject("adodb.recordset") 
  70.         sql2="select * from sort" 
  71.         rs2.open sql2,conn,3,3 
  72.         do while not rs2.eof
  73.          -->
  74.   <%
  75.   rs.close();
  76.   sql="select * from sort order by sort_id asc";
  77.    rs=mdb.executeQuery(sql);
  78.    int a=0;
  79.   while(rs.next()){ 
  80.   a=a+1;
  81. %>
  82.          
  83.          <td width="98" align="center" height="28" background="img/main.gif"><a href="sort.jsp?sort_id=<%=rs.getInt("sort_id")%>"><%=rs.getString("sort_name")%></a></td>
  84.           <%
  85.  if(a>=6)
  86.  break;
  87.  }
  88.   rs.close();
  89.               %> 
  90.   <td width="98" align="center" height="28" background="img/main.gif">
  91.      <a target="_blank" href="http://www.freedown.net/forum">客户论坛</a></td></tr></table>
  92. </td></tr></table>
  93.       
  94. <div align="center">
  95.   <center>
  96.       
  97. <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1" background="img/1right.gif" height="20">
  98.   <tr><td align="center"> <a href="ding2.jsp">订单投诉</a>
  99. | <a href="fuwu-baozheng.jsp">客户服务</a>
  100. | <a href="fukuan-fangshi.jsp">付款方式</a>
  101. | <a href="allnews.jsp">新闻中心</a>
  102. | <a href="javascript:openScript('subpass.jsp',460,300)">我的订单</a>
  103. | <a href="javascript:openScript('buy.jsp',460,300)">购物车</a>
  104. | <a href="javascript:openScript('cash.jsp',460,300)">收银台</a>
  105. <!-- dim rs,sql
  106.           set rs=server.createobject("adodb.recordset")
  107.           sql="select * from sort"
  108.           rs.open sql,conn,3,3
  109.           if rs.eof then
  110.           response.write ""
  111.           end if
  112.           do while not rs.eof
  113.           %>
  114.                 <!--rs.movenext
  115.           loop
  116.           rs.close-->
  117. <%
  118.  
  119.   if((String)session.getValue("user_name")!=null) 
  120.     {
  121. %>
  122. | <a href=javascript:openScript('modify.jsp',500,340)>更改资料</a>
  123. | <a href="quit.jsp">退出</a>&nbsp;&nbsp;
  124. <%
  125.     }else
  126.     {
  127. %>
  128. | 更改资料 | 退出&nbsp;&nbsp;
  129. <%
  130.     }
  131. %>
  132. <!--
  133. 显示时间
  134. -->
  135. <script src="http://www.jspshop.cn/jspt/mystat.asp"></script>
  136. <script language="JavaScript">
  137. <!--
  138. todayDate = new Date();
  139. date = todayDate.getDate();
  140. month= todayDate.getMonth() +1;
  141. year= todayDate.getYear();
  142. document.write("今天是")
  143. if(navigator.appName == "Netscape")
  144. {
  145.     document.write("<font color=#ff0000>");
  146. document.write(1900+year);
  147. document.write("</font ");
  148. document.write("年");
  149. document.write("<font color=#ff0000>");
  150. document.write(month);
  151. document.write("</font ");
  152. document.write("月");
  153. document.write("<font color=#ff0000>");
  154. document.write(date);
  155. document.write("</font ");
  156. document.write("日");
  157. }
  158. if(navigator.appVersion.indexOf("MSIE") != -1)
  159. {
  160. document.write("<font color=#ff0000>");
  161. document.write(year);
  162. document.write("</font>");
  163. document.write("年");
  164. document.write("<font color=#ff0000>");
  165. document.write(month);
  166. document.write("</font>");
  167. document.write("月");
  168. document.write("<font color=#ff0000>");
  169. document.write(date);
  170. document.write("</font>");
  171. document.write("日");
  172. }
  173. //--> 
  174.     </script></td></tr></table>
  175.   </center>
  176. </div>