<!--#include file="AspCms_AdvFun.asp" -->
<%CheckAdmin("AspCms_AdvEditDL.asp?action=savejs&id=5")%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<HTML xmlns="http://www.w3.org/1999/xhtml"><HEAD><TITLE>添加广告</TITLE>
<META http-equiv=Content-Type content="text/html; charset=utf-8"><LINK 
href="../images/style.css" type=text/css rel=stylesheet>

<script language="javascript" type="text/javascript" src="../js/getdate/WdatePicker.js"></script>
<script>
function ShowBar(type)
{
	var picbar1  = document.getElementById("ipath");
	var picbar2 = document.getElementById("lpath");
	var picbar3 = document.getElementById("cc");
	var picbar4 = document.getElementById("advnr");
	var picbar5 = document.getElementById("ipathr");
	var picbar6 = document.getElementById("lpathr");
	if(type==1 )
	{
		picbar1.style.display="none";
		picbar2.style.display="";
		picbar3.style.display="none";
		picbar4.style.display="";
		picbar5.style.display="none";
		picbar6.style.display="none";
	}
	else if(type==2 || type==4)
	{
		picbar1.style.display="";
		picbar2.style.display="";
		picbar3.style.display="";
		picbar4.style.display="none";
		picbar5.style.display="none";
		picbar6.style.display="none";
	}
	else if(type==3|| type==6)
	{
		picbar1.style.display="none";
		picbar2.style.display="none";
		picbar3.style.display="none";
		picbar4.style.display="";
		picbar5.style.display="none";
		picbar6.style.display="none";
	}
	else if(type==5)
	{
		picbar1.style.display="";
		picbar2.style.display="";
		picbar3.style.display="";
		picbar4.style.display="none";
		picbar5.style.display="";
		picbar6.style.display="";
	}	
	
}
</script> 
</head>
<body>
<FORM id= name= action="" method=post >
<DIV class=formzone>
<DIV class=namezone>内置对联广告</DIV>
<DIV class=tablezone>
<DIV class=noticediv id=notice></DIV>
<TABLE cellSpacing=0 cellPadding=2 width="100%" align=center border=0>
  <TBODY>
  <TR style="display:none">						
    <TD align=middle width=100 height=30>广告名称</TD>
    <TD><INPUT class="input" style="WIDTH: 200px" maxLength="200" name="advname" value="内置对联广告"/> <FONT color=#ff0000>
       <input type="hidden" name="id" id="id" value="<%=fAdvid%>">
      *</FONT></TD>
  </TR>
 <TR>
    <TD align=middle width=100 height=30>广告类型</TD>    
    <TD><label>对联广告
        <input name="advclass" type="hidden" value="5">
    </label></TD>
 </tr><TR>
    <TD align=middle width=100 height=30 >投放时间</TD>
    <TD><input maxlength="20" name="stime" class="Wdate" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" value="<%=fstime%>"/> </TD>
  </TR>
  <TR>
    <TD align=middle width=100 height=30>结束时间</TD>
    <TD><input maxlength="20" name="etime" class="Wdate" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" value="<%=fetime%>"/></TD>
  </TR>
  <TR id="ipath">
    <TD align=middle width=100 height=30>左侧图片地址</TD>
    <TD><input class="input" style="WIDTH: 300px" name="ImagePath" id="ImagePath" value="<%=fImagePath%>"/><br>
<iframe src="../editor/upload.asp?sortType=14&stype=file&amp;Tobj=ImagePath" scrolling="no" topmargin="0" height="40" width="100%" marginwidth="0" marginheight="0" frameborder="0" align="left"></iframe></TD>
  </TR>
<TR id="lpath">
    <TD align=middle width=100 height=30>左侧链接地址</TD>
    <TD><input class="input" style="WIDTH: 300px" name="LinkPath" id="LinkPath" value="<%=fLinkPath%>"/></TD>
  </TR>
  <TR id="ipathr">
    <TD align=middle width=100 height=30>右侧图片地址</TD>
    <TD><input class="input" style="WIDTH: 300px" name="ImagePathr" id="ImagePathr" value="<%=fImagePathr%>"/><iframe src="../editor/upload.asp?sortType=14&stype=file&amp;Tobj=ImagePathr" scrolling="no" topmargin="0" height="40" width="100%" marginwidth="0" marginheight="0" frameborder="0" align="left"></iframe></TD>
  </TR>
  <TR id="lpathr" >
    <TD align=middle width=100 height=30>右侧链接地址</TD>
    <TD><input class="input" style="WIDTH: 300px" name="LinkPathr" id="LinkPathr"  value="<%=fLinkPathr%>"/></TD>
  </TR>
  <TR id="cc">
    <TD align=middle height=30>图片尺寸</TD>
    <TD>宽
      <INPUT class="input" style="WIDTH: 30px" maxLength="200" name="imgw" value="<%=fimgw%>"/>
      高
      <INPUT class="input" style="WIDTH: 30px" maxLength="200" name="imgh" value="<%=fimgh%>"/></TD>
  </TR>  
  
  <TR>
    <TD align=middle height=30>广告状态</TD>
    <TD><input type="radio" name="AdvStatus" value="1" <%if fAdvStatus=1 then%>checked<%end if%> />
启用
  <input type="radio" name="AdvStatus" value="0" <%if fAdvStatus<>1 then%>checked<%end if%> />
禁用</TD>
  </TR> <TR>
    <TD align=middle height=30>广告样式</TD>
    <TD><label>
      <input type="radio" name="advstyle" id="advstyle" value="1" <%if fAdvStyle=1 or fAdvStyle="" then%>checked<%end if%>>不带关闭对联 <input type="radio" name="advstyle" id="advstyle" value="2" <%if fAdvStyle=2 then%>checked<%end if%>>底部带关闭对联
    
    </label></TD>
  </TR>
  <TR>
    <TD align=middle height=30>调用标签</TD>
    <TD>{aspcms:coupletad}</TD>
  </TR>
    </TBODY></TABLE>
</DIV>
<DIV class=adminsubmit>
  <INPUT class="button" type="submit" value="保存" onClick="form.action='?action=editjs&faore=<%=faore%>';"/>
<INPUT class="button" type="button" value="返回" onClick="history.go(-1)"/>
</DIV>
</DIV></FORM>
</body>
</html>
