<? session_start(); ?>
<!doctype html>
<?
	require_once('ls_admin/inc/conn.php');
	require_once('ls_admin/inc/constant.php');
	require_once('ls_admin/inc/ls_syscode.php');
	$opendb = new mydb();
	require_once('ls_admin/inc/char_set.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();
	}
	/********************************************************************************/
?>
<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/style.css">
<link rel="stylesheet" type="text/css"  href="../../../css/custom.css">
<link rel="stylesheet" type="text/css" href="../../../css/styles.min.css" /> 
<link rel="stylesheet" type="text/css" href="../../../css/banner.css" />
<link rel="stylesheet" href="../../../css/lrtk.css">
<script 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 src="../js/wow.min.js" ></script>-->
<script src="../../../js/megamenu.js" ></script>
<script type="text/javascript" src="../../../js/modernizr.custom.79639.js" ></script>
<script type="text/javascript" src="../../../js/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="../../../js/ceshi.js" ></script>
<!--PC产品菜单onmouseover下拉-->
<script type="text/javascript" src="../../../js/superslide.2.1.js"></script>
<script type="text/javascript" src="js/slide.js"></script>

{ls_schema}
<!-- 网站后台访问统计代码 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"){
				//alert("error!");
			}else{
				//alert("succuss!");
			}
		}
	});
});
</script>
<!-- 网站后台访问统计代码 end -->
<!-- InstanceBeginEditable name="head" -->
<!-- InstanceEndEditable -->
</head>
<body>
<div class="logo-nav"> 
</div>
<div class="navbar navbar-default navbar-fixed-top nav-head">
  <div class="nav-bg">
  <div class="lan"></div>
    <div class="container">
      <div class="navbar-header"> 
      <a href="../../../index.html" class="navbar-brand"></a>
            <button type="button" class="navbar-toggle m-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 id="right1" >  
    <div id="right">
    <form name="search" method="post" action="search.html" class="navbar-right search">
      <div class="input-group" style="width:100%;">
        <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>
    </form>
    </div>
    <div class="email">
    <img src="../../../images/email_bg.png" />
    <a href="Email:sales@tmtgroup.cc">sales@tmtgroup.cc</a> &nbsp;&nbsp;&nbsp;&nbsp; 
    <img src="../../../images/tel_bg.png" /> +86-311-87880808</div> 
    </div>
    </div>
    </div>
  </div>
<div id="lbj">
<div class="navbar-lg">
    <div class="container">
        <div class="menu">
          <ul>
            <li class="active"><a href="../../../index.html" class="current"> HOME </a></li>
            <li><a href="../../../aboutus.html"> ABOUT US </a></li>
            <li class="products"> <a href="../../../{ls_addprolink}" class="dropdown-toggle"data-toggle="dropdown"role="button"aria-haspopup="true" aria-expanded="false">PRODUCTS</a>{ls_s_cate}</li>
            <li><a href="../../../workshop.html"> WORKSHOP </a></li>
            <li><a href="../../../contact.html"> CONTACT US </a></li>
          </ul>
        </div>
        </div>
        <div class="nav-padding">
          <div class="collapse navbar-collapse" id="navbar-collapse">
            <ul id="primary-menu" class="nav-default navbar-nav no-responsive">
              <li class="active"><a href="../../../index.html" class="current"> HOME </a></li>
              <li><a href="../../../aboutus.html"> ABOUT US </a></li>
              <li class="dropdown"><a href="../../../{ls_addprolink}" onClick="javascript:woaicssq(1)"  class="dropdown-toggle" role="button" aria-haspopup="true" aria-expanded="false">PRODUCTS</a>{ls_s_cate}</li>
              <li><a href="../../../workshop.html"> WORKSHOP </a></li>
              <li><a href="../../../contact.html"> CONTACT US </a></li>
            </ul>
          </div>
        </div>
      </div>
      </div>
</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">
    <div class="row">
      <div class="col-md-3 info-right hidden-xs hidden-sm">
            <div class="side-title">
              <blockquote>
                <h2  style="color:#fff;font-size:20px;font-weight:bold;" >Product Categories</h2>
              </blockquote>
            </div>
            <div class="side-pro-list"> {ls_p_cate} </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" >
                          <?
						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 = mysql_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=mysql_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;'>
								  <?	$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>
					                <?	break;

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

                 	case "rar":  ?>
					                <a href="<?=$downloadstr?>" target="_blank" title="Download" > <img src='ls_admin/images/rar.gif' alt="" border='0' /> </a>
					                <?	break;
                         default:
						?>
					                <a href="<?=$downloadstr?>" target="_blank" title="Download"> <img src='ls_admin/images/b_add.gif' alt="" border='0' /> </a>
					                <?  }	?></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>
					            <?	$i++;

				 } ?>
					            <tr bgcolor="#F0F8FF">
					              <td colspan='4' align='center' height='35'><? 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>
</div>
<div class="footer">
  <div class="container">
  <div class="row foot">
  <h2 class="contact"> CONTACT US </h2>
  </div>
    <div class="row foot">
      <div class="col-lg-9 col-md-9 col-sm-9 col-xs-12 bfoot_left">
            <h3>TMT GROUP LIMITED</h3>
            <ul>  
                <li>Tel：+86-311-87880808/83999939/83999919 / 83993399</li>
                <li>Fax：+86-311-83993399 / 87891616</li>
                <li>Email：<a href="mailto:sales@tmtgroup.cc">sales@tmtgroup.cc</a></li>
                <li>Add：No.351, Xinhua Road, Shijiazhuang, Hebei, China </li>
                <li>P.C：050050</li>
            </ul>
	     </div>
     <div class="col-lg-3 col-md-3 col-sm-3 col-xs-12 bfoot">
        <h3 class="qrcetent">
          <img src="../../../images/ewm.jpg" width="110" height="110" />    </h3>

       <div class='social'>
	<ul>{ls_weibo}	</ul>
	</div></div></div>
  </div>
    <div class="row foot">
         <span  ><ul>{ls_links}</ul></span>     
    </div>

</div>
</div>


<div class="copyright">
  <div class="container" > Copyright &copy; {ls_year} <a href="../../../index.html">TMT GROUP LIMITED </a> All Rights Reserved. &nbsp;</div>
</div>
<div class="side_nav">
  <ul class="list-unstyled">
    <li class="tel"> <a href="mailto:sales@tmtgroup.cc" title="<translate>E-mail To Us</translate>"   rel="nofollow" > <span>
      <translate>E-mail</translate>
      </span> </a> </li>
    <li class="QQ"> <a href="javascript:void(0)" title="+86-13001888606"   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.jpg" width="110" 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>
<!-- 反馈验证码 -->
<!--<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>-->
<!--首页屏蔽代码开始-->
<!--首页屏蔽代码结束-->
<!--QQ在线代码结束-->
<!--在线代码结束-->
<!--第三方统计代码结束-->
<!--第三方统计代码结束-->
<!--首页常见问题代码开始--
<!--首页常见问题代码开始-->

<!-- 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 组合跟随菜单 -->
<script type="text/javascript" src="../../../js/line.js"></script>
</body>
<!-- InstanceEnd --></html>
