<%@ codepage ="936" %>
<!--#include file="mycartconn/conn.asp" -->
<!--#include file="mycartconn/Function.asp"-->
<!--#include file="mycartconn/page.asp"-->
<!--#include file="mycartconn/ubbcode.asp"-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta name="description" content="搜索关键字，在<%=my_name%>电子相册网站上的结果，<%=my_name%>最快捷稳定的个人电子相册，提供免费相册空间和优秀的相册技术支持，提供非主流相册、个人相册、相册视频、网络相册、非主流电子相册制作,无限化的相册容量，精彩图片荟萃，<%=my_name%>永远为大家服务！" />
<meta name="keywords" content="<%=my_name%>，，电子相册，相册，图片，空间相册，相册制作，相册视频，相册储存空间，免费网络相册，<%=my_name%>flash相册" />
<meta name="robots" content="all" />
<title> - 精美图片,相册视频-<%=my_name%>-电子相册视频网站</title><link rel="stylesheet" href="common/css/main_xiu.css" type="text/css" media="all" />
<script type="text/javascript" src="js/get_config.asp"></script>
<script type="text/javascript" src="js/ajax.js"></script>
<script type="text/javascript" src="js/register.js"></script>
<script type="text/javascript" src="js/event.js"></script>
<script type="text/javascript" src="js/seven_form.js"></script>
</head>

<script type="text/javascript">
window.onload = function(){

	et = new events();
	reg = new reg();
	
}
</script>
<%
sub page_my(canshu)
  if rs.recordcount>=1 then
	if page-1 mod 10=0 then
	p=(page-1) \ 10
	else
	p=(page-1) \ 10
	end if
	response.write "<span>共找到&nbsp;"& rs.recordcount &"&nbsp;个"&my_name&"</span>  共 "& rs.recordcount &" 作品  &nbsp;"
	if page<2 then
		'response.write "<font color=silver>第一页&nbsp;上一页</font>&nbsp;&nbsp;" 
	Else
		response.write "<a href=""javascript:chgStat('page','1',1);""><<</a>&nbsp; <a href=""javascript:chgStat('page','"&page-1&"',1);""><</a>&nbsp;&nbsp;"
	end if

	uming_i=1
	for ii=p*10+1 to P*10+10
	if ii=page then
	response.write "<strong><font color=#ff0000>"+Cstr(ii)+"</font></strong> "
	else
	response.write "<a href=""javascript:chgStat('page','"&ii&"',1);"">"+Cstr(ii)+"</a> "
	end if
	if ii=rs.pagecount then exit for
	uming_i=uming_i+1
	next

	if page>=rs.pagecount then 
		'response.write "<FONT color=silver>下一页&nbsp;最后页&nbsp;</FONT>" 
	else 
		response.write "<a href=""javascript:chgStat('page','"&page+1&"',1);"">" 
		response.write "></a>&nbsp;<a href=""javascript:chgStat('page','"&rs.pagecount&"',1);"">>></a>&nbsp;" 
	end if 

  end if
end Sub

stype = FilterJs(request("stype"))
If stype="" Then stype=2
f_by = FilterJs(request("f_by"))
If f_by="" Then f_by=0
f_alldate = FilterJs(request("f_alldate"))
If f_alldate="" Then f_alldate="ON"
f_date = FilterJs(request("f_date"))
d1_Month = FilterJs(request("d1_Month"))
d1_Day = FilterJs(request("d1_Day"))
d1_Year = FilterJs(request("d1_Year"))
d2_Month = FilterJs(request("d2_Month"))
d2_Day = FilterJs(request("d2_Day"))
d2_Year = FilterJs(request("d2_Year"))
f_author = FilterJs(request("f_author"))
f_type = FilterJs(request("f_type"))
If f_type="" Then f_type="*"
f_title = FilterJs(request("f_title"))
f_tag = FilterJs(request("f_tag"))
f_key = FilterJs(request("f_key"))
pagesize = FilterJs(request("pagesize"))
If pagesize="" Then pagesize=48
orderby = FilterJs(request("orderby"))
If orderby="" Then orderby=0
smode = FilterJs(request("smode"))
If smode="" Then smode="detail"



where = " where flag=1 and share_set=1 " 
If CInt(stype)=1 Then 
	If f_by=0 Then f_by=4
	If f_key<>"" then
		Select Case CInt(f_by)
		Case 1
			where = where & " and tags like '%" & f_key & "%'"
		Case 2
			where = where & " and huiyuan like '%" & f_key & "%'"
		case 4
			where = where & " and name like '%" & f_key & "%'"
		End Select
	End If
	If f_type<>"" And f_type<>"*" And CInt(f_by)=3 Then where = where & " and cate=" & f_type & ""
else
	If f_type<>"*" Then
		where = where & " and cate=" & f_type & ""
	End If
	If f_title<>"" Then
		where = where & " and name like '%" & f_title & "%'"
	End If
	If f_tag<>"" Then
		where = where & " and tags like '%" & f_tag & "%'"
	End If
	If f_author<>"" Then
		where = where & " and huiyuan like '%" & f_author & "%'"
	End If
End If
Set rs= Server.CreateObject("ADODB.Recordset")
sql="select id,defpic,name,userid,hits,views,photonum from A_slide" & where
Select Case CInt(orderby)
Case 1
	sql = sql & " order by datetime desc"
Case 2
	sql = sql & " order by photonum desc"
Case 3
	sql = sql & " order by hits+views desc"
case Else
	sql = sql & " order by datetime desc"
End select
rs.open sql,conn,1,1
rs.CacheSize = CInt(pagesize)
page1(pagesize)
i=1
%>



<body>
<!-- 头部begin -->
<script type="text/javascript" id="loginOrnot"></script>
<script type="text/javascript" src="js/login.js"></script>
<div class="headerWarp">
	<!--#include file="menu.asp"-->
</div>
<div class="infoWarp">
	<div id="info">
    	<img src="images/index_radiate.gif" style="position:absolute; top:0; left:0;" />
        <div class="call_board">
			<script type="text/javascript" src="js/call_board_msg.js"></script>
            <script type="text/javascript" src="js/call_board.js"></script>
    	</div>
        <div class="loginWarp" id="newuser"><script type="text/javascript">login_register();</script></div>
    </div>
</div><!-- 头部end -->
<form id="frm_info" name="frm_info" method="post">
<input type="hidden" id="stype" name="stype" value="<%=stype%>" />
<input type="hidden" id="f_by" name="f_by" value="<%=f_by%>" />
<input type="hidden" id="f_alldate" name="f_alldate" value="<%=f_alldate%>" />
<input type="hidden" id="f_date" name="f_date" value="<%=f_date%>" />
<input type="hidden" id="d1_Month" name="d1_Month" value="<%=d1_Month%>" />
<input type="hidden" id="d1_Day" name="d1_Day" value="<%=d1_Day%>" />
<input type="hidden" id="d1_Year" name="d1_Year" value="<%=d1_Year%>" />
<input type="hidden" id="d2_Month" name="d2_Month" value="<%=d2_Month%>" />
<input type="hidden" id="d2_Day" name="d2_Day" value="<%=d2_Day%>" />
<input type="hidden" id="d2_Year" name="d2_Year" value="<%=d2_Year%>" />
<input type="hidden" id="f_author" name="f_author" value="<%=f_author%>" />
<input type="hidden" id="f_type" name="f_type" value="<%=f_type%>" />
<input type="hidden" id="f_title" name="f_title" value="<%=f_title%>" />
<input type="hidden" id="f_tag" name="f_tag" value="<%=f_tag%>" />
<input type="hidden" id="f_key" name="f_key" value="<%=f_key%>" />
<input type="hidden" id="page" name="page" value="<%=page%>" />
<input type="hidden" id="pagesize" name="pagesize" value="<%=pagesize%>" />
<input type="hidden" id="orderby" name="orderby" value="<%=orderby%>" />
<input type="hidden" id="smode" name="smode" value="<%=smode%>" />
</form>
<div style="width:960px; margin:0 auto;">

<%If CInt(stype)=1 then%>
<script type="text/javascript">
function $(id){return document.getElementById(id)?document.getElementById(id):null;}
function clev(obj){
	if(obj.value == "请输入关键字"){
		obj.value="";
	}
}
function setv(obj){
	if(obj.value == ""){
		obj.value="请输入关键字";
	}
}
function check(){
	obj = document.getElementById("f1_key");
	if(obj.value == "请输入关键字"){
		obj.className = "I-keywords_error";
		event.returnValue = false;
	}
}

// search
function getHotKey(hotkey){
	var frm = document.getElementById('frm_search_1');
	//frm.f_by.options[0].selected = 'selected';
	frm.f_key.value = hotkey;
	frm.submit();
}
</script>

<div class="smallSearch">
	<img src="images/index_search.gif" width="40" height="35" style="position:absolute;" />
    <span class="hot_keywords">大家都在搜索： <a href="search.asp?f_tag=刘亦菲" target="_blank">刘亦菲</a>
<a href="search.asp?f_tag=QQ相册" target="_blank">QQ相册</a>
<a href="search.asp?f_tag=非主流相册" target="_blank">非主流相册</a></span>
    <form id="frm_search_1" name="frm_search_1" method="post" action="/search.asp" onsubmit="check();">
        <input type="hidden" id="f1_by" name="f_by" value=""/>
        <input name="v" type="radio" value="4" onclick="$('f1_type').style.display = 'none'; document.getElementById('f1_by').value=this.value;" <%If CInt(f_by)=4 Then response.write "checked"%>/>作品名称
        <input name="v" type="radio" value="3" onclick="$('f1_type').style.display = 'inline'; document.getElementById('f1_by').value=this.value;" <%If CInt(f_by)=3 Then response.write "checked"%>/>作品分类
        <input name="v" type="radio" value="2" onclick="$('f1_type').style.display = 'none'; document.getElementById('f1_by').value=this.value;" <%If CInt(f_by)=2 Then response.write "checked"%>/>作者
        <input name="v" type="radio" value="1" onclick="$('f1_type').style.display = 'none'; document.getElementById('f1_by').value=this.value;" <%If CInt(f_by)=1 Then response.write "checked"%>/>标签		
        <select name="f_type" id="f1_type" style="display:<%If CInt(f_by)<>3 Then response.write "none"%>">
            <option value="*">所有分类</option>
			<%
				Set rs_cate= Server.CreateObject("ADODB.Recordset")
				sql_cate="select * from A_cate order by cateid"
				rs_cate.open sql_cate,conn,1,1
				Do While Not rs_cate.eof
					If Cint(f_type)=CInt(rs_cate("cateid")) Then
						my_selected=" selected"
					Else
						my_selected=""
					End if
					response.write "<option label='"&Trim(rs_cate("cate"))&"' value='"&Trim(rs_cate("cateid"))&"' "&my_selected&">"&Trim(rs_cate("cate"))&"</option>"
					rs_cate.movenext
				Loop
				rs_cate.close
				Set rs_cate=nothing%>
        </select>
        <input class="I-keywords" type="text" onfocus="clev(this);" onblur="setv(this);" name="f_key" id="f1_key"  value="<%=f_key%>" />
        
        <input type="submit" value="搜索" class="I-search" />
<input type="button" value="高级搜索" onclick="javascript:chgStat('stype',2, 1);" class="I-search" />
        
         <input type="hidden" id="stype" name="stype" value="1" />
        <input type="hidden" id="f1_alldate" name="f_alldate" value="ON" />
    </form>
</div><!--.smallSearch end--></div>

<%else%>

<div class="advancedSearch">
<form id="frm_search_2" name="frm_search_2" method="post" action="search.asp">
	<div class="textGJSS">高级搜索</div>
    <img src="images/space.gif" width="100" height="1" />
    作品名称：<input type="text" name="f_title" id="f2_title" value="<%=f_title%>" class="textEdit" />
    作品分类：<select name="f_type" id="f2_type" class="textEdit">
    	<option value="*" <%If f_type="*" Then response.write "selected"%>>所有分类</option>
		<%
			Set rs_cate= Server.CreateObject("ADODB.Recordset")
			sql_cate="select * from A_cate order by cateid"
			rs_cate.open sql_cate,conn,1,1
			Do While Not rs_cate.eof
				If Cint(f_type)=CInt(rs_cate("cateid")) Then
					my_selected=" selected"
				Else
					my_selected=""
				End if
				response.write "<option label='"&Trim(rs_cate("cate"))&"' value='"&Trim(rs_cate("cateid"))&"' "&my_selected&">"&Trim(rs_cate("cate"))&"</option>"
				rs_cate.movenext
			Loop
			rs_cate.close
			Set rs_cate=nothing%>
	</select>
    作者名称：<input type="text" name="f_author" id="f2_author" value="<%=f_author%>" class="textEdit" />
    作品标签：<input type="text" name="f_tag" id="f2_tag" value="<%=f_tag%>" class="textEdit" />
    <input type="submit" class="I-search" onclick="check();" value="搜索"/>&nbsp;&nbsp;<input type="button"  class="I-search" onclick="javascript:chgStat('stype',1,1);" value="快速搜索" />
<input type="hidden" id="stype" name="stype" value="2" />
</form>
</div>

<script type="text/javascript">
function check(){ if((document.getElementById("f2_title").value=="")&&(document.getElementById("f2_author").value=="")&&(document.getElementById("f2_tag").value=="")){
			//obj = document.getElementById("err2");                
			//obj.className = "text_error";
			alert ("请输入关键词");
			event.returnValue = false;
		}
	}
</script>

<div  class="advancedSearchKeywords"><span>热门关键词搜索：</span><a href="search.asp?f_tag=刘亦菲" target="_blank">刘亦菲</a>
<a href="search.asp?f_tag=QQ相册" target="_blank">QQ相册</a>
<a href="search.asp?f_tag=非主流相册" target="_blank">非主流相册</a></div></div>
<%End if%>

<div class="searchWrap">
    <div class="searchShowTitle"><%page_my("")%></div>
    <div class="searchShowTerm">
        <span class="searchShowTermRight">显示:
            <img src="images/space.gif" width="1" height="32" align="absmiddle" />
            <a href="javascript:chgStat('smode','detail', 1);"><img src="images/space.gif" class="ImgS_mode_detail<%If smode="detail" Then response.write "_on"%>" align="absmiddle" /></a>
            <a href="javascript:chgStat('smode','image', 1);"><img src="images/space.gif" class="ImgS_mode_image<%If smode="image" Then response.write "_on"%>" align="absmiddle"  /></a>
            <a href="javascript:chgStat('smode','list', 1);"><img src="images/space.gif" class="ImgS_mode_list<%If smode="list" Then response.write "_on"%>" align="absmiddle"  /></a>
              &nbsp;&nbsp;&nbsp;&nbsp;每页：
            <a href="javascript:chgStat('pagesize','12', 1);"><img src="images/space.gif" class="ImgS_number_12<%If pagesize=12 Then response.write "_on"%>" align="absmiddle"  /></a> 
            <a href="javascript:chgStat('pagesize','24', 1);"><img src="images/space.gif" class="ImgS_number_24<%If pagesize=24 Then response.write "_on"%>" align="absmiddle"  /></a> 
            <a href="javascript:chgStat('pagesize','48', 1);"><img src="images/space.gif" class="ImgS_number_48<%If pagesize=48 Then response.write "_on"%>" align="absmiddle" /></a>
        </span>&nbsp;&nbsp;&nbsp;排序：
        <img src="images/space.gif" width="1" height="32" align="absmiddle" />
        <a href="javascript:chgStat('page',1,0);chgStat('orderby',1,1);"><img src="images/space.gif" class="ImgS_order_time<%If orderby=1 Then response.write "_on"%>" align="absmiddle" /></a> 
        <a href="javascript:chgStat('page',1,0);chgStat('orderby',2,1);"><img src="images/space.gif" class="ImgS_order_photo<%If orderby=2 Then response.write "_on"%>" align="absmiddle" /></a> 
        <a href="javascript:chgStat('page',1,0);chgStat('orderby',3,1);"><img src="images/space.gif" class="ImgS_order_pv<%If orderby=3 Then response.write "_on"%>" align="absmiddle" /></a>
    </div><!--.searchShowTerm end-->
    
    <div class="searchShow">
	<%If Not (rs.bof And rs.eof) then%>

	  <%If Cstr(smode)="detail" then%>
            <div class="slideShowListWrap" style="width:920px; margin-left:25px !important; margin-left:15px;">
            <ul class="slideShowList">
	  <%ElseIf Cstr(smode)="image" then%> 
			<div class="slideShowImgWrap" style=" width:930px; margin:10px auto; margin-left:25px !important; margin-left:30px;">
	  <%else%>
		  <table width="95%" align=center border="0" cellpadding="5" cellspacing="1" bgcolor="#CCCCCC">
		  <tr bgcolor="#dddddd">
			<th>作品名称</th>
			<th>作者</th>
			<th align="right">人气</th>
			<th align="right">图片数</th>
		  </tr>
	<%End if
		while not rs.eof and i<=CInt(pagesize)
			Select Case Cstr(smode)
			Case "detail"
		%>

                <li onmouseover="this.className='over'" onmouseout="this.className=''">
                <a href="mofahe.asp?moliheid=<%=rs("id")%>" target="_blank" class="slideImg">
                <span class="icon_play"></span>
                <img src="<%=rs("defpic")%>" width="120" height="90" alt="<%=rs("name")%>" title="<%=rs("name")%>" /></a>
                <p>名称：<a href="mofahe.asp?moliheid=<%=rs("id")%>" class="slideTitle" target="_blank"><%=rs("name")%></a></p>
                <p>作者：<a href="user.asp?huiyuan=<%=rs("userid")%>" class="userName" target="_blank"><%=conn.execute("select nickname from huiyuan where userid="&rs("userid")&"")(0)%></a></p>
                <p>浏览：<%=rs("hits")+rs("views")%>人</p>
                <p>图片：<%=rs("photonum")%>张</p>
                </li>
		  <%Case "image"%>
			<a href="mofahe.asp?moliheid=<%=rs("id")%>" target="oMain"><img src="<%=rs("defpic")%>" width="120" height="90" alt="<%=rs("name")%>" title="<%=rs("name")%>" /></a>
		  <%Case "list"%>
			<tr bgcolor="#ffffff" height=20>
			  <td><a href="mofahe.asp?moliheid=<%=rs("id")%>" target="oMain"><%=rs("name")%></a></td>
			  <td><a href="user.asp?huiyuan=<%=rs("userid")%>" class="a_hui_2" target="_blank"><%=conn.execute("select nickname from huiyuan where userid="&rs("userid")&"")(0)%></a></td>
			  <td align="right"><%=rs("hits")+rs("views")%> 人</td>
			  <td align="right"><%=rs("photonum")%> 张</td>
			</tr>
		  <%End select
			rs.MoveNext
			i=i+1
		Wend
	  If Cstr(smode)<>"list" then%>
                <%If Cstr(smode)="detail" then%></ul><%End if%>
            </div>
	  <%else%>
		</table>
	  <%End if

	else%>

                    <h3 style="color:red; text-align:center; margin:15px;">没有找到对应条件的电子相册, 请选择或改变搜索条件...</h3>
	<%End if%>
                <div class="clear"></div>
        <div style="text-align:right; margin:10px;"><%page_my("")%></div>
    </div><!--.searchShow end-->
</div><!--.searchWrap end--><!-- 底部begin -->
<!--#include file="Foot.asp" -->
</body>
</html>
<%
rs.close
Set rs=Nothing
conn.close
Set conn=Nothing
%>