聯(lián)系官方銷售客服
1835022288
028-61286886
我用迅睿的后臺(tái)做了一個(gè)管理系統(tǒng),稍微改了改,把模塊的其中一個(gè)字段改成了屬性參數(shù),如下圖
然后我需要把某一條數(shù)據(jù)生成到word文檔里面,現(xiàn)在可以正常生成,但是這個(gè)屬性參數(shù)的這個(gè)weizhi字段,生成出來是這樣的,我怎么能生成x區(qū)x排x座呀
$title = $row['title']; $jsdh = $row['jsdh']; $szxmn = $row['szxmn']; $szxmnn = $row['szxmnn']; $weizhi = $row['weizhi'];//這里是位置字段 // 時(shí)間戳轉(zhuǎn)換 $rumushijian1 = $row['rumushijian']; $daoqishijian1 = $row['daoqishijian']; $rumushijian = date('Y-m-d', $rumushijian1); $daoqishijian = date('Y-m-d', $daoqishijian1); // 開始對(duì)模板賦值 $templateProcessor->setValue('title', $title); $templateProcessor->setValue('jsdh', $jsdh); $templateProcessor->setValue('szxmn', $szxmn); $templateProcessor->setValue('szxmnn', $szxmnn); $templateProcessor->setValue('weizhi', $weizhi); $templateProcessor->setValue('rumushijian', $rumushijian); $templateProcessor->setValue('daoqishijian', $daoqishijian);
把他轉(zhuǎn)換為數(shù)組,剩下的,你應(yīng)該搞得定了