这段代码什么意思?? {wc:getlist sql="select * from `@#_slide` where 1 "return="slides"}
{wc:getlistsql="select*from`@#_slide`where1"return="slides"}<divclass="demo"style="wi...
{wc:getlist sql="select * from `@#_slide` where 1 "return="slides"}
<div class="demo" style="width:710px;height:440px;margin-left:233px;">
<ul> {wc:loop $slides $slide}
{wc:if $ln == 1}
<li style="display:list-item;">
<a href="{wc:$slide['link']}" target="_blank"><img src=" {G_UPLOAD_PATH}/{wc:$slide['img']}">
</a>
</li>
{wc:else}
<li style="display:none;">
<a href="{wc:$slide['link']}" target="_blank"><img src="{G_UPLOAD_PATH}/{wc:$slide['img']}">
</a>
</li>
{wc:if:end}
{wc:loop:end}
</ul>
<div class="num">
{wc:php:start}
for($i=1;$i<=count($slides);$i++){
echo '<a class="">'.$i.'</a>' ;}
{wc:php:end}
</div>
</div>
{wc:getlist:end} 展开
<div class="demo" style="width:710px;height:440px;margin-left:233px;">
<ul> {wc:loop $slides $slide}
{wc:if $ln == 1}
<li style="display:list-item;">
<a href="{wc:$slide['link']}" target="_blank"><img src=" {G_UPLOAD_PATH}/{wc:$slide['img']}">
</a>
</li>
{wc:else}
<li style="display:none;">
<a href="{wc:$slide['link']}" target="_blank"><img src="{G_UPLOAD_PATH}/{wc:$slide['img']}">
</a>
</li>
{wc:if:end}
{wc:loop:end}
</ul>
<div class="num">
{wc:php:start}
for($i=1;$i<=count($slides);$i++){
echo '<a class="">'.$i.'</a>' ;}
{wc:php:end}
</div>
</div>
{wc:getlist:end} 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询