<script type="text/javascript" src="/wysiwyg/ckeditor.js"></script>
<script type="text/javascript">
var editor;
$(document).ready(function(){
	editor =  CKEDITOR.replace('announce', {
			  width: '100%',
			  height: '560px'
		});
});

</script>
<div class="row-fluid">
	<div class="col-xs-12">
		<div class="span2" style="min-height:700px;">
	      	<?php echo $nav_view; ?>
	    </div>
	    <div class="span9">
	    	<form action="<?php echo site_url('author/add_announce'); ?>" method="post" name="form_announce_add" id="form_announce_add">
				<fieldset>
					<div class="span2">
		                <label class="control-label">标题</label>
		                <select class="span12" id="announce_type" name="announce_type">
		                    <option value="announce" <?php if(!isset($announce->ta_seo_title) or $announce->ta_seo_title!='notice') echo 'selected'; ?>>公告</option>
		                    <option value="notice" <?php if(isset($announce->ta_seo_title) && $announce->ta_seo_title=='notice') echo 'selected'; ?>>规则</option>
		                </select>
		            </div>
		            <div class="span10"><label>.</label><input type="text" name="title" class="span12" id="title" value="<?php if(isset($announce->ta_title)) echo $announce->ta_title;?>"></div>
				<label>内容</label>
				<textarea name="announce" id="announce" class="span12" ><?php if(isset($announce->ta_content)) echo $announce->ta_content;?></textarea>
				<label></label>
				<input type="hidden" name="announce_id" value="<?php if(isset($announce->ta_id)) echo $announce->ta_id;?>">
				<button type="button" onclick="editor.updateElement();submitForm('form_announce_add');" class="btn btn-primary pull-right offset1">　提　交　</button>
			</fieldset>
			</form>	
	    </div>
	    <div class="span1"></div>
	</div>
</div>
</body>
</html>