vehicle_driver_edit.jsp
上传用户:jhtang88
上传日期:2014-01-27
资源大小:28528k
文件大小:3k
源码类别:

Jsp/Servlet

开发平台:

Java

  1. <%@ page contentType="text/html;charset=utf-8"%>
  2. <%@ page import = "java.net.URLEncoder"%>
  3. <%@ page import = "java.util.*"%>
  4. <%@ page import = "cn.js.fan.util.*"%>
  5. <%@ page import = "cn.js.fan.web.*"%>
  6. <%@ page import = "com.redmoon.oa.vehicle.*"%>
  7. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  8. <html xmlns="http://www.w3.org/1999/xhtml">
  9. <head>
  10. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  11. <link href="../common.css" rel="stylesheet" type="text/css">
  12. <title>管理车辆类型</title>
  13. <%@ include file="../inc/nocache.jsp"%>
  14. </script>
  15. <style type="text/css">
  16. <!--
  17. .style2 {font-size: 14px}
  18. .STYLE3 {color: #FFFFFF}
  19. .STYLE4 {
  20. color: #000000;
  21. font-weight: bold;
  22. }
  23. .STYLE5 {color: #FF0000}
  24. .STYLE6 {color: #000000}
  25. -->
  26. </style>
  27. </head>
  28. <body> 
  29. <jsp:useBean id="privilege" scope="page" class="com.redmoon.oa.pvg.Privilege"/>
  30. <%
  31. if (!privilege.isUserPrivValid(request, "vehicle")) {
  32. out.println(cn.js.fan.web.SkinUtil.makeErrMsg(request, cn.js.fan.web.SkinUtil.LoadString(request, "pvg_invalid")));
  33. return;
  34. }
  35. %>
  36. <%
  37. String op = ParamUtil.get(request, "op");
  38. if (op.equals("edit")) {
  39. VehicleDriverMgr vdm = new VehicleDriverMgr();
  40. boolean re = false;
  41. try {
  42.   re = vdm.modify(request);
  43. }
  44. catch (ErrMsgException e) {
  45. out.print(StrUtil.Alert(e.getMessage()));
  46. }
  47. if (re)
  48. out.print(StrUtil.Alert(SkinUtil.LoadString(request,"res.module.vehicledriver", "success_modify_vehicledriver")));
  49. }
  50. int id = 0;
  51. try {
  52. id = ParamUtil.getInt(request, "id");
  53. }
  54. catch (ErrMsgException e) {
  55. out.println(StrUtil.Alert_Back(SkinUtil.LoadString(request,"res.module.vehicledriver", "warn_id_err_vehicledriver")));
  56. }
  57. VehicleDriverDb vtd = new VehicleDriverDb(id);
  58. String userName = vtd.getUserName();
  59. %>
  60.  <form id=form1 name="form1" action="?op=edit" method=post>
  61. <table width="541" height="52" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" class="tableframe">
  62. <tr>
  63.   <td colspan="2" height="23" background="../images/top-right.gif" class="right-title"><span> &nbsp;车辆驾驶员管理</span></td>
  64. </tr>
  65. <tr>
  66. <td width="369" align="right"><span class="STYLE6">驾驶员姓名(<span class="STYLE5">*</span>)</span><span class="STYLE4">:</span>
  67.   <input name="userName" width="200" value="<%=userName%>">
  68. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
  69.   <td width="170" align="left"><input name="submit" type=submit class="button1" value="修  改">
  70.     <input type="hidden" name="id" value="<%=id%>" /></td>
  71. </tr>
  72. </table>
  73. </form>
  74. </body>
  75. </html>