久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長(zhǎng)資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      dedecms織夢(mèng)怎么自定義表單導(dǎo)出到excel

      dedecms織夢(mèng)怎么自定義表單導(dǎo)出到excel

      dedecms織夢(mèng)怎么自定義表單導(dǎo)出到excel?

      修改2個(gè)文件,讓織夢(mèng)自定義表單自由導(dǎo)出到Excel表格里。

      推薦學(xué)習(xí):織夢(mèng)cms

      修改教程如下:

      1、dedetempletsdiy_main.htm 找到

      前臺(tái)預(yù)覽</a>

      <a href="diy_list.php?action=excel&diyid={dede:field.diyid/}" target="_blank">導(dǎo)出表單Excel</a>

      2、dedediy_list.php 找到

      array('post', 'list', 'edit', 'check', 'delete'))

      改成

      array('post', 'list', 'edit', 'check', 'delete', 'excel'))

      繼續(xù)找到

      else {     showmsg('未定義操作', "-1"); }

      在它的上面加入

      else if($action == 'excel') { header("Content-type:application/vnd.ms-excel"); header("Content-Disposition:attachment;filename={$diy->name}_".date("Y-m-d").".xls"); $fieldlist = $diy->getFieldList(); echo "<table><tr>"; foreach($fieldlist as $field=>$fielddata) { echo "<th>{$fielddata[0]}</th>"; } echo "<th>狀態(tài)</th>"; echo "</tr>"; $sql = "SELECT * FROM {$diy->table} ORDER BY id DESC"; $dsql->SetQuery($sql); $dsql->Execute('t'); while($arr = $dsql->GetArray('t')) { echo "<tr>"; foreach($fieldlist as $key => $field) { echo "<td>".$arr[$key]."</td>"; } $status = $arr['ifcheck'] == 1 ? '已審核' : '未審核'; echo "<td>".$status."</td>"; echo "</tr>"; } echo "</table>"; }

      贊(0)
      分享到: 更多 (0)
      網(wǎng)站地圖   滬ICP備18035694號(hào)-2    滬公網(wǎng)安備31011702889846號(hào)