如题,我是想子栏目页中通过
<div style="background:#3498DB url([!--class.classimg--]) no-repeat 50% 0;">
这句调用父栏目图片做背景,在一级栏目封面模板中调出没问题,我想这个父栏目下的子栏目也都使用这个图片背景,
最好不用灵动标签调出,用其他的方法调出最好!先谢谢各位!
答:
要用灵动标签sql调用,父栏目ID用
$class_r[$GLOBALS[navclassid]][bclassid]
代码示例
灵动标签SQL调用:select * from phome_enewsclass where classid='".$class_r[$GLOBALS[navclasid]][bclassid]."'
有问题的代码:
[e:loop={" select * from phome_enewsclass where classid='".$class_r[$GLOBALS[navclasid]][bclassid]."' ",1,24,0}]
<div style="background:#3498DB url(<?=$bqr[classimg]?>) no-repeat 50% 0;">
[/e:loop]
正确的代码:
<div style="background:#3498DB url(<?=$empire->gettotal("select classimg as total from {$dbtbpre}enewsclass where classid={$class_r[$navclassid][bclassid]} limit 1")?>) no-repeat 50% 0;">
http://bbs.phome.net/showthread-13-348398-0.html
aipay无法跳转充值,咋整呢
用了几天,发现不分联通电信,在傍晚高峰期都会变得很慢。总体能用,这么便宜还要什么自行车
另外联通测速很好 10M+,电信下载只有100k,上传倒是很快