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

📄 edit.jsp

📁 JSP+ORACLE网站开发实例(下).rar
💻 JSP
📖 第 1 页 / 共 2 页
字号:
<%@ include file="conn.jsp"%>
<%! 
String replacenull(String a){ 
	if(a==null){
return "&nbsp;"; 
	}else{
return a; 
	}
} 
%> 

<%
 String user_id= (String) session.getValue("user_id"); 
//叛断Session变量是否超时
if((user_id==null)|(user_id=="")){
response.sendRedirect("notreg.htm"); 
}

String sql="select * from scott.larchives where user_id='"+user_id+"'"; 
ResultSet rs_lar=stmt.executeQuery(sql); 
   if(!rs_lar.next()){
	   response.sendRedirect("notregist.htm");
   }else{

%>

<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Namo WebEditor v4.0(Trial)">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>建立档案</title>
<style>
<!--
-->
</style>
<link rel="stylesheet" href="ysb.css">
<script language="JavaScript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//-->
</script>
</head>

<body bgcolor="#FFFFFF" leftmargin="5" topmargin="0" >
<table width="772" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><img src="images/top.gif" width="772" height="112" usemap="#Map" border="0"></td>
  </tr>
</table>
<map name="FPMap1"> <area shape="rect" coords="381, 4, 446, 18" href="sendphoto.jsp"> 
  <area shape="rect" coords="283, 4, 357, 18" href="register.jsp"
 target="_blank"> <area shape="rect" coords="190, 4, 264, 18" href="list.jsp"> 
  <area shape="rect" coords="8, 2, 71, 16" href="your.jsp"> <area shape="rect" coords="102, 4, 168, 18" href="no.jsp"> 
</map> 
<table border="0" width="776" cellspacing="0" cellpadding="0">
  <tr>
    <td width="3%">&nbsp; </td>
    <td width="71%">&nbsp; </td>
    <td width="1%">&nbsp; </td>
    <td width="25%"></td>
  </tr>
  <tr>
    <td width="3%" valign="top">
    </td>
    <td width="71%" valign="top"> 
      <form action="eadd.jsp" method="POST">
<div align="left">
<table border="0" width="526" cellspacing="0" cellpadding="0">
    <td width="600">
      <table border="0" width="552" cellspacing="0" height="204" cellpadding="0">
                  <tr bgcolor="#067B0F"> 
                    <td height="11" colspan="3"><font color="#FFFFFF"><b>请认真填写您的个人资料</b></font></td>
        </tr>
        <tr>
                    <td height="4" colspan="3"><font color="#FFFFFF">&nbsp;</font></td>
        </tr>
        <tr>
                    <td height="7" style="border-bottom-style: solid" bordercolor="#000000" colspan="3"><b><font color="#FF9900">您的基本资料</font></b></td>
        </tr>
        <tr>
          <td width="119" height="18"><font color="#008000"><b>*真实姓名:</b></font></td>
                    <td width="260" height="18"> 
                      <input type="text" name="name" value="<%=replacenull(rs_lar.getString("name"))%>" size="10" style="border-style: solid; border-width: 1"></td>
                    <td width="173" height="18"><i>2-10字符</i></td>
        </tr>
        <tr>
          <td width="119" height="18"><font color="#008000"><b>*您的性别:</b></font></td>
                    <td width="260" height="18"> 
                      <INPUT  name=sex type=radio
            value=男> <SPAN class=tt4>男&nbsp; 
                      <INPUT name=sex type=radio value=女 checked>   
            女&nbsp;</SPAN> </td>   
                    <td width="173" height="18"> </td>   
        </tr>   
        <tr>   
          <td width="119" height="18"><font color="#008000"><b>*您的生日:</b></font></td>   
                    <td width="260" height="18"> 
                      <select size="1" name="Byear">   
              <% for(int i=1940;i<=2004;i++){  %> 
                      <option value="<%=i%>"><%=i%></option>
                      <%}%> 
					  		   
            </select>年<select size="1" name="Bmonth">   
             <% for(int i=1;i<=12;i++){  %> 
                      <option value="<%=i%>"><%=i%></option>
                      <%}%> 
            </select>月<select size="1" name="Bday">   
             <% for(int i=1;i<=31;i++){  %> 
                      <option value="<%=i%>"><%=i%></option>
                      <%}%>   
            </select>日</td>   
                    <td width="173" height="18"> </td>   
        </tr>   
        <tr>   
          <td width="119" height="11"><font color="#008000"><b>*您的籍贯:</b></font></td>   
                    <td width="260" height="11" valign="middle"> 
                      <input type="text" name="home" size="11" style="border-style: solid; border-width: 1" value="<%=replacenull(rs_lar.getString("home"))%>"></td> 
                    <td width="173" height="11" valign="middle"><i>不超过50个字符</i></td> 
        </tr> 
        <tr> 
          <td width="119" height="11"><font color="#008000"><b>*您的学历</b></font></td> 
                    <td width="260" height="11"><SPAN class=tt4> 
                      <SELECT name=education 
            size=1> <OPTION selected value=4>本科</OPTION> <OPTION 
              value=2>中专</OPTION> <OPTION value=3>大专</OPTION> <OPTION 
              value=1>高中</OPTION> <OPTION value=6>博士</OPTION> <OPTION 
              value=5>硕士</OPTION> <OPTION value=0>在校生</OPTION> <OPTION 
              value=7>其他</OPTION></SELECT> </SPAN></td> 
                    <td width="173" height="11"></td> 
        </tr> 
        <tr> 
          <td width="119" height="19"><font color="#008000"><b>*您的职业:</b></font></td> 
                    <td width="260" height="19"> 
                      <SELECT name="job" size="1"> 
              <OPTION selected value=管理>管理</OPTION> <OPTION value=工程>工程</OPTION>
              <OPTION value=金融财务>金融财务</OPTION> <OPTION value=技术>技术</OPTION> <OPTION
              value=经济业务>经济业务</OPTION> <OPTION value=法律>法律</OPTION> <OPTION
              value=保险>保险</OPTION> <OPTION value=教师>教师</OPTION> <OPTION
              value=科研>科研</OPTION> <OPTION value=设计>设计</OPTION> <OPTION
              value=行政>行政</OPTION> <OPTION value=文体卫生>文体卫生</OPTION> <OPTION
              value=服务>服务</OPTION> <OPTION value=军队公安>军队公安</OPTION> <OPTION
              value=IT>IT</OPTION> <OPTION value=公务员>公务员</OPTION> <OPTION
              value=其它>其它</OPTION></SELECT> </td>
                    <td width="173" height="19"> </td>
        </tr>
        <tr>
          <td width="119" height="18"><font color="#008000"><b>&nbsp;</b></font><b>您的单位:</b></td>
                    <td width="260" height="18"> 
                      <input type="text" name="company" size="31" style="border-style: solid; border-width: 1" value="<%=replacenull(rs_lar.getString("company"))%>"></td>
                    <td width="173" height="18"><i>不超过50个字符</i></td>
        </tr>
        <tr>
          <td width="119" height="18"><font color="#008000"><b>*您的邮编:</b></font></td>
                    <td width="260" height="18"> 
                      <input type="text" name="postcalcode" size="6" style="border-style: solid; border-width: 1" value="<%=replacenull(rs_lar.getString("postcalcode"))%>"></td>
                    <td width="173" height="18"><i>6个数字</i></td>
        </tr>
        <tr>
          <td width="119" height="14"><font color="#008000"><b>*您的电话:</b></font></td>
                    <td width="260" height="14"> 
                      <input type="text" name="tel" size="15" style="border-style: solid; border-width: 1" value="<%=replacenull(rs_lar.getString("tel"))%>"></td>
                    <td width="173" height="14"><i>不超过20个字符</i></td>
        </tr>
        <tr>
          <td width="119" height="11"></td>
                    <td width="260" height="11"></td>
                    <td width="173" height="11"></td>
        </tr>
        <tr>
                    <td height="14" colspan="3"> 
                      <table border="0" width="100%" cellspacing="0" cellpadding="0">
              <tr>
                <td width="100%" style="border-bottom-style: solid" bordercolor="#000000"><b><font color="#FF9900">您的个人简历</font></b></td>

⌨️ 快捷键说明

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