<!--#include file="../../inc/config.asp"-->
<!--#include file="../../inc/conn.asp"-->
<!-- #include file="../inc/Session.asp" -->
<HTML>
<HEAD>
<TITLE>插入标签</TITLE>
<link href="../../css.css" rel="stylesheet">
<META content="text/html; charset=gb2312" http-equiv=Content-Type>
<META content="MSHTML 5.00.2920.0" name=GENERATOR>
<link href="cs.css" rel="stylesheet" type="text/css">
<base target="_self">
</HEAD>

<BODY bgColor=menu>
<form name="form1">
<fieldset style="text-align:center; ">
<legend>插入标签</legend>
<table width="400" border="0" align="center" cellpadding="1" cellspacing="5">
  <tr>
    <td>类别：</td>
    <td>
	<select name="classid" id="classid" size="1" onChange="ChangeFolder(this.value);">  
		<option value="0">根目录</option>
    </select>
	&nbsp;&nbsp;<a href="#" onClick="addParentOption();">＋</a></td>
  </tr>
  <tr><td colspan="2">
  <iframe id="LabelList" width="100%" height="300" frameborder="1" src="labels.asp?classid=0"></iframe>
  </td></tr>  
</table>
</fieldset>
</form>
  </CENTER></DIV>
  <div align="center"><br><input onClick="window.close();" type="button" name="Submit3" value=" 取 消 "></div>
</BODY>
</HTML>
<script language="JavaScript">
var SysRootDir='<% = SysRootDir %>';
function ChangeFolder(ClassId)
{
	frames["LabelList"].location='labels.asp?classid='+ClassId;
}
function SelectFile()
{
	if (frames["LabelList"].LabelName!='')
	{		
		window.returnValue=frames["LabelList"].LabelName;
		window.close();
	}
	else
		alert('请选择选择文件');
}
window.onunload=SetReturnValue;
function SetReturnValue()
{
	if (typeof(window.returnValue)!='string') window.returnValue='';
}
function addParentOption()
{
	var arr = showModalDialog("../tree_container.asp", "", "dialogWidth:410px; dialogHeight:420px; status:0");
  	if (arr != null){  
   		document.form1.classid.options[0]=new Option(arr[1],arr[0]);
		ChangeFolder(arr[0]);
  	}
	
}
</script>
<%
call connclose()
%>