增加团队档案管理、删除等功能
This commit is contained in:
@@ -36,25 +36,51 @@
|
||||
align="center">
|
||||
<h3 class="text-center">添加档案</h3>
|
||||
<form class="form-horizontal" role="form" id="add_docFile"
|
||||
name="add_docFile" action="JSPhandle/docFile_insert.jsp" method="post">
|
||||
<table class="table table-bordered">
|
||||
name="add_docFile" action="JSPhandle/docFile_insert.jsp"
|
||||
method="post">
|
||||
<table class="table table-bordered table-responsive">
|
||||
<tr>
|
||||
<td colspan="7"><b>个人档案</b>
|
||||
<button type="submit" class="btn btn-success pull-right btn-sm">提交</button></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<%
|
||||
String driverClass = "com.mysql.jdbc.Driver";
|
||||
String url = "jdbc:mysql://localhost:3306/db_school?useUnicode=true&characterEncoding=utf-8";
|
||||
String user = "root";
|
||||
String password = "";
|
||||
|
||||
try {
|
||||
Class.forName(driverClass);
|
||||
ResultSet rs = null;
|
||||
Connection conn = null;
|
||||
PreparedStatement sql = null;
|
||||
conn = DriverManager.getConnection(url, user, password);
|
||||
Statement stmt = conn.createStatement();
|
||||
sql = conn.prepareStatement("SELECT count(empid) Num FROM tb_docfile;");
|
||||
rs = sql.executeQuery();
|
||||
while (rs.next()) {
|
||||
%>
|
||||
|
||||
<td>工号</td>
|
||||
<td><input class="form-control" type="text" name="empid"></td>
|
||||
<td><input class="form-control" type="text" name="empid"
|
||||
readonly value="<%=rs.getInt("Num") + 1%>"></td>
|
||||
|
||||
<%
|
||||
}
|
||||
sql.close();
|
||||
rs.close();
|
||||
conn.close();
|
||||
stmt.close();
|
||||
} catch (Exception ex) {
|
||||
ex.printStackTrace();
|
||||
}
|
||||
%>
|
||||
<td>职务</td>
|
||||
<td><select class="form-control" name="empjob">
|
||||
<%
|
||||
String driverClass = "com.mysql.jdbc.Driver";
|
||||
String url = "jdbc:mysql://localhost:3306/db_school?useUnicode=true&characterEncoding=utf-8";
|
||||
String user = "root";
|
||||
String password = "";
|
||||
|
||||
Class.forName(driverClass);
|
||||
try {
|
||||
Class.forName(driverClass);
|
||||
ResultSet rs = null;
|
||||
Connection conn = null;
|
||||
PreparedStatement sql = null;
|
||||
@@ -75,9 +101,7 @@
|
||||
ex.printStackTrace();
|
||||
}
|
||||
%>
|
||||
<%
|
||||
|
||||
%>
|
||||
|
||||
</select></td>
|
||||
<td rowspan="5"><input type="file"></td>
|
||||
</tr>
|
||||
@@ -104,7 +128,8 @@
|
||||
<!--第四行-->
|
||||
<tr>
|
||||
<td>学校</td>
|
||||
<td><input class="form-control" type="text" name="empschool" value="广东财经大学"></td>
|
||||
<td><input class="form-control" type="text" name="empschool"
|
||||
value="广东财经大学"></td>
|
||||
<td>学院</td>
|
||||
<td><input class="form-control" type="text" name="empdept"></td>
|
||||
</tr>
|
||||
@@ -112,22 +137,27 @@
|
||||
<td>专业</td>
|
||||
<td><input class="form-control" type="text" name="empmajor"></td>
|
||||
<td>出生年月</td>
|
||||
<td><input class="form-control" type="text" name="empbirthday"></td>
|
||||
<td><input class="form-control" type="date"
|
||||
name="empbirthday"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="7"><b>社交信息</b></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>QQ</td>
|
||||
<td colspan="0"><input class="form-control" type="text" name="empQQ"></td>
|
||||
<td colspan="0"><input class="form-control" type="text"
|
||||
name="empQQ"></td>
|
||||
<td>邮箱</td>
|
||||
<td colspan="2"><input class="form-control" type="text" name="empemail"></td>
|
||||
<td colspan="2"><input class="form-control" type="text"
|
||||
name="empemail"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>电话</td>
|
||||
<td colspan="0"><input class="form-control" type="text" name="empPhoneNum"></td>
|
||||
<td colspan="0"><input class="form-control" type="text"
|
||||
name="empPhoneNum"></td>
|
||||
<td>住址</td>
|
||||
<td colspan="2"><input class="form-control" type="text" name="empadress"></td>
|
||||
<td colspan="2"><input class="form-control" type="text"
|
||||
name="empadress"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="7"><b>简历</b></td>
|
||||
@@ -143,6 +173,7 @@
|
||||
<td colspan="7"><textarea class="form-control" cols="100%"
|
||||
rows="10" name="empremark"></textarea></td>
|
||||
</tr>
|
||||
<input type="hidden" name="edi_name" value="<%=user1%>" readonly>
|
||||
</table>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user