-
電子元件電路板類網(wǎng)站織...
-
電腦系統(tǒng)軟件下載類網(wǎng)站...
-
鋼結(jié)構(gòu)崗?fù)I銷型織夢網(wǎng)...
-
中英雙語律師事務(wù)所類網(wǎng)...
-
精工機械軸承生產(chǎn)廠家類...
-
貂絨大衣服裝設(shè)計類網(wǎng)站...
-
蔬菜鮮果配送類網(wǎng)站織夢...
-
玩具動漫類網(wǎng)站織夢模板...
-
儀器儀表科技公司類網(wǎng)站...
-
食品百貨英文外貿(mào)類網(wǎng)站...
-
裝飾建材公司類網(wǎng)站織夢...
-
人力資源管理類網(wǎng)站織夢...
-
水利工程施工類網(wǎng)站織夢...
-
儀器分析儀類網(wǎng)站織夢模...
-
手游APP軟件下載類網(wǎng)站織...
-
財稅記賬工商注冊認證類...
-
物流快運速遞類網(wǎng)站織夢...
-
營銷型無縫鋼管定制生產(chǎn)...
-
展覽展會信息類網(wǎng)站織夢...
-
網(wǎng)站模板資源下載類網(wǎng)站...
打開/include/extend.func.php文件
在最下面加入這個方法
<span style="font-size:14px;" deep="13">function Getimgurls($aid,$num=4){global $dsql;$imgurls = $result = '';$imgrow = $dsql->GetOne( "Select imgurls From `mydiy_addonimages` where aid='$aid' ");$imgurls = $imgrow['imgurls'];if($imgurls != ''){$dtp = new DedeTagParse();$dtp->LoadSource($imgurls);$images = array();if(is_array($dtp->CTags)){foreach($dtp->CTags as $ctag){if($ctag->GetName() == 'img'){$row = array();$row['width'] = $ctag->GetAtt('width');$row['height'] = $ctag->GetAtt('height');$row['imgsrc'] = trim($ctag->GetInnerText());$row['text'] = $ctag->GetAtt('text');$images[] = $row;}}}$dtp->Clear();$i = 0;foreach($images as $row){if($i == $num) break;if($row['imgsrc'] != ''){$result .= "<li><a title='{$row['text']}' href='{$row['imgsrc']}'><img src='{$row['imgsrc']}' mid='{$row['imgsrc']}' big='{$row['imgsrc']}' width='70' height='70'></a></li>";}$i++;}return $result;}}</span>
前端調(diào)用
<span style="font-size:14px;">[field:id function=Getimgurls(@me,5)/]</span>