<!--#include file="../../../conn/conn4.asp" -->
<!--#include file="../../../conn/function.asp" -->
<%
S_id=Request.ServerVariables("QUERY_STRING")
%>
<?xml version='1.0' encoding='gb2312'?>
<gallery>

<%
Set rs= Server.CreateObject("ADODB.RecordSet")
sql="select * from photo where P_sort="&S_id&" order by P_id desc"
rs.open sql,conn,1,1
if not rs.eof then
Do while Not rs.eof
response.Write "<sort><Title><![CDATA["&rs("P_title")&"]]></Title><Desc><![CDATA["&RemoveHTML(rs("P_content"))&"]]></Desc><URL></URL><XML></XML><Thumb>"&rs("P_thumb")&"</Thumb><Image>"&rs("P_path")&"</Image><itemThumbW></itemThumbW><itemThumbH></itemThumbH><itemImageW>"&split(rs("P_path"),"_")(1)&"</itemImageW><itemImageH>"&split(rs("P_path"),"_")(2)&"</itemImageH></sort>"
rs.movenext
		loop
	end if
set rs=nothing
%>
</gallery>