主题 : 这个为什么运行不了 |
级别: 举人
![]() |
3# 发表于:2017-07-12 10:47:32 IP:222.27.*.*
<div class="member-text tggl">
<form id="tableForm" action="doc_list.jspx" method="post"> [#if pagination.list?size gt 0] <table cellpadding="0" cellspacing="0"> <tbody> <tr> <td class="tggl-top">标题</td> <td class="tggl-top">上传时间</td> <td class="tggl-top">是否开放</td> <td class="tggl-top">财富值</td> <td class="tggl-top">收益</td> <td class="tggl-top">浏览量</td> <td class="tggl-top">下载量</td> <td class="tggl-top">状态</td> <td class="tggl-top">操作</td> </tr> [#list pagination.list as doc] <tr> <td style="text-align:left; text-indent:5px;"><a href="${doc.url!}">${doc.title?html}</a></td> <td>${doc.releaseDate?string("yyyy-MM-dd")}</td> <td>[#if doc.hasOpen??][#if doc.hasOpen]开放[#else]私有[/#if][/#if]</td> <td>${doc.downNeed!}</td> <td>${doc.grain!}</td> <td>${doc.views!}</td> <td>${doc.downs!}</td> <td><!-- ${doc.status!} -->[#if doc.status = -1] 退回 [#elseif doc.status = 2] 已审 [#elseif doc.status = 4] 投稿 [#else] 其他[/#if] </td> <td><a href="doc_edit.jspx?id=${doc.id}&nextUrl=contribute_list.jspx">修改<a> | <a href="doc_delete.jspx?ids=${doc.id}&nextUrl=doc_list.jspx">删除<a></td> </tr> [/#list] <tr> <td colspan="9" style="padding:20px 0;"> <input type="hidden" name="pageNo"/> <table width="100%" border="0" cellpadding="0" cellspacing="0"><tr><td align="center" class="pn-sp"> 共 ${pagination.totalCount} 条 每页 ${pagination.pageSize} 条 <input type="button" value="首 页" onclick="_gotoPage('1');"[#if pagination.firstPage] disabled="disabled"[/#if]/> <input type="button" value="上一页" onclick="_gotoPage('${pagination.prePage}');"[#if pagination.firstPage] disabled="disabled"[/#if]/> <input type="button" value="下一页" onclick="_gotoPage('${pagination.nextPage}');"[#if pagination.lastPage] disabled="disabled"[/#if]/> <input type="button" value="尾 页" onclick="_gotoPage('${pagination.totalPage}');"[#if pagination.lastPage] disabled="disabled"[/#if]/> 当前 ${pagination.pageNo}/${pagination.totalPage} 页 转到第<input type="text" id="_goPs" onfocus="this.select();" onkeypress="if(event.keyCode==13){$('#_goPage').click();return false;}" style="width:50px; border:1px solid #e7e7e7;"/>页 <input id="_goPage" type="button" value="转" onclick="_gotoPage($('#_goPs').val());"[#if pagination.totalPage==1] disabled="disabled"[/#if] /> </td> </tr> </table> </td> </tr> <script type="text/javascript"> function _gotoPage(pageNo) { try{ var tableForm = document.getElementById("tableForm"); $("input[name=pageNo]").val(pageNo); tableForm.action="doc_list.jspx"; tableForm.onsubmit=null; tableForm.submit(); } catch(e) { alert('_gotoPage(pageNo)方法出错'); } } </script> [#else] <div>暂无文档</div> [/#if] </tbody> </table> </form> </div> |
||
---|---|---|---|
1
共1页