<!--{assign var="menu_id" value="cp"}-->
<!--{include file="<!--{$oetplpath}-->widget/block_header.tpl"}-->
<body class="bg_f">
<div class="oe_top bo_bf7 cursor">
  <!--{if $nofollow == '1'}-->
  <a href="<!--{$oefile}-->&c=mydiary&nofollow=1"><span class="back"><i class="iconfont icon-fanhui"></i></span></a>
  <!--{else}-->
  <span class="back" f="back"><i class="iconfont icon-fanhui"></i></span>
  <!--{/if}-->
  <h1>编辑日记</h1>
</div>
<div class="h48"></div>

<div class="fz15 bg_body">
  <dl class="bg_f plr15 pt10 pb10">
    <dt class="lh30">日记标题</dt>
    <dd>
      <input type="text" name="title" id="title" placeholder="请填写标题" class="bg_f2 bn br3 bsb plr15 lh40 w100 fz15" value="<!--{$diary.title}-->" />
    </dd>
  </dl>
  <dl class="bg_f plr15 pt10 pb10">
    <dt class="lh30 pb10">日记内容</dt>
    <dd>
      <textarea name="content" id="content" class="w100 bsb p10 bg_f2 bn br5 fz15" style="height:220px;width:99%;display:none;"><!--{$diary.content}--></textarea>
    </dd>
  </dl>
  <dl class="plr15 mt10 pt10 bg_f">
    <dt>封面图</dt>
    <dd class="pt10 pb10 cursor">
      <input type="file" id="img" name="img" data-name="img" data-module="diary" data-thumb="1" data-forbidtip="1" accept="image/*" style="display:none;" />
      <input type="hidden" id="img_thumb" name="img_thumb" value="<!--{$diary.thumbimg}-->" />
      <input type="hidden" id="img_url" name="img_url" value="<!--{$diary.drawimg}-->" />
      <!--{if $usewxpublic == '1'}-->
      <span class="bo_eb t_center img_50 lh50 mr5 vam mb5" f="but_upload_wximage" data-name="img" data-module="diary" data-forbidtip="1" data-thumb="1">
      <!--{else}-->
      <span class="bo_eb t_center img_50 lh50 mr5 vam mb5" f="but_upload" data-file="img">
      <!--{/if}-->
        <i class="iconfont color_9 icon-iconjia fz24"></i>
      </span>
      <span class="bo_eb t_center img_50 lh50 mr5 vam oh mb5">
        <img id="img_preview" class="ob_c" src="<!--{if !empty($diary.thumbimg)}--><!--{$diary.thumbimg}--><!--{else}--><!--{$urlpath}-->tpl/static/images/loading_img.png<!--{/if}-->" />
      </span>
    </dd>
  </dl>
</div>
<div class="h60"></div>

<div class="pf lbr z100 bg_main color_f t_center lh45 fz16 cursor" id="but_submit_edit" f="but_submit_edit" data-id="<!--{$diary.diaryid}-->">编辑</div>

<!--{include file="<!--{$oetplpath}-->widget/block_footjs.tpl"}-->
<script src="<!--{$urlpath}-->tpl/user/editor/kindeditor-min.js?v=<!--{$copyright_version}-->"></script>
<script type="text/javascript">
var myeditor;
$(function(){
    KindEditor.ready(function(K) {
        myeditor = K.create('textarea[name="content"]', {
            resizeType : 1,
            height : "220px",
            width : "100%",
            filterMode : false, 
            allowPreviewEmoticons : false,
            allowImageUpload : false,
            items : [
              'fontname', 'fontsize', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline',
              'justifyleft', 'justifycenter', 'justifyright']
        });
    });
});
</script>
<!--{include file="<!--{$oetplpath}-->widget/block_uploadjs.tpl"}-->
<script src="<!--{$wapskin}-->cp/js/mydiary.js?v=<!--{$copyright_version}-->"></script>
</body>
</html>