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

📄 news.asp

📁 好用的管理,代码程序 好用的管理,代码程序
💻 ASP
字号:
<!--#include file="Connections/EmpMain.asp" -->
<!--#include file="EmpMain_CheckRight.asp"-->

<%
dim i
i=0
Dim username
Dim EmpList
Dim EmpList_numRows
username=session("name")
if fncheckupart(1)=true then
Set EmpList= Server.CreateObject ("ADODB.RecordSet")
EmpList.open "select * from T_Client  where F_IsVerify='0' order by F_Id desc",MM_EmpMain_STRING,1,3
else
Set EmpList= Server.CreateObject ("ADODB.RecordSet")
EmpList.open "select * from T_Client  where F_IsVerify='0' and F_EClerk='"&username&"' order by F_Id desc",MM_EmpMain_STRING,1,3
end if
EmpList_numRows = 0
%>

<%
Dim Repeat1__numRows
Dim Repeat1__index

Repeat1__numRows = 40
Repeat1__index = 0
EmpList_numRows = EmpList_numRows + Repeat1__numRows
%>
<%

Dim EmpList_total
Dim EmpList_first
Dim EmpList_last

EmpList_total = EmpList.RecordCount

If (EmpList_numRows < 0) Then
  EmpList_numRows = EmpList_total
Elseif (EmpList_numRows = 0) Then
  EmpList_numRows = 1
End If

EmpList_first = 1
EmpList_last  = EmpList_first + EmpList_numRows - 1

If (EmpList_total <> -1) Then
  If (EmpList_first > EmpList_total) Then
    EmpList_first = EmpList_total
  End If
  If (EmpList_last > EmpList_total) Then
    EmpList_last = EmpList_total
  End If
  If (EmpList_numRows > EmpList_total) Then
    EmpList_numRows = EmpList_total
  End If
End If
%>
<%

If (EmpList_total = -1) Then

  EmpList_total=0
  While (Not EmpList.EOF)
    EmpList_total = EmpList_total + 1
    EmpList.MoveNext
  Wend

  If (EmpList.CursorType > 0) Then
    EmpList.MoveFirst
  Else
    EmpList.Requery
  End If

  If (EmpList_numRows < 0 Or EmpList_numRows > EmpList_total) Then
    EmpList_numRows = EmpList_total
  End If

  EmpList_first = 1
  EmpList_last = EmpList_first + EmpList_numRows - 1
  
  If (EmpList_first > EmpList_total) Then
    EmpList_first = EmpList_total
  End If
  If (EmpList_last > EmpList_total) Then
    EmpList_last = EmpList_total
  End If

End If
%>
<%
Dim MM_paramName 
%>
<%

Dim MM_rs
Dim MM_rsCount
Dim MM_size
Dim MM_uniqueCol
Dim MM_offset
Dim MM_atTotal
Dim MM_paramIsDefined

Dim MM_param
Dim MM_index

Set MM_rs    = EmpList
MM_rsCount   = EmpList_total
MM_size      = EmpList_numRows
MM_uniqueCol = ""
MM_paramName = ""
MM_offset = 0
MM_atTotal = false
MM_paramIsDefined = false
If (MM_paramName <> "") Then
  MM_paramIsDefined = (Request.QueryString(MM_paramName) <> "")
End If
%>
<%

if (Not MM_paramIsDefined And MM_rsCount <> 0) then

  MM_param = Request.QueryString("index")
  If (MM_param = "") Then
    MM_param = Request.QueryString("offset")
  End If
  If (MM_param <> "") Then
    MM_offset = Int(MM_param)
  End If

  If (MM_rsCount <> -1) Then
    If (MM_offset >= MM_rsCount Or MM_offset = -1) Then  
      If ((MM_rsCount Mod MM_size) > 0) Then        
        MM_offset = MM_rsCount - (MM_rsCount Mod MM_size)
      Else
        MM_offset = MM_rsCount - MM_size
      End If
    End If
  End If

  MM_index = 0
  While ((Not MM_rs.EOF) And (MM_index < MM_offset Or MM_offset = -1))
    MM_rs.MoveNext
    MM_index = MM_index + 1
  Wend
  If (MM_rs.EOF) Then 
    MM_offset = MM_index  
  End If

End If
%>
<%

If (MM_rsCount = -1) Then

  MM_index = MM_offset
  While (Not MM_rs.EOF And (MM_size < 0 Or MM_index < MM_offset + MM_size))
    MM_rs.MoveNext
    MM_index = MM_index + 1
  Wend

  If (MM_rs.EOF) Then
    MM_rsCount = MM_index
    If (MM_size < 0 Or MM_size > MM_rsCount) Then
      MM_size = MM_rsCount
    End If
  End If

  If (MM_rs.EOF And Not MM_paramIsDefined) Then
    If (MM_offset > MM_rsCount - MM_size Or MM_offset = -1) Then
      If ((MM_rsCount Mod MM_size) > 0) Then
        MM_offset = MM_rsCount - (MM_rsCount Mod MM_size)
      Else
        MM_offset = MM_rsCount - MM_size
      End If
    End If
  End If

  If (MM_rs.CursorType > 0) Then
    MM_rs.MoveFirst
  Else
    MM_rs.Requery
  End If

  MM_index = 0
  While (Not MM_rs.EOF And MM_index < MM_offset)
    MM_rs.MoveNext
    MM_index = MM_index + 1
  Wend
End If
%>
<%

EmpList_first = MM_offset + 1
EmpList_last  = MM_offset + MM_size

If (MM_rsCount <> -1) Then
  If (EmpList_first > MM_rsCount) Then
    EmpList_first = MM_rsCount
  End If
  If (EmpList_last > MM_rsCount) Then
    EmpList_last = MM_rsCount
  End If
End If

MM_atTotal = (MM_rsCount <> -1 And MM_offset + MM_size >= MM_rsCount)
%>
<%

Dim MM_keepNone
Dim MM_keepURL
Dim MM_keepForm
Dim MM_keepBoth

Dim MM_removeList
Dim MM_item
Dim MM_nextItem

MM_removeList = "&index="
If (MM_paramName <> "") Then
   MM_removeList = MM_removeList & "&" & MM_paramName & "="
End If

MM_keepURL=""
MM_keepForm=""
MM_keepBoth=""
MM_keepNone=""

For Each MM_item In Request.QueryString
  MM_nextItem = "&" & MM_item & "="
  If (InStr(1,MM_removeList,MM_nextItem,1) = 0) Then
    MM_keepURL = MM_keepURL & MM_nextItem & Server.URLencode(Request.QueryString(MM_item))
  End If
Next

For Each MM_item In Request.Form
  MM_nextItem = "&" & MM_item & "="
  If (InStr(1,MM_removeList,MM_nextItem,1) = 0) Then
    MM_keepForm = MM_keepForm & MM_nextItem & Server.URLencode(Request.Form(MM_item))
  End If
Next

MM_keepBoth = MM_keepURL & MM_keepForm
If (MM_keepBoth <> "") Then 
  MM_keepBoth = Right(MM_keepBoth, Len(MM_keepBoth) - 1)
End If
If (MM_keepURL <> "")  Then
  MM_keepURL  = Right(MM_keepURL, Len(MM_keepURL) - 1)
End If
If (MM_keepForm <> "") Then
  MM_keepForm = Right(MM_keepForm, Len(MM_keepForm) - 1)
End If

Function MM_joinChar(firstItem)
  If (firstItem <> "") Then
    MM_joinChar = "&"
  Else
    MM_joinChar = ""
  End If
End Function
%>
<%

Dim MM_keepMove
Dim MM_moveParam
Dim MM_moveFirst
Dim MM_moveLast
Dim MM_moveNext
Dim MM_movePrev

Dim MM_urlStr
Dim MM_paramList
Dim MM_paramIndex
Dim MM_nextParam

MM_keepMove = MM_keepBoth
MM_moveParam = "index"

If (MM_size > 1) Then
  MM_moveParam = "offset"
  If (MM_keepMove <> "") Then
    MM_paramList = Split(MM_keepMove, "&")
    MM_keepMove = ""
    For MM_paramIndex = 0 To UBound(MM_paramList)
      MM_nextParam = Left(MM_paramList(MM_paramIndex), InStr(MM_paramList(MM_paramIndex),"=") - 1)
      If (StrComp(MM_nextParam,MM_moveParam,1) <> 0) Then
        MM_keepMove = MM_keepMove & "&" & MM_paramList(MM_paramIndex)
      End If
    Next
    If (MM_keepMove <> "") Then
      MM_keepMove = Right(MM_keepMove, Len(MM_keepMove) - 1)
    End If
  End If
End If

If (MM_keepMove <> "") Then 
  MM_keepMove = MM_keepMove & "&"
End If

MM_urlStr = Request.ServerVariables("URL") & "?" & MM_keepMove & MM_moveParam & "="

MM_moveFirst = MM_urlStr & "0"
MM_moveLast  = MM_urlStr & "-1"
MM_moveNext  = MM_urlStr & CStr(MM_offset + MM_size)
If (MM_offset - MM_size < 0) Then
  MM_movePrev = MM_urlStr & "0"
Else
  MM_movePrev = MM_urlStr & CStr(MM_offset - MM_size)
End If
%>

<html>

<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>最新提示</title>
<link rel="stylesheet" href="CSS/SellWellWeb.css" type="text/css">
</head>

<body bgcolor="#EAF4FF" class="body">
<fieldset style="padding: 2" class="fiedset"> 
  <legend></legend> 
  <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#111111" class="table">
    <tr> 
      <td align="right" nowrap class="listTitle">最新提示</td>
      <td width="79%" colspan="2" class="listTitle"></td>
    </tr>
	<%if fncheckupart(1)=true then%>
    <tr> 
      <td width="21%" align="right" nowrap class="Caption">未审核客户:</td>
      <td colspan="2" class="ValueArea">&nbsp;&nbsp;<%=(EmpList_total)%>条记录&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="EmpMain_verify.asp" target="_blank">【进入审核】</a></td>
    </tr>
	<%end if%>

    <tr> 
      <td align="right" nowrap class="Caption">未被审核通过的客户:</td>
      
    <td class="ValueArea">&nbsp;&nbsp;<%=(EmpList_total)%>个客户&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="EmpMain_verify.asp" target="_blank">【进入查看】</a></td>
    </tr>
    
  </table>
</fieldset>
  <table width="98%" border="0" align="center">
    <tr> 
      <td width="82%" nowrap><!--DWLayoutEmptyCell-->&nbsp; </td>
    </tr>
  </table>
</body>

</html>

⌨️ 快捷键说明

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