迅睿開源框架是一款PHP8高性能·簡單易用的PHP開源開發(fā)框架, 基于MIT開源許可協(xié)議發(fā)布,不限制商業(yè)使用,以多端互聯(lián)為設計理念, 支持的微信公眾號、小程序、APP客戶端、移動端網(wǎng)站、PC網(wǎng)站等多終端式管理系統(tǒng)。
業(yè)務經理
微信掃描以上二維碼
028-61286886
技術咨詢
字段為組圖的images
在search搜索中如何將每一個組圖內的圖片都顯示出來。
求你不要把代碼截圖,改都沒辦法給你改,,,
開源是一種精神,但不是義務,幫忙是情分,不幫也不要抱怨,建議大家多研究代碼、多閱讀代碼、多翻閱社區(qū)歷史問題!
回復迅??蚣軇?chuàng)始人
<!--分頁顯示列表數(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>對不起!</strong> 沒有找到任何記錄 </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}
少了$
回復迅睿框架創(chuàng)始人
不行哦,這里images不是主表,
附表不允許出現(xiàn)在循環(huán)中,只能在show.html顯示
刪了images重建主表,再重新錄入數(shù)據(jù)
有沒有招?數(shù)據(jù)20萬了不好搞
沒招,我設計主表和附表就是為了區(qū)分循環(huán)字段
求你不要把代碼截圖,改都沒辦法給你改,,,
開源是一種精神,但不是義務,幫忙是情分,不幫也不要抱怨,建議大家多研究代碼、多閱讀代碼、多翻閱社區(qū)歷史問題!
回復迅??蚣軇?chuàng)始人
<!--分頁顯示列表數(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>對不起!</strong> 沒有找到任何記錄 </div>
</div>
{/if}
{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}少了$
開源是一種精神,但不是義務,幫忙是情分,不幫也不要抱怨,建議大家多研究代碼、多閱讀代碼、多翻閱社區(qū)歷史問題!
回復迅睿框架創(chuàng)始人
不行哦,這里images不是主表,
附表不允許出現(xiàn)在循環(huán)中,只能在show.html顯示
刪了images重建主表,再重新錄入數(shù)據(jù)
開源是一種精神,但不是義務,幫忙是情分,不幫也不要抱怨,建議大家多研究代碼、多閱讀代碼、多翻閱社區(qū)歷史問題!
回復迅??蚣軇?chuàng)始人
有沒有招?數(shù)據(jù)20萬了不好搞
沒招,我設計主表和附表就是為了區(qū)分循環(huán)字段
開源是一種精神,但不是義務,幫忙是情分,不幫也不要抱怨,建議大家多研究代碼、多閱讀代碼、多翻閱社區(qū)歷史問題!