注:{dede:php}不能在循环体中再嵌入,特此记录
以下对应代码:
![](https://images.cnblogs.com/OutliningIndicators/ContractedBlock.gif)
{dede:list pagesize='12'} <div class="item "> <div class="bgbox"> <p class="img"> <a href="[field:arcurl/]" class="imghover" target="_blank" title="[field:title/]" style="display:block;position: relative;"> <img src="[field:litpic/]" width="378" height="270" alt="[field:title/]"> <img class="img2" style="position: absolute;top:0;left:0;display: none;" src="[field:id runphp="yes"] $row = $GLOBALS['dsql']->GetOne("Select imgurls From `dede_addonimages` where aid=@me"); $str = $row['imgurls']; $pattern="/ddimg='(.*?)'/"; $arr = preg_match($pattern, $str,$mc); @me = $mc[1]; [/field:id]" width="378" height="270" alt="[field:title/]"> </a> </p> <div class="desbox" title="[field:writer/]"><img src="[field:writer/]"> <p class="txt">[field:title/]</p> <p class="desc">[field:shorttitle/]</p> <p> <span class="type-title">所属系列[field:jz/]</span> <a class="btnbox" href="[field:arcurl/]" target="_blank">查看详情</a> <a href="http://wpa.qq.com/msgrd?v=3&uin=[field:global.cfg_qq/]&site=qq&menu=yes" designerid="1484" class="reservationDesign btnbox btnbox-gray">预约设计</a> </p> </div> </div> </div> {/dede:list}
![](https://images.cnblogs.com/OutliningIndicators/ContractedBlock.gif)
{dede:pagestyle maxwidth='800' pagepicnum='12' ddmaxwidth='860' row='3' col='4' value='3'/}
{dede:img ddimg='/uploads/allimg/170807/1-1FPH14005-lp.jpg' text='' width='960' height='930'} /uploads/allimg/170807/1-1FPH14005.jpg {/dede:img}
{dede:img ddimg='/uploads/allimg/170807/1-1FPH14006-lp.jpg' text='' width='860' height='580'} /uploads/allimg/170807/1-1FPH14006.jpg {/dede:img}
{dede:img ddimg='/uploads/allimg/170807/1-1FPH14007-lp.jpg' text='' width='860' height='581'} /uploads/allimg/170807/1-1FPH14007.jpg {/dede:img}
{dede:img ddimg='/uploads/allimg/170807/1-1FPH14009-lp.jpg' text='' width='860' height='580'} /uploads/allimg/170807/1-1FPH14009.jpg {/dede:img}