⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 b2b_jfrz.asp

📁 信运网店系统是一套功能完善、简洁美观
💻 ASP
字号:
<!--#include file="conn.asp"-->
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<%
if session("admin")="" then
conn.close
set conn = nothing
response.Write "<script language='javascript'>alert('请先登录!');history.go(-1);</script>"
response.End
else
if request.cookies("Buy2Buy")("admin")="" then
conn.close
set conn = nothing
response.Write "<script language='javascript'>alert('请先登录!');history.go(-1);</script>"
response.End
end if
end if
'限制添加权限管理员
if session("rank")=2 then
conn.close
set conn = nothing
response.Write "<script language='javascript'>alert('您的管理权限未达到此操作等级!');history.go(-1);</script>"
response.End
end if
%>
<title>订单管理</title>
<style type="text/css">
<!--
.style4 {color: #FF0000}
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
.STYLE1 {	color: #000000;
	font-weight: bold;
}
-->
</style>
<script language="javascript">
function mm()
{
   var a = document.getElementsByTagName("input");
   if(a[0].checked==true){
   for (var i=0; i<a.length; i++)
      if (a[i].type == "checkbox") a[i].checked = false;
   }
   else
   {
   for (var i=0; i<a.length; i++)
      if (a[i].type == "checkbox") a[i].checked = true;
   }
}
function test()
{
  if(!confirm('确认删除吗?')) return false;
}
</script>
<%
selectid=request.form("selectid")
if selectid <> "" then
	myselectid = Split(selectid, ",")
	mycount = ubound(myselectid)
	for i= 0 to mycount 
		sql="delete from ChangeScore where id="&myselectid(i)
		conn.execute(sql)
	next
end if
%>
<table width="99%" border="5" align="center" cellpadding="5" cellspacing="5" bordercolor="#CCCCCC" bgcolor="#FFFFFF">
  <tr> 
    <td background="images/topbg.gif"><span class="STYLE1"><img src="images/pic5.gif" width="28" height="22" align="absmiddle" />您现在所在的位置是: <a href="adminhelp.asp">管理首页</a> -&gt; <span class="style4">用户积分管理</span></span></td>
  </tr>
  <tr> 
    <td height="167" valign="top" bgcolor="#FFFFFF"><form name="form1" method="post" action="">
        <%
				Const MaxPerPage=30
   				dim totalPut   
   				dim CurrentPage
   				dim TotalPages
   				dim j
   				dim sql
    			if Not isempty(SafeRequest("page",1)) then
      				currentPage=Cint(SafeRequest("page",1))
   				else
      				currentPage=1
   				end if 
			set rs=server.CreateObject("adodb.recordset")
			sql = "select * from ChangeScore"
			rs.open sql,conn,1,3
		   	if err.number<>0 then
				response.write "数据库中暂时无数据"
				end if
				
  				if rs.eof And rs.bof then
       				Response.Write "<p align='center' class='contents'> 数据库中暂时无数据!</p>"
   				else
	  				totalPut=rs.recordcount

      				if currentpage<1 then
          				currentpage=1
      				end if

      				if (currentpage-1)*MaxPerPage>totalput then
	   					if (totalPut mod MaxPerPage)=0 then
	     					currentpage= totalPut \ MaxPerPage
	   					else
	      					currentpage= totalPut \ MaxPerPage + 1
	   					end if
      				end if

       				if currentPage=1 then
            			showContent
            			showpage totalput,MaxPerPage,"b2b_jfrz.asp"
       				else
          				if (currentPage-1)*MaxPerPage<totalPut then
            				rs.move  (currentPage-1)*MaxPerPage
            				dim bookmark
            				bookmark=rs.bookmark
            				showContent
             				showpage totalput,MaxPerPage,"b2b_jfrz.asp"
        				else
	        				currentPage=1
           					showContent
           					showpage totalput,MaxPerPage,"b2b_jfrz.asp"
	      				end if
	   				end if
   				   				end if

   				sub showContent
       			dim i
	   			i=0%>	
	
	<table width="98%" border="2" align="center" cellpadding="1" cellspacing="1" bordercolor="#FFFFFF" bgcolor="#CCCCCC">
        <tr bgcolor="#F7F7F7" align="center"> 
          <td height="25" background="images/topbg.gif" bgcolor="#F7F7F7"><strong>用户名称</strong></td>
          <td height="25" background="images/topbg.gif"><strong>操作时间</strong></td>
          <td background="images/topbg.gif"><strong>操作人</strong></td>
          <td background="images/topbg.gif"><strong>操作类型</strong></td>
          <td background="images/topbg.gif"><strong>减少数量</strong></td>
          <td background="images/topbg.gif"><strong>余额</strong></td>
          <td background="images/topbg.gif"><strong>变动原因</strong></td>
          <td background="images/topbg.gif"><strong>选择</strong></td>
        </tr>
		<%
			   do while not rs.eof
			  
		%>
        <tr bgcolor="#F7F7F7" align="center">
          <td height="25" bgcolor="#FFFFFF"><%=trim(rs("username"))%></td>
          <td height="25" bgcolor="#FFFFFF"><%=trim(rs("dealwithdate"))%></td>
          <td bgcolor="#FFFFFF"><%=trim(rs("op_adminname"))%></td>
          <td bgcolor="#FFFFFF"><%=trim(rs("op_type"))%></td>
          <td bgcolor="#FFFFFF"><%=trim(rs("op_changescore"))%></td>
          <td bgcolor="#FFFFFF"><%=trim(rs("score"))%></td>
          <td bgcolor="#FFFFFF"><%=trim(rs("changememo"))%></td>
          <td bgcolor="#FFFFFF"><input type="checkbox" name="selectid" value="<%=rs("id")%>" id="selectid" /></td>
        </tr>
		<%i=i+1
			if i>=MaxPerPage then Exit Do
			rs.movenext
		  loop
		  rs.close
		  set rs=nothing%>
        <tr bgcolor="#F7F7F7" align="center">
          <td height="25" colspan="9" align="right" bgcolor="#FFFFFF">全选
          <input type="checkbox" name="checkbox2" value="checkbox" onclick="mm()"/>
		  <%if session("rank") = 1 then%>
            <input name="Submit2" type="submit" class="input_bot" onclick="return test();" value="删 除" />
			<%end if%>          </td>
        </tr>
	  </table>
        <%  
				End Sub   
  
				Function showpage(totalnumber,maxperpage,filename)  
  				Dim n
  				
				If totalnumber Mod maxperpage=0 Then  
					n= totalnumber \ maxperpage  
				Else
					n= totalnumber \ maxperpage+1  
				End If
				
				Response.Write "<form method=Post action="&filename&"?selectm="&selectm&"&selectkey="&selectkey&" >"  
				Response.Write "<p align='center' class='contents'> "  
				If CurrentPage<2 Then  
					Response.Write "<font class='contents'>首 页 上一页</font> "  
				Else  
					Response.Write "<a href="&filename&"?page=1&selectm="&selectm&"&selectkey="&selectkey&" class='contents'>首 页</a> "  
					Response.Write "<a href="&filename&"?page="&CurrentPage-1&"&selectm="&selectm&"&selectkey="&selectkey&" class='contents'>上一页</a> "  
				End If
				
				If n-currentpage<1 Then  
					Response.Write "<font class='contents'>下一页 末 页</font>"  
				Else  
					Response.Write "<a href="&filename&"?page="&(CurrentPage+1)&"&selectm="&selectm&"&selectkey="&selectkey&" class='contents'>"  
					Response.Write "下一页</a> <a href="&filename&"?page="&n&"&selectm="&selectm&"&selectkey="&selectkey&" class='contents'>末 页</a>"  
				End If  
					Response.Write "<font class='contents'> 页次:</font><font class='contents'>"&CurrentPage&"</font><font class='contents'>/"&n&"页</font> "  
					Response.Write "<font class='contents'> 共有"&totalnumber&"种商品 " 
					Response.Write "<font class='contents'>转到第:</font><input type='text' name='page' size=2 maxlength=10 class=smallInput value="&currentpage&">页"  
					Response.Write "&nbsp;<input type='submit' class='input_bot' value='跳转' name='cndok' ></form>"  
				End Function  
			%></form>
      <br /></td>
</tr></table>
     
<br>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -