employee_group.jsp
资源名称:NetOffice.rar [点击查看]
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:6k
源码类别:
电子政务应用
开发平台:
Java
- <%@ taglib uri="/vnex.tld" prefix="vnex"%>
- <%@ taglib uri="/vnex_employee_group.tld" prefix="employeeGroup"%>
- <%@ page errorPage="/vnex/ErrorPage.jsp" %>
- <jsp:useBean id="BusinessName" scope="session" class="com.vnex.intranet.pub.BusinessSession" />
- <%
- String pageTo = "/mainctrl/employeegroup/home?a";
- String start = "1";
- if(request.getParameter("start") != null)
- start = request.getParameter("start");
- %>
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
- <HTML>
- <jsp:include page="/vnex/page/FORM_HEAD.jsp" />
- <BODY text=#000000 vLink=#000000 aLink=#000000 link=#000000 bgColor=#ffffff topMargin=20 leftmargin="0" marginwidth="0" marginheight="0">
- <script language="JavaScript1.2" src="/vnex/menu/dockmenu_office.js"></script>
- <script language="JavaScript" src="/vnex/menu/dockmenu.js"></script>
- <script language="JavaScript" src="/vnex/util/strUtil.js"></script>
- <script language="JavaScript">
- function addToGroup(form)
- {
- if(checkIt(form))
- {
- form.action = "/mainctrl/employeegroup/create";
- form.submit();
- }
- }
- function checkIt(form)
- {
- if(isEmpty(form.groupName.value) || isEmptyStr(form.groupName.value))
- {
- alert("组名不能为空.");
- form.groupName.focus();
- return false;
- }
- if(isContainInvalidChar(form.groupName.value, "'"))
- {
- alert("组名中不能包含单引号");
- form.groupName.focus();
- return false;
- }
- return true;
- }
- function deleteThem(form)
- {
- if(form.groupIds == null)
- {
- alert("目前尚未有记录可供删除");
- return;
- }
- if(!isChecked(form.groupIds))
- {
- alert("请至少选择一条记录进行删除");
- return;
- }
- if(confirm("是否删除所选组别?"))
- {
- form.action="/mainctrl/employeegroup/delete";
- form.submit();
- }
- }
- function SelectAll(form)
- {
- for (var i=0;i<form.elements.length;i++)
- {
- var e = form.elements[i];
- if (e.name != 'C1')
- e.checked = form.C1.checked;
- }
- }
- </script>
- <DIV align=center>
- <form name="form1" method="post" action="">
- <TABLE class=outter cellSpacing=0 cellPadding=0 width=600 border=0>
- <TBODY>
- <jsp:include page="/vnex/page/TTOA_TABLE_TOP.jsp" />
- <TR>
- <TD colSpan=3 align="center"><br>
- <table width="600" border="1" cellspacing="1" bordercolor="#666666">
- <tr>
- <td align="center" colspan="2" bgcolor="#FFFFFF">
- <table width="600" border="0" cellspacing="0" cellpadding="0">
- <tr bgcolor="#666666">
- <td colspan="2"><font class="strongw">
- <a href="/mainctrl/home/index"><font color="#ffffff">首页</font></a>>>
- <a href="/mainctrl/public/main"><font color="#ffffff">公用信息</font></a>>>
- 员工通讯组</font>
- </td>
- </tr>
- </table>
- <table class=title border="0" cellpadding="2" cellspacing="1" width="600">
- <tr bgcolor="#fafafa" height="30">
- <td><strong> 添加新组名:(不可以重名)</strong>
- <input type="text" name="groupName" maxlength="50" size="15" class="text">
- <input type="button" name="button1" value="新增" class="text" onclick="addToGroup(this.form)">
- </td>
- </tr>
- </table>
- <table class=title border="0" cellpadding="2" cellspacing="1" width="600">
- <tr bgcolor="#fafafa" height="30">
- <td colspan="2">
- <input type="button" name="Button2" value="删除" onClick="deleteThem(this.form)" class="text">
- </td>
- </tr>
- <tr>
- <td height="12" width="7%" align="center"><strong>选择</strong></td>
- <td height="12" align="center"><strong>通讯组</strong></td>
- </tr>
- <employeeGroup:employeeGroupList>
- <vnex:items paging="true">
- <tr bgcolor="<vnex:itemsColor />">
- <td height="12" width="7%" align="center">
- <input type="checkbox" name="groupIds" value="<employeeGroup:employeeGroupAttribute attribute="group_id" />">
- </td>
- <td height="12" align="center">
- <a href="/mainctrl/employeegroup/detail?groupId=<employeeGroup:employeeGroupAttribute attribute="group_id" />&backStart=<%=start%>">
- <employeeGroup:employeeGroupAttribute attribute="group_name" /></a>
- </td>
- </tr>
- </vnex:items>
- <tr bgcolor="#e0e0e0">
- <td width="7%" align="center"><input type="checkbox" name="C1" onclick="SelectAll(this.form)"></td>
- <td> 全选</td>
- </tr>
- <tr bgcolor="#fafafa">
- <td colspan="2" height="12" align="left">
- <vnex:pagingTag pageName="<%=pageTo%>" />
- </td>
- </tr>
- </employeeGroup:employeeGroupList>
- </table>
- </td>
- </tr>
- </table>
- <jsp:include page="/vnex/page/TTOA_HELP.jsp" />
- </TD>
- </TR>
- <jsp:include page="/vnex/page/TTOA_TABLE_BOTTOM.jsp" />
- </TBODY>
- </TABLE>
- <BR>
- <jsp:include page="/vnex/page/TTOA_PRODUCER_LOGO.jsp" />
- </form>
- </DIV>
- </BODY>
- </HTML>