账号通
    

账号  

密码  

2397

查看

5

回复
主题:自定义sql标签loop重复使用的问题 [收藏主题] 转到:  
aabbcc123 当前离线

72

主题

0

广播

0

粉丝
添加关注
级别:学前班

用户积分:961 分
登录次数:64 次
注册时间:2008/3/19
最后登录:2010/9/24
aabbcc123 发表于:2009/5/31 15:21:00   | 只看该作者 查看该作者主题 楼主 
做在线知识付费 选科汛云开店

在自定义标签中,loop循环好像只能用一次,第二次的循环内容是空白。不知大家有遇到我没有?但是它上面写的loop是可以重复使用的,但不能嵌套。

 

 
  支持(0) | 反对(0) 回到顶部顶端 回到底部底部
i3valen 当前离线

75

主题

0

广播

0

粉丝
添加关注
级别:学前班

用户积分:2420 分
登录次数:32 次
注册时间:2009/7/7
最后登录:2011/12/29
i3valen 发表于:2009/8/22 21:52:00   | 只看该作者 查看该作者主题 沙发 
科汛在线考试系统(NET)
在使用V6时,好像也发现这个问题
 
  支持(0) | 反对(0) 回到顶部顶端 回到底部底部
sdxpy 当前离线

185

主题

0

广播

0

粉丝
添加关注
级别:一年级

用户积分:2024 分
登录次数:128 次
注册时间:2007/5/17
最后登录:2009/12/12
sdxpy 发表于:2009/6/2 16:11:00   | 只看该作者 查看该作者主题 藤椅 
做在线知识付费 选科汛云开店
确实如此,我的也是,我就是专门上来找答案的,搜出来第一个问题就跟你一样,不知道是BUG还是我们没有操作对,再研究一下
 
  支持(0) | 反对(0) 回到顶部顶端 回到底部底部
aabbcc123 当前离线

72

主题

0

广播

0

粉丝
添加关注
级别:学前班

用户积分:961 分
登录次数:64 次
注册时间:2008/3/19
最后登录:2010/9/24
aabbcc123 发表于:2009/5/31 15:33:00   | 只看该作者 查看该作者主题 板凳 
科汛在线商城系统(NET)

前台源码(中间空白)


 


<!--焦点文字区域-->
<div id="f_text">


 


 


</div>


 


 


经测试:


[loop=5]123123[/loop]
<br>
[loop=5]321321[/loop]


 


下面那个loop依然是空白,新版本的bug吧。

 
  支持(0) | 反对(0) 回到顶部顶端 回到底部底部
aabbcc123 当前离线

72

主题

0

广播

0

粉丝
添加关注
级别:学前班

用户积分:961 分
登录次数:64 次
注册时间:2008/3/19
最后登录:2010/9/24
aabbcc123 发表于:2009/5/31 15:30:00   | 只看该作者 查看该作者主题 报纸 
做在线知识付费 选科汛云开店

select top 5 id,title,intro,picurl from KS_Article Where slide=1 and verific=1 order by id desc


 


<div id="f_div">
<!--图片区域-->
<div id="f_imgDiv">
[loop=5]
<a href="{$Field(id,GetInfoUrl,1,1)}" target="_blank"><img src="{$Field(picurl,Text,0,...,0,)}" border="0" /></a>
[/loop]

</div>
<div id="f_infoDiv">
<div id="f_line"></div>
<!--数字按钮区域-->
<div id="f_buttonDiv">
<div class="bg"><a href="javascript:void(0)" class="" focusclass="on" normalclass="">1</a></div> 
<div class="bg"><a href="javascript:void(0)" class="" focusclass="on" normalclass="">2</a></div> 
<div class="bg"><a href="javascript:void(0)" class="" focusclass="on" normalclass="">3</a></div> 
<div class="bg"><a href="javascript:void(0)" class="" focusclass="on" normalclass="">4</a></div> 
<div class="bg"><a href="javascript:void(0)" class="" focusclass="on" normalclass="">5</a></div> 
</div>
<div id="f_textbg"></div>
</div>
</div>
<!--焦点文字区域-->
<div id="f_text">
[loop=5]
<label><a href="{$Field(id,GetInfoUrl,1,1)}" target="_blank" class="noline white b">{$Field(title,Text,20,...,0,)}</a></label>
[/loop]
</div>
<script> 
var a=new PicFocus("f_imgDiv","f_text","f_buttonDiv","5000");//4000为切换时间,默认为5秒,此处指定4秒
a.init();
a.play();
</script>


 


 


最下面那个loop的内容始终是空白的。最新的5.52版测试!

 
  支持(0) | 反对(0) 回到顶部顶端 回到底部底部
cyy001 当前离线

2

主题

0

广播

0

粉丝
添加关注
级别:学前班

用户积分:30 分
登录次数:1 次
注册时间:2010/1/4
最后登录:2010/1/4
cyy001 发表于:2010/1/4 9:32:00   | 只看该作者 查看该作者主题 地板 
科汛在线商城系统(NET)
你总共才查了5条 ,loop了10条,当然还有5条是空的呢
 
  支持(0) | 反对(0) 回到顶部顶端 回到底部底部
<上一主题 | 下一主题 >
Powered By KesionCMS Version X1
厦门科汛软件有限公司 © 2006-2016 页面执行0.12500秒 powered by KesionCMS 9.0