联系官方销售客服

1835022288

028-61286886

开发框架 版主:迅睿框架研发组
联动菜单要怎么调用呀在页面我的联动菜单名称是地标地段全太原小
类型:迅睿CMS 更新时间:2020-05-04 17:04:28

联动菜单要怎么调用呀。

在list页面, 我的联动菜单名称是zsdq

    <div class="lefttit">地标地段</div>
    <div class="rs">
	
	
        <div onclick="javascript:location.href='/index.php?m=&c=Jobs&a=jobs_list&citycategory=taiyuan'" class="li select">全太原</div>
        <div onclick="javascript:location.href='/index.php?m=&c=Jobs&a=jobs_list&citycategory=xiaodianqu'" class="li ">小店区</div>
		<div onclick="javascript:location.href='/index.php?m=&c=Jobs&a=jobs_list&citycategory=yingzequ'" class="li ">迎泽区</div>
		<div onclick="javascript:location.href='/index.php?m=&c=Jobs&a=jobs_list&citycategory=xinghualingqu'" class="li ">杏花岭区</div>
		<div onclick="javascript:location.href='/index.php?m=&c=Jobs&a=jobs_list&citycategory=jiancaopingqu'" class="li ">尖草坪区</div>
		<div onclick="javascript:location.href='/index.php?m=&c=Jobs&a=jobs_list&citycategory=wanbailinqu'" class="li ">万柏林区</div>
		<div onclick="javascript:location.href='/index.php?m=&c=Jobs&a=jobs_list&citycategory=jinyuanqu'" class="li ">晋源区</div>
		<div onclick="javascript:location.href='/index.php?m=&c=Jobs&a=jobs_list&citycategory=qingxuxian'" class="li ">清徐县</div>
		<div onclick="javascript:location.href='/index.php?m=&c=Jobs&a=jobs_list&citycategory=yangquxian'" class="li ">阳曲县</div>
		<div onclick="javascript:location.href='/index.php?m=&c=Jobs&a=jobs_list&citycategory=loufanxian'" class="li ">娄烦县</div>
		<div onclick="javascript:location.href='/index.php?m=&c=Jobs&a=jobs_list&citycategory=gujiaoshi'" class="li ">古交市</div>			
		<div class="clear"></div>
    </div>


回帖
  • #1楼    迅睿框架创始人
    2020-05-04 16:30:02
    Chrome 0
  • 帝云网络-
    #2楼    帝云网络-
    2020-05-04 16:41:47
    Chrome 0
    支持二级
    <!--按联动菜单搜索-->
    <div class="form-group row">
        <label class="col-md-2 control-label">一级联动</label>
        <div class="col-md-10">
            <?php 
            $tp = dr_linkage('zsdq', $params.zp_gzdq);
            if ($tp.pid) {
                $tp = dr_linkage('zsdq', $tp.pid);
            }
            $tpid = $tp.id;
            $pids = explode(',', $tp.childids);
            ?>
    
            <label><a class="label {if !$params.zp_gzdq}label-success{else}label-default{/if}"   target="_blank" href="{Router::search_url($params, 'zp_gzdq', NULL)}">不限</a></label>
            <!--调用联动菜单zsdq,pid为动态获取的地区id-->
            {linkage code=zsdq pid=0}
            <label><a class="label {if in_array($t.ii, $pids)}label-success{else}label-default{/if}"   target="_blank" href="{Router::search_url($params, 'zp_gzdq', $t.id)}">{$t.name}</a></label>
            {/linkage}
        </div>
    </div>
    {if $tp.child}
    <div class="form-group row">
        <label class="col-md-2 control-label">二级联动</label>
        <div class="col-md-10">
    
            <label><a class="label {if $tpid == dr_linkage('zsdq', $params.zp_gzdq, 0, 'id')}label-success{else}label-default{/if}"  target="_blank" href="{Router::search_url($params, 'zp_gzdq', $tpid)}">不限</a></label>
            <!--调用联动菜单zsdq,pid为动态获取的地区id-->
            {linkage code=zsdq pid=$tpid}
            <label><a class="label {if $t.id==$params.zp_gzdq}label-success{else}label-default{/if}"   target="_blank" href="{Router::search_url($params, 'zp_gzdq', $t.id)}">{$t.name}</a></label>
            {/linkage}
        </div>
    </div>
    {/if}
    满意答案
  • 五金冲压件
    #3楼    五金冲压件
    2020-05-04 17:04:28
    Chrome 0
    @帝云网络-:111111111111