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

Applet

开发平台:

Java

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