<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
|
<%Session.CodePage=65001%>
|
<!--#include virtual="/inc/chkadmin.gds"-->
|
<!--#include virtual="/inc/function.gds"-->
|
<script language=javascript>
|
var IntroducerListArray=new Array()
|
<%
|
IntroducerSearchTXT=trim(Request("IntroducerSearchTXT"))
|
OA_CompetencyID=trim(Request("OA_CompetencyID"))
|
acc1=trim(Request("page"))
|
if acc1="" then acc1=1
|
acc2=1
|
i=0
|
acc3=0
|
Set rs = Server.CreateObject("ADODB.Recordset")
|
if len(IntroducerSearchTXT)>0 then
|
sql="select IntroducerID,IntroducerName,IntroducerUnitID from IntroducerData where IntroducerState>0 and (IntroducerName like '%"&IntroducerSearchTXT&"%' or IntroducerTEL like '%"&IntroducerSearchTXT&"%' or IntroducerAdminName like '%"&IntroducerSearchTXT&"%') order by IntroducerID desc"
|
else
|
sql="select IntroducerID,IntroducerName,IntroducerUnitID from IntroducerData where IntroducerState>0 order by IntroducerID desc"
|
end if
|
rs.open Sql,objConn,1,1
|
if not rs.eof then
|
rs.pagesize=6
|
rs.absolutepage=acc1
|
acc2=rs.pagecount
|
acc3=rs.recordcount
|
end if
|
do while not rs.Eof and i<6
|
IntroducerID = rs("IntroducerID")
|
IntroducerName = rs("IntroducerName")
|
IntroducerUnitID= rs("IntroducerUnitID")
|
%>
|
IntroducerListArray[<%=i%>]=new Array("<%=IntroducerID%>","<%=IntroducerName%>")
|
<%i=i+1
|
rs.movenext
|
loop
|
rs.close()
|
%>
|
parent.JS_IntroducerList(IntroducerListArray,<%=acc1%>,<%=acc2%>,'<%=IntroducerSearchTXT%>',<%=acc3%>);
|
</script>
|
<%Response.End%>
|