威尼斯赌博游戏

channelartlist 循环判断样式带字栏目样式

来源: www.zngps.com| 2019-01-18 00:15
        {dede:channelartlist typeid='top'  row=11  currentstyle='current'}
          <li class="common {dede:field.currentstyle/}"><a href="{dede:field name='typeurl'/}" >{dede:field name='typename'/}</a>
            <ul {dede:field name=typeid runphp="yes"}
global $dsql;
$sql = "SELECT id From `dede_arctype` WHERE reid='@me' And ishidden<>1 order by sortrank asc limit 0, 100 ";
$row = $dsql->GetOne($sql);
@me=is_array($row)?'class="sub-nav"':'style="display:none"';
{/dede:field}>
            {dede:channel type='son'}
              <li><a href="[field:typeurl/]">[field:typename/]</a></li>
            {/dede:channel}  
            </ul>
          </li>
          {/dede:channelartlist} 

猜你喜欢
推荐
随机推荐
相关文档
Top
Baidu