
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>[.$ourphp_adminfont.admintitle.]</title>
<link href="templates/images/ourphp_login.css" rel="stylesheet" type="text/css"> 
<script type="text/javascript" src="../../function/plugs/jquery/1.7.2/jquery-1.7.2.min.js"></script>
<script>
<!--
/*第一种形式 第二种形式 更换显示样式*/
function setTab(m,n){
 var tli=document.getElementById("menu"+m).getElementsByTagName("li");
 var mli=document.getElementById("main"+m).getElementsByTagName("ul");
 for(i=0;i<tli.length;i++){
  tli[i].className=i==n?"hover":"";
  mli[i].style.display=i==n?"block":"none";
 }
}
//-->
</script>
</head>

<body>
<div style="height:50px;"></div>
<div style="clear:both"></div>
<div id="tabs0">
 <ul class="menu0" id="menu0">
  <li><a  href="ourphp_ad.php?id=ourphp"><font color="#000000">返回</font></a></li>
  <li class="hover">编辑</li>
 </ul>
 <div class="main" id="main0" style="border-top:2px #488fcd solid; clear:both;">
  <ul class="block">
	  <li>
		<form id="form1" name="form1" method="POST" action="?ourphp_cms=edit&id=[.$ourphp_ad.id.]" class="registerform">
		<table width="98%" border="0" cellpadding="5" cellspacing="0" bordercolor="#666666" style="border-collapse:collapse;" align="center">
		  <tr>
		  	<td><div align="right">广告位名称</div></td>
			<td>{[.$ourphp_ad.OP_Adtitle.]}</td>
		  </tr>
		  <tr>
		  	<td valign="top"><div align="right">广告内容</div></td>
			<td><textarea name="OP_Adcontent" class="wtextarea" style="width:80%; height:150px;" [.$ourphp_bgcolor.] >[.$ourphp_ad.OP_Adcontent.]</textarea><font color=red> (*)</font>									
			</td>
		  </tr>
		  <tr>
		  	<td><div align="right">展示位置</div></td>
			<td>[.html_checkboxes name="OP_Adclass" values=$ourphph_qx2 output=$ourphph_qx2 selected=$selected2 separator="&nbsp;&nbsp;".]</td>
		  </tr>  
			<tr>
			  <td><div align="right">获得图片</div></td>
			  <td><input name="" type="text" class="win" id="upload" />&nbsp;
			<input type="button" id="image3" value="上传" style="width:100px; height:25px; line-height:25px; background:#0099CC; color:#FFFFFF; border:0px;" />
			[.include file="ourphp_editor.html".]
			<script>
			KindEditor.ready(function(K) {
				var editor = K.editor({
					allowFileManager : true
				});
				K('#image3').click(function() {
					editor.loadPlugin('image', function() {
						editor.plugin.imageDialog({
							showRemote : false,
							imageUrl : K('#upload').val(),
							clickFn : function(url, title, width, height, border, align) {
								K('#upload').val(url);
								editor.hideDialog();
							}
						});
					});
				});
			});
		</script>
		<br />
		注意：获得图片不会存入数据库中，它只做为帮您获取一张图片URL。
			 </td>
			</tr>  
		   <tr>
		   	<td></td>
			<td><input type="submit" name="submit" value="提 交" class="ourphp-anniu"/></td>
		  </tr>
		</table>
		</form>
	  </li>
  </ul>
 </div>
</div>
[.include file="ourphp_foot.html".]
</body>
</html>