<div class="part"> <div class="bar clearfix"> <h1 class="tt"> <a href="{$web_domain}{$web_url}">{$eyou.field.title}</a> </h1> <div class="r-intro fr"> <span class="data fr"> <small class="info"> <i class="fa fa-clock-o"></i>{$eyou.field.update_time|MyDate="Y-m-d",###} </small> <small class="info"> <i class="fa fa-eye"></i> {$eyou.field.click} </small> <script src="https://www.zc10000.com/index.php?m=api&c=Ajax&a=arcclick&type=view&aids={$doc_aid}" type="text/javascript" language="javascript"></script> <!-- <small class="info btn-c" id="share_btn" title="{$eyou.field.title}" aid="{$eyou.field.aid}" style="margin-left: 15px;cursor: pointer;"> 点击分享 </small> <div style="display: none;" id="share-box"> <div class="social-share"></div> </div> --> </span> </div> </div> <div class="items"> <div class="row post-single"> <div class="col-xs-12 col-sm-12 col-md-8"> <div class="pic fl"> <div class="blur blur-layer" style="background: transparent url({$eyou.field.litpic}) no-repeat center center;-webkit-background-size: cover;-moz-background-size: cover;-o-background-size: cover;background-size: cover;animation: rotate 20s linear infinite;"> </div> <img class="img-cover" src="https://www.zc10000.com/public/static/common/images/ico/{$eyou.field.ext}.png" alt="{$eyou.field.title}" title="{$eyou.field.title}"> </div> <div class="list list-detail"> <?php //获取标签 //product_tag_id $product_tag_id = $eyou['field']['product_tag_id']; function convertBytesToMB($bytes) { return $bytes / 1024 / 1024; } if(empty($eyou['field']['size'])){ if(empty($eyou['field']['down'])){ $fileSize = 0; }else{ $remoteFile = $eyou['field']['down']; $headers = get_headers($remoteFile, true); $fileSize = $headers['Content-Length']; } }else{ $fileSize = $eyou['field']['size']; } $fileSize = convertBytesToMB($fileSize); $fileSize = number_format($fileSize, 2).'M'; //var_dump($fileSize); ?> {eyou:if condition='((int)$product_tag_id > 0)'} {eyou:sql sql="select aid,title from ey_archives where aid=$product_tag_id" cachetime='3600' empty=''} <?php $tag_name = $field['title']; ?> {/eyou:sql} {/eyou:if} <p><font>文档名称:</font><a href="{$web_domain}{$web_url}">{$eyou.field.title}</a></p> <p class="cate"><font>所属标签:</font> <a href="https://www.zc10000.com/tag{$tag_number}" target="_blank" >{$tag_name}</a></p> <p class="site"> {eyou:if condition='($is_mobile === false)'} <font>文件大小:</font> {$fileSize} <font>上传时间:</font> {$eyou.field.update_time|MyDate="Y-m-d",###} <font>下载次数:</font> {$eyou.field.downcount} {eyou:else /} <font>上传时间:</font> {$eyou.field.update_time|MyDate="Y-m-d",###} <br/> <font>文件大小:</font> {$fileSize} <font>下载次数:</font> {$eyou.field.downcount} {/eyou:if} </p> <p class="seo"> <!--SEO查询: <a class="" href="javascript:;" target="_self"><i class="fa fa-bar-chart"></i></a> <a class="pczz" href="javascript:;" target="_self"><i class="fa fa-bar-chart"></i></a> <a class="mzz" href="javascript:;" target="_self"><i class="fa fa-bar-chart"></i></a> --> {eyou:empty name='$eyou.field.zylm' /} <font>文档简介:</font> {$eyou.field.seo_description|msubstr=###,0,100,true} {eyou:else /} <font>文档简介:</font> {$eyou.field.zylm|msubstr=###,0,100,true} {/eyou:empty} </p> <?php if(!empty($eyou['field']['down'])){ ?> <a class="btn transition" target="_self" href="javascript:;" id="down_btn" title="{$eyou.field.title}" aid="{$eyou.field.aid}"> 下载文档 <i class="fa fa-chevron-circle-right"></i> </a> <?php }else{ ?> <a class="btn transition" target="_self" href="javascript:;" > 暂无文档 <i class="fa fa-chevron-circle-right"></i> </a> <?php } ?> </div> </div> </div> </div> </div> <div class="part"> <p class="tt"><span>文档介绍</span></p> <div class="items"> <div class="art-main"> {eyou:if condition='($is_mobile === false)'} {$eyou.field.content_5} {eyou:else /} {eyou:empty name='$eyou.field.content_4' /} {$eyou.field.content_5} {eyou:else /} {$eyou.field.content_4} {/eyou:empty} {/eyou:if} </div> </div> </div> <div class="part related" style="padding: 10px 15px;"> <div class="col-xs-12 col-sm-6 col-md-6 b"> <span class="b1">上一篇:</span> <?php //var_dump($number); $sql = "SELECT * FROM ey_seo_number WHERE id = (SELECT id FROM ey_seo_number WHERE number<$number and tid=1232 and is_del=0 and type=2 and area_id=$area_id ORDER BY number desc LIMIT 1)"; ?> <span class="bb3"> {eyou:sql sql="$sql" cachetime='3600' empty='无' id='kp'} {eyou:arcview aid='$kp.aid'} {eyou:if condition='((int)$field.is_del === 0)'} <a href="https://www.zc10000.com/zx{$kp.number}" class="b2">{$field.title}</a> {eyou:else /} 文档已删除 {/eyou:if} {/eyou:arcview} {/eyou:sql} </span> </div> <div class="col-xs-12 col-sm-6 col-md-6 b bb" style=""> <span style="" class="b1">下一篇:</span> <?php $sql = "SELECT * FROM ey_seo_number WHERE id = (SELECT id FROM ey_seo_number WHERE number>$number and tid=1232 and is_del=0 and type=2 and area_id=$area_id ORDER BY number asc LIMIT 1)"; //echo $sql; ?> <span class="bb3"> {eyou:sql sql="$sql" cachetime='3600' empty='无' id='kp'} {eyou:arcview aid='$kp.aid'} {eyou:if condition='((int)$field.is_del === 0)'} <a href="https://www.zc10000.com/zx{$kp.number}" style="" class="b2">{$field.title}</a> {eyou:else /} 文档已删除 {$field.title|msubstr=###,0,10,true} {/eyou:if} {/eyou:arcview} {/eyou:sql} </span> </div> <div class="clear"></div> </div> <div class="part related"> <p class="tt"><span>相关政策文件</span></p> <div class="items"> <div class="row"> <?php if($areaname === 0){ $where = " and area_tag_id=".$area_id." and aid!=".$doc_aid; }else{ //没有区域 要排除其他区域 $where = " and area_tag_id=0 and aid!=".$doc_aid; } //product_tag_id //$tid if((int)$product_tag_id === 0){ $where = " typeid=".$tid." and is_del=0 and status=1 and province_id=0 and product_tag_id=0 ".$where." OR typeid=".$tid." and is_del=0 and status=1 and province_id=0 and product_tag_id>0".$where; //and is_recom=1 }else{ $where = " typeid=".$tid." and is_del=0 and status=1 and province_id=0 ".$where." OR typeid=".$tid." and is_del=0 and status=1 and province_id=0 and product_tag_id=".$product_tag_id.$where; //and is_recom=1 //and product_tag_id=0 } $sql = "select aid from ey_archives where $where order by product_tag_id desc,update_time desc limit 0,6"; //echo $sql; ?> <?php $num = 0; ?> {eyou:sql sql='$sql' cachetime='3600' id="listSql"} {eyou:arcview aid='$listSql.aid'} <?php $a_url = get_tid_url_2($field['arcurl'],$field['typeid'],$field['stypeid'],'0','',0,$field['area_tag_id'],$field['city_id']); $num++; ?> {eyou:include file='/template/pc/components/goods/zc.htm' /} {/eyou:arcview} {/eyou:sql} <?php $num = 6-$num; //var_dump($num); //再补充的数量 if($areaname === 0){ $where = " and area_tag_id!=".$area_id." and aid!=".$doc_aid; }else{ //补充场景 前面区域为0 这里要大于0 $where = " and area_tag_id>0 and aid!=".$doc_aid; //and area_tag_id=0 } if((int)$product_tag_id === 0){ $where = " typeid=".$tid." and is_del=0 and status=1 and province_id=0 and product_tag_id=0 ".$where." OR typeid=".$tid." and is_del=0 and status=1 and province_id=0 and product_tag_id>0".$where; //and is_recom=1 }else{ $where = " typeid=".$tid." and is_del=0 and status=1 and province_id=0 ".$where." OR typeid=".$tid." and is_del=0 and status=1 and province_id=0 and product_tag_id=".$product_tag_id.$where; //and is_recom=1 //and product_tag_id=0 } //优先标签前置 $sql = "select aid from ey_archives where $where order by product_tag_id desc,click desc,update_time desc limit 0,".$num; //var_dump($sql); ?> {eyou:sql sql='$sql' cachetime='3600' id="listSql"} {eyou:arcview aid='$listSql.aid'} <?php $a_url = get_tid_url_2($field['arcurl'],$field['typeid'],$field['stypeid'],'0','',0,$field['area_tag_id'],$field['city_id']); ?> {eyou:include file='/template/pc/components/goods/zc.htm' /} {/eyou:arcview} {/eyou:sql} </div> </div> </div> <div class="part related"> <p class="tt"><span>相关申报材料</span></p> <div class="items"> <div class="row"> <?php //product_tag_id //$tid if((int)$product_tag_id === 0){ $where = " typeid=1233 and is_del=0 and status=1 and province_id=0 and product_tag_id=0 OR typeid=1233 and is_del=0 and status=1 and province_id=0 and product_tag_id>0"; //and is_recom=1 }else{ $where = " typeid=1233 and is_del=0 and status=1 and province_id=0 OR typeid=1233 and is_del=0 and status=1 and province_id=0 and product_tag_id=$product_tag_id"; //and is_recom=1 //and product_tag_id=0 } $sql = "select aid from ey_archives where $where order by product_tag_id desc,click desc,update_time desc limit 0,6"; //echo $sql; ?> {eyou:sql sql='$sql' cachetime='3600' id="listSql"} {eyou:arcview aid='$listSql.aid'} <?php $ar_url = get_tid_url_2($field['arcurl'],$field['typeid'],$field['stypeid'],'0','',0,$field['province_id'],$field['city_id']); ?> <div class="col-xs-6 col-sm-4 col-md-2 font-563-active-{$i}"> <div class="item art-item transition cl-img-box"> <a class="art-a" href="{$ar_url}" title="" > <img class="img-cover cl-img" src="{$field.litpic}" alt="" title=""> </a> <h3 class="art-title cl-art-title" style=""> {eyou:if condition='((int)$field.is_recom === 1)'} <i class="more2_info_self">推荐</i> {/eyou:if} <a class="" href="{$ar_url}" title="{$field.title}" > {$field.title|msubstr=###,0,30,true} </a> </h3> <div class="mod_price"> <i>¥</i> <span class="more2_info_price_txt">{$field.users_price}.<span class="more2_info_price_txt-decimal">00</span> </span> </div> </div> </div> {/eyou:arcview} {/eyou:sql} </div> </div> </div>