<?php
header("Content-type: text/html; charset=UTF-8");
include "../ltx-upfile/lanmuINFO.php";
function fun_each(&$array){
$res = array();
$key = key($array);
if($key !== null){
next($array);
$res[1] = $res['value'] = $array[$key];
$res[0] = $res['key'] = $key;
}else{
$res = false;
}
return $res;
}
function fun_count($array_or_countable,$mode = COUNT_NORMAL){
$res = 0;
if(is_array($array_or_countable) || is_object($array_or_countable)){
$res = count($array_or_countable, $mode);
}
return $res;
}
function get_encoding($str = "") {
$encodings = array (
'ASCII',
'UTF-8',
'GBK'
);
foreach ( $encodings as $encoding ) {
if ($str === mb_convert_encoding ( mb_convert_encoding ( $str, "UTF-32", $encoding ), $encoding, "UTF-32" )) {
return $encoding;
}
}
return false;
}
//取中间文本
function getSubstr($input, $start, $end)
{
$substr = substr($input, strlen($start)+strpos($input, $start),
(strlen($input) - strpos($input, $end))*(-1));
return $substr;
}
function fun_left($string, $beginIndex, $length){
if(strlen($string) < $length){
return substr($string, $beginIndex);
}
$char = ord($string[$beginIndex + $length - 1]);
if($char >= 224 && $char <= 239){
$str = substr($string, $beginIndex, $length - 1);
return $str;
}
$char = ord($string[$beginIndex + $length - 2]);
if($char >= 224 && $char <= 239){
$str = substr($string, $beginIndex, $length - 2);
return $str;
}
return substr($string, $beginIndex, $length);
}
//遍历目录下文件方法
function printdir($dir)
{
$files = array();
$fileArr=array();
if(!file_exists($dir))
{
return $files;
}
//opendir() 打开目录句柄
if($handle = @opendir($dir)){
//readdir()从目录句柄中(resource,之前由opendir()打开)读取条目,
// 如果没有则返回false
while(($file = readdir($handle)) !== false){//读取条目
if( $file != ".." && $file != "."){//排除根目录
if(is_dir($dir . "/" . $file)) {//如果file 是目录,则递归
$files[$file] = printdir($dir . "/" . $file);
} else {
list($filesname,$ext)=explode(".",$file);
if($ext=="html" or $ext=="htm" or $ext=="php" or $ext=="jsp" or $ext=="asp" or $ext=="aspx") {
if($file!='index.php'){
//获取文件修改日期
$filetime = date('Y-m-d H:i:s', filemtime($dir . "/" . $file));
//文件修改时间作为健值
$files[$dir.$file] = $filetime;
}
}
}
}
}
@closedir($handle);
arsort($files);
foreach($files as $key=>$value)
{
$tmp[$key]=$value;
array_push($fileArr,$tmp);
$tmp=array();
}
return $fileArr;
}
}
function getlmArticle($lanmuWJJarr,$Qty,$mobanStr,$lanmuListarr,$summaryQty){
$htmls="";
$fileList=array();
$WJJarr=array();
if(!is_array($lanmuWJJarr)){
//global $lanmuINFO;
$n=sizeOf($lanmuListarr);
if($n<=0){return $htmls;}
for($w=0; $w<$n; ++$w){
$lanmu = fun_each($lanmuListarr);
$lanmuName=$lanmu[0];
$lanmuWJJ=$lanmu[1];
//print_r($lanmuWJJ);
array_push($WJJarr,"../".$lanmuWJJ."/");
}
} else {
$WJJarr=$lanmuWJJarr;
}
//print_r($WJJarr);
$lmQty=sizeOf($WJJarr);
for($a=0; $a<$lmQty; ++$a){
$lanmuName=$WJJarr[$a];
$tmpFilesArr=printdir($lanmuName);
$m=sizeOf($tmpFilesArr);
for($b=0; $b<$m; ++$b){
foreach($tmpFilesArr[$b] as $key=>$value)
{
$fileList[$key]=$value;
}
}
}
arsort($fileList);
$m=sizeOf($fileList);
if($Qty>$m){$Qty=$m;}
for($q=0; $q<$Qty; ++$q){
$thisFile = fun_each($fileList); //返回键值和键名,赋值给函数
$thisName =$thisFile[0]; //函数的一维就是文件名,函数的第二维是时间 $timeTime = $thisFile[1];
$fileTime = $thisFile[1];
//print_r($thisName);
if(file_exists($thisName)){
$str = file_get_contents($thisName);//将整个文件内容读入到一个字符串中
$title=getSubstr($str,'<!!','!!>');
//echo getSubstr($str,'<!正文内容!>','<!/正文内容!>');
$summary=fun_left(strip_tags(getSubstr($str,'<!正文内容!>','<!/正文内容!>')),0,$summaryQty);
}
//$htmls=$htmls."$thisName";
$html=str_replace("{标题}",$title,$mobanStr);
$html=str_replace("{链接}",$thisName,$html);
$html=str_replace("{日期}",$fileTime,$html);
$html=str_replace("{摘要}",$summary,$html);
$htmls=$htmls.$html;
}
return $htmls;
}
function getlanmu($lanmuArr,$mobanStr){
$htmls="";
global $lanmuINFO;
$m=sizeOf($lanmuINFO);
if($m<=0){return $htmls;}
for($q=0; $q<$m; ++$q){
$lanmu = fun_each($lanmuINFO);
$lanmuName=$lanmu[0];
$lanmuWJJ=$lanmu[1];
if(file_exists("../".$lanmuWJJ)){
$html=str_replace("{标题}",$lanmuName,$mobanStr);
$html=str_replace("{链接}","../".$lanmuWJJ."/",$html);
$htmls=$htmls.$html;
}
}
return $htmls;
}
function getlink($linkArr,$mobanStr){
$htmls="";
$m=sizeOf($linkArr);
if($m<=0){return $htmls;}
for($q=0; $q<$m; ++$q){
$link = fun_each($linkArr);
$linkName=$link[0];
$url=$link[1];
$html=str_replace("{标题}",$linkName,$mobanStr);
$html=str_replace("{链接}",$url,$html);
$htmls=$htmls.$html;
}
return $htmls;
}
$dir = "./";
$filesArr=printdir($dir);
$i=sizeOf($filesArr);
$page=isset($_GET['page'])?$_GET['page']:0;//从零开始
$pagesize=45;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1">
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<title>不锈钢板加工- 佛山金豪壁不锈钢有限公司</title>
<meta name="keywords" content="不锈钢板加工" />
<meta name="description" content="广东佛山金豪壁不锈钢公司是一家专业的不锈钢板加工。找不锈钢板加工就选金豪壁不锈钢0757-29399738" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="http://www.jinhaobi.com/css/resetcommonindex2.css" rel="stylesheet" type="text/css" />
<link href="http://www.jinhaobi.com/css/Style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="http://www.jinhaobi.com/js/NSW_Index.js"></script>
<!-- jinhaobi.com Baidu tongji analytics -->
<script>
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?a9f67843137ac498d8fea7cdfbab9eaa";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
</head>
<body><script>
(function(){
var bp = document.createElement('script');
var curProtocol = window.location.protocol.split(':')[0];
if (curProtocol === 'https'){
bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';
}
else{
bp.src = 'http://push.zhanzhang.baidu.com/push.js';
}
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(bp, s);
})();
</script><script>
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?56bf766da13b3fff89c6e55361fa23ec";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
<div class="g_top">
<div class="header f_fw">
<p class="m_zc"> <span class="fr" id="commonHeaderGuest"><a href="http://www.jinhaobi.com/feedback.php" title="在线留言">在线留言</a> <a href="http://www.jinhaobi.com/sitemap.xml">网站地图</a> <a href="http://www.jinhaobi.com/contact.php" title="联系我们">联系我们</a> </span> 欢迎来到金豪壁不锈钢加工!</p>
</div>
<div class="g_top2">
<div class="header f_fw">
<div class="m_hcon" style="position:relative">
<div class="u_tel f_fr"> <span>产品咨询热线</span><b>13690615380</b> </div>
<h1 class="fl"><a href="#" title=""> <img src="http://www.jinhaobi.com/images/logo.png" alt="" title="不锈钢板加工"></a></h1>
<p> <span>12年专注不锈钢板加工</p>
</div>
</div>
</div>
</div>
<div class="menu">
<div class="content headerMenu">
<ul>
<li><a href="http://www.jinhaobi.com/" title="首页"><span>网站首页</span></a></li>
<li><a href="http://www.jinhaobi.com/about.php" rel="nofollow" title="关于金豪壁"><span>关于金豪壁</span></a></li>
<li><a href="http://www.jinhaobi.com/product.php" title="产品中心"><span>产品中心</span></a></li>
<li><a href="http://www.jinhaobi.com/case.php" title="工程案例"><span>工程案例</span></a></li>
<li><a href="http://www.jinhaobi.com/production.php" title="加工车间"><span>加工车间</span></a></li>
<li class="cur"><a href="http://www.jinhaobi.com/news.php" title="新闻资讯"><span>新闻资讯</span></a></li>
<li><a href="http://www.jinhaobi.com/feedback.php" rel="nofollow" title="在线留言"><span>在线留言</span></a></li>
<li><a href="http://www.jinhaobi.com/contact.php" rel="nofollow" title="联系金豪壁"><span>联系金豪壁</span></a></li>
</ul>
</div>
</div>
<div class="clear"> </div>?<div class="sea_key">
<div class="content">
<div class="search fr">
<input type="text" class="inp01" value="请输入您要搜索的关键词" id="seachkeywords" onfocus="this.value=''" style="color:#000"/>
<input type="button" class="inp02" value="搜索" onclick="SearchObjectByGet('seachkeywords,kwd','http://www.jinhaobi.com/search/index.aspx?objtype=product')" />
</div>
<div class="keywords">
<p> <b>热门关键词:</b><a href="http://www.jinhaobi.com/" target="_blank"><strong>不锈钢板加工</strong></a><a href="http://www.jinhaobi.com/" target="_blank"><strong>不锈钢花纹板</strong></a> </p>
</div>
</div>
</div><div class="topadcs"> <a href="http://www.jinhaobi.com//product/" title="全佳福不锈钢制品"><img src="http://www.jinhaobi.com/images/20150515110224_78113.jpg" title="全佳福不锈钢制品" alt="全佳福不锈钢制品" /></a> </div>
<div class="content">
<div class="left">
<div class="leib">
<div class="tit">产品分类</div>
<div class="nr">
<ul><?php
echo getlanmu($lanmuINFO,'
<li><a title="{标题}" href="{链接}" >{标题}</a></li>
');
?></ul>
</div>
<div class="mt10"> </div>
</div>
<div class="lxnr">
<h4 class="t05"> 联系金豪壁</h4>
<div class="lxnrs">
<div class="lximgs"> <img src="http://www.jinhaobi.com/images/CatactUs.gif" alt="联系金豪壁" /> </div>
<p> <span>佛山市金豪壁不锈钢有限公司</span> </p>
<p> <span>移动电话:</span>13690615380</p>
<p ><span>固定电话:</span>0757-29399738</p>
<p> <span>公司传真:</span>0757-29399739</p>
<p> <span>公司邮箱:</span>1473696814@qq.com</p>
<p> <span>公司网址:</span>www.jinhaobi.com</p>
<p> <span>公司地址:</span>佛山市顺德区陈村佛陈路潭村段潭洲工业区三路口1号</p>
</div>
</div>
</div>
<div class="right">
<div class="plc"> <span><a href="http://www.jinhaobi.com/index.php" title="首页">首页</a> » <a href='../lbxgbjg/' title="不锈钢板加工">不锈钢板加工</a></div>
<div class="right_main">
<div id="newslistbox" class="news_con">
<ul class="inf_lc">
<?php
for($j=$pagesize*$page; $j<($pagesize*$page+$pagesize)&&$j<$i; ++$j){
$thisFile = fun_each($filesArr[$j]); //返回键值和键名,赋值给函数
$thisName = $thisFile[0]; //函数的一维就是文件名,函数的第二维是时间 $timeTime = $thisFile[1];
$fileTime = $thisFile[1];
if(file_exists($thisName)){
$str = file_get_contents($thisName);//将整个文件内容读入到一个字符串中
$title=getSubstr($str,'<!!','!!>');
//echo getSubstr($str,'<!正文内容!>','<!/正文内容!>');
$summary=fun_left(strip_tags(getSubstr($str,'<!正文内容!>','<!/正文内容!>')),0,200);
}
?>
<li >
<h4><b>05</b><span><?php echo date("Y-m-d",strtotime($fileTime)); ?></span></h4>
<p style="
line-height: 88px;
"> <b><a href="<?php echo $thisName; ?>" title="<?php echo $title; ?>" target="_blank"><?php echo $title; ?></a></b>
<span><?php echo $summary; ?></span> </p>
</li><?php } ?>
</ul>
<div class="clear"> </div>
<div style="width:100%; float:left"> <?php
if($i>0){
$realpage = @ceil($i / $pagesize) - 1;
if($realpage<0){$realpage=0;}
$Prepage = $page-1;
$Nextpage = $page+1;
if($Nextpage>$realpage){$Nextpage=$realpage;}
if($Prepage<0){$Prepage=0;}
if($page==0){
echo "首页 ";
echo "上一页 ";
echo "<a href=?page=$Nextpage>下一页</a> ";
echo "<a href=?page=$realpage>最末页</a> ";
} elseif($page==$realpage){
echo "<a href=?page=0>首页</a> ";
echo "<a href=?page=$Prepage>上一页</a> ";
echo "下一页 ";
echo "最末页 ";
} else {
echo "<a href=?page=0>首页</a> ";
echo "<a href=?page=$Prepage>上一页</a> ";
echo "<a href=?page=$Nextpage>下一页</a> ";
echo "<a href=?page=$realpage>最末页</a> ";
}
}
?> </div>
</div>
</div>
<div class="mt10"> </div>
<div class="mt10"> </div>
</div>
<div class="clear"> </div>
</div>
<div class="link">
<h3> <a href="/FriendLink/Apply.htm" target="_blank">友情链接</a><em>/ link</em></h3>
<ul>
<li>
<a href="https://www.kaihongdy.com/jiage/index.php">直流电源价格</a><a href="http://www.kt020.com/mkwe/index.php">麦克维尔中央空调</a><a href="https://www.csspringbud.com/zbzkf/index.php">自闭症康复训练</a><a href="http://www.doupin.com/gdzc/index.php">固定资产管理系统</a><a href="https://www.gycolors.com/Solventdye/index.php">溶剂染料系列</a><a href="https://www.4000730138.com/">网站托管</a><a href="http://www.steelsynced.com/">盛世钢联</a><a href="http://www.xuntelift.cn/">液压升降平台</a><a href="http://www.doupin.com/">rfid固定资产管理系统</a>
</li></ul>
</div>
<div class="mt10"> </div>
<div class="footer">
<div class="topnav">
<ul>
<li><a href="index.php">网站首页</a></li>
<li><a href="about.php">关于我们</a></li>
<li><a href="product.php">产品中心</a></li>
<li><a href="case.php">工程案例</a></li>
<li><a href="production.php">生产现场</a></li>
<li><a href="news.php">新闻中心</a></li>
<li><a href="feedback.php">在线留言</a></li>
<li><a href="contact.php">联系我们</a></li>
</ul>
</div>
<div class="btm">
<h2><img src="http://www.jinhaobi.com/images/ft_logo.jpg" width="212" ><br /><script type="text/javascript">var cnzz_protocol = (("https:" == document.location.protocol) ? " https://" : " http://");document.write(unescape("%3Cspan id='cnzz_stat_icon_1253328264'%3E%3C/span%3E%3Cscript src='" + cnzz_protocol + "s5.cnzz.com/stat.php%3Fid%3D1253328264%26show%3Dpic' type='text/javascript'%3E%3C/script%3E"));</script>
</h2>
<div class="info">
<p>
<p>
手机:13690615380 网站备案号:<a href="http://www.beian.miit.gov.cn" target="_blank">粤ICP备17028917号</a>
</p>
<p>
电话:0757-29399738 网址:<a href="http://www.jinhaobi.com/" target="_blank">http://www.jinhaobi.com/</a>
</p>
<p>
传真:0757-29399739 地址:佛山市顺德区陈村佛陈路潭村段潭洲工业区三路口1号
</p>
<p>
<span>佛山市金豪壁不锈钢有限公司是专业的</span><span><a href="../lbxgbjg/" target="_blank">不锈钢板加工</a></span>
</p></p>
</div>
<ul>
<li> <img src="http://www.jinhaobi.com/images/ewm.jpg" width="109" height="109"> 网站二维码 </li>
</ul>
</div>
</div>
<script src="JS/rollup.min.js" type="text/javascript"></script>
<script src="js/DD_belatedPNG.js" type="text/javascript"></script>
<script src="JS/jquery.lazyload.min.js" type="text/javascript"></script>
<script language="javascript" src="http://code.54kefu.net/kefu/js/193/575393.js" charset="utf-8"></script>
<script language="javascript" src="https://hm.baidu.com/hm.js?a9f67843137ac498d8fea7cdfbab9eaa"></script></html>