<!--{include file="<!--{$oetplpath}-->widget/block_header.tpl"}--> 
<body>
  <div class="p30">
    <input type="hidden" id="img_thumb" name="thumbimg" value="" />
    <input type="hidden" id="img_url" name="drawimg" value="" />
    <div class="item pl80 mb20 pr">
      <label class="pa w70 lt lh38">上传封面</label>
      <div class="input_box">
        <div class="img_60 bg_f5 cursor oh lh60 t_center" id="uploader" style="border: 1px solid #ebebeb;">
          <img class="ob_c" id="cover" style="display: none;">
          <i class="iconfont icon-shangchuan fn fz24 color_9"></i>
        </div>
      </div>
    </div>
    <div class="item pl80 mb20 pr">
      <label class="pa w70 lt lh38">日记标题</label>
      <div class="input_box">
        <input type="text" class="oeui_input" id="title" style="height: 38px;">
      </div>
    </div>
    <div class="item pl80 mb20 pr">
      <label class="pa w70 lt lh38">日记内容</label>
      <div class="input_box">
        <textarea name="content" id="content" class="w100per" style="height:210px;"></textarea>
      </div>
    </div>
    <div class="item pl80 mb20 pr">
      <label class="pa w70 lt lh38">验证码</label>
      <div class="input_box">
        <div class="inline_block w100">
          <input type="text" class="oeui_input" id="checkcode" style="height: 38px;">
        </div>
        <div class="inline_block cursor pr t5">
          <img src="<!--{$urlpath}-->source/include/validcode.php?type=number&width=65&height=30&num=5" id="img_code">
        </div>
      </div>
    </div>
    <div class="item pl80">
      <button class="bo_main bg_main fz16 plr30 br3 color_f cursor ptb10" f="publish">发布</button>
    </div>
  </div>

  <script src="<!--{$urlpath}-->tpl/static/pcui/js/oeui.min.js"></script>
  <script src="<!--{$userskin}-->editor/kindeditor-min.js"></script>
  <script src="<!--{$urlpath}-->tpl/static/pcui/js/oeui.uploader.min.js"></script>
  <script src="<!--{$userskin}-->js/diary.add.js?spm=<!--{$time}-->"></script>
  <script type="text/javascript">
  var myeditor;
  $(function(){
      KindEditor.ready(function(K) {
          myeditor = K.create('textarea[name="content"]', {
              resizeType : 1,
              allowPreviewEmoticons : false,
              allowImageUpload : true,
              items : [
                'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline',
                'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
                'insertunorderedlist', '|', 'image']
          });
      });
  });
  </script>
</body>
</html>
