K9 通用版 博客版 主题版 地方门户版 企业版 |   企业(ASP) 分类 使用 分享 疑问 模板 建议 帮助 错误 其他
+新建主题 [Ajax]
填写帐号密码即可完成注册
+新建话题 最新回复排序 最新主题排序 精华帖子

四级栏目的调用

1Next >

ahao303 发表于:12-12-03 12:10 编辑于:12-03 13:09 [添加收藏] 楼主 [回复] #Top#
ahao303 人气:152 积分:1877 金币:10882
KC元老

四级栏目的调用[图1]

 

栏目12.调用 Storage & Organizer 的这个

 

{king:dbquery.select table="%s__product" where="listid in(select listid from king_list where listid1=12)" orderby="kid desc" dynamic="skip"}
            <div id="bbox1"><a href="/{king:kpath/}"><img src="/{king:kimage /}" /></a>
<p><a href="/{king:kpath/}">{king:ktitle/}</a></p></div></a>{/king:dbquery.select}

              
            <div class="clear"></div>
        </div>
        <div class="quotes"><?php
            $pid=isset($_GET['pid']) ? kc_get('pid',2,1) :1;
            $number=isset($_GET['rn']) ? kc_get('rn',2,1) :16;

   $id="{king:listid/}";
   $url="/index.php/list-12-1.html?pid=PID&rn=RN";
  
  $count="{king:dbquery.count table='%s__product' where='listid in(select listid from king_list where listid1=12)' /}";
   echo kc_pagelist($url,$count,$pid,$number,null);
   ?></div>

栏目4.调用总的产品我用moder ID 可以

{king:dbquery.select table="%s__product" where="listid in(select listid from king_list where modelid=7)" orderby="kid desc" dynamic="skip"}
            <div id="bbox1"><a href="/{king:kpath/}"><img src="/{king:kimage /}" /></a>
<p><a href="/{king:kpath/}">{king:ktitle/}</a></p></div></a>{/king:dbquery.select}

              
            <div class="clear"></div>
        </div>
        <div class="quotes"><?php
            $pid=isset($_GET['pid']) ? kc_get('pid',2,1) :1;
            $number=isset($_GET['rn']) ? kc_get('rn',2,1) :16;

   $id="{king:listid/}";
   $url="/index.php/list-4-1.html?pid=PID&rn=RN";
  
   $count="{king:dbquery.count table='%s__product' where='listid in(select listid from king_list where modelid=7)' /}";
   echo kc_pagelist($url,$count,$pid,$number,null);
   ?></div>

 

 

那么栏目8我要调用这个Bag的标签我真想不出用啥招了

 

shwuliu 发表于:12-12-03 20:28 板凳 [回复] #Top#
shwuliu 人气:0 积分:29 金币:20
感觉是非常的复杂啊
ww715519816 发表于:12-12-03 21:02 4楼 [回复] #Top#
ww715519816 人气:0 积分:36 金币:40
哎 我真的很烦这个啊

1Next >

发表回复

帐号 匿名发布 审核后可见 [加载完整在线编辑器]
内容
验证码
KingCMS 内容管理系统

关于我们 联系我们 广告报价 付款方式 站点导航

Copyright © 2004-2015 Focuznet All rights reserved.

广州唯众网络科技有限公司 粤ICP备08008106号