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

百货/超市行业

开发平台:

Java

  1. <table border="0" width="180" cellspacing="0" cellpadding="0" height="18">
  2.  <%
  3. //是否登陆
  4. if((String)session.getValue("user_name")!=null) 
  5.                {
  6. String name=(String)session.getAttribute("user_name");
  7. sql="select * from member where user_name='"+name+"'";
  8.         rs=mdb.executeQuery(sql);
  9. if(rs.next()){
  10. %>
  11.                
  12.                 <tr> 
  13.                   <td width="100%" height="18"> <table width="100%" border="0" cellspacing="1" cellpadding="0">
  14.                       <tr> 
  15.                         <td> <table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#F5EFE7" style="border-collapse: collapse" bordercolor="#111111">
  16.                             <tr> 
  17.                               <td> <img border="0" src="img/promo_list_top.gif" width="100%" height="4"></td>
  18.                             </tr>
  19.                             <tr> 
  20.                               <td width="86%" height="20" bgcolor="#DBC2B0"> <div align="center"><b>用户信息:</b></div></td>
  21.                             </tr>
  22.                             <tr> 
  23.                               <td> <table border="0" width="100%" cellspacing="0" bgcolor="#F5EFE7" style="border-collapse: collapse" bordercolor="#111111" cellpadding="0">
  24.                                   <tr> 
  25.                                     <td width="100%" colspan="2" bgcolor="#FFFFFF"> 
  26.                                     </td>
  27.                                   </tr>
  28.                                   <tr> 
  29.                                     <td height="25" bgcolor="#F5EFE7" > 
  30.                                       <img src="img/pics/main_head_menu002.gif" width="13" height="13" align="absmiddle"> 
  31.                                       用户名:</td>
  32.                                     <td height="25" bgcolor="#F5EFE7"><%=rs.getString("user_name")%></td>
  33.                                   </tr>
  34.                                
  35.                                   <tr> 
  36.                                     <td height="25" bgcolor="#F5EFE7" ><img src="img/pics/main_head_menu004.gif" width="13" height="13" align="absmiddle"> 
  37.                                       地址:</td>
  38.                                     <td height="25" bgcolor="#F5EFE7"><%=rs.getString("user_adds")%></td>
  39.                                   </tr>
  40.                                   <tr> 
  41.                                     <td height="25" bgcolor="#F5EFE7" ><img src="img/pics/main_head_menu001.gif" width="13" height="13" align="absmiddle"> 
  42.                                       E-mail:</td>
  43.                                     <td height="25" bgcolor="#F5EFE7"><%=rs.getString("user_mail")%></td>
  44.                                   </tr>
  45.                                   <tr> 
  46.                                     <td height="25" bgcolor="#F5EFE7"><img src="img/pics/main_head_menu005.gif" width="13" height="13" align="absmiddle"> 
  47.                                       电话:</td>
  48.                                     <td height="25" bgcolor="#F5EFE7"><%=rs.getString("user_tel")%></td>
  49.                                   </tr>
  50.                                 </table></td>
  51.                             </tr>
  52.                           </table></td>
  53.                       </tr>
  54.                     </table>
  55.                     <table width="100%" border="0" cellspacing="0" cellpadding="0">
  56.                       <tr> 
  57.                         <td height="5"></td>
  58.                       </tr>
  59.                     </table></td>
  60.                 </tr>
  61.  <%
  62. }
  63.  }else
  64.  //没有登陆
  65.  {
  66.  %>
  67.                 <tr> 
  68.                   <td width="100%" height="18"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
  69.                       <tr> </tr>
  70.                     </table>
  71.                     <table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#F5EFE7" style="border-collapse: collapse" bordercolor="#111111">
  72.                       <tr> 
  73.                         <td align="center"> <img border="0" src="img/promo_list_top.gif" width="100%" height="4"></td>
  74.                       </tr>
  75.                       <tr> 
  76.                         <td width="86%" align="center" height="20" bgcolor="#DBC2B0"><b>用户登陆</b></td>
  77.                       </tr>
  78.                       <form method="POST" action="login.jsp">
  79.                         <tr> 
  80.                           <td height="110" bgcolor="#F5EFE7"> <table width="95%" border="0" align="center" cellpadding="0" cellspacing="5">
  81.                               <tr> 
  82.                                 <td width="32%" bgcolor="#F5EFE7"> <div align="center">客户:</div></td>
  83.                                 <td width="68%" bgcolor="#F5EFE7"> <div align="center"> 
  84.                                     <input name="user_name" type="text" class=input id="user_name" style="FONT-SIZE: 12px; WIDTH: 110px" size="10" maxlength="18">
  85.                                   </div></td>
  86.                               </tr>
  87.                               <tr> 
  88.                                 <td bgcolor="#F5EFE7"> <div align="center">密码:</div></td>
  89.                                 <td bgcolor="#F5EFE7"> <div align="center"> 
  90.                                     <input style="FONT-SIZE: 12px; WIDTH: 110px" type="password" name="user_pass" size="10" class=input maxlength="18">
  91.                                   </div></td>
  92.                               </tr>
  93.                             </table>
  94.                             <div align="center"></div>
  95.                             <div align="center"> 
  96.                               <center>
  97.                                 <table width="90%" border="0" cellspacing="0" cellpadding="0" bgcolor="#F5EFE7" style="border-collapse: collapse" bordercolor="#111111">
  98.                                   <tr> 
  99.                                     <td width="80"><a href="reg.jsp" target="_blank"><img src="img/pics/reg.gif" width="81" height="25" border="0"></a></td>
  100.                                     <td> <div align="center"> 
  101.                                         <input 
  102.      爀?? align=absMiddle alt=进入 cache name=submit2 
  103.       src="img/pics/login.gif" type=image tppabs="" width="56" height="25">
  104.                                       </div></td>
  105.                                   </tr>
  106.                                 </table>
  107.                               </center>
  108.                             </div></td>
  109.                         </tr>
  110.                       </form>
  111.                     </table>
  112.                     <table width="100%" border="0" cellspacing="0" cellpadding="0">
  113.                       <tr> 
  114.                         <td height="5"></td>
  115.                       </tr>
  116.                     </table>
  117.                     <%
  118. }//判断登陆结束
  119. %>
  120.                   </td>
  121.                 </tr>
  122.               </table>