<script language="javascript" type="text/javascript" src="<?=BASEURL?>public/share/tiny_mce/tiny_mce.js"></script>
<script language="javascript" type="text/javascript" src="<?=BASEURL?>public/share/tiny_mce/plugins/imagemanager/jscripts/mcimagemanager.js"></script>
<script language="javascript">
tinyMCE.init({
		mode : "exact",
		elements : "content",
		theme : "advanced",
		plugins : "style,layer,table,save,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,media,searchreplace,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,inlinepopups",
		theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,styleselect,formatselect,fontselect,fontsizeselect",
		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,|,ltr,rtl,|,fullscreen",
		theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,|,cite,abbr,acronym,del,ins,attribs,|,visualchars",
		theme_advanced_toolbar_location : "top",
		theme_advanced_toolbar_align : "center",
		theme_advanced_statusbar_location : "bottom",
		theme_advanced_resizing : true,
		language:"zh",
		file_browser_callback : "mcImageManager.filebrowserCallBack"
	});  
</script>
<input type="hidden" name="pageid" value="<?=@$content->id?>">
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="adminform">
  <tr>
    <th>标题</th>
  </tr>
  <tr>
    <td><input type="text" name="page[title]" id="textfield" class="text" dataType="Require" msg="标题不能为空" value="<?=@$content->title?>"></td>
  </tr>
  <tr>
  	<th>保存名称</th>
  </tr>
  <tr>
  	<td><input type="text" name="page[filename]" id="textfield" class="text" dataType="Require" msg="文件名不能为空" value="<?=@$content->filename?>"></td>
  </tr>
  <tr>
    <th>模板</th>
  </tr>
  <tr>
    <td><input type="text" name="page[template]" id="template" class="text" value="<?=@$content->template?$content->template:"skins/default/model/page.html"?>"><input type="button" name="bu1" value="选择" class="button"  onclick="window.open('<?=BASEURI?>templates/select/template')"/></td>
  </tr>
  <tr>
    <th>简介</th>
  </tr>
  <tr>
    <td><textarea name="page[description]" ><?=@$content->description?></textarea></td>
  </tr>
  <tr>
    <th>内容</th>
  </tr>
  <tr>
    <td><textarea name="page[content]" id="content" style="width:650px;height:400px;"><?=@$content->content?></textarea></td>
  </tr>
<tfoot>
  <tr>
    <td><input type="submit" name="db" value="提交" class="button"></td>
  </tr>
</tfoot>
</table>
