<%'guidedisplay=1%>
<!--#include file="admin_start.asp" -->

<%
id=request("id")
if not MySys.check.isInteger(id) then
   MySys.Error.info = "请提交合法的标签id！"
   MySys.Error.location = "back"
   MySys.Error.err()
End If

id=int(id)

rs.open"select * from jins_template_label where label_id="&id&" ",conn,1,1
if rs.eof then
   MySys.Error.info = "您请求的标签不存在！"
   MySys.Error.location = "back"
   MySys.Error.err()
End If

%>
<body topmargin="30" marginwidth="10" marginheight="10">
<form name=edit_template target=admin_edit_template method=post><input type=hidden name=c value=''><input type=hidden name=c_sql value=''><input type=hidden name=formname value=''><input type=hidden name=inputname value=''></form>
<form name=edit_sql target=admin_edit_sql method=post><input type=hidden name=c value=''><input type=hidden name=formname value=''><input type=hidden name=inputname value=''></form>
<form name=label_edit action="admin_template_label_cache_edit_handle.asp?id=<%=id%>" method=post>
<table cellpadding="3" cellspacing="4" width="90%" height="30" align=center style='border:1px solid #ebebeb' >
	<tr>
		<td width="2%" align=right><img alt='点击弹开编辑框' onclick="opencat(basic_open)" style='CURSOR: hand' src="Images/index_search.gif" width="8" height="16"></td>
		<td  width="98%" align=left>
		<font color="#ebebeb"> | </font>
		<img alt='点击弹开提示信息框' onclick="opencat(help_ads_open)" style='CURSOR: hand' src="Images/icon_info.gif" width="13" height="13" hspace="0" align="absmiddle">			
		<font color="#ebebeb"> | </font>
		标签缓存设置
	    </td>
	</tr>		
	<tr id="help_ads_open" style="display:  ">
		<td colspan="10" align=left>
		<table cellpadding="4" cellspacing="2" width="99%" height="30" align=center style='border:1px dashed #B7B7B7' >
			<tr>
				<td colspan="8" width='100%' style="line-height:150% ">
				·您可以更改用户的类型<br>
				·通过更改登陆ip锁定可以解除用户错误的操作造成的无法登陆！<br>
				·通过重置取回密码问题和答案可以帮助用户在忘记密码和密码提示问题的情况下恢复用户权限！<br>
			</td>
			</tr>
		</table>
		</td>
	</tr>
	
	<tr id="basic_open" >
		<td colspan="10" align=left style='padding-bottom:5px'>
		<table cellpadding="4" cellspacing="2" bgcolor='#f7f7f7' width="99%" height="30" align=center style='border:1px dashed #808080;padding:20px' >
			<tr>
				<td  width="15%" align=right>标签名称:</td>
				<td  width="85%" align=left><a title='点击详细设置此标签' href='admin_template_label_edit.asp?id=<%=rs("label_id")%>'><%=rs("label_name")%> <img  hspace=3 border='0' src='Images/icon07_o.gif' align='absmiddle' alt='详细设置！'></a>
				</td>
			</tr>
			<tr>
				<td  width="15%" align=right>所属模版方案:</td>
				<td  width="85%" align=left>
				  <%
				  set rss=conn.execute("select sort_id,sort_name from jins_template_sort where sort_up=0 ")
				  if not rss.eof then
				  	response.write rss("sort_name")
				  else
				  	response.write "未知模版方案"
				  end if
				  set rss=nothing
				  %>
				</td>
			</tr>
			<tr>
				<td  width="15%" align=right>标签缓存周期:</td>
				<td  width="85%" align=left>
				<input name=label_cache_timeout value='<%if rs("label_cache_timeout")<>"" then response.write rs("label_cache_timeout") else response.write 0%>' size=7 > 秒( 0 表示不缓存)
				</td>
			</tr>
			<tr>
				<td  width="15%" align=right valign=top >最后更新时间:</td>
				<td  width="85%" align=left>
				<%if rs("label_cache_addtime")<>"" then response.write rs("label_cache_addtime") else response.write"尚未更新！"%> <a  href='admin_template_label_cache_edit_handle.asp?action=update&id=<%=id%>' ><font color=red> >> 更新此标签的缓存！</font></a>
			    </td>
			</tr>
		</table><br>
		<table cellpadding="4" cellspacing="2" bgcolor='#f7f7f7' width="99%" height="30" align=center style='border:1px dashed #808080;padding:20px' >
			<tr>
				<td  width="15%" align=right valign=top>当前缓存内容:</td>
				<td  width="85%" align=left>
                <textarea wrap="off" id="label_cache_content" name="label_cache_content" cols="70" rows="20"><%=rs("label_cache_content")%></textarea>
				<a title='点击进行详细编辑！' href="javascript:openedit_template('label_edit','label_cache_content','');" >
				<img border=0 src="Images/old.gif" width="21" height="20" align="top">
				</a>
				</td>
			</tr>
			
		</table>
		</td>
	</tr>

	<tr>
		<td height='1' colspan="9" background='images/dot03.gif'></td>
	</tr>
	
	<tr>
	  <td height='30' colspan="8" width='100%' align=center >
	  <input type=submit value="提交设置！" >
	   <input type=reset value="重置" > 
	   <input onclick='history.back(-1)' type=button value="返回" >	  </td>
	</tr>
</table>		
<SCRIPT language=javascript>
	function opencat(cat)
	{
 	 	if(cat.style.display=="none"){
     	cat.style.display="";
  		} else {
     	cat.style.display="none"; 
  		}
	}</SCRIPT>
</form>
<%
rs.close
%>
<!--#include file="admin_end.asp" -->