123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508 |
- <?php
- define('EmpireCMSAdmin','1');
- require("../../class/connect.php");
- require("../../class/db_sql.php");
- require("../../class/functions.php");
- $link=db_connect();
- $empire=new mysqlquery();
- $editor=1;
- //验证用户
- $lur=is_login();
- $logininid=$lur['userid'];
- $loginin=$lur['username'];
- $loginrnd=$lur['rnd'];
- $loginlevel=$lur['groupid'];
- $loginadminstyleid=$lur['adminstyleid'];
- //ehash
- $ecms_hashur=hReturnEcmsHashStrAll();
- //验证权限
- CheckLevel($logininid,$loginin,$classid,"ad");
- $t=ehtmlspecialchars($_GET['t']);
- $enews=ehtmlspecialchars($_GET['enews']);
- $time=ehtmlspecialchars($_GET['time']);
- $url="<a href=ListAd.php".$ecms_hashur['whehref'].">管理广告</a> > 增加广告";
- //初始化数据
- $r[starttime]=date("Y-m-d");
- $r[endtime]=date("Y-m-d",time()+30*24*3600);
- $r[pic_width]=468;
- $r[pic_height]=60;
- $filepass=ReturnTranFilepass();
- //修改广告
- if($enews=="EditAd")
- {
- $adid=(int)$_GET['adid'];
- $filepass=$adid;
- $r=$empire->fetch1("select * from {$dbtbpre}enewsad where adid='$adid'");
- $url="<a href=ListAd.php".$ecms_hashur['whehref'].">管理广告</a> > 修改广告:<b>".$r[title]."</b>";
- $a="adtype".$r[adtype];
- $$a=" selected";
- if($r[target]=="_blank")
- {$target1=" selected";}
- elseif($r[target]=="_self")
- {$target2=" selected";}
- else
- {$target3=" selected";}
- $t=$r[t];
- }
- //广告模式
- if(strlen($_GET[changet])!=0)
- {
- $t=RepPostStr($_GET['changet'],1);
- }
- //广告类别
- $sql=$empire->query("select classid,classname from {$dbtbpre}enewsadclass");
- while($cr=$empire->fetch($sql))
- {
- if($r[classid]==$cr[classid])
- {$s=" selected";}
- else
- {$s="";}
- $options.="<option value=".$cr[classid].$s.">".$cr[classname]."</option>";
- }
- db_close();
- $empire=null;
- ?>
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
- <title>广告管理</title>
- <link href="../adminstyle/<?=$loginadminstyleid?>/adminstyle.css" rel="stylesheet" type="text/css">
- <script>
- function foreColor()
- {
- if (!Error()) return;
- var arr = showModalDialog("../ecmseditor/fieldfile/selcolor.html", "", "dialogWidth:296px; dialogHeight:280px; status:0");
- if (arr != null) document.form1.titlecolor.value=arr;
- else document.form1.titlecolor.focus();
- }
- </script>
- <script type="text/javascript" src="../ecmseditor/js/jstime/WdatePicker.js"></script>
- <script type="text/javascript" src="../ecmseditor/js/jscolor/jscolor.js"></script>
- </head>
- <body>
- <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1">
- <tr>
- <td width="30%" height="25">位置:
- <?=$url?>
- </td>
- <td><table width="500" border="0" align="right" cellpadding="3" cellspacing="1">
- <tr>
- <td height="25"> <div align="center">[<a href="AddAd.php?enews=AddAd&t=0<?=$ecms_hashur['ehref']?>"><strong>增加图片/FLASH广告</strong></a>]</div></td>
- <td><div align="center">[<a href="AddAd.php?enews=AddAd&t=1<?=$ecms_hashur['ehref']?>"><strong>增加文字广告</strong></a>]</div></td>
- <td><div align="center">[<a href="AddAd.php?enews=AddAd&t=2<?=$ecms_hashur['ehref']?>"><strong>增加HTML广告</strong></a>]</div></td>
- <td><div align="center">[<a href="AddAd.php?enews=AddAd&t=3<?=$ecms_hashur['ehref']?>"><strong>增加弹出广告</strong></a>]</div></td>
- </tr>
- </table></td>
- </tr>
- </table>
- <br>
- <table width="100%" border="0" cellspacing="1" cellpadding="3">
- <tr>
- <td><div align="center">
- <?
- //文字广告
- if($t==1)
- {
- ?>
- <form name="form1" method="post" action="ListAd.php">
- <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
- <?=$ecms_hashur['form']?>
- <tr class="header">
- <td height="25" colspan="2">增加文字广告
- <input name="add[adid]" type="hidden" id="add[adid]" value="<?=$adid?>">
- <input name="enews" type="hidden" id="enews" value="<?=$enews?>">
- <input name="add[t]" type="hidden" id="add[t]" value="<?=$t?>">
- <input name="time" type="hidden" id="time" value="<?=$time?>">
- <input name="filepass" type="hidden" id="filepass" value="<?=$filepass?>"></td>
- </tr>
- <tr bgcolor="#FFFFFF">
- <td height="25"><strong>广告模式:</strong></td>
- <td height="25"><select name="changet" id="changet" onchange=window.location='AddAd.php?<?=$ecms_hashur['ehref']?>&enews=<?=$enews?>&adid=<?=$adid?>&time=<?=$time?>&changet='+this.options[this.selectedIndex].value>
- <option value="0">图片/FLASH广告</option>
- <option value="1" selected>文字广告</option>
- <option value="2">HTML广告</option>
- <option value="3">弹出广告</option>
- </select></td>
- </tr>
- <tr bgcolor="#FFFFFF">
- <td height="25">广告分类:</td>
- <td height="25"> <select name="add[classid]" id="add[classid]">
- <?=$options?>
- </select> <input type="button" name="Submit3" value="管理分类" onclick="window.open('AdClass.php<?=$ecms_hashur['whehref']?>');"></td>
- </tr>
- <tr bgcolor="#FFFFFF">
- <td width="27%" height="25">广告名称:</td>
- <td width="73%" height="25"> <input name="add[title]" type="text" id="add[title]" value="<?=$r[title]?>">
- <font color="#666666">(如:网站Banner广告)</font></td>
- </tr>
- <tr bgcolor="#FFFFFF">
- <td height="25">广告类型:</td>
- <td height="25"> <select name="add[adtype]" id="add[adtype]">
- <option value="1"<?=$adtype1?>>普通显示</option>
- <option value="3"<?=$adtype3?>>可移动透明对话框</option>
- </select></td>
- </tr>
- <tr bgcolor="#FFFFFF">
- <td height="25">文字:</td>
- <td height="25"> <input name="picurl" type="text" id="picurl" value="<?=$r[picurl]?>" size="42"></td>
- </tr>
- <tr bgcolor="#FFFFFF">
- <td height="25"> </td>
- <td height="25"><table width="100%" border="0" align="center" cellpadding="3" cellspacing="1">
- <tr>
- <td width="51%">属性:
- <input name="titlefont[b]" type="checkbox" id="titlefont[b]" value="b"<?=strstr($r[titlefont],'b|')?' checked':''?>>
- 粗体
- <input name="titlefont[i]" type="checkbox" id="titlefont[i]" value="i"<?=strstr($r[titlefont],'i|')?' checked':''?>>
- 斜体
- <input name="titlefont[s]" type="checkbox" id="titlefont[s]" value="s"<?=strstr($r[titlefont],'s|')?' checked':''?>>
- 删除线</td>
- <td width="49%">颜色:
- <input name="titlecolor" type="text" id="titlecolor" value="<?=$r[titlecolor]?>" size="10" class="color">
- </td>
- </tr>
- </table></td>
- </tr>
- <tr bgcolor="#FFFFFF">
- <td height="25">链接地址:</td>
- <td height="25"> <input name="add[url]" type="text" id="add[url]" value="<?=$r[url]?>" size="42">
- <input name="add[ylink]" type="checkbox" id="add[ylink]" value="1"<?=$r[ylink]==1?' checked':''?>>
- 显示原链接</td>
- </tr>
- <tr bgcolor="#FFFFFF">
- <td height="25"> </td>
- <td height="25"> <select name="add[target]" id="select">
- <option value="_blank"<?=$target1?>>在新窗口打开</option>
- <option value="_self"<?=$target2?>>在原窗口打开</option>
- <option value="_parent"<?=$target3?>>在父窗口打开</option>
- </select></td>
- </tr>
- <tr bgcolor="#FFFFFF">
- <td height="25">规格:</td>
- <td height="25"><input name="add[pic_width]" type="text" id="add[pic_width]" value="<?=$r[pic_width]?>" size="4">
- ×
- <input name="add[pic_height]" type="text" id="add[pic_height]" value="<?=$r[pic_height]?>" size="4">
- (宽×高)<font color="#666666">[可移动透明对话框有效]</font></td>
- </tr>
- <tr bgcolor="#FFFFFF">
- <td height="25">提示文字:</td>
- <td height="25"> <input name="add[alt]" type="text" id="add[alt]" value="<?=$r[alt]?>">
- </td>
- </tr>
- <tr bgcolor="#FFFFFF">
- <td height="25">过期时间:</td>
- <td height="25">从
- <input name="add[starttime]" type="text" id="add[starttime]" value="<?=$r[starttime]?>" size="15" class="Wdate" onClick="WdatePicker({skin:'default',dateFmt:'yyyy-MM-dd'})">
- 到
- <input name="add[endtime]" type="text" id="add[endtime]" value="<?=$r[endtime]?>" size="15" class="Wdate" onClick="WdatePicker({skin:'default',dateFmt:'yyyy-MM-dd'})">
- 止 <font color="#666666">(格式:2004-09-01,永不过期可填0000-00-00)</font></td>
- </tr>
- <tr bgcolor="#FFFFFF">
- <td height="25">过期后显示:</td>
- <td height="25"><textarea name="add[reptext]" cols="65" rows="8" id="add[reptext]"><?=ehtmlspecialchars($r[reptext])?></textarea></td>
- </tr>
- <tr bgcolor="#FFFFFF">
- <td height="25">重置点击数:</td>
- <td height="25"><input name="add[reset]" type="checkbox" id="add[reset]" value="1">
- 重置</td>
- </tr>
- <tr bgcolor="#FFFFFF">
- <td height="25">简单注释:</td>
- <td height="25"> <textarea name="add[adsay]" cols="65" rows="5" id="add[adsay]"><?=$r[adsay]?></textarea></td>
- </tr>
- <tr bgcolor="#FFFFFF">
- <td height="25"> </td>
- <td height="25"> <input type="submit" name="Submit" value="提交">
- <input type="reset" name="Submit2" value="重置"></td>
- </tr>
- </table>
- </form>
- <?
- }
- //html广告
- elseif($t==2)
- {
- ?>
- <form name="form1" method="post" action="ListAd.php">
- <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
- <?=$ecms_hashur['form']?>
- <tr class="header">
- <td height="25" colspan="2">增加HTML广告
- <input name="add[adid]" type="hidden" id="add[adid]" value="<?=$adid?>">
- <input name="enews" type="hidden" id="enews" value="<?=$enews?>">
- <input name="add[t]" type="hidden" id="add[t]" value="<?=$t?>">
- <input name="time" type="hidden" id="time" value="<?=$time?>">
- <input name="filepass" type="hidden" id="filepass" value="<?=$filepass?>"></td>
- </tr>
- <tr bgcolor="#FFFFFF">
- <td height="25"><strong>广告模式:</strong></td>
- <td height="25"><select name="changet" id="select2" onchange=window.location='AddAd.php?<?=$ecms_hashur['ehref']?>&enews=<?=$enews?>&adid=<?=$adid?>&time=<?=$time?>&changet='+this.options[this.selectedIndex].value>
- <option value="0">图片/FLASH广告</option>
- <option value="1">文字广告</option>
- <option value="2" selected>HTML广告</option>
- <option value="3">弹出广告</option>
- </select></td>
- </tr>
- <tr bgcolor="#FFFFFF">
- <td height="25">广告分类:</td>
- <td height="25"> <select name="add[classid]" id="add[classid]">
- <?=$options?>
- </select> <input type="button" name="Submit32" value="管理分类" onclick="window.open('AdClass.php<?=$ecms_hashur['whehref']?>');"></td>
- </tr>
- <tr bgcolor="#FFFFFF">
- <td width="27%" height="25">广告名称:</td>
- <td width="73%" height="25"> <input name="add[title]" type="text" id="add[title]" value="<?=$r[title]?>">
- <font color="#666666">(如:网站Banner广告)</font></td>
- </tr>
- <tr bgcolor="#FFFFFF">
- <td height="25">广告类型:</td>
- <td height="25"> <select name="add[adtype]" id="add[adtype]">
- <option value="1"<?=$adtype1?>>普通显示</option>
- <option value="3"<?=$adtype3?>>可移动透明对话框</option>
- </select></td>
- </tr>
- <tr bgcolor="#FFFFFF">
- <td height="25">规格:</td>
- <td height="25"><input name="add[pic_width]" type="text" id="add[pic_width]" value="<?=$r[pic_width]?>" size="4">
- ×
- <input name="add[pic_height]2" type="text" id="add[pic_height]2" value="<?=$r[pic_height]?>" size="4">
- (宽×高)<font color="#666666">[可移动透明对话框有效]</font></td>
- </tr>
- <tr bgcolor="#FFFFFF">
- <td height="25">HTML代码:</td>
- <td height="25"> <textarea name="add[htmlcode]" cols="42" rows="12" id="add[htmlcode]" style="WIDTH: 100%"><?=ehtmlspecialchars($r[htmlcode])?></textarea></td>
- </tr>
- <tr bgcolor="#FFFFFF">
- <td height="25">过期时间:</td>
- <td height="25">从
- <input name="add[starttime]" type="text" id="add[starttime]" value="<?=$r[starttime]?>" size="15" class="Wdate" onClick="WdatePicker({skin:'default',dateFmt:'yyyy-MM-dd'})">
- 到
- <input name="add[endtime]" type="text" id="add[endtime]" value="<?=$r[endtime]?>" size="15" class="Wdate" onClick="WdatePicker({skin:'default',dateFmt:'yyyy-MM-dd'})">
- 止 <font color="#666666">(格式:2004-09-01,永不过期可填0000-00-00)</font></td>
- </tr>
- <tr bgcolor="#FFFFFF">
- <td height="25">过期后显示:</td>
- <td height="25"><textarea name="add[reptext]" cols="65" rows="8" id="add[reptext]"><?=ehtmlspecialchars($r[reptext])?></textarea></td>
- </tr>
- <tr bgcolor="#FFFFFF">
- <td height="25">重置点击数:</td>
- <td height="25"><input name="add[reset]" type="checkbox" id="add[reset]" value="1">
- 重置</td>
- </tr>
- <tr bgcolor="#FFFFFF">
- <td height="25">简单注释:</td>
- <td height="25"> <textarea name="add[adsay]" cols="65" rows="5" id="add[adsay]"><?=$r[adsay]?></textarea></td>
- </tr>
- <tr bgcolor="#FFFFFF">
- <td height="25"> </td>
- <td height="25"> <input type="submit" name="Submit" value="提交">
- <input type="reset" name="Submit2" value="重置"></td>
- </tr>
- </table>
- </form>
- <?
- }
- //弹出广告
- elseif($t==3)
- {
- ?>
- <form name="form1" method="post" action="ListAd.php">
- <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
- <?=$ecms_hashur['form']?>
- <tr class="header">
- <td height="25" colspan="2">增加弹出广告
- <input name="add[adid]" type="hidden" id="add[adid]" value="<?=$adid?>">
- <input name="enews" type="hidden" id="enews" value="<?=$enews?>">
- <input name="add[t]" type="hidden" id="add[t]3" value="<?=$t?>">
- <input name="time" type="hidden" id="time" value="<?=$time?>">
- <input name="filepass" type="hidden" id="filepass" value="<?=$filepass?>"></td>
- </tr>
- <tr bgcolor="#FFFFFF">
- <td height="25"><strong>广告模式:</strong></td>
- <td height="25"><select name="changet" id="select3" onchange=window.location='AddAd.php?<?=$ecms_hashur['ehref']?>&enews=<?=$enews?>&adid=<?=$adid?>&time=<?=$time?>&changet='+this.options[this.selectedIndex].value>
- <option value="0">图片/FLASH广告</option>
- <option value="1">文字广告</option>
- <option value="2">HTML广告</option>
- <option value="3" selected>弹出广告</option>
- </select></td>
- </tr>
- <tr bgcolor="#FFFFFF">
- <td height="25">广告分类:</td>
- <td height="25"> <select name="add[classid]" id="add[classid]">
- <?=$options?>
- </select> <input type="button" name="Submit33" value="管理分类" onclick="window.open('AdClass.php<?=$ecms_hashur['whehref']?>');"></td>
- </tr>
- <tr bgcolor="#FFFFFF">
- <td width="27%" height="25">广告名称:</td>
- <td width="73%" height="25"> <input name="add[title]" type="text" id="add[title]" value="<?=$r[title]?>">
- <font color="#666666">(如:网站Banner广告)</font></td>
- </tr>
- <tr bgcolor="#FFFFFF">
- <td height="25">广告类型:</td>
- <td height="25"> <select name="add[adtype]" id="add[adtype]">
- <option value="8"<?=$adtype8?>>打开新窗口</option>
- <option value="9"<?=$adtype9?>>弹出新窗口</option>
- <option value="10"<?=$adtype10?>>普通网页对话框</option>
- </select></td>
- </tr>
- <tr bgcolor="#FFFFFF">
- <td height="25">弹出地址:</td>
- <td height="25"> <input name="add[url]" type="text" id="add[url]" value="<?=$r[url]?>" size="42">
- </td>
- </tr>
- <tr bgcolor="#FFFFFF">
- <td height="25">规格:</td>
- <td height="25"><input name="add[pic_width]" type="text" id="add[pic_width]" value="<?=$r[pic_width]?>" size="4">
- ×
- <input name="add[pic_height]" type="text" id="add[pic_height]" value="<?=$r[pic_height]?>" size="4">
- (宽×高)</td>
- </tr>
- <tr bgcolor="#FFFFFF">
- <td height="25">过期时间:</td>
- <td height="25">从
- <input name="add[starttime]" type="text" id="add[starttime]" value="<?=$r[starttime]?>" size="15" class="Wdate" onClick="WdatePicker({skin:'default',dateFmt:'yyyy-MM-dd'})">
- 到
- <input name="add[endtime]" type="text" id="add[endtime]" value="<?=$r[endtime]?>" size="15" class="Wdate" onClick="WdatePicker({skin:'default',dateFmt:'yyyy-MM-dd'})">
- 止 <font color="#666666">(格式:2004-09-01,永不过期可填0000-00-00)</font></td>
- </tr>
- <tr bgcolor="#FFFFFF">
- <td height="25">过期后显示:</td>
- <td height="25"><textarea name="add[reptext]" cols="65" rows="8" id="add[reptext]"><?=ehtmlspecialchars($r[reptext])?></textarea></td>
- </tr>
- <tr bgcolor="#FFFFFF">
- <td height="25">重置点击数:</td>
- <td height="25"><input name="add[reset]" type="checkbox" id="add[reset]" value="1">
- 重置</td>
- </tr>
- <tr bgcolor="#FFFFFF">
- <td height="25">简单注释:</td>
- <td height="25"> <textarea name="add[adsay]" cols="65" rows="5" id="add[adsay]"><?=$r[adsay]?></textarea></td>
- </tr>
- <tr bgcolor="#FFFFFF">
- <td height="25"> </td>
- <td height="25"> <input type="submit" name="Submit" value="提交">
- <input type="reset" name="Submit2" value="重置"></td>
- </tr>
- </table>
- </form>
- <?
- }
- //图片/flash广告
- else
- {
- ?>
- <form name="form1" method="post" action="ListAd.php">
- <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
- <?=$ecms_hashur['form']?>
- <tr class="header">
- <td height="25" colspan="2">增加图片/FLASH广告
- <input name="add[adid]" type="hidden" id="add[adid]" value="<?=$adid?>">
- <input name="enews" type="hidden" id="enews" value="<?=$enews?>">
- <input name="add[t]" type="hidden" id="add[t]4" value="<?=$t?>">
- <input name="time" type="hidden" id="time" value="<?=$time?>">
- <input name="filepass" type="hidden" id="filepass" value="<?=$filepass?>"></td>
- </tr>
- <tr bgcolor="#FFFFFF">
- <td height="25"><strong>广告模式:</strong></td>
- <td height="25"><select name="changet" id="select4" onchange=window.location='AddAd.php?<?=$ecms_hashur['ehref']?>&enews=<?=$enews?>&adid=<?=$adid?>&time=<?=$time?>&changet='+this.options[this.selectedIndex].value>
- <option value="0" selected>图片/FLASH广告</option>
- <option value="1">文字广告</option>
- <option value="2">HTML广告</option>
- <option value="3">弹出广告</option>
- </select></td>
- </tr>
- <tr bgcolor="#FFFFFF">
- <td height="25">广告分类:</td>
- <td height="25"> <select name="add[classid]" id="add[classid]">
- <?=$options?>
- </select> <input type="button" name="Submit34" value="管理分类" onclick="window.open('AdClass.php<?=$ecms_hashur['whehref']?>');"></td>
- </tr>
- <tr bgcolor="#FFFFFF">
- <td width="27%" height="25">广告名称:</td>
- <td width="73%" height="25"> <input name="add[title]" type="text" id="add[title]" value="<?=$r[title]?>">
- <font color="#666666">(如:网站Banner广告)</font></td>
- </tr>
- <tr bgcolor="#FFFFFF">
- <td height="25">广告类型:</td>
- <td height="25"> <select name="add[adtype]" id="add[adtype]">
- <option value="1"<?=$adtype1?>>普通显示</option>
- <option value="4"<?=$adtype4?>>满屏浮动显示</option>
- <option value="5"<?=$adtype5?>>上下浮动显示 - 右</option>
- <option value="6"<?=$adtype6?>>上下浮动显示 - 左</option>
- <option value="7"<?=$adtype7?>>全屏幕渐隐消失</option>
- <option value="3"<?=$adtype3?>>可移动透明对话框</option>
- <option value="11"<?=$adtype11?>>对联式广告</option>
- </select></td>
- </tr>
- <tr bgcolor="#FFFFFF">
- <td height="25">图片/FLASH地址:</td>
- <td height="25"> <input name="picurl" type="text" id="picurl" value="<?=$r[picurl]?>" size="42">
- <a onclick="window.open('../ecmseditor/FileMain.php?<?=$ecms_hashur['ehref']?>&modtype=3&type=1&classid=&doing=2&field=picurl&filepass=<?=$filepass?>&sinfo=1','','width=700,height=550,scrollbars=yes');" title="选择已上传的图片"><img src="../../data/images/changeimg.gif" alt="选择/上传图片" width="22" height="22" border="0" align="absbottom"></a>
- <a onclick="window.open('../ecmseditor/FileMain.php?<?=$ecms_hashur['ehref']?>&modtype=3&type=2&classid=&doing=2&field=picurl&filepass=<?=$filepass?>&sinfo=1','','width=700,height=550,scrollbars=yes');" title="选择已上传的图片"><img src="../../data/images/changeflash.gif" alt="选择/上传FLASH" width="22" height="22" border="0" align="absbottom"></a>
- </td>
- </tr>
- <tr bgcolor="#FFFFFF">
- <td height="25">规格:</td>
- <td height="25"> <input name="add[pic_width]" type="text" id="add[pic_width]" value="<?=$r[pic_width]?>" size="4">
- ×
- <input name="add[pic_height]" type="text" id="add[pic_height]" value="<?=$r[pic_height]?>" size="4">
- (宽×高)</td>
- </tr>
- <tr bgcolor="#FFFFFF">
- <td height="25">链接地址:</td>
- <td height="25"> <input name="add[url]" type="text" id="add[url]" value="<?=$r[url]?>" size="42">
- <input name="add[ylink]" type="checkbox" id="add[ylink]" value="1"<?=$r[ylink]==1?' checked':''?>>
- 显示原链接</td>
- </tr>
- <tr bgcolor="#FFFFFF">
- <td height="25"> </td>
- <td height="25"> <select name="add[target]" id="select">
- <option value="_blank"<?=$target1?>>在新窗口打开</option>
- <option value="_self"<?=$target2?>>在原窗口打开</option>
- <option value="_parent"<?=$target3?>>在父窗口打开</option>
- </select></td>
- </tr>
- <tr bgcolor="#FFFFFF">
- <td height="25">提示文字:</td>
- <td height="25"> <input name="add[alt]" type="text" id="add[alt]" value="<?=$r[alt]?>">
- <font color="#666666">(FLASH广告无效)</font></td>
- </tr>
- <tr bgcolor="#FFFFFF">
- <td height="25">过期时间:</td>
- <td height="25">从
- <input name="add[starttime]" type="text" id="add[starttime]" value="<?=$r[starttime]?>" size="15" class="Wdate" onClick="WdatePicker({skin:'default',dateFmt:'yyyy-MM-dd'})">
- 到
- <input name="add[endtime]" type="text" id="add[endtime]" value="<?=$r[endtime]?>" size="15" class="Wdate" onClick="WdatePicker({skin:'default',dateFmt:'yyyy-MM-dd'})">
- 止 <font color="#666666">(格式:2004-09-01,永不过期可填0000-00-00)</font></td>
- </tr>
- <tr bgcolor="#FFFFFF">
- <td height="25">过期后显示:</td>
- <td height="25"><textarea name="add[reptext]" cols="65" rows="8" id="add[reptext]"><?=ehtmlspecialchars($r[reptext])?></textarea></td>
- </tr>
- <tr bgcolor="#FFFFFF">
- <td height="25">重置点击数:</td>
- <td height="25"><input name="add[reset]" type="checkbox" id="add[reset]" value="1">
- 重置</td>
- </tr>
- <tr bgcolor="#FFFFFF">
- <td height="25">简单注释:</td>
- <td height="25"> <textarea name="add[adsay]" cols="65" rows="5" id="add[adsay]"><?=$r[adsay]?></textarea></td>
- </tr>
- <tr bgcolor="#FFFFFF">
- <td height="25"> </td>
- <td height="25"> <input type="submit" name="Submit" value="提交">
- <input type="reset" name="Submit2" value="重置"></td>
- </tr>
- </table>
- </form>
- <?
- }
- ?>
- </div></td>
- </tr>
- </table>
- </body>
- </html>
|