<?

include("../config/conn.php");

include("../config/function.php");

?>

<html>

<html>

<head>

<meta http-equiv="x-ua-compatible" content="ie=7" />

<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />

<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>

<title><?=webname?></title>

<link rel="stylesheet" href="css/basic.css">

<link rel="stylesheet" href="css/index.css">

<script language="javascript" src="js/basic.js"></script>

<script language="javascript" src="js/index.js"></script>

</head>

<body>

<div class="yjcode">



<!--头部B-->

<div class="indextop box">

 <div class="d1"><img src="img/logo.png" /></div>

 <div class="d2" onClick="gourl('search/main.php');"><span class="s1"></span><span class="s2">请输入搜索关键词！</span></div>

 <div class="d3"><a href="user/"><img src="img/tx.png" /></a></div>

</div>

<!--头部E-->



<!--图片B-->

<div class="qh">

<div class="addWrap">

 <div class="swipe" id="mySwipe">

   <div class="swipe-wrap">

   <?

   $i=0;

   while1("*","yjcode_ad where adbh='ADMT01' and zt=0 order by xh asc");while($row1=mysql_fetch_array($res1)){

   $tp="../../ad/".$row1[bh].".".$row1[jpggif];

   ?>

   <div><a href="<?=$row1[aurl]?>"><img class="img-responsive" src="<?=$tp?>" /></a></div>

   <? $i++;}?>

   </div>

  </div>

  <ul id="position"><? for($j=0;$j<$i;$j++){?><li class="<? if(0==$j){?>cur<? }?>"></li><? }?></ul>

</div>

<script src="js/swipe.js"></script> 

<script type="text/javascript">

var bullets = document.getElementById('position').getElementsByTagName('li');

var banner = Swipe(document.getElementById('mySwipe'), {

auto: 2000,

continuous: true,

disableScroll:false,

callback: function(pos) {

var i = bullets.length;

while (i--) {

bullets[i].className = ' ';

}

bullets[pos].className = 'cur';

}});

</script>

</div>

<!--图片E-->



<!--图标B-->

<div class="indexm box">

 <div class="d1"><a href="alltype/"><img src="img/tb5.png" /><br>全部分类</a></div>

 <div class="d1"><a href="user/order.php"><img src="img/tb2.png" /><br>我的订单</a></div>

 <div class="d1"><a href="user/"><img src="img/tb8.png" /><br>个人中心</a></div>

 <div class="d1"><a href="user/favpro.php"><img src="img/tb3.png" /><br>我的收藏</a></div>

</div>

<div class="indexm indexm1 box">

 <div class="d1"><a href="news/newslist.html"><img src="img/tb6.png" /><br>行业资讯</a></div>

 <div class="d1"><a href="user/paylog.php"><img src="img/tb4.png" /><br>资金管理</a></div>

 <div class="d1"><a href="user/car.php"><img border="0" src="img/tb1.png" /><br>购物车</a></div>

 <div class="d1"><a href="contact/"><img border="0" src="img/tb7.png" /><br>联系我们</a></div>

</div>

<!--图标E-->



<!--商品分组B-->

<div class="indexcap box">

 <div class="d1">商品类别</div>

</div>

<div class="indexty box">

 <div class="dm">

 <? while1("*","yjcode_type where admin=1 order by xh asc");while($row1=mysql_fetch_array($res1)){?>

 <div class="d1"><a href="product/search_j<?=$row1[id]?>v.html"><?=$row1[type1]?></a></div>

 <? }?>

 </div>

</div>

<!--商品分组E-->



<!--今日新品B-->

<div class="indexcap box">

 <div class="d1">今日新品</div>

</div>

<div class="prolist box">

 <div class="dm">

 <?

 $i=1;

 while1("*","yjcode_pro where zt=0 and ifxj=0 order by lastsj desc limit 6");while($row1=mysql_fetch_array($res1)){

 $money1=returnyhmoney($row1[yhxs],$row1[money2],$row1[money3],$sj,$row1[yhsj1],$row1[yhsj2],$row1[id]);

 ?>

 <div class="prod1" id="prod1_<?=$i?>" onClick="gourl('product/view<?=$row1[id]?>.html')">

 <img class="protp" id="protp_<?=$i?>" border="0" src="<?=returntppd("../".returntp("bh='".$row1[bh]."'","-1"),"../img/none200x200.gif")?>" /><br>

 <?=returntitdian($row1[tit],35)?><br>

 <strong>￥ <?=$money1?>元</strong><br>

 <s class="hui">￥<?=$row1[money1]?>元</s>

 </div>

 <?

 $i++;

 }

 ?>

 </div>

</div>

<!--今日新品E-->



<div class="bottom box"><div class="d1"><?=webname?> 版权所有 客服热线：<?=$rowcontrol[webtelv]?><br><?=$rowcontrol[webtj]?></div></div>



</div>



<script language="javascript">

w=screen.width-60;

if(w>540){w=540;}

w1=parseInt(w/2);

w2=w1+100;

<? for($j=1;$j<$i;$j++){?>

document.getElementById("prod1_<?=$j?>").style.width=w1+"px";

document.getElementById("prod1_<?=$j?>").style.height=w2+"px";

document.getElementById("protp_<?=$j?>").style.width=w1+"px";

document.getElementById("protp_<?=$j?>").style.height=w1+"px";

<? }?>

</script>

</body>

</html>