0){ $url_ext = '/tag'.$tagid; } ?> {eyou:if condition='($type === 1 || $type === 5)'} {eyou:if condition='($type === 5)'} {/eyou:if} 通用文件 | 政策指引 {eyou:elseif condition='($type === 2)'} 通用文件 | 政策指引 {eyou:else /} 通用文件 | 政策指引 {/eyou:if}
{eyou:if condition='($con === 1)'} 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} {eyou:sql sql="select count(*) AS num from ey_archives where $where" cachetime='3600' empty='没有数据' id="res333"} {eyou:assign name='total_all' value='$res333.num' /} {/eyou:sql}
    url(); if (strpos($url, '-') !== false) { $url = explode('-',$url); $url = $url[0]; }else{ } $total = $total_all; $pagesize = 20; $total_page = ceil($total/$pagesize); //$curpage = $curpage; $total_page_for = $total_page + 1; $pro_page = $curpage - 1; $pev_page = $curpage + 1; ?> {eyou:if condition='((int)$total_page > 1)'} {eyou:if condition='((int)$curpage === 1)'}
  • 首页
  • 上一页
  • {eyou:else /}
  • 首页
  • {eyou:if condition='((int)$curpage === 2)'}
  • 上一页
  • {eyou:else /}
  • 上一页
  • {/eyou:if} {/eyou:if} {eyou:for start='1' end="$total_page_for"} {eyou:if condition='((int)$i === 1)'} {eyou:if condition='((int)$curpage === $i)'}
  • {$i}
  • {eyou:else /}
  • {$i}
  • {/eyou:if} {eyou:else /} {eyou:if condition='((int)$curpage === $i)'}
  • {$i}
  • {eyou:else /} 10){ if(((int)$curpage-2)<$i && ((int)$curpage+2)>$i || ((int)$total_page-1)<$i && ((int)$total_page+1)>$i || 0<$i && 2>$i){ ?>
  • {$i}
  • 3 && ((int)$curpage-2) === $i){ echo "
  • ...
  • "; } if(((int)$curpage+2) < $total_page && ((int)$curpage+2) === $i){ echo "
  • ...
  • "; }else{ } ?>
  • {$i}
  • {/eyou:if} {/eyou:if} {/eyou:for} {eyou:if condition='((int)$curpage === (int)$total_page)'}
  • 下一页
  • 末页
  • {eyou:else /}
  • 下一页
  • 末页
  • {/eyou:if} {/eyou:if} 共 {eyou:php} echo $total_page; {/eyou:php} {$total}
    {eyou:elseif condition='($con === 2)'} 0 and city_id='0' and is_del=0"; }else if((int)$provid > 0 && (int)$catid === 0){ //有职称的不调用出来 stypeid is null and stypeid='' $where = "typeid='825' and province_id='$provid' and city_id='0' and is_del=0"; }else if((int)$provid === 0 && (int)$catid > 0){ $where = "typeid='825' and province_id>0 and stypeid='$catid' and city_id='0' and is_del=0"; }else{ //都大于0 //stypeid 字段不使用 like $where = "typeid='825' and province_id='$provid' and stypeid='$catid' and city_id='0' and is_del=0"; } ?> {eyou:sql sql="select GROUP_CONCAT(aid SEPARATOR ',') AS ids from ey_archives where $where order by update_time desc" cachetime='3600' empty='没有数据' id="res2"} {eyou:empty name='$res2.ids' /} ----------------------(暂无相关文档)----------------------- {eyou:else /} {eyou:artlist idlist="$res2.ids" titlelen='30' infolen='160' orderby='update_time desc' addfields='handle_time'}
  • .{$extension} {$field.title}

    评审时间: {$field.handle_time}

  • {/eyou:artlist} {/eyou:empty} {/eyou:sql} {eyou:elseif condition='($con === 3)'} 0 and is_del=0"; }else if((int)$cityid > 0 && (int)$catid === 0){ //and stypeid='' $where = "typeid='825' and city_id='$cityid' and is_del=0"; }else if((int)$cityid === 0 && (int)$catid > 0){ //city_id>0 表示这是市级文档 只是这里调全部市级 $where = "typeid='825' and city_id>0 and stypeid='$catid' and is_del=0"; }else{ //都大于0 //stypeid 字段不使用 like $where = "typeid='825' and city_id='$cityid' and stypeid='$catid' and is_del=0"; } ?> {eyou:sql sql="select GROUP_CONCAT(aid SEPARATOR ',') AS ids from ey_archives where $where order by update_time desc" cachetime='3600' empty='没有数据' id="res3"} {eyou:empty name='$res3.ids' /} ----------------------(暂无相关文档)----------------------- {eyou:else /} {eyou:artlist idlist="$res3.ids" titlelen='30' infolen='160' orderby='update_time desc' addfields='handle_time'}
  • .zip {$field.title}

    评审时间: {$field.handle_time}

  • {/eyou:artlist} {/eyou:empty} {/eyou:sql} {eyou:elseif condition='($con === 4)'} {eyou:sql sql="select GROUP_CONCAT(aid SEPARATOR ',') AS ids from ey_archives where $where order by update_time desc" cachetime='3600' empty='没有数据' id="res4"} {eyou:empty name='$res4.ids' /} ----------------------(暂无相关文档)----------------------- {eyou:else /} {eyou:artlist idlist="$res4.ids" titlelen='30' infolen='160' orderby='update_time desc' addfields='handle_time'}
  • .zip {$field.title}

    评审时间: {$field.handle_time}

  • {/eyou:artlist} {/eyou:empty} {/eyou:sql} {eyou:else /} {/eyou:if}