<%
guidedisplay=1
copyrightend=1
%>
<!--#include file="admin_start.asp" -->
<style>
td {font:Arial;font-size:10pt}

</style>
<body onmousemove="top.changew(2,event.x)" onmouseup="top.changew(1,event.x)">
	<table cellpadding="0" cellspacing="0"  border="0" id=label_list width="300%"   valign=top >
		<tr> 
		  <td align=left height=20 style='padding:0' colspan="10" bgcolor="#ffffff" valign=top style='border-bottom:1px dotted #d0d0d0'>
		  <img src="images/class3_a.gif" align=absmiddle ><img style='CURSOR: hand' title='点击展开或合上下级标签列表' onclick='opencat(st,this);'  src="images/class7_a.gif" align=absmiddle> 公共标签
		  </td>
		</tr>
		<tr id=st> 
		  <td align=center style='padding:0' colspan="10" bgcolor="#ffffff" valign=top>
			<table cellspacing=0 cellpadding=0 width=100% align=left  >
			  <%
			  rs.open "select * from jins_template_label_sort where label_link=1  order by  sort_name  ",conn,1,1
			  num_labels=rs.recordcount
			  n_labels=1
			  if rs.eof then
			  %>
				<tr  onmouseover="this.style.background='#ebebeb';" onmouseout="this.style.background='#ffffff';">
				
				<td height=20  width='100%' align=left style='border-bottom:1px dotted #d0d0d0'>
				<img src="images/class5_a.gif" align=absmiddle><img src="images/class<%if n_labels>=num_labels then%>4<%else%>3<%end if%>_a.gif" align=absmiddle><img align=absmiddle src="images/label_title_l_0.gif" > 暂时没有标签
				</td>
				</tr>
			  <%
			  end if
			  do while not rs.eof
			  %>
				<tr onmouseover="this.style.background='#ebebeb';" onmouseout="this.style.background='#ffffff';">
               <% if rs("sort_type")=1 then sort_type="=" else sort_type="" %>
				
				<td height=20  width='100%' align=left style='border-bottom:1px dotted #d0d0d0'>
				<img src="images/class5_a.gif" align=absmiddle><img src="images/class<%if n_labels>=num_labels then%>4<%else%>3<%end if%>_a.gif" align=absmiddle><img align=absmiddle src="images/label_title_l_0.gif" >
				<nobr>
				<a title='点击插入此标签！&#13;&#10;&#13;&#10;【<%=rs("sort_description")%>】' href="javascript:InsertLabel('<%=sort_type%><%=rs("sort_source")%>')">{$<%=sort_type%> <font color=green ><%=rs("sort_name")%> </font>$}</a>
			    <% if rs("sort_content")<>""  then response.write "<a target=_blank title='' href='admin_template_label_sort_edit.asp?id="&rs("sort_id")&" '><img alt='点击在新窗口中查看此标签的详细说明！' hspace=2 border='0' src='Images/icon_info.gif' align='absmiddle'></a>" %>
				</nobr>
				</td>
				
				</tr>
				
			  <%
			  n_labels=n_labels+1
			  
			  rs.movenext
			  loop
			  rs.close
			  %>
				</table>
		  </td>
		</tr>
		
		<tr> 
		  <td align=left height=20 style='padding:0' colspan="10" bgcolor="#ffffff" valign=top style='border-bottom:1px dotted #d0d0d0'>
		  <img src="images/class4_a.gif" align=absmiddle ><img style='CURSOR: hand' title='点击展开或合上下级标签列表' onclick='opencat(ac,this);'  src="images/class7_a.gif" align=absmiddle> 自定义标签
		  </td>
		</tr>
		
		<tr id=ac> 
		  <td align=center style='padding:0' colspan="10" bgcolor="#ffffff" valign=top>
			<table cellspacing=0 cellpadding=0 width=100% align=left  >
			  <%
			  rs.open "select label_link,label_id,label_name,label_type,label_description,label_addtime from jins_template_label where label_link=1 order by  label_name ,label_type desc ",conn,1,1
			  num_labels=rs.recordcount
			  n_labels=1
			  if rs.eof then
			  %>
				<tr onmouseover="this.style.background='#ebebeb';" onmouseout="this.style.background='#ffffff';">
				
				<td height=20  width='100%' align=left style='border-bottom:1px dotted #d0d0d0'>
				<img src="images/class6_a.gif" align=absmiddle><img src="images/class<%if n_labels>=num_labels then%>4<%else%>3<%end if%>_a.gif" align=absmiddle><img align=absmiddle src="images/label_title_l_0.gif" > 暂时没有标签
				</td>
				
				</tr>
			  <%
			  end if
			  do while not rs.eof
			  %>
				<tr onmouseover="this.style.background='#ebebeb';" onmouseout="this.style.background='#ffffff';">
				
				<td height=20  width='100%' align=left style='border-bottom:1px dotted #d0d0d0'>
				<img src="images/class6_a.gif" align=absmiddle><img src="images/class<%if n_labels>=num_labels then%>4<%else%>3<%end if%>_a.gif" align=absmiddle><img align=absmiddle src="images/label_title_l_0.gif" ><nobr>
				<a title='点击插入此标签！&#13;&#10;&#13;&#10;【<%=rs("label_description")%>】' href="javascript:InsertLabel('$<%=rs("label_name")%>')">{$$ <font color=green ><%=rs("label_name")%> </font>$}</a>
                <% response.write "<a target=_blank title='' href='admin_template_label_edit.asp?id="&rs("label_id")&" '><img alt='点击在新窗口中查看此标签的详细说明！' hspace=2 border='0' src='Images/icon_info.gif' align='absmiddle'></a>" %>
				</nobr>
				</td>
				
				</tr>
				
			  <%
			  n_labels=n_labels+1
			  
			  rs.movenext
			  loop
			  rs.close
			  %>
				</table>
		  </td>
		</tr>
	</table>
	<SCRIPT language=javascript>
	
		function opencat(cat,img)
		{
			if(cat.style.display=="none"){
			cat.style.display="";
			img.src="Images/class7_a.gif"
			} else {
			cat.style.display="none"; 
			img.src="Images/class1_a.gif"
			}
		}

	</SCRIPT>
<script language="javascript" defer>
function InsertLabel(s){
var string
string="<font color=green>{$"
string+=s
string+="$}</font>"
top.InsertLabel(string);
top.focus
}
</script>

<!--#include file="admin_end.asp" -->
