?? dj.asp
字號:
<html>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<head>
<title>用戶管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style1 {font-size: 12px}
.style3 {color: #FF0000}
.style6 {font-size: 14px}
.style8 {
font-size: 18px;
font-weight: bold;
color: #0000FF;
}
.style9 {font-size: 18px}
.style7 { font-size: 18px;
color: #0000FF;
}
-->
</style>
</head>
<!--#include file="conn.asp"-->
<%
'畢業設計:林林在線網絡招聘系統
'畢業設計:林林在線網絡招聘系統
if session("user")="" then
Response.write("<center>使用錯誤,請先登陸")
Response.End
end if
%>
<%
dim uid
dim rs,rs1,sql
dim rs2
Set rs=Server.CreateObject("Adodb.RecordSet")
sql="select * from alluser where user='"&session("user")&"'"
rs.Open sql,conn,1,1
Set rs1=Server.CreateObject("Adodb.RecordSet")
sql="select classid from userinfo where user='"&session("user")&"' "
rs1.Open sql,conn,1,1
%>
<body>
<table width="500" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<th><font style=line-height:150%><span class="style6">
<%dim edit
Set edit = Conn.Execute("Select * from userinfo where user='"&session("user")&"'")
If Not edit.Eof then
Response.Redirect("edit.asp?classid="&rs1("classid"))
Response.End
end if
%>
</span></font></th>
</tr>
</table>
<table width="496" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td scope="col"><div align="center"><span class="style9">
<%
Response.Write "<table width='100%' border='0' cellpadding='2' cellspacing='1' bgcolor='#CCCCCC'>"
Response.Write "<tr bgcolor='#EEEEEE'>"
Response.Write "<td><span class='style9'>登記資料<br>登記資料后才能修改資料,不必再登記了</span><FORM METHOD='POST' TARGET= '_self' ACTION='djok.asp?id=" & RS("id") & "&User=" & RS("user") & "'></td>"
Response.Write "<tr bgcolor='#EEEEEE'>"
Response.Write "<td><span class='style1'>性別:</span><select name='select'><option value='1' selected='selected'>男</option><option value='0'>女</option></select></td>"
Response.Write "<tr bgcolor='#EEEEEE'>"
Response.Write "<TD><span class='style1'>姓名:</span><input id='text12' name='username' style='height:21px;width:103px'><span class='style3'>*</span></TD>"
Response.Write "<tr bgcolor='#EEEEEE'>"
Response.Write "<td><span class='style1'>年齡:</span><input id='text13' name='userage' style='height:21px;width:103px'><span class='style3'>*</span></td>"
Response.Write "<tr bgcolor='#EEEEEE'>"
%><td><span class="style1">學歷:</span>
<select name="level" id="level">
<option value="博士">博士</option>
<option value="碩士">碩士</option>
<option value="研究生">研究生</option>
<option value="本科" selected>本科</option>
<option value="大專">大專</option>
<option value="高中及以下">高中及以下</option>
</select></td>
<%
'Response.Write "<tr bgcolor='#EEEEEE'>"
'Response.Write "<td><span class='style1'>學歷:</span><input id='text14' name='userlevel' style='height:21px;width:103px'><span class='style3'>*</span></td>"
Response.Write "<tr bgcolor='#EEEEEE'>"
Response.Write "<td><span class='style1'>專業:</span><input id='text15' name='usermajor' style='height:21px;width:103px'><span class='style3'>*</span></td>"
Response.Write "<tr bgcolor='#EEEEEE'>"
%>
<td><span class="style1">請選擇分類:</span>
<select id="select" name="classid">
<%
set rs2 = server.createobject("adodb.recordset")
rs2.source = "select * from jobs order by classid asc " '從數據庫中取得分類工作信息
rs2.open rs2.source,conn,1,1
while not rs2.eof
%>
<option value="<%=rs2("classid")%>" selected><%=rs2("class")%></option>
<%
rs2.movenext
wend
%>
</select></td>
<%
Response.Write "<tr bgcolor='#EEEEEE'>"
Response.Write "<td><span class='style1'>想找的工作:</span><input id='text16' name='job1' style='height:21px;width:223px'><span class='style3'>*</span></td>"
Response.Write "<tr bgcolor='#EEEEEE'>"
Response.Write "<td><span class='style1'>想找的其它工作:</span><input id='text17' name='job2' style='height:21px;width:203px'></td>"
Response.Write "<tr bgcolor='#EEEEEE'>"
Response.Write "<td><span class='style1'>E-mail:</span><input id='text15' name='email' style='height:21px;width:103px'></td>"
Response.Write "<tr bgcolor='#EEEEEE'>"
Response.Write "<td><span class='style1'>電話:</span><input id='text15' name='phone' style='height:21px;width:103px'></td>"
Response.Write "<tr bgcolor='#EEEEEE'>"
Response.Write "<td><span class='style1'>地址:</span><input id='text15' name='addr' style='height:21px;width:303px'><span class='style3'>*</span></td>"
Response.Write "<tr bgcolor='#EEEEEE'>"
Response.Write "<td><span class='style1'>個人簡歷:</span><span class='style3'>*</span><br><textarea name='resume' id='textarea4' style='height:135px;width:434px'></textarea></td>"
Response.Write "<tr bgcolor='#EEEEEE'>"
Response.Write "<td><INPUT TYPE='SUBMIT' VALUE='登記資料'></td></FORM>"
%>
</td>
</tr>
</table>
<%
rs.Close
set rs=Nothing
conn.Close
set conn=Nothing
%>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -