联系官方销售客服

1835022288

028-61286886

开发框架 版主:迅睿框架研发组
详情我想改成否则循环标签不在循环我应该怎么改呢
类型:迅睿CMS 更新时间:2021-03-30 17:56:06
{php $php=1}
            {module module=newbook flag=1 num=12}
            {if $php ==1}
            <div class="left">
                <a href="{$t.url}" target="_blank">
                    <img src="{dr_thumb($t.thumb)}" width="349" height="220" />
                </a>
                <h5>
                    <a href="{$t.url}" target="_blank" title="{$t.title}">
                        {$t.title}
                    </a>
                </h5>
                <p>
                    {dr_strcut($t.description, 60, '...')}
                    <a href="{$t.url}" target="_blank" rel="nofollow">【详情】</a>
                </p> 
            </div>
            
            
     {else}
            <div class="right">
                <ul>
                    <li>
                        <a href="{$t.url}" target="_blank">{$t.title}</a>
                    </li>
                </ul>
            </div>
            {/if}
            {php $php++;}
             {/module}


我想改成否则循环 <li>标签    不在循环div  我应该怎么改呢

回帖
  • 迅睿框架技术-张洪
    #1楼    迅睿框架技术-张洪
    2021-03-30 17:42:16
    Chrome 0
    {php $php=1;}
                {module module=newbook flag=1 num=12}
                {if $php ==1}
                <div class="left">
                    <a  target="_blank" href="{$t.url}" target="_blank">
                        <img src="{dr_thumb($t.thumb)}" width="349" height="220" />
                    </a>
                    <h5>
                        <a  target="_blank" href="{$t.url}" target="_blank" title="{$t.title}">
                            {$t.title}
                        </a>
                    </h5>
                    <p>
                        {dr_strcut($t.description, 60, '...')}
                        <a  target="_blank" href="{$t.url}" target="_blank" rel="nofollow">【详情】</a>
                    </p> 
                </div>
                
                
                <div class="right">
                    <ul>
         {else}
                        <li>
                            <a  target="_blank" href="{$t.url}" target="_blank">{$t.title}</a>
                        </li>
                {/if}
                {php $php++;}
                 {/module}
                    </ul>
                </div>
    满意答案
  • 晓猛seo
    #2楼    晓猛seo
    2021-03-30 17:56:06
    Chrome 0
    @迅睿框架技术-张洪:原来是这样 谢谢 我没有考虑module 标签