<!--{include file="<!--{$oetplpath}-->block_head.tpl"}-->

<!--{if $a == "run"}-->
<div class="layui-fluid oe_fluid">

  <form class="layui-form" id="mysearch" action="<!--{$oefile}-->&c=<!--{$c}-->" method="post">
  <div class="oe_breadcrumb_box clearfix">
    <div class="layui-breadcrumb fl" lay-filter="breadcrumb" style="visibility: visible;">
      <a href="javascript:;">内容模块</a><span lay-separator="">/</span>
      <a href="javascript:;">动态管理</a><span lay-separator="">/</span>
      <a><cite>动态列表</cite></a>
    </div>
  </div>
  <!--//top end -->
  
  <div class="oe_searchbar layui-form">
    <div class="more_search_open"></div>
    <div class="layui-form-item">
      <div class="layui-inline">
        <div class="layui-form-label">性别：</div>
        <div class="layui-input-inline input-200">
          <!--{hook mod="var" item="gender" name="sgender" type="select" text="=不限=" value=$sgender}-->
        </div>
      </div>
      <div class="layui-inline">
        <div class="layui-form-label">会员ID：</div>
        <div class="layui-input-inline input-200">
          <input type="text" name="suserid" id="suserid" class="layui-input" value="<!--{if $suserid > 0}--><!--{$suserid}--><!--{/if}-->" />
        </div>
      </div>
      
      <div class="layui-inline">
        <div class="layui-form-label">用户名：</div>
        <div class="layui-input-inline input-200">
          <input type="text" name="susername" id="susername" class="layui-input" value="<!--{$susername}-->" />
        </div>
      </div>
      
    </div>
    <div class="layui-form-item">
      <div class="layui-inline">
        <div class="layui-form-label">动态：</div>
        <div class="layui-input-inline input-200">
          <input type="text" name="scont" id="scont" class="layui-input" value="<!--{$scont}-->" />
        </div>
      </div>
      <div class="layui-inline">
        <div class="layui-form-label">状&#12288;态：</div>
        <div class="layui-input-inline input-200">
          <select name="sflag" id="sflag">
            <option value="">=不限=</option>
            <option value="1"<!--{if $sflag == '1'}--> selected<!--{/if}-->>通过</option>
            <option value="2"<!--{if $sflag == '2'}--> selected<!--{/if}-->>未通过</option>
            <option value="3"<!--{if $sflag == '3'}--> selected<!--{/if}-->>待审核</option>
          </select>
        </div>
      </div>
      <div class="layui-inline">
        <button class="layui-btn layui-btn-sm search" id="but_submit_search2" lay-submit lay-filter="searchform2">
          <i class="layui-icon layui-icon-search"></i>
          搜索
          <span class="oe_btn_loading layui-anim layui-icon layui-anim-rotate layui-anim-loop" style="display:none;">&#xe63d;</span>
        </button>
      </div>
    </div>
  </div>
  <!--//search End -->
  </form>

  <div class="oe_table_wrap layui-form">
    <div class="oe_tbl_tool clearfix">
      <div class="oe_gnbar clearfix">
        <div class="select btn fl">
          <input type="checkbox" name="allid[]" lay-skin="primary" title="全选" lay-filter="selectAll">
        </div>
        <div class="btn del fl del_line" f="handle-array" data-form="myform">
          <i class="layui-icon layui-icon-delete"></i>
          <span>删除</span>
        </div>
      </div>
      <div class="oe_tongji_bar clearfix current">
        <span><b><!--{$total}--></b> 条记录</span>
      </div>
    </div>
    
    <form class="layui-form" id="myform" action="<!--{$oefile}-->&c=<!--{$c}-->" method="post">
    <input type="hidden" name="a" id="a" value="del" />
    <table class="layui-table">
      <thead>
        <tr>
          <th width="2%">选</th>
          <th width="7%">ID</th>
          <th width="5%">头像</th>
          <th width="8%">用户名</th>
          <th width="5%">性别</th>
          <th width="5%">年龄</th>
          <th>动态</th>
          <th width="10%">图集</th>
          <th width="10%">照片</th>
          <th width="12%">时间</th>
          <th width="6%">来源</th>
          <th width="6%">状态</th>
          <th width="10%">操作</th>
        </tr> 
      </thead>
      
      <!--{if empty($dynamic)}-->
      <tr>
        <td colspan="13" class="text_center">没有符合条件的信息</td>
      </tr>
      <!--{else}-->
      <!--{foreach $dynamic as $volist}-->
      <tr>
        <td class="check text_center">
          <input type="checkbox" name="id[]" lay-skin="primary" value="<!--{$volist.dyid}-->" />
        </td>
        <td class="text_center">
          <!--{$volist.dyid}-->
        </td>
        <td class="text_center drop">
          <div class="down">
            <div><img src="<!--{$urlpath}-->tpl/static/images/loading_img.png" data-src="<!--{$volist.headimg_0}-->" width="20px" height="20px" f="zoom_avatar" preload="0" /></div>
            <div class="sub">
              <img src="<!--{$urlpath}-->tpl/static/images/loading_img.png" data-src="<!--{$volist.headimg}-->" f="viewimg" />
            </div>
          </div>
        </td>
        <td class="text_center">
          <a href="<!--{$oefile}-->&c=user&a=view&id=<!--{$volist.userid}-->"><!--{$volist.username}--></a>
        </td>
        <td class="text_center">
          <!--{if $volist.gender=='1'}-->
          <i class="iconfont icon-nan" title="男"></i>
          <!--{else}-->
          <i class="iconfont icon-nv" title="女"></i>
          <!--{/if}-->
          <!--{hook mod="var" item="gender" type="text" value=$volist.gender}-->
        </td>
        <td class="text_center">
          <!--{$volist.age}-->
        </td>
        <td>
          <!--{if $volist.dytype == 'weibo'}-->
          更新了一条心情：
          <!--{/if}-->
          <!--{$volist.content}-->
        </td>
        <td style="line-height:25px;">
          <!--{if !empty($volist.thumbimg)}-->
          <img src="<!--{$volist.thumbimg}-->" width="20px" height="20px" f="viewimg" data-img="<!--{$volist.drawimg}-->" />
          <!--{/if}-->
          <!--{if !empty($volist.thumbimg2)}-->
          <img src="<!--{$volist.thumbimg2}-->" width="20px" height="20px" f="viewimg" data-img="<!--{$volist.drawimg2}-->" />
          <!--{/if}-->
          <!--{if !empty($volist.thumbimg3)}-->
          <img src="<!--{$volist.thumbimg3}-->" width="20px" height="20px" f="viewimg" data-img="<!--{$volist.drawimg3}-->" />
          <!--{/if}-->
          <!--{if !empty($volist.thumbimg4)}-->
          <img src="<!--{$volist.thumbimg4}-->" width="20px" height="20px" f="viewimg" data-img="<!--{$volist.drawimg4}-->" />
          <!--{/if}-->
          <!--{if !empty($volist.thumbimg5)}-->
          <img src="<!--{$volist.thumbimg5}-->" width="20px" height="20px" f="viewimg" data-img="<!--{$volist.drawimg5}-->" />
          <!--{/if}-->
          <!--{if !empty($volist.thumbimg6)}-->
          <img src="<!--{$volist.thumbimg6}-->" width="20px" height="20px" f="viewimg" data-img="<!--{$volist.drawimg6}-->" />
          <!--{/if}-->
          <!--{if !empty($volist.thumbimg7)}-->
          <img src="<!--{$volist.thumbimg7}-->" width="20px" height="20px" f="viewimg" data-img="<!--{$volist.drawimg7}-->" />
          <!--{/if}-->
          <!--{if !empty($volist.thumbimg8)}-->
          <img src="<!--{$volist.thumbimg8}-->" width="20px" height="20px" f="viewimg" data-img="<!--{$volist.drawimg8}-->" />
          <!--{/if}-->
          <!--{if !empty($volist.thumbimg9)}-->
          <img src="<!--{$volist.thumbimg9}-->" width="20px" height="20px" f="viewimg" data-img="<!--{$volist.drawimg9}-->" />
          <!--{/if}-->
        </td>
        <td style="line-height:25px;">
          <!--{if !empty($volist.gallery)}-->
          <!--{foreach $volist.gallery as $val}-->
          <img src="<!--{$val.thumbimg}-->" width="20px" height="20px" f="viewimg" data-img="<!--{$val.drawimg}-->" />
          <!--{/foreach}-->
          <!--{else}-->
          --
          <!--{/if}-->
        </td>
        <td class="text_center"><!--{$volist.addtime|date_format:"%Y-%m-%d %H:%M:%S"}--></td>
        <td class="text_center"><!--{$volist.comefrom}--></td>
        <td class="text_center">
          <input type="checkbox" name="flag" lay-skin="primary" value="1" lay-filter="updatestatus" data-id="<!--{$volist.dyid}-->" data-type="flag"<!--{if $volist.flag == '1'}--> checked<!--{/if}--> />
        </td>
        <td class="text_center">
          <div class="td_btn">
            <a href="<!--{$oefile}-->&c=<!--{$c}-->&a=edit&id=<!--{$volist.dyid}-->&<!--{$comeurl}-->" class="layui-btn layui-btn-normal layui-btn-xs" lay-event="edit">编辑</a>
            <a href="javascript:;" f="handle-one" data-text="确定要删除吗？" data-url="<!--{$oefile}-->&c=<!--{$c}-->&a=del&id[]=<!--{$volist.dyid}-->&<!--{$comeurl}-->" class="layui-btn layui-btn-xs layui-btn-danger">删除</a>
          </div>
        </td>
      </tr>
      <!--{/foreach}-->
      <!--{/if}-->
    </table>
    </form>
    
    <div class="oe_page_box"><!--{$showpage}--></div>
    
  </div>
</div>
<script type="text/javascript">
$(function(){
    layui.use(['layer', 'element'], function(){

    });
    //预载图片 9.11.25
    preload_img();
});
</script>
<!--{/if}-->

<!--{if $a == "edit"}-->
<div class="layui-fluid oe_fluid">

  <div class="oe_breadcrumb_box clearfix">
    <div class="layui-breadcrumb fl" lay-filter="breadcrumb" style="visibility: visible;">
      <a href="javascript:;">内容模块</a><span lay-separator="">/</span>
      <a href="javascript:;">动态管理</a><span lay-separator="">/</span>
      <a><cite>编辑动态</cite></a>
    </div>
    <div class="oe_tool_bar ft">
      <button class="layui-btn layui-btn-sm layui-btn-radius" id="but_submit_post2" lay-submit lay-filter="editform">
        编辑保存
        <span class="oe_btn_loading layui-anim layui-icon layui-anim-rotate layui-anim-loop" style="display:none;">&#xe63d;</span>
      </button>
      <span class="layui-btn layui-btn-sm layui-btn-primary layui-btn-radius"><a href="<!--{$oefile}-->&c=<!--{$c}-->&<!--{$comeurl}-->">返回列表</a></span>
    </div> 
  </div>
  
  <form class="layui-form" id="myform" action="<!--{$oefile}-->&c=<!--{$c}-->&<!--{$comeurl}-->" method="post">
  <input type="hidden" name="a" id="a" value="saveedit" />
	<input type="hidden" name="id" id="id" value="<!--{$id}-->" />
  <div class="layui-card">
    <div class="layui-card-header">编辑动态</div>
    <div class="layui-card-body">
      <table class="oe_tbl_form layui-form">
        <tr>
          <th width="15%">发布会员：<span class="f_red"></span></th>
          <td width="35%">
          <img src="<!--{$dynamic.headimg}-->" width="25px" height="25px" />
          uid:<!--{$dynamic.userid}-->/<!--{$dynamic.username}-->/<!--{hook mod="var" item="gender" type="text" value=$dynamic.gender}-->/<!--{$dynamic.age}-->岁/<!--{area type="text" value=$dynamic.dist1}--> <!--{area type="text" value=$dynamic.dist2}-->
          </td>
          <th width="15%">来源：</th>
          <td width="35%">
            <!--{$dynamic.comefrom}--> 
            <!--{$dynamic.addtime|date_format:"%Y-%m-%d %H:%M:%S"}-->
          </td>
        </tr>

        <tr>
          <th><font color="red">*</font>审核状态：</th>
          <td>
            <div class="tbl_input input-200">
              <select name="flag" id="flag">
                <option value="">=请选择=</option>
                <option value="1"<!--{if $dynamic.flag == '1'}--> selected<!--{/if}-->>通过</option>
                <option value="2"<!--{if $dynamic.flag == '2'}--> selected<!--{/if}-->>不通过</option>
                <option value="0"<!--{if $dynamic.flag == '0'}--> selected<!--{/if}-->>待审核</option>
              </select>
            </div>
          </td>
          <th>插图1：<span class="f_red"></span> </th>
          <td>
            <div class="layui-btn">
              <i class="layui-icon layui-icon-upload"></i>
              点击上传
              <input type="file" name="img" id="img" f="but_upload_image" data-thumb="1" data-mod="dynamic">
            </div>
            <div class="upload_loading" id="img_loading" style="display:none;"></div>
            <input type="hidden" id="img_thumb" name="thumbimg" value="<!--{$dynamic.thumbimg}-->" />
            <input type="hidden" id="img_url" name="drawimg" value="<!--{$dynamic.drawimg}-->" />
            <div class="tblform_tips normal">&nbsp;&nbsp;&nbsp;预览：</div>
            <div class="upload_pic upload_pic_md" style="width:30px;height:30px;">
              <!--{if !empty($dynamic.thumbimg)}-->
              <img src="<!--{$dynamic.thumbimg}-->" data-img="<!--{$dynamic.drawimg}-->" id="img_preview" f="viewimg" />
              <!--{else}-->
              <img src="<!--{$urlpath}-->tpl/static/images/waitimg.jpg" id="img_preview" f="viewimg" />
              <!--{/if}-->
            </div>
            <a href="javascript:;" class="oe_deluploadimg" f="removeimg" data-preview="img" data-input="img">移除</a>
          </td>
        </tr>
        
        <tr>
          <th>插图2：<span class="f_red"></span> </th>
          <td>
            <div class="layui-btn">
              <i class="layui-icon layui-icon-upload"></i>
              点击上传
              <input type="file" name="img2" id="img2" f="but_upload_image" data-thumb="1" data-mod="dynamic">
            </div>
            <div class="upload_loading" id="img2_loading" style="display:none;"></div>
            <input type="hidden" id="img2_thumb" name="thumbimg2" value="<!--{$dynamic.thumbimg2}-->" />
            <input type="hidden" id="img2_url" name="drawimg2" value="<!--{$dynamic.drawimg2}-->" />
            <div class="tblform_tips normal">&nbsp;&nbsp;&nbsp;预览：</div>
            <div class="upload_pic upload_pic_md" style="width:30px;height:30px;">
              <!--{if !empty($dynamic.thumbimg2)}-->
              <img src="<!--{$dynamic.thumbimg2}-->" data-img="<!--{$dynamic.drawimg2}-->" id="img2_preview" f="viewimg" />
              <!--{else}-->
              <img src="<!--{$urlpath}-->tpl/static/images/waitimg.jpg" id="img2_preview" f="viewimg" />
              <!--{/if}-->
            </div>
            <a href="javascript:;" class="oe_deluploadimg" f="removeimg" data-preview="img2" data-input="img2">移除</a>
          </td>
          <th>插图3：<span class="f_red"></span> </th>
          <td>
            <div class="layui-btn">
              <i class="layui-icon layui-icon-upload"></i>
              点击上传
              <input type="file" name="img3" id="img3" f="but_upload_image" data-thumb="1" data-mod="dynamic">
            </div>
            <div class="upload_loading" id="img3_loading" style="display:none;"></div>
            <input type="hidden" id="img3_thumb" name="thumbimg3" value="<!--{$dynamic.thumbimg3}-->" />
            <input type="hidden" id="img3_url" name="drawimg3" value="<!--{$dynamic.drawimg3}-->" />
            <div class="tblform_tips normal">&nbsp;&nbsp;&nbsp;预览：</div>
            <div class="upload_pic upload_pic_md" style="width:30px;height:30px;">
              <!--{if !empty($dynamic.thumbimg3)}-->
              <img src="<!--{$dynamic.thumbimg3}-->" data-img="<!--{$dynamic.drawimg3}-->" id="img3_preview" f="viewimg" />
              <!--{else}-->
              <img src="<!--{$urlpath}-->tpl/static/images/waitimg.jpg" id="img3_preview" f="viewimg" />
              <!--{/if}-->
            </div>
            <a href="javascript:;" class="oe_deluploadimg" f="removeimg" data-preview="img3" data-input="img3">移除</a>
          </td>
        </tr>
        
        <tr>
          <th>插图4：<span class="f_red"></span> </th>
          <td>
            <div class="layui-btn">
              <i class="layui-icon layui-icon-upload"></i>
              点击上传
              <input type="file" name="img4" id="img4" f="but_upload_image" data-thumb="1" data-mod="dynamic">
            </div>
            <div class="upload_loading" id="img4_loading" style="display:none;"></div>
            <input type="hidden" id="img4_thumb" name="thumbimg4" value="<!--{$dynamic.thumbimg4}-->" />
            <input type="hidden" id="img4_url" name="drawimg4" value="<!--{$dynamic.drawimg4}-->" />
            <div class="tblform_tips normal">&nbsp;&nbsp;&nbsp;预览：</div>
            <div class="upload_pic upload_pic_md" style="width:30px;height:30px;">
              <!--{if !empty($dynamic.thumbimg4)}-->
              <img src="<!--{$dynamic.thumbimg4}-->" data-img="<!--{$dynamic.drawimg4}-->" id="img4_preview" f="viewimg" />
              <!--{else}-->
              <img src="<!--{$urlpath}-->tpl/static/images/waitimg.jpg" id="img4_preview" f="viewimg" />
              <!--{/if}-->
            </div>
            <a href="javascript:;" class="oe_deluploadimg" f="removeimg" data-preview="img4" data-input="img4">移除</a>
          </td>
          <th>插图5：<span class="f_red"></span> </th>
          <td>
            <div class="layui-btn">
              <i class="layui-icon layui-icon-upload"></i>
              点击上传
              <input type="file" name="img5" id="img5" f="but_upload_image" data-thumb="1" data-mod="dynamic">
            </div>
            <div class="upload_loading" id="img5_loading" style="display:none;"></div>
            <input type="hidden" id="img5_thumb" name="thumbimg5" value="<!--{$dynamic.thumbimg5}-->" />
            <input type="hidden" id="img5_url" name="drawimg5" value="<!--{$dynamic.drawimg5}-->" />
            <div class="tblform_tips normal">&nbsp;&nbsp;&nbsp;预览：</div>
            <div class="upload_pic upload_pic_md" style="width:30px;height:30px;">
              <!--{if !empty($dynamic.thumbimg5)}-->
              <img src="<!--{$dynamic.thumbimg5}-->" data-img="<!--{$dynamic.drawimg5}-->" id="img5_preview" f="viewimg" />
              <!--{else}-->
              <img src="<!--{$urlpath}-->tpl/static/images/waitimg.jpg" id="img5_preview" f="viewimg" />
              <!--{/if}-->
            </div>
            <a href="javascript:;" class="oe_deluploadimg" f="removeimg" data-preview="img5" data-input="img5">移除</a>
          </td>
        </tr>
        
        <tr>
          <th>插图6：<span class="f_red"></span> </th>
          <td>
            <div class="layui-btn">
              <i class="layui-icon layui-icon-upload"></i>
              点击上传
              <input type="file" name="img6" id="img6" f="but_upload_image" data-thumb="1" data-mod="dynamic">
            </div>
            <div class="upload_loading" id="img6_loading" style="display:none;"></div>
            <input type="hidden" id="img6_thumb" name="thumbimg6" value="<!--{$dynamic.thumbimg6}-->" />
            <input type="hidden" id="img6_url" name="drawimg6" value="<!--{$dynamic.drawimg6}-->" />
            <div class="tblform_tips normal">&nbsp;&nbsp;&nbsp;预览：</div>
            <div class="upload_pic upload_pic_md" style="width:30px;height:30px;">
              <!--{if !empty($dynamic.thumbimg6)}-->
              <img src="<!--{$dynamic.thumbimg6}-->" data-img="<!--{$dynamic.drawimg6}-->" id="img6_preview" f="viewimg" />
              <!--{else}-->
              <img src="<!--{$urlpath}-->tpl/static/images/waitimg.jpg" id="img6_preview" f="viewimg" />
              <!--{/if}-->
            </div>
            <a href="javascript:;" class="oe_deluploadimg" f="removeimg" data-preview="img6" data-input="img6">移除</a>
          </td>
          <th>插图7：<span class="f_red"></span> </th>
          <td>
            <div class="layui-btn">
              <i class="layui-icon layui-icon-upload"></i>
              点击上传
              <input type="file" name="img7" id="img7" f="but_upload_image" data-thumb="1" data-mod="dynamic">
            </div>
            <div class="upload_loading" id="img7_loading" style="display:none;"></div>
            <input type="hidden" id="img7_thumb" name="thumbimg7" value="<!--{$dynamic.thumbimg7}-->" />
            <input type="hidden" id="img7_url" name="drawimg7" value="<!--{$dynamic.drawimg7}-->" />
            <div class="tblform_tips normal">&nbsp;&nbsp;&nbsp;预览：</div>
            <div class="upload_pic upload_pic_md" style="width:30px;height:30px;">
              <!--{if !empty($dynamic.thumbimg7)}-->
              <img src="<!--{$dynamic.thumbimg7}-->" data-img="<!--{$dynamic.drawimg7}-->" id="img7_preview" f="viewimg" />
              <!--{else}-->
              <img src="<!--{$urlpath}-->tpl/static/images/waitimg.jpg" id="img7_preview" f="viewimg" />
              <!--{/if}-->
            </div>
            <a href="javascript:;" class="oe_deluploadimg" f="removeimg" data-preview="img7" data-input="img7">移除</a>
          </td>
        </tr>
        
        <tr>
          <th>插图8：<span class="f_red"></span> </th>
          <td>
            <div class="layui-btn">
              <i class="layui-icon layui-icon-upload"></i>
              点击上传
              <input type="file" name="img8" id="img8" f="but_upload_image" data-thumb="1" data-mod="dynamic">
            </div>
            <div class="upload_loading" id="img8_loading" style="display:none;"></div>
            <input type="hidden" id="img8_thumb" name="thumbimg8" value="<!--{$dynamic.thumbimg8}-->" />
            <input type="hidden" id="img8_url" name="drawimg8" value="<!--{$dynamic.drawimg8}-->" />
            <div class="tblform_tips normal">&nbsp;&nbsp;&nbsp;预览：</div>
            <div class="upload_pic upload_pic_md" style="width:30px;height:30px;">
              <!--{if !empty($dynamic.thumbimg8)}-->
              <img src="<!--{$dynamic.thumbimg8}-->" data-img="<!--{$dynamic.drawimg8}-->" id="img8_preview" f="viewimg" />
              <!--{else}-->
              <img src="<!--{$urlpath}-->tpl/static/images/waitimg.jpg" id="img8_preview" f="viewimg" />
              <!--{/if}-->
            </div>
            <a href="javascript:;" class="oe_deluploadimg" f="removeimg" data-preview="img8" data-input="img8">移除</a>
          </td>
          <th>插图9：<span class="f_red"></span> </th>
          <td>
            <div class="layui-btn">
              <i class="layui-icon layui-icon-upload"></i>
              点击上传
              <input type="file" name="img9" id="img9" f="but_upload_image" data-thumb="1" data-mod="dynamic">
            </div>
            <div class="upload_loading" id="img9_loading" style="display:none;"></div>
            <input type="hidden" id="img9_thumb" name="thumbimg9" value="<!--{$dynamic.thumbimg9}-->" />
            <input type="hidden" id="img9_url" name="drawimg9" value="<!--{$dynamic.drawimg9}-->" />
            <div class="tblform_tips normal">&nbsp;&nbsp;&nbsp;预览：</div>
            <div class="upload_pic upload_pic_md" style="width:30px;height:30px;">
              <!--{if !empty($dynamic.thumbimg9)}-->
              <img src="<!--{$dynamic.thumbimg9}-->" data-img="<!--{$dynamic.drawimg9}-->" id="img9_preview" f="viewimg" />
              <!--{else}-->
              <img src="<!--{$urlpath}-->tpl/static/images/waitimg.jpg" id="img9_preview" f="viewimg" />
              <!--{/if}-->
            </div>
            <a href="javascript:;" class="oe_deluploadimg" f="removeimg" data-preview="img9" data-input="img9">移除</a>
          </td>
        </tr>
        
        <tr>
          <th><font color="red">*</font>动态： </th>
          <td colspan="3"><textarea name="content" id="content" class="layui-textarea" style="width:70%;height:100px;"><!--{$dynamic.content}--></textarea></td>
        </tr>
        
        <tr>
          <th>关联照片：<span class="f_red"></span> </th>
          <td colspan="3">
            <!--{if !empty($dynamic.gallery)}-->
            <!--{foreach $dynamic.gallery as $val}-->
            <img src="<!--{$val.thumbimg}-->" width="30px" height="30px" f="viewimg" data-img="<!--{$val.drawimg}-->" />
            <!--{/foreach}-->
            <!--{else}-->
            --
            <!--{/if}-->
          </td>
        </tr>
        
      </table>
    </div>
  </div>
  </form>
  <div class="oe_tbl_form_btn">
    <button class="layui-btn" id="but_submit_post" lay-submit lay-filter="editform">
      编辑保存
      <span class="oe_btn_loading layui-anim layui-icon layui-anim-rotate layui-anim-loop" style="display:none;">&#xe63d;</span>
    </button>
  </div>
  
</div>
<script type="text/javascript">
$(function(){

    layui.use('form', function(){
        $form = layui.form;
        //保存...
        $form.on('submit(editform)', function(data){
            $obj_id = data.elem.getAttribute("id");
            if (!$("#"+$obj_id).hasClass("forbid_submit")) {
            
                if ($("#flag").val().length  == 0) {
                    layer.msg("审核状态");
                    return false;
                }
                if ($("#content").val().length == 0) {
                    layer.msg("请填写动态内容");
                    return false;
                }
                
                $("#"+$obj_id).addClass("forbid_submit");
                if ($("#"+$obj_id).find("span").length > 0) {
                    $("#"+$obj_id).find("span").show();
                }
                //...
                $("#myform").submit();
            }
        });   
    });
    
});
</script>
<!--{/if}-->
</body>
</html>