<?php
!defined('ADMIN')&&die("<meta http-equiv='refresh' content=0;url='/'>");
FN("title","广告位管理");
global $z,$i,$title;
if(ADMIN<18)Js_to("没有权限！",URL._1.D.L.D);
_F("top");
$id=N;
if(_3){
	$id=_3;
	if(!$r=GL($z->R("ad","id=$id"),4))Js_to();
}else $r=array('name'=>'','content'=>'','note'=>'');
?>
<tt id="tw"></tt>
<fieldset class="form">
<link href="system/css/edit.css" rel="stylesheet" type="text/css">
<textarea id="gy" class="del"><?php echo $id?$r['content']:'';?></textarea>
<script language="javaScript" type="text/javascript">
var eN = 1;
var contT = My("gy").value;
</script>
<legend><h1><b><var><img src="system/img/left.gif" /></var><dfn class="hide"><img src="system/img/right.gif" /></dfn></b>　<a href="<?php echo URL._1.D._2.D?>"><?php echo $title?></a></h1></legend>
<?php
echo _3==V?'<a href="'.URL._1.D.'ad/0'.HZ.'" class="lan"><em>新增广告位</em></a>':'<ul><tt></tt></ul>';?>
<div class="fieldset sp<?php if(_3==V)echo ' del'?>">
<big><samp>&#9682;</samp><span class="del">&#9681;</span><?php echo _3?'修改':'新增'?>广告<del></del></big>
<div>
<ul>
<tt></tt>
<dt>广告名称:</dt>
<dd><li><input type="text" id="tt" name="name" value="<?php echo $id?$r['name']:'';?>" class="w8"></li></dd>
<tt></tt></ul>
<ul>
<dt>广告内容:</dt>
<div class="edit">
<script type="text/javascript">
var i_ml='<?php echo ML?>';
document.write('<'+'sc'+'ript language="javascript" src="system/js/edit.js?'+new Date().getTime()+'" type="text/javascript"></'+'sc'+'ript>');
</script>
</div>
<tt></tt>
</ul>
<form method="POST" action="" name="s">
<input name="name" id="title" type="hidden" value="<?php echo $id?$r['name']:'';?>" />
<ul class="del"><textarea id="con" name="content"></textarea><input name="cgi" value="ad" /></ul>
<ul>
<dt>备注:</dt>
<dd><li><input name="note" id="note" value="<?php echo $id?$r['note']:'';?>" class="w8" /></li></dd>
<tt></tt></ul>
<ul><tt></tt></ul>
<ul>
<big><input type="button" id="s" value="保 存 设 置"/></big>
</ul>
<?php
if(_3==='0')echo '<input type="hidden" name="html" value="'.T().'" />';?>
</form>
</div>
</div>
<ul><tt></tt></ul>
<div class="fieldset"><big><samp<?php if($id!=N)echo ' class="del"'?>>&#9682;</samp><span<?php if($id===N)echo ' class="del"'?>>&#9681;</span>广告位列表</big>
<div<?php if($id!=N)echo ' class="del"'?>>
<ul><tt></tt></ul>
<div class="ofl">
<?php
bccbceedfaaaafc('ad',array($z));
?>
</div>
<tt></tt>
</div></div>
<ul><tt></tt></ul>
</fieldset>
<?php
_F("end");