<?php get_header(); ?>
<div id="content" class="group">
<div id="page">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<h1><?php the_title(); ?></h1>
<div id="contribute">
<form method="post" action="<?php echo $_SERVER["REQUEST_URI"]; ?>">
<div class="authorinfo">
<label for="tougao_title">文章标题<span>*</span></label>
<input type="text" size="40" value="" id="tougao_title" name="tougao_title" />
</div>
<div class="authorinfo">
<label for="tougaocategorg">分类<span>*</span></label>
<?php wp_dropdown_categories('show_option_none=请选择文章分类&id=tougao-cat&show_count=1&hierarchical=1&hide_empty=0'); ?>
</div>
<div style="text-align: left; padding-top: 10px;">
<label style="vertical-align:top" for="tougao_content">投稿内容:*</label>
<textarea rows="15" cols="55" id="tougao_content" name="tougao_content"></textarea>
</div>
<div class="authorinfo">
<label for="tougao_authorname">昵称<span>*</span></label>
<input type="text" size="40" value="" id="tougao_authorname" name="tougao_authorname" />
</div>
<div class="authorinfo">
<label for="tougao_authoremail">E-Mail<span>*</span></label>
<input type="text" size="40" value="" id="tougao_authoremail" name="tougao_authoremail" />
</div>
<div class="authorinfo">
<label for="tougao_authorblog">您的博客</label>
<input type="text" size="40" value="" id="tougao_authorblog" name="tougao_authorblog" />
</div>
<br clear="all">
<div class="submitcon">
<input type="hidden" value="send" name="tougao_form" />
<input type="submit" value="提交" />
<input type="reset" value="重填" />
</div>
</form>
<script charset="utf-8" src="<?php bloginfo('template_url'); ?>/kindeditor/kindeditor-min.js"></script>
<script charset="utf-8" src="<?php bloginfo('template_url'); ?>/kindeditor/lang/zh_CN.js"></script>
<script>
/* 编辑器初始化代码 start */
var editor;
KindEditor.ready(function(K) {
editor = K.create('#tougao_content', {
width : '890px',
resizeType : 1,
allowPreviewEmoticons : false,
allowImageUpload : true, /* 开启图片上传功能,不需要就将true改成false */
items : [
'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline',
'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
'insertunorderedlist', '|', 'emoticons', 'image', 'link']
});
});
/* 编辑器初始化代码 end */
</script>
</div>
<?php endwhile; endif; ?>
</div>
<div class="c"></div>
</div>
<?php get_footer(); ?>