0 and city_id='0' and is_del=0"; $where = "typeid=".$tyid[$type]." and is_del=0"; }else if((int)$provid > 0 && (int)$catid === 0){ //只选择省 不选择职称 $where = "typeid=".$tyid[$type]." and province_id='$provid' and city_id='0' and is_del=0"; }else{ //职称 > 0 那么理论上省=0或>0 但这里省必定>0 $where = "typeid=".$tyid[$type]." and province_id='$provid' and stypeid='$catid' and city_id='0' and is_del=0"; } if($tagid > 0){ //加入筛选 $where = $where.' and product_tag_id='.$tagid; } if(!empty($wareaname) && $wareaname == 'shandong'){ //查询id $where = $where.' and area_tag_id=10000'; } ?> {eyou:php} //计算limit属性 $pagesize = 20; if(!empty($route_param['pa'])){ $curpage = $route_param['pa']; $start_li = $pagesize*($curpage-1); //开始位置 $end_li = $pagesize*$curpage; $limit_cat_value = $start_li.','.$pagesize; }else{ $curpage = 1; $limit_cat_value = '0,'.$pagesize; } {/eyou:php} {eyou:assign name='limit_cat' value="$limit_cat_value" /} {eyou:sql sql="$sql" cachetime='3600' empty='没有数据' id="res"} {/eyou:sql} {eyou:empty name='$ids' /} ----------------------(暂无相关文档)----------------------- {eyou:else /} {eyou:artlist idlist="$ids" titlelen='30' infolen='160' limit="0,20" orderby='update_time desc' addfields='down'}
  • .{$extension} {$field.title}

    阅读量: {$field.click} 收藏量: {$field.collection} 点赞量: {$field.likecount} 下载量: {$field.downcount}

  • {/eyou:artlist} {/eyou:empty}