<table border="0" width="100%" cellspacing="0" cellpadding="0">
  <form name="PageForm" action="functions.asp" method="post">
  <input type="hidden" name="action" value="<%=action%>">
  <input type="hidden" name="LOGINID" value="<%=LOGINID%>">
  <input type="hidden" name="pid" value="<%=pid%>">
  <tr>
    <td align="right">
      <table border="0" width="100%" cellspacing="0" cellpadding="0">
        <tr height="22">
<%
if (action = "newsMenu") and not bNewsBase then
%>
          <td style="PADDING-TOP: 2px;padding-left:4px;" valign="middle" class="MainPageBar" width="20"><a href="javascript:BatEdit('zero');"><img src="images/IconZero.gif" width="16" height="16" border="0" alt="置零"></a></td>
          <td style="PADDING-TOP: 2px;padding-left:4px;" valign="middle" class="MainPageBar" width="20"><a href="javascript:BatEdit('pos');"><img src="images/IconSeq.gif" width="16" height="16" border="0" alt="定序"></a></td>
<%
end if
if (action = "newsMenu") and bNewsBase then
%>
          <td style="PADDING-TOP: 2px;padding-left:4px;" valign="middle" class="MainPageBar" width="20"><a href="javascript:BatEdit('issue');"><img src="images/IconIssue.gif" width="16" height="16" border="0" alt="发布"></a></td>
<%
end if
if action = "goods" or action = "plans" or action = "news" or action = "medias" or action = "score" or action = "presents" or action = "vote" or action = "games" or action = "gameIssue" or action = "ad" or action = "links" or action = "guess" then
%>
          <td style="PADDING-TOP: 2px;padding-left:4px;" valign="middle" class="MainPageBar" width="20"><a href="functions.asp?action=<%=action%>&subaction=add&LOGINID=<%=LOGINID%>"><img src="images/IconAdd.gif" width="16" height="16" border="0" alt="新建"></a></td>
<%
end if
if action <> "member" and action <> "score" then
%>
          <td style="PADDING-TOP: 2px;padding-left:4px;" valign="middle" class="MainPageBar" width="20"><a href="javascript:BatEdit('modify');"><img src="images/IconEdit.gif" width="16" height="16" border="0" alt="修改"></a></td>
<%
end if
if action = "newsAuditing" then
%>
          <td style="PADDING-TOP: 2px;padding-left:4px;" valign="middle" class="MainPageBar" width="20"><a href="javascript:doAuditing(2);"><img src="images/IconAuditing.gif" width="16" height="16" border="0" alt="审核"></a></td>
          <td style="PADDING-TOP: 2px;padding-left:4px;" valign="middle" class="MainPageBar" width="20"><a href="javascript:doAuditing(1);"><img src="images/IconUnAuditing.gif" width="16" height="16" border="0" alt="取消审核"></a></td>
<%
end if
if not ((action = "newsMenu") and bNewsBase) then
%>
          <td style="PADDING-TOP: 2px;padding-left:4px;" valign="middle" class="MainPageBar" width="20"><a href="javascript:if (confirm('真的要删除吗？')) BatEdit('delSelect');"><img src="images/IconDelete.gif" width="16" height="16" border="0" alt="删除"></a></td>
<%
end if
%>
          <td style="PADDING-TOP: 3px;padding-left:4px;" valign="middle" align="right" class="MainPageBar">第<%=iCurrentPage%>页 每页<%=iRowsPerPage%>条记录 共<%=iMaxPage%>页 共<%=iMaxRowCount%>条记录</td>
          <td width="90" class="MainPageBar" valign="middle" align="center" style="PADDING-TOP: 3px">
<%
if iCurrentPage = 1 then
%>
            <span class="OperateIcon1" title="翻到第一页"><img border="0" src="images/IconFirstPage1.gif" width="16" height="16"></span>
            <span class="OperateIcon1" title="前翻一页"><img border="0" src="images/IconLastPage1.gif" width="16" height="16"></span>
<%
else
%>
            <span class="OperateIcon1" title="翻到第一页"><a href="javascript:gotoPage(1)"><img border="0" src="images/IconFirstPage.gif" width="16" height="16" border="0"></a><span>
            <span class="OperateIcon1" title="前翻一页"><a href="javascript:gotoPage(<%=(iCurrentPage-1)%>)"><img border="0" src="images/IconLastPage.gif" width="16" height="16" border="0"></a></span>
<%
end if
if iCurrentPage = iMaxPage then
%>
            <span class="OperateIcon1" title="后翻一页"><img border="0" src="images/IconNextPage1.gif" width="16" height="16"></span>
            <span class="OperateIcon1" title="翻到末尾页"><img border="0" src="images/IconLatestPage1.gif" width="16" height="16"></span>
<%
else
%>
            <span class="OperateIcon1" title="后翻一页"><a href="javascript:gotoPage(<%=(iCurrentPage+1)%>)"><img border="0" src="images/IconNextPage.gif" width="16" height="16" border="0"></a></span>
            <span class="OperateIcon1" title="翻到末尾页"><a href="javascript:gotoPage(<%=iMaxPage%>)"><img border="0" src="images/IconLatestPage.gif" width="16" height="16" border="0"></a></span>
<%
end if
%>
          </td>
          <td width="40" class="MainPageBar" style="PADDING-TOP: 3px">转到第</td>
          <td width="36" class="MainPageBar" style="PADDING-TOP: 1px">
            <select name="page" onchange="Jumping()" class="ButtonSelect">
<%
for i=1 to iMaxPage
	if i = iCurrentPage then
		response.write "              <option selected value="""& i &""">"& i &"</option>"& vbCrLf
	else
		response.write "              <option value="""& i &""">"& i &"</option>"& vbCrLf
	end if
next
%>
            </select>
          </td>
          <td width="15" class="MainPageBar" style="PADDING-TOP: 3px">页</td>
        </tr>
      </table>
    </td>
  </tr>
  </form>
</table>
<script language="javascript">
<!--//
function BatEdit(mySubAction)
{
  document.listForm.subaction.value = mySubAction;
  document.listForm.submit();
}

function Jumping()
{
  document.PageForm.submit();
  return ;
}

function gotoPage(iPageNum)
{
  document.PageForm.page.value = iPageNum;
  document.PageForm.submit();
  return ;
}
//-->
</script>