vehicle_type_edit.jsp

来自「一个用java编写的功能强大的OA系统」· JSP 代码 · 共 76 行

JSP
76
字号
<%@ page contentType="text/html;charset=utf-8"%>
<%@ page import = "java.net.URLEncoder"%>
<%@ page import = "java.util.*"%>
<%@ page import = "cn.js.fan.util.*"%>
<%@ page import = "cn.js.fan.web.*"%>
<%@ page import = "com.redmoon.oa.vehicle.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="../common.css" rel="stylesheet" type="text/css">
<title>管理车辆类型</title>
<%@ include file="../inc/nocache.jsp"%>
</script>
<style type="text/css">
<!--
.style2 {font-size: 14px}
.STYLE3 {color: #FFFFFF}
.STYLE4 {
	color: #000000;
	font-weight: bold;
}
.STYLE5 {color: #FF0000}
.STYLE6 {color: #000000}
-->
</style>
</head>

<body> 
<%
String op = ParamUtil.get(request, "op");
if (op.equals("edit")) {
	VehicleTypeMgr vtm = new VehicleTypeMgr();
	boolean re = false;
	try {
		  re = vtm.modify(request);
	}
	catch (ErrMsgException e) {
		out.print(StrUtil.Alert(e.getMessage()));
	}
	if (re)
		out.print(StrUtil.Alert(SkinUtil.LoadString(request,"res.module.vehicletype", "success_modify_vehicletype")));
}
int id = 0;
try {
	id = ParamUtil.getInt(request, "id");
}
catch (ErrMsgException e) {
	out.println(StrUtil.Alert_Back(SkinUtil.LoadString(request,"res.module.vehicletype", "warn_id_err_vehicletype")));
}
VehicleTypeDb vtd = new VehicleTypeDb(id);
String typeCode = vtd.getTypeCode();
String description = vtd.getDescription();
%>
 <form id=form1 name="form1" action="?op=edit" method=post>
	<table width="541" height="80" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" class="tableframe">
		<tr>
		  <td colspan="2" height="23" background="../images/top-right.gif" class="right-title"><span> &nbsp;车辆类型管理</span></td>
		</tr>
		<tr>
		  <td width="369" align="right"><span class="STYLE6">车辆类型编码(<span class="STYLE5">*</span>)</span><span class="STYLE4">:</span>
				<input name="typecode" width="200" value="<%=typeCode%>">
			  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
			<td width="170" align="center"><input type="hidden" name="id" value="<%=id%>" /></td>
		</tr>
		<tr>
			<td align="right"><span class="STYLE6">车辆类型说明(<span class="STYLE5">*</span>)</span><span class="STYLE4">:</span>
				  <input name="description" width="200" value="<%=description%>">
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
			<td align="left"><input name="submit" type=submit class="button1" value="修  改"></td>
		</tr>
	</table>
   </form>
</body>
</html>

⌨️ 快捷键说明

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