当前位置: 代码迷 >> PHP >> smarty 循环,该怎么解决
  详细解决方案

smarty 循环,该怎么解决

热度:846   发布时间:2013-04-21 21:18:07.0
smarty 循环

Array
(
    [0] => Array
        (
            [title] => testtile
           
            [advantage] => 三三四四
            [fault] => 三三四四
            [rank] => 4
            [time] => 1364364088
            [pic] => Array
                (
                    [0] => ../../i/uploadpic/1364367652985664.gif
                    [1] => ../../i/uploadpic/1364367662409433.gif
                    [2] => ../../i/uploadpic/1364367672711762.gif
                    [3] => 0
                    [4] => 0
                )

        )

    [1] => Array
        (
            [title] => 晒单测试1111111
   
            [advantage] => 晒单测试1111111
            [fault] => 晒单测试1111111
            [rank] => 5
            [time] => 1364364271
            [pic] => Array
                (
                    [0] => ../../i/uploadpic/1364367652985664.gif
                    [1] => ../../i/uploadpic/1364367662409433.gif
                    [2] => ../../i/uploadpic/1364367672711762.gif
                    [3] => 0
                    [4] => 0
                )

        )

)
<!--{foreach from=$evaluate item=comment}-->
    <!--{foreach from=$comment.pic item=child}-->