leaveword_home.jsp
资源名称:NetOffice.rar [点击查看]
上传用户:guhaomin
上传日期:2007-06-10
资源大小:23203k
文件大小:9k
源码类别:
电子政务应用
开发平台:
Java
- <%@ page import="com.vnex.intranet.util.*" %>
- <%@ taglib uri="/vnex.tld" prefix="vnex" %>
- <%@ taglib uri="/vnex_communication.tld" prefix="comm" %>
- <%@ page errorPage="/vnex/ErrorPage.jsp" %>
- <jsp:useBean id="leaveWordProxy" scope="application" class="com.vnex.intranet.communication.leaveword.proxy.LeaveWordProxyBean" />
- <jsp:useBean id="BusinessName" scope="session" class="com.vnex.intranet.pub.BusinessSession" />
- <%
- String addConTime = leaveWordProxy.getYesterday();
- String condition = " emp_id="+BusinessName.getEmpId()+" and (end_date>'"+addConTime+"' or end_date is null) ";
- String pageTo = "/mainctrl/leaveword/home?a";
- String deleteSuffix = "/mainctrl/leaveword/deleteLeaveWordsSuccess";
- String start = "1";
- if(request.getParameter("start") != null)
- start = request.getParameter("start");
- if(request.getParameter("history") != null)
- {
- condition = "emp_id="+BusinessName.getEmpId()+" and end_date<'"+addConTime+"'";
- pageTo += "&history";
- deleteSuffix += "?history";
- }
- %>
- <!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_communicate.js"></script>
- <script language="JavaScript1.2" src="/vnex/menu/dockmenu.js"></script>
- <script language="JavaScript" src="/vnex/util/strUtil.js"></script>
- <script language=JavaScript>
- function writeLeaveWord(form)
- {
- form.action="/mainctrl/leaveword/writeLeaveWord";
- form.submit();
- }
- function deleteLeaveWords(form)
- {
- if(form.leaveWordIds == null)
- {
- alert("目前尚未有数据可供删除");
- return;
- }
- if(!isChecked(form.leaveWordIds))
- {
- alert("请选择至少一条留言再进行删除");
- return;
- }
- if(confirm("是否删除所选留言?"))
- {
- form.action="<%=deleteSuffix%>";
- form.submit();
- }
- }
- function deleteHistoryLeaveWord(form)
- {
- form.action="/mainctrl/leaveword/home?history";
- 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;
- }
- }
- function search(form)
- {
- form.action="/mainctrl/leaveword/search";
- form.submit();
- }
- </script>
- <DIV align=center>
- <form name="form1" method="post">
- <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" class="iframestyle" valign="top"><br>
- <table width="600" border="1" cellspacing="1" bordercolor="#666666">
- <tr valign="top">
- <td bgcolor="#fafafa" >
- <table width="600" border="0" cellspacing="0" cellpadding="0">
- <tr valign="top" bgcolor="#cccccc">
- <td>
- <table width="600" border="0" cellspacing="0" cellpadding="2">
- <tr bgcolor="#666666">
- <td><font class="strongw">
- <a href="/mainctrl/home/index"><font color="#ffffff">首页</font></a>>>
- <a href="/mainctrl/communication/main"><font color="#ffffff">通信</font></a>>>
- <%
- if(request.getParameter("history") == null)
- {
- %>
- 留言板
- <%
- }
- else
- {
- %>
- <a href="/mainctrl/leaveword/home"><font color="#ffffff">留言板</font></a>>>过期留言
- <% }%>
- </font>
- </td>
- </tr>
- <%
- if(request.getParameter("history") == null)
- {
- %>
- <tr bgcolor="#fafafa" height="30">
- <td><strong> 姓名:</strong>
- <input type="text" class="text" size="10" name="search_name">
- <input type="button" name="Button1" value="查询" onClick="search(this.form)" class="text">
- <input type="button" name="Button2" value="高级查询" onclick="location='/mainctrl/leaveword/advanceSearch'" class="text">
- </td>
- </tr>
- <% }%>
- </table>
- <table class=title border="0" cellpadding="2" cellspacing="1" width="600">
- <tr bgcolor="#fafafa">
- <td colspan="4" height="30">
- <%
- if(request.getParameter("history") == null)
- {
- %>
- <input type="button" value="新增" name="B3" onClick="writeLeaveWord(this.form)" class="text">
-
- <% }
- %>
- <input type="button" value="删除" name="B3" onClick="deleteLeaveWords(this.form)" class="text">
-
- <% if(request.getParameter("history") != null)
- {
- %>
- <input type="button" value="返回" name="B3" onClick="location='/mainctrl/leaveword/home'" class="text">
-
- <% }
- else
- {
- %>
- <input type="button" value="过期留言" name="B3" onclick="deleteHistoryLeaveWord(this.form)" class="text" style="width:60px">
-
- <% }%>
- </td>
- </tr>
- <tr align="center">
- <td width="42"><strong>选择</strong></td>
- <td width="184"><strong>留言内容</strong></td>
- <td width="194"><strong>留言时间</strong> </td>
- <td width="155"><strong>留言截止时间</strong></td>
- </tr>
- <comm:leaveWordList queryStr="<%=condition%>">
- <vnex:items paging="true">
- <tr bgcolor="<vnex:itemsColor />" align="center">
- <td width="42">
- <input type="checkbox" name="leaveWordIds" value="<comm:leaveWordAttribute attribute="id" />">
- </td>
- <td width="184">
- <a href="/mainctrl/leaveword/leaveWordDetail?leaveWordId=<comm:leaveWordAttribute attribute="id" />&start=<%=start%>
- <%
- if(request.getParameter("history") != null)
- {
- %>
- &history
- <%}%>
- "><comm:leaveWordAttribute attribute="msg_body_list" />
- </a>
- <td width="194"><comm:leaveWordAttribute attribute="write_date" /></td>
- <td width="155"><comm:leaveWordAttribute attribute="end_date" /></td>
- </tr>
- </vnex:items>
- <tr>
- <td width="42" bgcolor="#e0e0e0" align="center">
- <input type="checkbox" name="C1" onclick="SelectAll(this.form)">
- </td>
- <td colspan="3" bgcolor="#e0e0e0">
- 全选
- </td>
- </tr>
- <tr>
- <td colspan="4" align="left" bgcolor="#fafafa">
- <vnex:pagingTag pageName="<%=pageTo%>" />
- </td>
- </tr>
- </comm:leaveWordList>
- </table>
- </td>
- </tr>
- </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>