迅睿CMS框架是一款PHP8高性能·簡(jiǎn)單易用的CMS開(kāi)源開(kāi)發(fā)框架,基于MIT開(kāi)源許可協(xié)議發(fā)布,免費(fèi)且不限制商業(yè)使用,是免費(fèi)開(kāi)源的產(chǎn)品,以萬(wàn)端互聯(lián)為設(shè)計(jì)理念,支持的微信公眾號(hào)、小程序、APP客戶(hù)端、移動(dòng)端網(wǎng)站、PC網(wǎng)站等多終端式管理系統(tǒng)。
聯(lián)系官方銷(xiāo)售客服
1835022288
028-61286886
字段為組圖的images
在search搜索中如何將每一個(gè)組圖內(nèi)的圖片都顯示出來(lái)。
求你不要把代碼截圖,改都沒(méi)辦法給你改,,,
回復(fù)迅??蚣軇?chuàng)始人
<!--分頁(yè)顯示列表數(shù)據(jù){php $img=dr_get_files($images);}-->
{if $searchid}
{list action=search module=photo id=$searchid total=$sototal page=1 pagesize=40 catid=$catid urlrule=$urlrule}
<div class="photo-img-start">
<a class="photo-tile-container" href="{$t.url}">
{php $imag=$t.images;$img=dr_get_files($imag);}
{loop img $i $c}
<img src="{dr_get_file($c.file)}" width="auto" height="200">
{/loop}
<div class="photo-title">
<p>{dr_strcut($t.title, 34)}</p>
</div>
</a>
{/list}
{/if}
{if !$total || !$searchid}
<div style="clear: both; padding:20px; padding-bottom: 0">
<div class="alert alert-danger"><strong>對(duì)不起!</strong> 沒(méi)有找到任何記錄 </div>
{php $imag=$t.images;$img=dr_get_files($imag);} {loop $img $i $c} <img src="{dr_get_file($c.file)}" width="auto" height="200"> {/loop}
少了$
不行哦,這里images不是主表,
附表不允許出現(xiàn)在循環(huán)中,只能在show.html顯示
刪了images重建主表,再重新錄入數(shù)據(jù)
回復(fù)迅睿框架創(chuàng)始人
有沒(méi)有招?數(shù)據(jù)20萬(wàn)了不好搞
沒(méi)招,我設(shè)計(jì)主表和附表就是為了區(qū)分循環(huán)字段
求你不要把代碼截圖,改都沒(méi)辦法給你改,,,
回復(fù)迅??蚣軇?chuàng)始人
<!--分頁(yè)顯示列表數(shù)據(jù){php $img=dr_get_files($images);}-->
{if $searchid}
{list action=search module=photo id=$searchid total=$sototal page=1 pagesize=40 catid=$catid urlrule=$urlrule}
<div class="photo-img-start">
<a class="photo-tile-container" href="{$t.url}">
{php $imag=$t.images;$img=dr_get_files($imag);}
{loop img $i $c}
<img src="{dr_get_file($c.file)}" width="auto" height="200">
{/loop}
<div class="photo-title">
<p>{dr_strcut($t.title, 34)}</p>
</div>
</a>
</div>
{/list}
{/if}
{if !$total || !$searchid}
<div style="clear: both; padding:20px; padding-bottom: 0">
<div class="alert alert-danger"><strong>對(duì)不起!</strong> 沒(méi)有找到任何記錄 </div>
</div>
{/if}
少了$
回復(fù)迅??蚣軇?chuàng)始人
不行哦,這里images不是主表,
附表不允許出現(xiàn)在循環(huán)中,只能在show.html顯示
刪了images重建主表,再重新錄入數(shù)據(jù)
回復(fù)迅睿框架創(chuàng)始人
有沒(méi)有招?數(shù)據(jù)20萬(wàn)了不好搞
沒(méi)招,我設(shè)計(jì)主表和附表就是為了區(qū)分循環(huán)字段