PhpCms实战首页调用备份---权威专家

  权威专家这块经常让人头疼,类似效果最多,效果如下:

  具体代码调用如下:

          A.栏目切换

 {pc:content action="lists" catid="71" num="7" moreinfo="1" order="listorder asc"}
          {php $num05=0;}
          {loop $data $r}
          {php $num05++;}
          <li id="p5_tab<?php echo $num05;?>" onmouseover="swtab(<?php echo $num05;?>,'p5',7);" class="{if $num05==1}s1{else}{/if}">
            <dl>
              <dd class="green">{$r[title]}</dd>
              <span>|</span>
              <dd> {str_cut($r[zhiwei],20)} </dd>
              <span>|</span>
              <dd>主治:{str_cut($r[zhuzhi],32,'')}</dd>
              <span >|</span>
              <dd class="ora1"><a href="/swt.html">预约</a></dd>
            </dl>
          </li>
          {/loop}
          {/pc}


           B.具体内容切换:

  {pc:content action="lists" catid="71" num="7" moreinfo="1" order="listorder asc"}
        {php $num02=0;}
        {loop $data $r}
        {php $num02++;}
        <div id="p5_tabc<?php echo $num02;?>" class="{if $num02==1}dis{else}undis{/if}">
          <div class="p3main"> <img src="{$r[xthumb]}" width="98" height="144" /> <span>{$r[title]}</span><span> {str_cut($r[zhiwei],20)}</span>
            <p>{str_cut($r[description],150)}<a href="{$r[url]}" target="_blank" >...[详细]</a></p>
          </div>
        </div>
        {/loop}
        {/pc}


 

猜你喜欢

转载自blog.csdn.net/fan_geduo/article/details/33732183