<script language="javascript" type="text/javascript" src="/public/share/tiny_mce/tiny_mce.js"></script>
<script language="javascript" type="text/javascript" src="/public/share/tiny_mce/plugins/imagemanager/jscripts/mcimagemanager.js"></script>
<script type="text/javascript">
	tinyMCE.init({
		mode  : "textareas",
		theme : "advanced",
		language:"zh",
		file_browser_callback : "mcImageManager.filebrowserCallBack",
		relative_urls: false,
		nowrap : true,
		plugins : "inlinepopups",
		theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,image,insertdate,cleanup,link,unlink,code",
		theme_advanced_buttons2 :"",
		theme_advanced_buttons3 :"",
		theme_advanced_buttons4 :""
		//theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor",
		//theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen",
	});
</script>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="adminform">
  <tr>
    <th colspan="3">广告名称</th>
  </tr>
  <tr>
    <td colspan="2"><label>
      <input type="text" name="myad[name]" id="textfield" class="text" value="<?=@$myads->name?>" dataType="Require" msg="广告名称不能为空">
    </label></td>
    <td width="33%">&nbsp;</td>
  </tr>
  <tr>
    <th colspan="3">广告代码</th>
  </tr>
  <tr>
    <td colspan="2">
      <textarea name="myad[code]" id="textarea" style="height:200px; width:500px;" dataType="Require" msg="广告代码不能为空"><?=@$myads->code?></textarea>
   </td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td width="20%"><label>
      <input type="submit" name="button" id="button" value="提交"  class="button">
    </label></td>
    <td width="47%">&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
</table>
<input type="hidden" name="myadid"  value="<?=@$myads->id?>">