⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 xt_user_update_form1.jsp

📁 downloadsoftware.jsp downloadstyle.css download estdate.jsp download密码.txt downloadadmin
💻 JSP
字号:
entType="text/html; charset=GBK"
 import="javax.naming.*,java.sql.*,java.util.*,javax.sql.DataSource,java.io.*" %>
<html>
<head>
<title>ZD-OA</title>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312"> 
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="Cache-Control" content="no-cache, must-revalidate">
<meta http-equiv="expires" content="wed, 26 Feb 1997 08:21:57 GMT"><link rel="stylesheet" href="../../images/style.css" type="text/css">
</head>
<BODY text=black vLink=#333333 aLink=#336699 link=#000000 bgColor=#dddddd>
<TABLE cellSpacing=0 cellPadding=0 width="100%" align=center border=0 
valign="Top">
  <TBODY>
  <TR>
    <TD>
      <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
        <TBODY>
        <TR>
          <TD width=25 background=../../images/topleft.gif height=45><IMG 
            height=45 src="../../images/blank.gif" width=25></TD>
          <TD vAlign=center align=left width="100%" 
          background=../../images/topback.gif>
            <TABLE cellSpacing=2 cellPadding=0 width="100%">
              <TBODY>
              <TR>
                <TD colSpan=2 height=2></TD></TR>
              <TR>
                <TD noWrap align=left 
background="">&nbsp;<B>待办公文</B></TD>
                <TD align=right><A 
                  onmouseover="window.status='显示帮助'; return true;" 
                  onclick="window.open('../user/help_index.cfm?ContentID=0','help','width=600,height=400');" 
                  onmouseout="window.status=''; return true;" 
                  href="#"><IMG 
                  height=16 alt=帮助 src="../../images/help2.gif" width=16 
                  border=0></A> </TD></TR>
              <TR>
                <TD noWrap align=left background="" 
              colSpan=2>&nbsp;</TD></TR></TBODY></TABLE></TD>
          <TD vAlign=top align=middle width=27 
          background=../../images/topright.gif height=45>
            <TABLE cellSpacing=0 cellPadding=0 background="" border=0>
              <TBODY>
              <TR>
                <TD><IMG height=6 src="../../images/blank.gif" width=27 
                  border=0></TD></TR>
              <TR>
                <TD align=middle>&nbsp; 
      </TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
      <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
        <TBODY>
        <TR>
          <TD width=15 background=../../images/left.gif><IMG 
            src="../../images/blank.gif" width=15></TD>
          <TD class=content>&nbsp;</TD>
          <TD class=content vAlign=top align=middle width="100%">
<%

Connection connection=null;
ResultSet columns = null;
try{
     String dataSourceName="zdsoft";
     Context initialContext=null;
     initialContext=new javax.naming.InitialContext();
     DataSource dataSource=(DataSource)initialContext.lookup(dataSourceName);
     connection=dataSource.getConnection();
	System.out.println("The connection is "+connection.toString());
	Statement statement=connection.createStatement();
	columns=statement.executeQuery(
  		"SELECT * FROM xt_user WHERE userid='macros' AND passwd='42673025'");
  		
  	String u1="nihao";
  	String u2="";
  	String u3="";
  	String u4="";
  	String u5="";
  	String u6="";
  		
 	if(columns.next())
	{
	   u1=columns.getString("userid");    // 取用户名
	   u2=columns.getString("usercopy");  //  取用户别名
	   u3=columns.getString("passwd");     //  登陆密码
	   u4=columns.getString("gwpassword");  //  公文处理密码
	   u5=columns.getString("lxcall");  //      联系地址
	   u6=columns.getString("memo");   //       备注
	}
   
%>

<table id=t1 width="100%" border="0" cellspacing="0" cellpadding="2">
  <tr>
    <td align="center" class="borderon">个人信息修改</td>
  </tr>
</table>

<div  style="position:relative; width:100%; height:expression(body.offsetHeight-t1.offsetHeight-2); z-index:1; left: 0px; top: 0px; overflow: auto">
  <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
    <form name="form1" method="post" action="xt_user_update.jsp">
      <tr bgcolor="#FFFFFF"> 
        <td width="20%"><font color="#003399">  用户  名</font></td>
        <td width="80%"> <input type="text" name="name1" class="input" value="<%=u1%>" size="10"> 
        </td>
      </tr>
      <tr bgcolor="#FFFFFF"> 
        <td width="20%"><font color="#003399"> 用户别名</font></td>
              <td width="80%"> <input type="text" name="name2" class="input" value="<%=u2%>" size="10">
      </tr>
      <tr bgcolor="#FFFFFF"> 
        <td width="20%"><font color="#003399"> 登录密码</font></td>
        <td width="80%"> <input type="text" name="password" value="<%=u3%>" class="input" size="16"> 
        </td>
      </tr>
      <tr bgcolor="#FFFFFF"> 
        <td width="20%"><font color="#003399"> 公文处理密码</font></td>
        <td width="80%"> <input type="text" name="gwmm" value="<%=u4%>" class="input" size="16"> 
        </td>
      </tr>
      <tr bgcolor="#FFFFFF"> 
        <td width="20%"><font color="#003399"> 联系方式</font></td>
        <td width="80%"> <input type="text" name="lxfs" value="<%=u5%>" class="input" size="16"> 
        </td>
      </tr>
      <tr bgcolor="#FFFFFF"> 
        <td width="20%"><font color="#003399"> 备 注</font></td>
        <td width="80%"> <textarea name="beizhu" value="<%=u6%>" class="input" rows="10" cols="40"> </textarea>
        </td>
      </tr>
      
      
      <tr bgcolor="#FFFFFF" align="center"> 
        <td colspan="2"> <input class=Button type="submit" name="Submit" value=" 确定 " class="button1"> 
          <input class=Button type="reset" name="Submit2" value=" 取消 " class="button1"> </td>
      </tr>
    </form>
  </table>
</div>

<%

}catch(Exception e)
{
	out.println("连接数据库失败");
	e.printStackTrace();
}

connection.close();
%>
              <TABLE width="100%">
              <TBODY>
              <TR>
                <TD height=4></TD></TR></TBODY></TABLE></TD>
          <TD class=content>&nbsp;</TD>
          <TD width=15 background=../../images/right.gif><IMG 
            src="../../images/blank.gif" width=15></TD></TR></TBODY></TABLE>
      <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
        <TBODY>
        <TR>
          <TD width=25 background=../../images/bottomleft.gif height=25><IMG 
            height=25 src="../../images/blank.gif" width=25></TD>
          <TD width="100%" background=../../images/bottomback.gif 
            height=10><IMG height=25 src="../../images/blank.gif" width=10></TD>
          <TD width=27 background=../../images/bottomright.gif height=25><IMG 
            height=25 src="../../images/blank.gif" 
    width=27></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -