易优新版1.5.1版本的留言那个excel导出貌似不见了(图1)

增加方法:

打开路径\application\admin\template\guestbook

index.htm 文件


大概在133行此代码下面

                {eq name="$Think.const.CONTROLLER_NAME.'@del'|is_check_access" value="1"}

                <div class="fbutton">

                    <a onclick="batch_del(this, 'ids');" data-url="{:url('Guestbook/del')}">

                        <div class="add" title="批量删除">

                            <span>批量删除</span>

                        </div>

                    </a>

                </div>

                {/eq}

新增:


{eq name="$Think.const.CONTROLLER_NAME.'@excel_export'|is_check_access" value="1"}

                    <div class="fbutton">

                        <input type="button" style="width: 72px;height: 28px;" value="导出Excel" onclick="excel_export(this, 'ids');" data-url="{:url('Guestbook/excel_export')}">

                    </div>

                    {/eq}


然后,修改一段代码:123行

 <input type="checkbox" class="checkAll">

修改为:

<input type="checkbox" onclick="javascript:$('input[name*=ids]').prop('checked',this.checked);">

保存,后台缓存下 即可

测试可用!


易优新版1.5.1版本的留言那个excel导出貌似不见了(图2)