联系官方销售客服

1835022288

028-61286886

POSCMS 版主:POSCMS负责人
内容关联多条相同信息,前端只展示了1条,求修改展示调用
类型:POSCMS 更新时间:2018-05-20 11:22:45


image.png

内容id为 6


前端代码:


{if $c8}
     {list action=module module=shangpin IN_id=$c8 }
        <td valign="bottom">
          <table border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td width="{$t.kuandu}" height="{$t.gaodu}"><a target="_blank" href="{$t.url}" ><img src="{dr_thumb($t.thumb)}"  width="{$t.kuandu}" height="{$t.gaodu}"></a></td>
            </tr>
            <tr>
              <td height="65" valign="bottom">
              
              <table width="" height="" border="0" cellpadding="2" cellspacing="0">
     
                  <tr style="border:1px solid #00CC33">
                    <td colspan="2" bgcolor="#FFFFFF" height="15"  style="border:1px solid #00CC33"><span style="font-size:9px;">{dr_strcut($t.title, 12)}</span></td>
                  </tr>
                 
    
              </table>
             
     </td>
            </tr>
          </table>
        </td>
  {/list}
  {/if}


前端调用显示:


image.png

只显示了1条,数据4条前段应该显示4条,求调用修改!


回帖
  • 可接二开、定制、使用解答
    #1楼    可接二开、定制、使用解答
    2018-05-20 11:16:31
    0

    {list action=module module=shangpin IN_id=$c8 } 这句话不行的

    改成
    {php $c8=explode(',',$c8);}
    {loop $c8 $i}
     {list action=module module=shangpin id=$i} 
     
     {$t.title}
     .....
     {/list}
    {/loop}


    满意答案
  • 晕菜菜
    #2楼    晕菜菜
    2018-05-20 11:22:45
    0
    不错,是这样