<html>
<head>
<META content=ywnt,云网互动影视管理系统 name=keywords>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>云网互动影视6.0--公告标签</title>
<LINK href="../css/css.css" type=text/css rel=stylesheet>
</head>
<BODY leftMargin=0 topMargin=0 scroll=yes MARGINHEIGHT="0" MARGINWIDTH="0">
<script language="JavaScript" src="../YWNT_TMS_Inc/YWNT_TMS_Common.js"></script>
<table class=table cellspacing=1 cellpadding=3 width="98%" align=center border=0>
  <tbody>
    <tr>
      <td colspan="4" class=xingmu>帮助标签</td>
    </tr>
  <form method="post" name="typelebForm">
    <tr>
      <td height=32 align="right" class="hback">显示数量：</td>
      <td height=32 class="hback"><input name="Volume" type="text" value="4"></td>
      <td height=32 class="hback">并排数量：</td>
      <td width="44%" class="hback"><input name="TdVolume" type="text" value="1"></td>
    </tr>
    <tr>
      <td height=32 align="right" class="hback">显示内容：</td>
      <td height=15 colspan="3" class="hback"><input type="checkbox" name="ShowDate" value="1">
      更新时间      </td>
    </tr>
    <tr>
      <td height=32 align="right" class="hback">标题字数：</td>
      <td width="21%" height=16 class="hback"><input type="text" name="TitleVolume"></td>
      <td width="16%" height=16 align="right" class="hback">链接CSS：</td>
      <td height=16 class="hback"><input type="text" name="TitleStyle"></td>
    </tr>
	    <tr>
      <td height=32 align="right" class="hback">新开窗口：</td>
      <td colspan="3" class="hback"><select name="OpenStyle" style="width: 150px;">
        <option value="1">是新窗口打开</option>
        <option value="2">否原窗口打开</option>
      </select></td>
    </tr>
	 <tr>
	   <td height=32 align="right" class="hback">导航图案：</td>
	   <td height=16 colspan="3" class="hback"><input name="DhPhoto" id="DhPhoto" maxlength="200"> 
	<input type="button" name="Button" value="选择图片" onClick="var TempReturnValue=OpenWindow('../Dialog/SelectPic.asp?CurrPath=<% = CurrPath %>',500,290,window);if (TempReturnValue!='') document.typelebForm.DhPhoto.value=TempReturnValue;" class=Anbutc>
    <span style="color:#ff0000;">可以为符号，也可以为图片</span></td>
    </tr>
		 <tr>
	   <td height=32 align="right" class="hback">行间图案：</td>
	   <td height=16 colspan="3" class="hback"><input name="HjPhoto" id="HjPhoto" size=45 maxlength="200"> 
	<input type="button" name="Button" value="选择图片" onClick="var TempReturnValue=OpenWindow('../Dialog/SelectPic.asp?CurrPath=<% = CurrPath %>',500,290,window);if (TempReturnValue!='') document.typelebForm.HjPhoto.value=TempReturnValue;" class=Anbutc></td>
    </tr>
    <tr>
      <td height=32 colspan="4" align="center" class="hback"><input type="button" onClick="ok(this.form)" name="Submit" value="添加"></td>
    </tr>
  </form>
  </tbody>
</table>
<script language="JavaScript">
	function ok(obj)
	{
		var retV = '{$HelpLeb(';
		retV+= obj.Volume.value + ',';
		retV+= obj.TdVolume.value + ',';
		retV+= formvalue2(obj.TitleStyle.value) + ',';
		retV+= formvalue(obj.TitleVolume.value) + ',';
		retV+= show(obj.ShowDate) + ',';
		retV+= obj.OpenStyle.value + ',';
		retV+= formvalue2(obj.DhPhoto.value) + ',';
		retV+= formvalue2(obj.HjPhoto.value) + ')';
		retV+='}';
		InsertLabel(retV)
	}
function formvalue(namevalue)
{
	if(namevalue=="")
		namevalue='""';
		return namevalue;
}
function formvalue2(namevalue2)
{
	if(namevalue2=="")
	{
		namevalue2='""';
	}
	else
	{
	namevalue2='"'+namevalue2+'"'
	}
		return namevalue2;
}
function show(namechecked)
{
    if(namechecked.checked==true)
	{
	namechecked=namechecked.value;
	}
	else
	{
	namechecked='""';
	}
	return namechecked;
}
<%if Request.QueryString("text")=1 then%>
function InsertLabel(LabelContent)
{
	window.returnValue=LabelContent;
	window.close();
}
window.onunload=SetReturnValue;
function SetReturnValue()
{
	if (typeof(window.returnValue)!='string') window.returnValue='';
}
<%else%>
function InsertLabel(LabelContent)
{
	var obj=dialogArguments.oUtil.obj;
	obj.insertHTML(LabelContent)
	window.close();
}
<%end if%>
</script>
</BODY></HTML>
