left.jsp
上传用户:szlmxq
上传日期:2014-01-31
资源大小:740k
文件大小:13k
源码类别:

Applet

开发平台:

Java

  1. <%@ page contentType="text/html;charset=GBK" language="java" import="java.sql.*" errorPage="" %>
  2. <%@ include file="top.jsp"%>
  3. <td width="181"> 
  4.   <!--'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
  5.   '''''''''''''''''''''用户信息和登陆''''''''''''''''''''''''''''''''''''
  6.   ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''-->
  7.       <table width="180" border="0" cellspacing="0" cellpadding="0" align="center">
  8.         <tr> 
  9.           <td valign="top"> 
  10.             <table border="0" width="180" cellspacing="0" cellpadding="0" height="18">
  11.               <%
  12. //是否登陆
  13. if((String)session.getValue("user_name")!=null) 
  14.                {
  15.   %>
  16.               <tr> 
  17.  <%     sql="select * from member where user_name='"+(String)session.getValue("user_name")+"'";
  18.         rs=mdb.executeQuery(sql);
  19.   %>
  20.               </tr>
  21.               <tr> 
  22.                 <td width="100%" height="18"> 
  23.                   <table width="100%" border="0" cellspacing="1" cellpadding="0">
  24.                     <tr> 
  25.                       <td> 
  26.                         <table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#F5EFE7" style="border-collapse: collapse" bordercolor="#111111">
  27.                           <tr> 
  28.                             <td> 
  29.                               <img border="0" src="img/promo_list_top.gif" width="100%" height="4"></td>
  30.                           </tr>
  31.                           <tr> 
  32.                             <td width="86%" height="20" bgcolor="#DBC2B0"> 
  33.                               <div align="center"><b>用户信息</b></div>
  34.                             </td>
  35.                           </tr>
  36.                           <tr> 
  37.                             <td> 
  38.                               <table border="0" width="100%" cellspacing="0" bgcolor="#F5EFE7" style="border-collapse: collapse" bordercolor="#111111" cellpadding="0">
  39.                                 <tr> 
  40.                                   <td width="100%" colspan="2" bgcolor="#FFFFFF"> 
  41.                                   </td>
  42.                                 </tr>
  43.                                 <tr> 
  44.                                   <td height="25" bgcolor="#F5EFE7" valign="top"> 
  45.                                     <img src="img/pics/main_head_menu002.gif" width="13" height="13" align="absmiddle"> 
  46.                                     用户名:</td>
  47.                                   <td height="25" bgcolor="#F5EFE7"><%=rs.getString("user_name")%></td>
  48.                                 </tr>
  49.                                 <tr> 
  50.                                   <td height="25" bgcolor="#F5EFE7" valign="top"><img src="img/pics/main_head_menu004.gif" width="13" height="13" align="absmiddle"> 
  51.                                     地址:</td>
  52.                                   <td height="25" bgcolor="#F5EFE7"><%=rs.getString("user_adds")%></td>
  53.                                 </tr>
  54.                                 <tr> 
  55.                                   <td height="25" bgcolor="#F5EFE7" valign="top"><img src="img/pics/main_head_menu001.gif" width="13" height="13" align="absmiddle"> E-mail:</td>
  56.                                   <td height="25" bgcolor="#F5EFE7"><%=rs.getString("user_mail")%></td>
  57.                                 </tr>
  58.                                 <tr> 
  59.                                   <td height="25" bgcolor="#F5EFE7" valign="top"><img src="img/pics/main_head_menu005.gif" width="13" height="13" align="absmiddle"> 
  60.                                     电话:</td>
  61.                                   <td height="25" bgcolor="#F5EFE7"><%=rs.getString("user_tel")%></td>
  62.                                 </tr>
  63.                               </table>
  64.                             </td>
  65.                           </tr>
  66.                         </table>
  67.                       </td>
  68.                     </tr>
  69.                   </table>
  70.                   <table width="100%" border="0" cellspacing="0" cellpadding="0">
  71.                     <tr> 
  72.                       <td height="5"></td>
  73.                     </tr>
  74.                   </table>
  75.                 </td>
  76.               </tr>
  77. <%
  78.  }else
  79.  //没有登陆
  80.  {
  81.  %>
  82.               <tr> 
  83.                 <td width="100%" height="18"> 
  84.                   <table width="100%" border="0" cellspacing="0" cellpadding="0">
  85.                     <tr> </tr>
  86.                   </table>
  87.                   <table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#F5EFE7" style="border-collapse: collapse" bordercolor="#111111">
  88.                     <tr> 
  89.                       <td align="center">
  90.                       <img border="0" src="img/promo_list_top.gif" width="100%" height="4"></td>
  91.                     </tr>
  92.                     <tr> 
  93.                       <td width="86%" align="center" height="20" bgcolor="#DBC2B0"><b>用户登陆</b></td>
  94.                     </tr>
  95.                     <form method="POST" action="login.jsp">
  96.                       <tr> 
  97.                         <td height="110" bgcolor="#F5EFE7"> 
  98.                           <table width="95%" border="0" align="center" cellpadding="0" cellspacing="5">
  99.                             <tr> 
  100.                               <td width="32%" bgcolor="#F5EFE7"> 
  101.                                 <div align="center">客户:</div>
  102.                               </td>
  103.                               <td width="68%" bgcolor="#F5EFE7"> 
  104.                                 <div align="center"> 
  105.                                   <input name="user_name" type="text" class=input id="user_name" style="FONT-SIZE: 12px; WIDTH: 110px" size="10" maxlength="18">
  106.                                 </div>
  107.                               </td>
  108.                             </tr>
  109.                             <tr> 
  110.                               <td bgcolor="#F5EFE7"> 
  111.                                 <div align="center">密码:</div>
  112.                               </td>
  113.                               <td bgcolor="#F5EFE7"> 
  114.                                 <div align="center"> 
  115.                                   <input style="FONT-SIZE: 12px; WIDTH: 110px" type="password" name="user_pass" size="10" class=input maxlength="18">
  116.                                 </div>
  117.                               </td>
  118.                             </tr>
  119.                           </table>
  120.                           <div align="center"></div>
  121.                           <div align="center">
  122.                             <center>
  123.                           <table width="90%" border="0" cellspacing="0" cellpadding="0" bgcolor="#F5EFE7" style="border-collapse: collapse" bordercolor="#111111">
  124.                             <tr> 
  125.                               <td width="80"><a href="reg.jsp" target="_blank"><img src="img/pics/reg.gif" width="81" height="25" border="0"></a></td>
  126.                               <td> 
  127.                                 <div align="center"> 
  128.                                   <input 
  129.       align=absMiddle alt=进入 cache name=submit2 
  130.       src="img/pics/login.gif" type=image tppabs="" width="56" height="25">
  131.                                 </div>
  132.                               </td>
  133.                             </tr>
  134.                           </table>
  135.                             </center>
  136.                           </div>
  137.                         </td>
  138.                       </tr>
  139.                     </form>
  140.                   </table>
  141.                   <table width="100%" border="0" cellspacing="0" cellpadding="0">
  142.                     <tr> 
  143.                       <td height="5"></td>
  144.                     </tr>
  145.                   </table>
  146. <%
  147. }//判断登陆结束
  148. %>
  149.                 </td>
  150.               </tr>
  151.             </table>
  152.           </td>
  153.         </tr>
  154.       </table>
  155.   
  156.   <!--'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
  157.   ''''''''''''''''''''''''''''用户信息和登陆结束''''''''''''''''''''''''''''''''''''''''''
  158.   ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''-->
  159.       <table width="100%" border="0" cellspacing="0" cellpadding="0" height="5">
  160.         <tr> 
  161.           <td></td>
  162.         </tr>
  163.         <tr> 
  164.           <td></td>
  165.         </tr>
  166.       </table>
  167.       <table width="100%" border="0" cellspacing="0" cellpadding="0">
  168.         <tr> 
  169.           <td  align="center">
  170.           <img border="0" src="img/promo_list_top.gif" width="100%" height="4"></td>
  171.         </tr>
  172.         <tr> 
  173.           <td bgcolor="#DBC2B0" height="20" align="center"><b>型号搜索</b></td>
  174.         </tr>
  175.         <tr> 
  176.           <td> 
  177.             <table width="100%" border="0" cellspacing="0" cellpadding="0">
  178.               <tr> 
  179.                 <td> 
  180.                   <table border="0" width="100%" cellspacing="0" height="70">
  181.                     <tr> 
  182.                       <td height="28" bgcolor="#F5EFE7" align="center">输入商品关键字查询商品信息</td>
  183.                     </tr>
  184.                     <tr> 
  185.                       <form method="POST" action="search.jsp">
  186.                         <td valign="top" bgcolor="#F5EFE7"> 
  187.                           <input type="text" name="hw_name" size="15" class=input>
  188.                           <input type="image" border="0" name="imageField" src="img/serarch.gif" width="34" height="20">
  189.                         </td>
  190.                       </form>
  191.                     </tr>
  192.                   </table>
  193.                 </td>
  194.               </tr>
  195.             </table>
  196.           </td>
  197.         </tr>
  198.       </table>
  199.       <table width="100%" border="0" cellspacing="0" cellpadding="0" height="5">
  200.         <tr> 
  201.           <td> 
  202.             <table width="100%" border="0" cellspacing="0" cellpadding="0">
  203.               <tr> 
  204.                 <td> </td>
  205.               </tr>
  206.             </table>
  207.             <table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#F5EFE7" style="border-collapse: collapse" bordercolor="#111111">
  208.               <tr> 
  209.                 <td height="18"> 
  210.                   <table width="100%" border="0" cellspacing="0" cellpadding="0" height="23">
  211.                     <tr> 
  212.                       <td align="center" height="4"> 
  213.                       <img border="0" src="img/promo_list_top.gif" width="100%" height="4"></td>
  214.                     </tr>
  215.                     <tr> 
  216.                       <td align="center" height="19" bgcolor="#DBC2B0"> <b>商品分类</b></td>
  217.                     </tr>
  218.                   </table>
  219.                 </td>
  220.               </tr>
  221.               <tr> 
  222.                 <td valign="top"> 
  223.                   <table width="100%" border="0" cellspacing="0" cellpadding="0">
  224.                     <tr> 
  225.                       <td> 
  226.                         <table width="100%" border="0" cellspacing="0" cellpadding="0" style="border-collapse: collapse" bordercolor="#111111" height="16">
  227.                           <tr> 
  228.                             <td valign="top" height="16"> 
  229.                               <%
  230. sql="select * from sort";
  231. rs=mdb.executeQuery(sql);
  232. if(!rs.next()){
  233. out.print("没有任何分类"); 
  234. }
  235. else 
  236. {
  237.   while(rs.next()) 
  238.    {
  239. %>
  240.                               <table cellspacing=0 cellpadding=0 width=95% background="" 
  241.                   border=0>
  242.                                 <tbody> 
  243.                                 <tr height=22> 
  244.                                   <td width=34 align="center"><img 
  245.                       src="img/dot.gif" width="15" height="15"></td>
  246.                                   <td width="124"><a href="sort.jsp?sort_id=<%=rs.getInt("sort_id")%>"><u><%=rs.getString("sort_name")%></u></a></td>
  247.                                 </tr>
  248.                                 </tbody> 
  249.                               </table>
  250. <% 
  251.    }
  252. }
  253.  
  254. %>
  255.                             </td>
  256.                           </tr>
  257.                         </table>
  258.                       </td>
  259.                     </tr>
  260.                   </table>
  261.                 </td>
  262.               </tr>
  263.             </table>
  264.             <table width="100%" border="0" cellspacing="0" cellpadding="0">
  265.               <tr> 
  266.                 <td> </td>
  267.               </tr>
  268.               <tr> 
  269.                 <td align="center"><table width="100%" border="0" cellspacing="0" cellpadding="0" height="18">
  270.                     <tr> 
  271.                       <td align="center"> 
  272.                       <img border="0" src="img/promo_list_top.gif" width="100%" height="4"></td>
  273.                     </tr>
  274.                     <tr> 
  275.                       <td align="center" height="20" bgcolor="#DBC2B0"> <b>站内公告</b></td>
  276.                     </tr><tr>
  277.                       <td bgcolor="#F5EFE7">
  278. <% 
  279. sql="select top 3 * from pub order by ID DESC";
  280. rs=mdb.executeQuery(sql);
  281. if(!rs.next())
  282.  {
  283.             %>
  284.                                 <p style="margin:0 5; ">暂无公告<br>
  285.                                 <%
  286.  }
  287.  int i=0;
  288. while(rs.next())
  289.  {
  290. i=i+1;
  291. %>
  292.                                 <p style="margin:5; "><b><%=rs.getString("title")%></b><br>
  293.                               <%=rs.getString("msg")%> <br>
  294.                               <%=rs.getDate("date")%></p>
  295. <%
  296. if(i>=3){
  297.    break;
  298.    } 
  299. }
  300. %></td></tr></table>
  301.                
  302.                
  303.                  </td>
  304.               </tr>
  305.   <tr> 
  306.             </table>
  307.           </td>
  308.         </tr>
  309.       </table>
  310.     </td>
  311. <%@ include file="top.jsp"%>