EditSystemDirectory.jsp
资源名称:OA.rar [点击查看]
上传用户:mingda
上传日期:2017-06-20
资源大小:27691k
文件大小:10k
源码类别:
OA系统
开发平台:
Java
- <%@ page contentType="text/html; charset=gb2312"%>
- <%@ page import="com.gforce.gfoa.*,com.gforce.currency.*,java.util.*" %>
- <jsp:include page="/CheckLogin.jsp" flush="true"/> <% Session m_session = new Session(session); %>
- <%
- Request m_request = new Request(request);
- int intSystemDirectoryID = m_request.GetInt("ID");
- if(intSystemDirectoryID<1)
- {
- %>
- <script language="JavaScript" type="text/JavaScript">
- alert("请选择正确的系统目录,修改失败!");
- history.back();
- </script>
- <%
- }
- else
- {
- Vector vt = SystemDirectoryManager.getRecordByID(intSystemDirectoryID);
- if(vt.size()==1)
- {
- String sSystemDirectoryID = ((Vector)vt.get(0)).get(2).toString();
- sSystemDirectoryID = sSystemDirectoryID.substring(0,sSystemDirectoryID.length()-1);
- sSystemDirectoryID = sSystemDirectoryID.substring(sSystemDirectoryID.lastIndexOf("_")+1);
- %>
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312"><meta http-equiv="pragma" content="no-cache">
- <title>系统目录器管理-- GForce OA 2.0</title>
- <link href="../css/txt.jsp" rel="stylesheet" type="text/css">
- <script language="JavaScript" type="text/javascript">
- function checkEditSystemDirectory()
- {
- if(document.editSystemDirectory.Name.value=="")
- {
- alert("请输入系统目录名称!");
- document.editSystemDirectory.Name.focus();
- return false;
- }
- if(document.editSystemDirectory.SystemDirectoryID.value=="")
- {
- alert("请选择上级系统目录!");
- self.SelectSystemDirectory.document.SelectSystemDirectory.SystemDirectory[0].focus();
- return false;
- }
- if(document.editSystemDirectory.SystemDirectoryID.value==document.editSystemDirectory.ID.value)
- {
- alert("上级系统目录不能是该系统目录自己,请选择正确的上级系统目录!");
- self.SelectSystemDirectory.document.SelectSystemDirectory.SystemDirectory[0].focus();
- return false;
- }
- document.editSystemDirectory.OrderNumber.value=<%=((Vector)vt.get(0)).get(5).toString()%>;
- }
- function uploadimage(ImageBox,ImagePic)
- {
- var ImageSrc=window.showModalDialog("/UploadFile.jsp","","status:no; resizable: no; help:no; dialogWidth:296px; dialogHeight:150px");
- if(ImageSrc!=null&&ImageSrc!="")
- {
- ImageBox.value=ImageSrc;
- ImagePic.src=ImageSrc;
- }
- return false;
- }
- </script>
- </head>
- <body bgcolor="<%=m_session.GetString("BackColor")%>" leftmargin="0" topmargin="0">
- <table width="100%" height="100%" border="0" align="center" cellspacing="0">
- <tr>
- <td align="center" valign="top"><p> </p>
- <form name="editSystemDirectory" action="EditSystemDirectoryAction.jsp" method="post" onSubmit="javascript:return checkEditSystemDirectory();">
- <table border="0" cellpadding="0" cellspacing="0" width="90%">
- <tr>
- <td align="right" valign="middle"><font color="#0A0A0A">系统目录名称:</font></td>
- <td align="left" valign="middle" nowrap>
- <input name="ID" type="hidden" maxlength="5" value="<%=((Vector)vt.get(0)).get(0).toString()%>">
- <input name="Name" type="text" maxlength="50" size="37" value="<%=((Vector)vt.get(0)).get(1).toString()%>">
- </td>
- </tr>
- <tr>
- <td align="right" valign="top"><font color="#0A0A0A">上级系统目录:</font></td>
- <td align="left" valign="middle" nowrap>
- <iframe id="SelectSystemDirectory" frameborder=1 src="SelectSystemDirectory.jsp" width="100%" height="100%" scrolling="auto"></iframe>
- </td>
- </tr>
- <input name="Station" type="hidden" ID="Station" Value="<%=((Vector)vt.get(0)).get(2).toString()%>">
- <input name="LevelNumber" type="hidden" id="LevelNumber" value="<%=((Vector)vt.get(0)).get(3).toString()%>">
- <input name="ChildrenAcount" type="hidden" id="ChildrenAcount" value="<%=((Vector)vt.get(0)).get(4).toString()%>">
- <input name="OrderNumber" type="hidden" id="OrderNumber" value="<%=((Vector)vt.get(0)).get(5).toString()%>">
- <input name="SystemDirectoryID" type="hidden" id="SystemDirectoryID" value="<%=sSystemDirectoryID%>">
- <%
- String strOpenICO = ((Vector)vt.get(0)).get(6).toString();
- if(strOpenICO.trim().length()>1)
- {
- %>
- <tr>
- <td align="right" valign="middle"><font color="#0A0A0A">打开时的图标:</font></td>
- <td align="left" valign="middle" nowrap>
- <input name="OpenedICO" type="text" maxlength="50" size="20" value="<%=strOpenICO%>">
- <a href="" onclick="return uploadimage(document.editSystemDirectory.OpenedICO,document.all.OpenedICOImg);"><font color="#0A0A0A"><img src="<%=strOpenICO%>" width="19" height="19" id="OpenedICOImg" align="absbottom" border="0">上传图片</font></a>
- </td>
- </tr>
- <%
- }
- else
- {
- %>
- <tr>
- <td align="right" valign="middle"><font color="#0A0A0A">打开时的图标:</font></td>
- <td align="left" valign="middle" nowrap>
- <input name="OpenedICO" type="text" maxlength="50" size="20">
- <a href="" onclick="return uploadimage(document.editSystemDirectory.OpenedICO,document.all.OpenedICOImg);"><font color="#0A0A0A"><img src="/images/tree/folderopen.gif" width="19" height="19" id="OpenedICOImg" align="absbottom" border="0">上传图片</font></a>
- </td>
- </tr>
- <%
- }
- String strCloseICO = ((Vector)vt.get(0)).get(7).toString();
- if(strCloseICO.trim().length()>1)
- {
- %>
- <tr>
- <td align="right" valign="middle"><font color="#0A0A0A">关闭时的图标:</font></td>
- <td align="left" valign="middle" nowrap>
- <input name="CloseedICO" type="text" maxlength="50" size="20" value="<%=strCloseICO%>">
- <a href="" onclick="return uploadimage(document.editSystemDirectory.CloseedICO,document.all.CloseedICOImg);"><font color="#0A0A0A"><img src="<%=strCloseICO%>" width="19" height="19" id="CloseedICOImg" align="absbottom" border="0">上传图片</font></a>
- </td>
- </tr>
- <%
- }
- else
- {
- %>
- <tr>
- <td align="right" valign="middle"><font color="#0A0A0A">关闭时的图标:</font></td>
- <td align="left" valign="middle" nowrap>
- <input name="CloseedICO" type="text" maxlength="50" size="20">
- <a href="" onclick="return uploadimage(document.editSystemDirectory.CloseedICO,document.all.CloseedICOImg);"><font color="#0A0A0A"><img src="/images/tree/folderclosed.gif" width="19" height="19" id="CloseedICOImg" align="absbottom" border="0">上传图片</font></a>
- </td>
- </tr>
- <%
- }
- %>
- <tr>
- <td align="right" valign="middle"><font color="#0A0A0A">连接URL:</font></td>
- <td align="left" valign="middle" nowrap>
- <input name="LinkUrl" type="text" maxlength="150" size="38" value="<%=((Vector)vt.get(0)).get(8).toString()%>">
- </td>
- </tr>
- <tr>
- <td align="right" valign="middle"><font color="#0A0A0A">连接目标框架:</font></td>
- <td align="left" valign="middle" nowrap>
- <input name="Target" type="text" maxlength="50" size="38" value="<%=((Vector)vt.get(0)).get(9).toString()%>">
- </td>
- </tr>
- <tr>
- <td align="right" valign="middle"><font color="#0A0A0A">是否连接:</font></td>
- <td align="left" valign="middle" nowrap>
- <font color="#0A0A0A"><input name="IsLink" type="radio" value="1" <%=((Vector)vt.get(0)).get(10).toString().equalsIgnoreCase("true")?"checked":""%>>是 <input name="IsLink" type="radio" value="0" <%=((Vector)vt.get(0)).get(10).toString().equalsIgnoreCase("false")?"checked":""%>>否</font>
- </td>
- </tr>
- <tr>
- <td align="right" valign="middle"><font color="#0A0A0A">系统目录简介:</font></td>
- <td align="left" valign="middle" nowrap>
- <input name="Content" type="text" maxlength="50" size="38" value="<%=((Vector)vt.get(0)).get(11).toString()%>">
- </td>
- </tr>
- <tr>
- <td align="right" valign="middle"><font color="#0A0A0A">是否显示:</font></td>
- <td align="left" valign="middle" nowrap>
- <font color="#0A0A0A"><input name="IsShow" type="radio" value="1" <%=((Vector)vt.get(0)).get(12).toString().equalsIgnoreCase("true")?"checked":""%>>是 <input name="IsShow" type="radio" value="0" <%=((Vector)vt.get(0)).get(12).toString().equalsIgnoreCase("false")?"checked":""%>>否</font>
- </td>
- </tr>
- <tr>
- <td align="right" valign="middle"><font color="#0A0A0A"> </font></td>
- <td align="left" valign="middle" nowrap>
- </td>
- </tr>
- <tr>
- <td align="right" valign="middle"> </td>
- <td align="left" valign="middle" nowrap>
- <input type="submit" value="修改"> <input type="reset" value="重填"> <input type="button" value="返回" onclick="window.location='SystemDirectoryManage.jsp';">
- </td>
- </tr>
- </table>
- </form>
- </td>
- </tr>
- </table>
- </body>
- </html>
- <%
- }
- else
- {
- %>
- <script language="JavaScript" type="text/JavaScript">
- alert("该记录已经被删除或者您没有权限修改此记录,修改失败!");
- history.back();
- </script>
- <%
- }
- }
- %>