<!--{assign var="menu_id" value="diary"}-->
<!--{include file="<!--{$oetplpath}-->widget/block_header.tpl"}--> 
<body class="bg_body">
  <!--{include file="<!--{$oetplpath}-->widget/block_top.tpl"}-->
  <div class="w1200 mt30 clearfix mb30">
    <!--{include file="<!--{$oetplpath}-->block_menu.tpl"}-->
    <div class="fr bg_f plr40 ptb30 bsb" style="width: 1020px;">
      <h3 class="fz24 mb20">我的日记</h3>
      <div class="nav clearfix bo_beb mt30">
        <a href="<!--{$oefile}-->&c=diary">
          <div class="item fl mr60 pb15 pr t1">
            <div class="text fz16 color_6">我的日记</div>
            <div class="line w100per bg_main pa lb" style="height: 3px;"></div>
          </div>
        </a>
        <a href="<!--{$oefile}-->&c=diarycomm">
          <div class="item fl mr60 pb15 pr t1">
            <div class="text fz16 color_6">我的评论</div>
          </div>
        </a>
      </div>
      <div class="oh pt20">
        <a href="javascript:;" class="fl lh40 plr20 br3 color_f bg_main" f="open_add_dialog">发布日记</a>
        <span class="fr color_9 lh40"><!--{$total}--> 篇日记</span>
      </div>
      <div class="list mt15">
        <table class="w100per" style="border-collapse: collapse;">
          <tr>
            <td class="p10 bo_eb bg_fa">标题</td>
            <td class="t_center p10 bo_eb bg_fa" width="15%">评论/浏览</td>
            <td class="t_center p10 bo_eb bg_fa" width="15%">状态</td>
            <td class="t_center p10 bo_eb bg_fa" width="15%">管理</td>
          </tr>
          <!--{if empty($diary)}-->
          <tr>
            <td colspan="4" class="t_center p10 bo_eb">没有符合条件的信息</td>
          </tr>
          <!--{else}-->
          <!--{foreach $diary as $volist}-->
          <tr>
            <td class="p10 bo_eb">
              <div class="title"><a href="<!--{$urlpath}-->index.php?c=diary&a=detail&id=<!--{$volist.diaryid}-->" target="_blank"><!--{$volist.title}--></a></div>
              <p><!--{$volist.content|filterhtml:80}-->...</p>
            </td>
            <td class="t_center p10 bo_eb">
              <!--{$volist.comms}-->/<!--{$volist.hits}--><br>
              <a target="_blank" href="<!--{$urlpath}-->index.php?c=diary&a=detail&id=<!--{$volist.diaryid}-->#comment">查看评论</a>
            </td>
            <td class="t_center p10 bo_eb">
              <!--{if $volist.flag == '1'}-->
              <font color="green">通过</font>
              <!--{elseif $volist.flag == '2'}-->
              <font color="red">未通过</font>
              <!--{else}-->
              <font color="gray">待审核</font>
              <!--{/if}-->
            </td>
            <td class="t_center p10 bo_eb">
              <a href="javascript:;" f="open_edit_dialog" data-id="<!--{$volist.diaryid}-->">编辑</a> |
              <a href="javascript:;" f="del_diary" data-id="<!--{$volist.diaryid}-->">删除</a>
            </td>
          </tr>
          <!--{/foreach}-->
          <!--{/if}-->
        </table>
      </div>
      <!--{if $total > 0 && !empty($showpage)}-->
      <div class="oe_page"> <!--{$showpage}--> </div>
      <!--{/if}-->
    </div>
  </div>

<!--{include file="<!--{$uctplpath}-->widget/block_footer.tpl"}-->
<script src="<!--{$urlpath}-->tpl/static/pcui/js/oeui.min.js"></script>
<script src="<!--{$userskin}-->js/diary.js"></script>
</body>
</html>