<tfoot id='zl4c3i3x'></tfoot>

      <i id='8r8kbogo'><tr id='itdbhc9w'><dt id='b5rp5jsl'><q id='7ymklahn'><span id='d02i9y41'><b id='ba7ojus9'><form id='2opm6kzw'><ins id='99x81359'></ins><ul id='j41pxy7z'></ul><sub id='1vg4vum1'></sub></form><legend id='phvxcwc1'></legend><bdo id='brsbbgft'><pre id='hrnw9dtn'><center id='qvd9t6lj'></center></pre></bdo></b><th id='zeehmc44'></th></span></q></dt></tr></i><div id='ub29hyay'><tfoot id='ydsl4zg6'></tfoot><dl id='v3yweyio'><fieldset id='a19utk66'></fieldset></dl></div>

        • <bdo id='gz3sooxu'></bdo><ul id='iencsoyv'></ul>
        <legend id='8libqzoc'><style id='xym6i41w'><dir id='v1nnwpdl'><q id='qs9dqw8i'></q></dir></style></legend>

        <small id='ihrdlnp2'></small><noframes id='oz9v05v9'>

        精准传达 • 价值共享

        洞悉互联网前沿资讯,探寻网站营销规律

        dedecms织梦自定义表单导出到excel

        作者: 庚午网络 | 2020-11-09 14:47 |点击:

        自定义

        • <bdo id='nvdtmwdz'></bdo><ul id='228oqybj'></ul>

              <small id='yjp14ipq'></small><noframes id='c3xw14kf'>

                <tbody id='69xx3bjk'></tbody>
                <i id='lhl4np1j'><tr id='kyrzki2o'><dt id='75o8j0c7'><q id='nez4nvyn'><span id='j7tol5gc'><b id='5axj62xy'><form id='bmk28xpk'><ins id='1c646uyj'></ins><ul id='igs137rq'></ul><sub id='czgm667h'></sub></form><legend id='ve1k8rii'></legend><bdo id='at08ghpe'><pre id='r61shgad'><center id='4v07w6vl'></center></pre></bdo></b><th id='sgyjhgke'></th></span></q></dt></tr></i><div id='83pnwqda'><tfoot id='7od0tq92'></tfoot><dl id='d0b30u3r'><fieldset id='oilr1ve0'></fieldset></dl></div>
                <tfoot id='f204h3s3'></tfoot>
              • <legend id='w6vg23pk'><style id='22ptis7g'><dir id='5ds4qdcs'><q id='2rrr96xb'></q></dir></style></legend>

                  效果展示:
                  dedecms织梦自定义表单导出到excel
                  修改2个文件,让织梦自定义表单自由导出到Excel表格里。
                  修改教程如下:
                  1、\dede\templets\diy_main.htm 找到
                  1. 前台预览</a>
                  在它的下面加入一行
                  1. <a href="diy_list.php?action=excel&diyid={dede:field.diyid/}" target="_blank">导出表单Excel</a>
                  2、\dede\diy_list.php 找到
                  1. array('post''list''edit''check''delete'))
                  改成
                  1. array('post''list''edit''check''delete''excel'))
                  继续找到
                  1. else
                  2. {
                  3.     showmsg('未定义操作'"-1");
                  4. }
                  在它的上面加入
                  1. else if($action == 'excel')
                  2. {
                  3. header("Content-type:application/vnd.ms-excel");
                  4. header("Content-Disposition:attachment;filename={$diy->name}_".date("Y-m-d").".xls");
                  5. $fieldlist = $diy->getFieldList();
                  6. echo "<table><tr>";
                  7. foreach($fieldlist as $field=>$fielddata)
                  8. {
                  9. echo "<th>{$fielddata[0]}</th>";
                  10. }
                  11. echo "<th>状态</th>";
                  12. echo "</tr>";
                  13. $sql = "SELECT * FROM {$diy->tableORDER BY id DESC";
                  14. $dsql->SetQuery($sql);
                  15. $dsql->Execute('t');
                  16. while($arr = $dsql->GetArray('t'))
                  17. {
                  18. echo "<tr>";
                  19. foreach($fieldlist as $key => $field)
                  20. {
                  21. echo "<td>".$arr[$key]."</td>";
                  22. }
                  23. $status = $arr['ifcheck'] == 1 ? '已审核' : '未审核';
                  24. echo "<td>".$status."</td>";
                  25. echo "</tr>";
                  26. }
                  27. echo "</table>";
                  28. }
                  二度创作,如有侵权请联系删除。如没特殊注明,文章均为庚午网络原创,转载请注明https://www.hngengwu.com/shejiguandian/438.html
                      <legend id='78brsk47'><style id='fushflsq'><dir id='3tosuq80'><q id='r6v88746'></q></dir></style></legend>

                    1. <i id='u2yxqw24'><tr id='i559lvgm'><dt id='hr6si8ao'><q id='owj2t02o'><span id='7gf66pmq'><b id='kxsl0xhl'><form id='vmuknk5p'><ins id='28erqxn3'></ins><ul id='3y90barq'></ul><sub id='j6eatoyd'></sub></form><legend id='pcz83mpo'></legend><bdo id='7c5bjch8'><pre id='zjkt6dvm'><center id='x9hypwu8'></center></pre></bdo></b><th id='4avyr4gx'></th></span></q></dt></tr></i><div id='14sl6saz'><tfoot id='aksh8vay'></tfoot><dl id='hf695i4a'><fieldset id='xz45tz90'></fieldset></dl></div>

                      <tfoot id='p760kgmg'></tfoot>
                        <bdo id='aimbuevq'></bdo><ul id='gehqu22n'></ul>

                      <small id='8ronep0n'></small><noframes id='awyf49rf'>

                    2. 多一份策划方案,总有益处。

                      请直接添加技术总监微信联系咨询

                      网站设计 品牌营销

                      多一份参考,总有益处

                      联系庚午网络,获得专属《策划方案》及报价

                      咨询相关问题或预约面谈,可以通过以下方式与我们联系

                      业务热线:18574395938 / 大客户专线:18574395938