📄 carteammanagemodify.jsp
字号:
<%@ page language="java" contentType="text/html; charset=gb2312" pageEncoding="GB2312"%>
<%@ page import="java.sql.*" %>
<%@ page import="com.logistic.business.CarTeamManager" %>
<%@ page import="com.logistic.model.CarTeamInfo" %>
<%request.setCharacterEncoding("gb2312");%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GB2312">
<title>车队信息修改窗口</title>
<style type="text/css">
<!--
body {
background-color: #168AC2;
}
-->
</style>
<jsp:useBean id="dblink" class="com.logistic.data.DataConnect" scope="page"/>
<link href="<%=request.getContextPath()%>/cssjs/comcss.css" rel="stylesheet" type="text/css">
<script language="javascript" src="<%=request.getContextPath()%>/cssjs/comjs.js"></script>
</head>
<body>
<%
String success=(String)session.getAttribute("success");
if(success!=null){
%>
<script language="javascript">
alert("车队信息修改成功!");
location.href="<%=request.getContextPath()%>/viewpage/showpage/admincarteaminfo.jsp";
</script>
<%
session.removeAttribute("success");
}
%>
<%
String ctid=(String)request.getParameter("ctid");
CarTeamInfo cti=null;
if(ctid==null){
session.setAttribute("errors","对不起您没有权限对carteammanagemodify.jsp页面进行操作!");
response.sendRedirect("../../errors/errorpage.jsp");
}else{
CarTeamManager ctm=new CarTeamManager();
cti=ctm.CarTeamSearchById(ctid);
}
%>
<table width="380" border="1" align="center" cellpadding="1" cellspacing="0" bordercolor="#CC9999">
<tr>
<td width="48" height="21" align="center" class="buttonstyle">编号:</td>
<td width="30" align="center" class="code"><%=ctid%></td>
<td width="288" align="center"><span class="style5">*标识项必须填写</span></td>
</tr>
<tr>
<td height="130" colspan="3"><form action="/Logistic/carteaminfoupdate" method="post" name="carteam" id="carteam">
<table width="279" border="1" align="center" cellpadding="1" cellspacing="0" bordercolor="#CC9999">
<tr>
<td width="78" height="23" align="right" class="style9">车队名称:</td>
<td width="191"><input name="carteamname" type="text" class="style9" id="carteamname" size="20" maxlength="20" value="<%=cti.getCarteamname()%>">
<span class="style5">*
<input type="hidden" name="ctid" value="<%=ctid%>">
</span></td>
</tr>
<tr>
<td height="26" align="right" class="style9">负责人:</td>
<td><select name="chargeid" class="style9" id="chargeid">
<option value="">--负责人--</option>
<%
String sqlemploy="select *from employeeinfotable";
Statement statemploy=dblink.getStmtread();
ResultSet rsemploy=statemploy.executeQuery(sqlemploy);
while(rsemploy.next()){
String employid=rsemploy.getString("EmployeeId");
String employname=rsemploy.getString("EmployeeName");
out.print("<option value="+employid);
if(cti.getChargeid().equals(employid)){
out.print(" selected ");
}
out.print(">"+employname+"</option>");
}
dblink.close();
%>
</select>
<span class="style5">*</span></td>
</tr>
<tr align="center">
<td height="31" colspan="2"><input name="Submit" type="submit" class="buttonstyle" value="提交数据" onClick="return carteam_check()">
<input name="cancel" type="submit" class="buttonstyle" id="cancel" value="重置数据"></td>
</tr>
</table>
</form></td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -