<!--#include file="admin_start.asp" -->
<body topmargin="30" marginwidth="10" marginheight="10">
<div id=search_open style='display:none'>
<table cellspacing=3 cellpadding=3 width=98% bgcolor='#f7f7f7' align=center style='border:1px dashed #b7b7b7 '>
<form name=search_label method=get action='admin_template_label_list.asp'>	
<tr>
	<td valign='middle' align=right width=10% >标签标识:</td>
	<td valign='middle' align=left width=40% >
	<input size=45 name=label_name value='<%=request("label_name")%>' >
	</td>
	<td  valign='middle' align=right width=10% >加入时间:</td>
	<td  valign='middle' align=left width=40% >
	 从 
	<input size=18 name=label_addtime_s value='<%=request("label_addtime_s")%>' > 
	 到 
	<input size=18 name=label_addtime_e value='<%if request("label_addtime_e")<>"" then response.write request("label_addtime_e") else response.write now() %>' > 
	 </td>
</tr>
<tr>
	<td valign='middle' align=right width=10% >标签类型:</td>
	<td  valign='middle' align=left width=40% >
	<select name=label_type >
	<option value='' <%if request("label_type")="" then response.write "selected"%>>随便</option>
	<option value=0 <%if request("label_type")="0" then response.write "selected"%>>静态标签</option>
	<option value=1 <%if request("label_type")="1" then response.write "selected"%>>动态标签</option>
	</select>
	</td>
	<td valign='middle' align=right width=10% >所属方案:</td>
	<td  valign='middle' align=left width=40% >
	<select name=label_project >
	<option value='' >随便</option>
	<option value=0 <%if request("label_project")="0" then response.write "selected" %>>公用</option>
				  <%
				  set rss=conn.execute("select sort_id,sort_name from jins_template_sort where sort_up=0 ")
				  do while not rss.eof
				  response.write "<option value="&rss("sort_id")&"  "
				  if request("label_project")=""&rss("sort_id") then response.write "selected"
				 response.write " >"&rss("sort_name")&"</option>"
				  rss.movenext
				  loop
				  set rss=nothing
				  %>
	</select>
	</td>
</tr>
<tr>
<td height='1' width='100%' colspan='10' background='images/dot03.gif'></td>
</tr>
<tr>
	<td  valign='middle' colspan=10 align=center width=100% >
	<input type=hidden  name=s_n value="0,label_name,1|5,label_addtime|1,label_type,0|1,label_project,0" >
	<input type=image align=absmiddle border=0 src='Images/search.jpg'  alt='开始搜索！！'  hspace='3' ></td>
</tr>
</form>
</table>
<br>
</div>
<%

c_order="所属模版方案$label_project|标签标识$label_name|加入日期$label_addtime|标签类型$label_type,升序$|降序$desc"

c_h="<form name=jins_template_label action='admin_template_label_list_handle.asp' method=post>"
c_h=c_h+"<table cellspacing=0 cellpadding=0 align=center width=98% bgcolor=#F7F7F7 style='border-top: 1px solid #EBEBEB; '>"
c_h=c_h+"<tr>"
c_h=c_h+"<td height=30 width='5%' align=center>选择</td>"
c_h=c_h+"<td height=30 width='35%' align=left>标签标识</td>"
c_h=c_h+"<td height=30 width='20%' align=center>模版方案</td>"
c_h=c_h+"<td height=30 width='10%' align=center>标签类型</td>"
c_h=c_h+"<td height=30 width='15%' align=center>加入日期</td>"
c_h=c_h+"<td height=30 width='10%' align=center>操作</td>"
c_h=c_h+"<td height=30 width='5%' align=center>删除</td>"
c_h=c_h+"</tr>"
c_h=c_h+"<tr>"
c_h=c_h+"<td height='1' width='100%' colspan='10' background='images/dot03.gif'></td>"
c_h=c_h+"</tr>"
c_h=c_h+"</table>"

c="<table cellspacing=0 cellpadding=0 width=98% align=center >"
c=c+"<tr onmouseover=""this.style.background='#ebebeb';"" onmouseout=""this.style.background='#ffffff';"">"
c=c+"<td height=30  width='5%' align=center>"
c=c+"<input type=checkbox name=ids value='$$label_id$$'> "
c=c+"</td>"

c=c+"<td height=30  width='35%' align=left >"
'c=c+"<a title='[$$label_name$$] > 点击进行详细设置！' href='admin_template_label_edit.asp?id=$$label_id$$'>"
'c=c+"<input name=label_name_$$label_id$$ type=text value='$$label_name$$' size=40>"
c=c+"<a title='$$label_description$$  详细设置！' href='admin_template_label_edit.asp?id=$$label_id$$'><font color=blue style='font-size:10pt;font-family:Arial'>$$label_name$$</font></a>"
'c=c+"</a>"
c=c+"</td>"

c=c+"<td height=30  width='20%' align=center >"
'c=c+"<a title='[$$label_name$$] > 点击进行详细设置！' href='admin_template_label_edit.asp?id=$$label_id$$'>"
c=c+"<%set rss=conn.execute(""select sort_name from jins_template_sort where sort_id=$$label_project$$ "")"&vbcrlf
c=c+"if not rss.eof then response.write rss(""sort_name"") else response.write ""公用"""&vbcrlf
c=c+"set rss=nothing%\>"
c=c+"</td>"

c=c+"<td height=30  width='10%' align=center >"
'c=c+"<a title='[$$label_name$$] > 点击进行详细设置！' href='admin_template_label_edit.asp?id=$$label_id$$'>"
c=c+"<%if $$label_type$$=1 then response.write ""动态标签"" else response.write ""静态标签"" %\> "
'c=c+"</a>"
c=c+"</td>"

c=c+"<td height=30  width='15%' align=center>"
c=c+"$$label_addtime$$"
c=c+"</td>"

c=c+"<td height=30  width='10%' align=center>"
c=c+"<a title='详细设置！' href='admin_template_label_edit.asp?id=$$label_id$$'><img hspace=3 border='0' src='Images/icon07_o.gif' align='bottom' alt='详细设置！'></a>"
c=c+"<a title='缓存设置！' href='admin_template_label_cache_edit.asp?id=$$label_id$$'><img hspace=3 border='0' src='Images/icon07_c.gif' align='bottom' alt='缓存设置！'></a>"
c=c+"</td>"
		
c=c+"<td height=30 width='5%' align=center>"
c=c+"<a title='点击删除此项！' href='admin_template_label_edit_handle.asp?action=delete&ids=$$label_id$$'>"
c=c+"<img border='0' src='Images/delete.gif' align='bottom' alt='点击删除此项！'></a>"
c=c+"</td></tr>"
c=c+"<tr>"
c=c+"<td height='1' width='100%' colspan='20' background='images/dot03.gif'></td>"
c=c+"</tr>"
c=c+"</table>"
dim ins(2)
dim sql

'response.write trim(request("s_n"))
'response.end

sql=MySys.search(trim(request("s_n")))

if sql<>"" then sql=" where 1=1 "&sql
'response.write "<br>dfdf"&sql
'response.end
MySys.ListThings c_order,c_h,c,sql,"jins_template_label","label_id",ins
%>
<!--#include file="admin_end.asp" -->