<?php 	require_once('../__approot.php');	
	$url = $_SERVER['PHP_SELF'];
$filename= substr( $url , strrpos($url , '/')+1 );
	$ls=$_GET['ls'];
	if($ls=="logout")//注销
	{
		// Unset all of the session variables.
		session_unset();
		// Finally, destroy the session.
		session_destroy();
	}
	/********************************************************************************/
?>
<!DOCTYPE html>
<html lang="en"><!-- InstanceBegin template="/Templates/all.dwt" codeOutsideHTMLIsLocked="false" -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="renderer" content="webkit" />
<meta http-equiv="X-UA-Compatible" content="IE=Edge, chrome=1" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- InstanceBeginEditable name="doctitle" -->
<title>{ls_title}</title>
<!-- InstanceEndEditable -->
<meta name="Keywords" content="<translate>{ls_keywords}</translate>" />
<meta name="Description" content="<translate>{ls_description}</translate>" />
<meta name="robots" content="index,follow">
<Meta http-equiv="Refresh" Content="86400">
<Meta name="Author" Content="蓝信科技lanscend.net.txt">
<link rel="icon" href="../favicon.png" sizes="16x16" type="image/png" />
{ls_canonical}
<link rel="stylesheet" type="text/css" href="../bootstrap/css/bootstrap.min.css">
<!--<link rel="stylesheet" type="text/css" href="../css/style5.css"/>-->
<link rel="stylesheet"  href="../css/style.css"/ media="all">
<link rel="stylesheet" type="text/css" href="../css/stylemb.css" media="screen and (max-width:767px)"/>
<link rel="stylesheet" type="text/css" href="../css/stylepc.css" media="screen and (min-width:1201px)"/>
<link rel="stylesheet" type="text/css" href="../css/stylepd.css" media="screen and (min-width:768px) and (max-width:1200px)"/>
<link rel="stylesheet" href="../css/styleicom.css"/ media="all">
<link rel="stylesheet" type="text/css" href="../css/lrtk.css" media="none" onload="if(media!='all')media='all'">
<noscript><link rel="stylesheet" href="../css/lrtk.css"></noscript>
<link rel="stylesheet" type="text/css" href="../css/banner.css" />
<!--<link rel="stylesheet" href="../css/custom.css">-->
<!--<link rel="stylesheet" type="text/css" href="../css/styles.min.css" />-->
<script type="text/javascript" src="../bootstrap/js/jquery.js"></script>
<script type="text/javascript" src="../bootstrap/js/bootstrap.min.js"></script>
<script type="text/javascript" src="../bootstrap/js/bootstrap-dropdown-on-hover.js" ></script>
<script type="text/javascript" src="../js/megamenu.js" async></script>
<script type="text/javascript" src="../js/ceshi.js"></script>
<script type="text/javascript" src="../js/superslide.2.1.js"></script>
<script type="text/javascript" src="../js/line.js"></script>
{ls_schema}
{ls_conversion}
<!-- InstanceBeginEditable name="head" -->
<!-- InstanceEndEditable -->
</head>
<body {ls_selecton}>
<div class="navbar navbar-default navbar-fixed-top nav-head">
  <div class="nav-bg">
    <div class="container">
      <div class="navbar-header"> <a href="../index.html" class="navbar-brand"></a>
       <p class="navbar-text" id="companyName">{ls_companyname}</p>     
          <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar-collapse"> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button>  </div> 
     <!--<div id="right1" >  
           <div class="search" id="right"> 
        <form name="search" method="post" action="../search.html" class="navbar-right search">
      <div class="input-group">
       <input type="text" name="keywords" class="form-control search-inp" placeholder="keywords">
      <div class="input-group-btn">
        <button class="btn btn-default search-btn"><span class="glyphicon glyphicon-search"></span></button>
        </div> 
      </div>
            </div>
    </form>
       </div>-->
    
    </div>
  </div>
 {ls_mainmenu} 
      </div>
<div class="demo-2">
<div class="nybanner"></div>
</div>
<div class="clearfix"></div>
<script type="text/javascript" src="../js/banner.js"></script>
<script type="text/javascript" src="../js/jquery.ba-cond.min.js"></script>
<script type="text/javascript" src="../js/jquery.slitslider.js"></script>
<script type="text/javascript">	
	$(function() {
		var Page = (function() {
			var $nav = $( '#nav-dots > span' ),
				slitslider = $( '#slider' ).slitslider( {
					onBeforeChange : function( slide, pos ) {
						$nav.removeClass( 'nav-dot-current' );
						$nav.eq( pos ).addClass( 'nav-dot-current' );
					}
				} ),
				init = function() {
					initEvents();
				},
				initEvents = function() {
					$nav.each( function( i ) {
						$( this ).on( 'click', function( event ) {
							var $dot = $( this );
							if( !slitslider.isActive() ) {
								$nav.removeClass( 'nav-dot-current' );
								$dot.addClass( 'nav-dot-current' );
							}
							slitslider.jump( i + 1 );
							return false;
						} );
					} );
				};
			return { init : init };
		})();
	Page.init();
});
</script>
<div id="information">
  <div class="container-fluid">
     <div class="container">
			<h3 class="title-h3">
                <span><img src="../images/zuobiao.png">&nbsp;&nbsp;You are here:</span>
                   <ol class="breadcrumb all-breadcrumb"> 
                            {ls_indicatebar}
                        </ol>
                    </h3>
                    </div>
                      <div class="weiboshare"></div>
                    </div>
      
<!-- InstanceBeginEditable name="center" -->
					<div class="col-md-9">
        <div class="container-fluid">
          <h3 class="title-h3">
            <ol class="breadcrumb all-breadcrumb">
              {ls_indicatebar}
            </ol>
            <b style="font-size:20px;">Download</b> </h3>
          <div class="all-content"> 
					  <table width="100%" style="border:0px solid #C3C3C3;text-align:center" cellpadding="0" cellspacing="0">
					    <tr>
					      <td height="213" align="left" valign="top" >
                          <?php 						if(isset($_SESSION['username_download']))  //如果已经登陆
					 	{ echo  $_SESSION['username_download'].", welcome to download our reference files, <a href='".$filename."?ls=logout'> <strong>logout to exit.</strong></a>";}
						 else
						 {  }

						  ?>
					        <form action="delall.php" method="post" name="del" id="del" onSubmit="return ConfirmDel();">
					          <table border="0" width="100%" align="center">
					            <tr>
					              <td style="border-bottom:1px solid #FFF;" align="left">&nbsp;</td>
				                </tr>
				              </table>
					          <?php

					// 获取当前页数

                 if( isset($_GET['page']) ){

                    $page = intval( $_GET['page'] );

                 }

                 else{

                    $page = 1;

                 }

                 // 每页数量

                 $PageSize = $PageNum;

                 

                 // 获取总数据量

                 /********************************************************************************/
                 	$sql = "select * from ls_download where cateName='wire-tec' and enable=1 order by ID desc";

                 	$result=$opendb->query($sql);
                 /********************************************************************************/

                 // 获取总数据量

                 

                 $row = mysqli_num_rows($result);

                 $amount = $row;

                 

                 // 记算总共有多少页

                 if( $amount ){

                    if( $amount < $PageSize ){ $page_count = 1; }			   //如果总数据量小于$PageSize，那么只有一页

                    if( $amount % $PageSize ){								  //取总数据量除以每页数的余数

                 	   $page_count = (int)($amount / $PageSize) + 1;		   //如果有余数，则页数等于总数据量除以每页数的结果取整再加一

                    }else{

                 	   $page_count = $amount / $PageSize;					  //如果没有余数，则页数等于总数据量除以每页数的结果

                    }

                 }

                 else{

                    $page_count = 0;

                 }

                 

                 // 翻页链接

                 $page_string = '';

                 	

                 if( $page == 1 ){

                    $page_string .= 'First | Previous |';

                 }

                 else{

                    $page_string .= '<a href=?page=1><u><font color=\"#0000FF\">First</font></u></a> | <a href=?page='.($page-1).'><u><font color=\"#0000FF\">Previous</font></u></a> | ';

                 }

                 if( ($page == $page_count) || ($page_count == 0) ){

                    $page_string .= ' Next | End';

                 }

                 else{

                    $page_string .= ' <a href=?page='.($page+1).'><u><font color=\"#0000FF\">Next</font></u></a> | <a href=?page='.$page_count.'><u><font color=\"#0000FF\">End</font></u></a>';

                 }

                 	 $page_string .= " &nbsp;&nbsp;Page：<font color='#FF0000'><b>".$page."</b></font>/<b>".$page_count."</b>Page";

                 	 $page_string .= " &nbsp;&nbsp;<b>".$PageSize."</b>Docs Per Page";

                 	 

                 $ls_msg2="Download >> All";

					?>
					          <table border="0" width="100%" align="center">
					            <tr>
					              <td align="right">Total <b><?php echo $row; ?></b> Docs</td>
				                </tr>
				              </table>
					          <table width="100%" border="0" align="center" cellpadding="3" cellspacing="0" bgcolor="#FFFFFF">
					            <tr bgcolor="#F0F8FF">
					              <td width="96" height="35" align="center">No</td>
					              <td width="140" height="35" align="center">Type</td>
					              <td width="681" align="center">Title</td>
					              <td width="80" align="center">Size</td>
				                </tr>
					            <?php

                 $news_sql="select * from ls_download where cateName='wire-tec' and enable=1 order by ID desc limit ". ($page-1)*$PageSize .",".$PageSize." ";	

                 $news_query=$opendb->query($news_sql);

                 $i=1;

                 while($news_rows=mysqli_fetch_assoc($news_query))

				 {
				?>
					            <tr bgcolor='#FFFFFF'

					onmouseover=

                  	"this.style.backgroundColor='#CCFFCC'" 

                 onmouseout=

                  	"this.style.backgroundColor='#FFFFFF'" 

                 >
					              <td height="30" align='center'><?=$i?></td>
					              <td style='padding-left:10px;'>
								  <?php $name=substr($news_rows['downloadName'],-3);

                 //echo $name;
					 if(isset($_SESSION['username_download']))  //如果已经登陆
					 { $downloadstr=$downloadFolders."/".$news_rows['downloadName'];}
					 else
					 { $downloadstr="downloadlogin.php?suffix_str=".$news_rows['cateName'].""; }

                 switch ($name)

                 {

                 	case "doc":  ?>
					                <a href="<?=$downloadstr?>"  target="_blank" title="Download"> <img src='ls_admin/images/doc.gif' alt="" border='0' /> </a>
					                <?php break;

                 	case "xls": ?>
					                <a href="<?=$downloadstr?>" target="_blank" title="Download"> <img src='ls_admin/images/xls.gif' alt="" border='0' /> </a>
					                <?php break;

                 	case "rar":  ?>
					                <a href="<?=$downloadstr?>" target="_blank" title="Download" > <img src='ls_admin/images/rar.gif' alt="" border='0' /> </a>
					                <?php break;
                         default:
						?>
					                <a href="<?=$downloadstr?>" target="_blank" title="Download"> <img src='ls_admin/images/b_add.gif' alt="" border='0' /> </a>
					                <?php  }	?></td>
					              <td><a href="<?=$downloadstr?>" target="_blank" title="Download">
					                <?=$news_rows['downloadTitle']?>
					                </a></td>
					              <td style='padding-left:10px;'><?=	round($news_rows['downloadSize']/1000)?>
					                K </td>
				                </tr>
					            <?php $i++;

				 } ?>
					            <tr bgcolor="#F0F8FF">
					              <td colspan='4' align='center' height='35'><?php if( $page_count>1){ echo $page_string;} ?></td>
				                </tr>
				              </table>
					          <br />
					          <table width="90%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF">
					            <!--<tr >

							<td style="padding-left:6px;" colspan="8">

								<input name="chkAll" type="checkbox" id="chkAll" onclick=CheckAll(this.form) value="checkbox"> 选中本页显示的所有文档

							<input name="submit" type='submit' value='删除的文档'>

								<input name="Action" type="hidden" id="Action" value="downDel">

								</td>

						</tr>-->
				              </table>
				            </form></td>
				        </tr>
				      </table>
					<div class="weibos">{ls_weiboshare}</div>
             </div>
        </div>
      </div>
				<!-- InstanceEndEditable -->
</div>
<div class="tab77">
   <div class="container">
      <div class="call1">CALL  [0086] 139-3311-9600 </div>
      <div class="call2">Our knowledgeable staff will be happy to hear from you and help you with any of casting needs.</div>
      <div class="call3">Get in touch with the customer support staff immediately </div>
        </div>
      </div>
<div class="footer">
  <div class="container">
    <div class="foot">
     <div class="col-lg-5 col-md-5 col-sm-5 col-xs-12 bfoot3">
         <h3>CONTACT US</b></h3>
        <ul class="list-unstyled">
          <li> Add: {ls_address11}</li>
          <li> Contact: Feng Qiang</li>
          <li> Tel: {ls_tel11} {ls_tel12}</li>
          <li> Mobile: {ls_whatsappmb}</li>
          <li> Email: <a href="mailto:{ls_email11}">{ls_email11}</a></li>
        </ul>
        <div>{ls_weibo}</div>
      </div>
     
      <div class="col-lg-5 col-md-5 col-sm-5 col-xs-12 bfoot2">
       <h3> PRODUCTS  </h3>       
        <ul class="foot-list">
          <li>><a href='../cast-steel/castings-for-construction-machinery/castings-for-construction-machinery.html'> Castings for Construction Machinery</a></li>
          <li>><a href='../cast-steel/castings-for-machine-building-and-train-accessorie/castings-for-machine-building-and-train-accessorie.html'> Castings for Machine Building and Train Accessories</a></li>
          <li>><a href='../cast-steel/cast-steel-valve-parts/cast-steel-valve-parts.html'> Cast Steel Valve Parts</a></li>
          <li>><a href='../cast-iron/mechanical-accessories-in-cast-iron-material/mechanical-accessories-in-cast-iron-material.html'> Mechanical Accessories in Cast Iron Material</a></li>
          <li>><a href='../cast-iron/valve-parts-for-oil-field-and-water-supply-and-fir/valve-parts-for-oil-field-and-water-supply-and-fir.html'> Valve Parts for Oil Field</a></li>
          <li>><a href='../cast-iron/pump-housing/pump-housing.html'> Pump Housing</a></li>
        </ul>
      </div>
      <div class="col-lg-2 col-md-2 col-sm-2 col-xs-12 bfoot1">
      <h3>QUCILK LINKS</h3>
       <ul class="foot-list">
          <li>><a href='../aboutus.html'> About Us</a></li>
          <li>><a href='../certificate.html'> Certificates</a></li>
          <li>><a href='../workshop.html'> Workshop</a></li>
          <li>><a href='../contact.html'> Contact Us</a></li>
        </ul>
       </div>
  </div>
</div>
</div>
<div class="copyright">
<div class="container">
  Copyright &copy; {ls_startyear}{ls_year} <a href="../index.html">{ls_companyname}</a> All Rights Reserved. &nbsp;</div>
</div>
<div class="side_nav">
  <ul class="list-unstyled">
    <li class="tel"> <a href="mailto:{ls_feedbackemail}" title="<translate>E-mail To Us</translate>"   rel="nofollow" > <span>
      <translate>E-mail</translate>
      </span> </a> </li>
    <li class="QQ"> <a href="https://api.whatsapp.com/send?phone={ls_whatsappmb}&amp;text=Hello" title="{ls_whatsappmb}"   rel="nofollow" > <span>
      <translate>WhatsApp</translate>
      </span> </a> </li>
    <li class="sub_QR"> <a href="javascript:;" title="<translate>Mobile Site</translate>"   rel="nofollow" > <span><img src="../images/ewm.png" width="148" alt="<translate>mobile</translate>"/></span> </a> </li>
    <li class="back_top"> <a href="#" title="<translate>Back To The Top</translate>"> <span>
      <translate>Top</translate>
      </span> </a> </li>
  </ul>
  <div class="c"></div>
</div>
<div id="mbfooter"  >
  <div class="top_bar" style="-webkit-transform:translate3d(0,0,0); ">
    <nav>
      <ul id="top_menu" class="top_menu">
        <li> <a href="../index.html"><img src="../images/link1_31.jpg" >
          <label>Home</label>
          </a> </li>
        <li> <a href="https://api.whatsapp.com/send?phone={ls_whatsappmb}&amp;text=Hello"><img src="../images/tel_60.jpg" >
          <label>WhatsApp</label>
          </a> </li>
        <li> <a href="mailto:{ls_feedbackemail}" title="email"> <img src="../images/email41.jpg"/>
          <label>Email</label>
          </a> </li>
        <li> <a href="sms:{ls_whatsappmb}">
        <img src="../images/duanxin_62.jpg" style="cursor:pointer;" >
          <label>SMS</label>
          </a> </li>
      </ul>
    </nav>
  </div>
</div>
<script type="text/javascript">
function returnTop(){
    $("html,body").animate({scrollTop: 0}, 550);
}
$.fn.bootstrapDropdownHover();
$(function(){
$('[data-toggle="tooltip"]').tooltip({container: 'body'});
});
</script>
<!-- 反馈验证码 -->
<!--<script type="text/javascript">
$("#code").click(function(){
	
	var code="";
	var codelenght=4;
	var checkcode=$("#cede");
	var codechars=new array(0,1,2,3,4,5,6,7,8,9,'A','B','C','D','E','F','G','H','I','J','K','L','M','N','P','Q','R','S','T','U','V','W','X','Y','Z');
	for(var i=0; f<codelength;i++)
	{
		var charNum=Math.floor(Math.random()*52);
		code+=codechars[charNum];
	}
	checkcode.innerHTML=code;	  
});
</script>-->
<!--统计跟踪 在线 屏蔽 底部 {ls_share} 替换代码开始-->
{ls_statistics}
{ls_onlinechart}
{ls_shield}
{ls_onlines}  
<!--替换代码结束-->
<!-- FAQ js -->
<!--<script type="text/javascript" >
//弹出切换class
  function loadfaq(id){
    $("#applyfaq"+id).slideToggle();
	if($("#faq"+id).attr("class") == "art_title2"){
		$("#faq"+id).attr("class","art_title3");
	}else{
		$("#faq"+id).attr("class","art_title2");
	}
  }
</script>-->
<!--首页常见问题代码结束-->
<!-- 手机产品菜单收放 -->
<script>
    $(document).ready(function() {
        $( '.dropdown' ).hover(
            function(){
                $(this).children('.sub-menu').slideDown(200);
            },
            function(){
                $(this).children('.sub-menu').slideUp(200);
            }
        );
    }); // end ready
</script>

<!-- email skype qc top 组合跟随菜单 -->
<!-- 网站后台访问统计代码 start 注：需jQuery支持-->
<script type="text/javascript">
$(document).ready(function(form){
	//var action = $("#feedback-form").attr('action');
	var action = "ls_admin/ls_statistics.php";
	$.ajax({
		type: "POST",
		url: action,
		error: function(request) {
		},
		success: function(response)
		{
			if(response == "fail"){
				console.log("ls_statistics error!");
			}else{
				//alert("succuss!");
			}
		}
	});
});
</script>
<!-- 网站后台访问统计代码 end -->
</body>
<!-- InstanceEnd --></html>
