![]() |
#2
cnfarer2010-08-31 07:35
|

<script language="javascript">
function jumpTo(i){
if(i==1){
this.document.location="chakanfangyingdui.asp?sheng=<%=sheng%>&shi=<%=shi%>&xian=<%=xian%>&gjz=<%=gjz%>&gs=<%=gs%>";}
if(i==2){
this.document.location="chakanfangyingdui.asp?page=<%=page-1%>&sheng=<%=sheng%>&shi=<%=shi%>&xian=<%=xian%>&gjz=<%=gjz%>&gs=<%=gs%>";}
if(i==3){
this.document.location="chakanfangyingdui.asp?page=<%=page+1%>&sheng=<%=sheng%>&shi=<%=shi%>&xian=<%=xian%>&gjz=<%=gjz%>&gs=<%=gs%>";}
if(i==4){
this.document.location="chakanfangyingdui.asp?page=<%=rs.pageCount%>&sheng=<%=sheng%>&shi=<%=shi%>&xian=<%=xian%>&gjz=<%=gjz%>&gs=<%=gs%>";}
}
function addlineeffect(id,element)//获取ID为id的对象下的所有element元素!
{
var tr=[];
tr=document.getElementById(id).getElementsByTagName(element);
for(var i=0,j=tr+1.length;i<j;i++)
{
tr[i].onmouseover=function(){
this.style.backgroundColor='#B9D5FF';
}
tr[i].onmouseout=function(){
this.style.backgroundColor='';
}
}
}
</script>
function jumpTo(i){
if(i==1){
this.document.location="chakanfangyingdui.asp?sheng=<%=sheng%>&shi=<%=shi%>&xian=<%=xian%>&gjz=<%=gjz%>&gs=<%=gs%>";}
if(i==2){
this.document.location="chakanfangyingdui.asp?page=<%=page-1%>&sheng=<%=sheng%>&shi=<%=shi%>&xian=<%=xian%>&gjz=<%=gjz%>&gs=<%=gs%>";}
if(i==3){
this.document.location="chakanfangyingdui.asp?page=<%=page+1%>&sheng=<%=sheng%>&shi=<%=shi%>&xian=<%=xian%>&gjz=<%=gjz%>&gs=<%=gs%>";}
if(i==4){
this.document.location="chakanfangyingdui.asp?page=<%=rs.pageCount%>&sheng=<%=sheng%>&shi=<%=shi%>&xian=<%=xian%>&gjz=<%=gjz%>&gs=<%=gs%>";}
}
function addlineeffect(id,element)//获取ID为id的对象下的所有element元素!
{
var tr=[];
tr=document.getElementById(id).getElementsByTagName(element);
for(var i=0,j=tr+1.length;i<j;i++)
{
tr[i].onmouseover=function(){
this.style.backgroundColor='#B9D5FF';
}
tr[i].onmouseout=function(){
this.style.backgroundColor='';
}
}
}
</script>

<%
sheng=request("sheng")
shi=request("shi")
xian=request("xian")
gjz=request("gjz")
gs=request("gs")
page=Request("page")
px=request("px1")
if request("sheng")="省份" then sheng=""
if request("shi")="地级市" then shi=""
if request("xian")="市、县级市、县" then xian=""
if sheng="" and shi="" and xian="" and gjz="" and page="" and px="" and gs="" then
sql="SELECT * FROM fyd order by id desc"
else
sql="SELECT * FROM fyd where sheng like '%"&sheng&"%' and shi like '%"&shi&"%' and xian like '%"&xian&"%' and dz like'%"&gjz&"%' and gsmc like'%"&gs&"%' order by sheng "&px&", id desc"
end if
%>
sheng=request("sheng")
shi=request("shi")
xian=request("xian")
gjz=request("gjz")
gs=request("gs")
page=Request("page")
px=request("px1")
if request("sheng")="省份" then sheng=""
if request("shi")="地级市" then shi=""
if request("xian")="市、县级市、县" then xian=""
if sheng="" and shi="" and xian="" and gjz="" and page="" and px="" and gs="" then
sql="SELECT * FROM fyd order by id desc"
else
sql="SELECT * FROM fyd where sheng like '%"&sheng&"%' and shi like '%"&shi&"%' and xian like '%"&xian&"%' and dz like'%"&gjz&"%' and gsmc like'%"&gs&"%' order by sheng "&px&", id desc"
end if
%>