articleCheckSearchCheck.jsp
上传用户:huijianzhu
上传日期:2009-11-25
资源大小:9825k
文件大小:7k
源码类别:
电子政务应用
开发平台:
Java
- <%@ page language="java" pageEncoding="GB2312" contentType="text/html;charset=GB2312"%>
- <%@ include file="/common/taglibs.jsp"%>
- <%@ include file="/common/meta.jsp"%>
- <script language="javascript" src='<c:url value="/scripts/change_page.js"/>'></script>
- <script language="javascript" src='<c:url value="/scripts/common.js"/>'></script>
- <Script language="javascript">
- <!--
- /**
- * form 表单
- * pageNo 翻页页码
- */
- function dowork(how, entityid) {
- var form = document.articleForm;
- var pageCurrent = '<c:out value="${pageObject.pageCurrent}"/>';
- var pageCount = '<c:out value="${pageObject.pageCount}"/>';
- var mid = getChecked(form);
- switch(how) {
- case 'add' :
- //window.location.href='<c:url value="/sys/cmsComment/addCMSComment.html"/>';
- form.action = '<c:url value="/sys/article/addArticle.html"/>';
- form.id.value = "";
- form.method.value = "add" ;
- form.submit();
- break;
- case 'edit' :
- if(entityid == "") {
- alert("请选择修改项!");
- } else {
- //window.location.href='<c:url value="/sys/cmsComment/editCMSComment.html"/>?id=' + entityid;
- form.action = '<c:url value="/sys/article/editArticle.html"/>';
- form.id.value = entityid;
- form.method.value = "edit" ;
- form.submit();
- break;
- }
- break;
- case 'del' :
- var ids = getChecks(form);
- if(ids == "") {
- alert("请选择删除项!");
- } else if(confirm("是否删除所选项?")){
- form.action = '<c:url value="/sys/article/deleteArticle.html"/>';
- form.method.value="delete";
- form.submit();
- }
- break;
- case 'view':
- if(entityid == "") {
- alert("请选择查看项项!");
- } else {
- //window.location.href='<c:url value="/sys/cmsarticle/editCMSArticle.html"/>?id=' + entityid;
- openWin7('<c:url value="/sys/article/viewArticle.html"/>?method=view&id=' + entityid);
- break;
- }
- break;
- case 'search':
- if (form.keyword.value==""){
- alert("请填写检索内容");
- form.keyword.focus() ;
- }else{
- form.action ='<c:url value="/sys/article/findArticle.html"/>';
- form.method.value="find" ;
- form.submit() ;
- }
- break;
- case 'check':
- var ids = getChecks(form) ;
- if (ids ==""){
- alert("请选择审核项!");
- }else{
- form.action = '<c:url value="/sys/article/checkArticles.html"/>';
- form.method.value="checkArticles";
- // form.status.value=0 ;
- form.submit();
- }
- break ;
- }//end switch
- }
- //-->
- </script>
- <html>
- <head>
- <title>文章管理说明</title>
- <link rel="stylesheet" type="text/css" href="../include/style.css">
- <META NAME="Author" CONTENT="xunuo">
- <META NAME="Keywords" CONTENT="xunuo">
- <META NAME="Description" CONTENT="自动生成">
- </head>
- <body>
- <table width="100%" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td colspan="2" bgcolor="#f6f6f6" align="right" style="cursor:hand" onClick="if(HelpTab.style.display=='none'){HelpTab.style.display='';window.scrollTo(window.pageXOffset,0);}else{HelpTab.style.display='none'}"> <img src='<c:url value="/sys/images/why.gif"/>' width="14" height="14">
- ::Help::</td>
- </tr>
- <tr Id="HelpTab" style="display:none">
- <td width="2%"> </td>
- <td width="98%" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td height="10" width="10"></td>
- <td></td>
- </tr>
- <tr>
- <td>·</td>
- <td><b>名词说明:已审核-未审核</b></td>
- </tr>
- <tr>
- <td></td>
- <td>只有当审核后的文章才能在前台页面显示。只有文章处于未审核状态下时能被删除、修改、排序和移动。文章处于审核状态下时能排序和取消审核。<p></td>
- </tr>
- <tr>
- <td>·</td>
- <td><b>功能说明</b></td>
- </tr>
- <tr>
- <td></td>
- <td>关于删除、上移和下移,需要选择复选框之后才能继续。删除可以多选,上移下移一次只移动最上面的<b>一个</b>选项。添加按钮前面的复选框表示全选。<p></td>
- </tr>
- <tr>
- <td>·</td>
- <td><b>名词说明:连接地址</b></td>
- </tr>
- <tr>
- <td></td>
- <td>当此文章需要跳转到其他页面时,请在此直接输入页面地址,例如:http://www.e-v.com.cn/index.asp<p></td>
- </tr>
- </table>
- <a name="Help"></a></td>
- </tr>
- </table>
- <html:form action="/sys/article/searchArticle.html">
- <html:hidden property="pageCurrent"/>
- <html:hidden property = "id" value="" />
- <input type="hidden" name="method" value="searchArticlesByParent">
- <html:hidden property = "parentid" />
- <html:hidden property = "status" />
- <input type="hidden" name="firstId" value="<c:out value="${firstId}"/>">
- <input type="hidden" name="lastId" value="<c:out value="${lastId}"/>">
- <table border="0" cellpadding="4" cellspacing="1" class=table width="100%">
- <tr>
- <td colspan=5 style="background-color:#eeeeee" >栏目:<c:forEach var="columnLink" items="${columnsLink}">>><c:out value="${columnLink.name}" /></c:forEach></td>
- </tr>
- <tr>
- <td colspan=5 align=right style="background-color:#eeeeee" >查看 <b><a href='<c:url value ="/sys/article/searchCheckArticlesByColumnStatus.html"/>?method=searchCheckArticlesByColumnStatus&status=0&parentid=<c:out value="${plate.id}" />'>未审核</a></b></td>
- </tr>
- <tr>
- <th width="615" align="center" colspan="3"><span class="columnName"><c:out value="${plate.name}"/></span> - <span class="inputTag">已审核</span>文章列表</th>
- <th width="105" align="center">操作</th>
- </tr>
- <tr class="td">
- <td width = "5"></td>
- <td align="center" width="80%">标题</td>
- <td align="center" width="60" nowrap>点击次数</td>
- <td class="td" nowrap align="center">预览</td>
- </tr>
- <c:forEach var="article" items="${articleList}">
- <td><input type="checkbox" id="ids" name="ids" value='<c:out value="${article.id}"/>' <c:if test="${articleForm.id == article.id}">checked</c:if>></td>
- <td><c:out value="${article.title}"/></td>
- <td><c:out value="${article.hits}"/></td>
- <td align=center><a href='javascript: dowork("view", "<c:out value="${article.id}"/>");'>预览</a></td>
- </tr>
- </c:forEach>
- <!-- 操作 start -->
- <!-- 操作 end -->
- <!-- 分页 start -->
- <td align="right" style="background-color:#eeeeee" colspan="5">
- <script language="javascript">
- drawDispartPageView("document.articleForm", <c:out value="${pageObject.pageCurrent}"/>, <c:out value="${pageObject.pageCount}"/>, <c:out value="${pageObject.rowCount}"/>);
- </script>
- </td>
- </tr>
- </table><br>
- <!-- 分页 end -->
- <table border="0" cellpadding="4" cellspacing="1" class=table width="100%">
- <tr class="td">
- <td colspan="4" style="background-color:#eeeeee">
- <input type="checkbox" name="allcheck" onclick="selectAll(this.form, this.checked);">
- <input type="button" class="button" value="取消审核" name="down" onClick="dowork('check');" <c:if test="${isGuest}">disabled</c:if>>
- 关键字:
- <input type="text" name="keyword" value='<c:out value="${keyword}" />' size="20" />
- <select name="columns" style="width:100px">
- <option value="title">标题</option>
- <option value="subhead">副标题</option>
- <option value="content">内容</option>
- <option value="author">作者</option>
- <option value="source">来源</option>
- <option value="createauthor">创建者</option>
- <option value="auditingauthor">审核者</option>
- </select>
- <input type="button" name="testb" class="button" value="检索" onclick="dowork('search');" <c:if test="${isGuest}">disabled</c:if>/>
- </td>
- </tr>
- </table>
- </html:form>
- </body>
- </html>