帝国cms多值字段数据显示方法如下:<?php

if (!empty ($navinfor['xinghao'])){

?>

/*列表区域*/

.list{width:100%;position:relative; margin:0 auto; background:#FFFFFF; overflow:auto;}

.list-con{float:left;width:250px;margin:10px 4px;}

.list-conpic{width:250px;}

.list-conpic img{width:250px;height: 250px !important;}

.list-conwz{width:250px; line-height:30px; font-size:18px;text-align:center;}

.qinleft{clear:left;}

$xinhao=$navinfor['xinghao'];

$mpr=explode('||||||',$xinhao);

foreach($mpr as $k=>$row){

$ws=explode('::::::',$row);

$ks=$ws[0];

$xh[$ks]=$ws[1];

$adc[$ks]['xinghao']=$ws[1];

$adc[$ks]['img']=$ws[2];

}

ksort($adc);

?>

$uu=0;

foreach ($adc as $value){

?>

"

alt="<?php echo $value[xinghao];?>" >

$uu=$uu+1;

?>

if (($uu%3)==0 ){

echo '

}

?>

}

?>

?>

【打印本页】

【关闭窗口】

原文链接:https://blog.csdn.net/weixin_29660659/article/details/116416696?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522166669233216782427439188%2522%252C%2522scm%2522%253A%252220140713.130102334.pc%255Fblog.%2522%257D&request_id=166669233216782427439188&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2~blog~first_rank_ecpm_v1~times_rank-24-116416696-null-null.nonecase&utm_term=%E5%B8%9D%E5%9B%BDcms

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注