?? departmentinfosave.jsp
字號:
<%@ page language="java" contentType="text/html; charset=gb2312" pageEncoding="GB2312"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%request.setCharacterEncoding("gb2312");%>
<%
String loginname=(String)session.getAttribute("loginname");
String ok=(String)session.getAttribute("ok");
String loginpower=(String)session.getAttribute("loginpower");
if(ok==null&&loginname==null)
{
session.setAttribute("errors","對不起您還沒有登陸,請先登陸!");
response.sendRedirect("../../errors/errorpage.jsp");
}else if(!loginpower.equals("admin")){
session.setAttribute("errors","對不起您沒有添加部門的權限!");
response.sendRedirect("../../errors/errorpage.jsp");
}
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>部門管理窗體</title>
<style type="text/css">
<!--
body {
background-color: #168AC2;
}
-->
</style>
<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/admindepartmentinfo.jsp";
</script>
<%
session.removeAttribute("success");
}
%>
<table width="445" height="137" border="1" align="center" cellpadding="1" cellspacing="0" bordercolor="#666699">
<tr>
<td width="125" height="24" align="center" class="style5">*標識項必須填寫</td>
<td width="310" align="center"> </td>
</tr>
<tr>
<td height="111" colspan="2"><form action="/Logistic/departmentinfosave" method="post" name="deparement" id="deparement">
<table width="250" border="1" align="center" cellpadding="1" cellspacing="0" bordercolor="#666699">
<tr>
<td width="74" height="27" align="right" class="code">部門名稱:</td>
<td width="166"><input name="departmetname" type="text" class="style9" id="departmetname" size="20" maxlength="20">
<span class="style5">*</span></td>
</tr>
<tr align="center">
<td height="30" colspan="2"><input name="Submit" type="submit" class="buttonstyle" value="提交數據" onClick="return department_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 + -