<?php
//查找商家数据库
$sql="select * from ".$BIAOTOU."mall where end_time >='".date('Y-m-d')."' order by sort desc limit 0,15";
$rs_mall=mysql_query($sql);
$sql="select * from ".$BIAOTOU."mall where end_time >='".date('Y-m-d')."' order by sort desc limit 15,15";
$rs_mall2=mysql_query($sql);
$sql="select * from ".$BIAOTOU."mall where end_time >='".date('Y-m-d')."' order by sort desc limit 5,15";
$rs_mall3=mysql_query($sql);
$sql="select * from ".$BIAOTOU."mall where end_time >='".date('Y-m-d')."' order by sort desc limit 10,15";
$rs_mall4=mysql_query($sql);
$sql="select * from ".$BIAOTOU."mall where end_time >='".date('Y-m-d')."' order by sort desc limit 20,15";
$rs_mall5=mysql_query($sql);
$sql="select * from ".$BIAOTOU."mall where end_time >='".date('Y-m-d')."' order by sort desc limit 17,15";
$rs_mall6=mysql_query($sql);
$sql="select * from ".$BIAOTOU."mall where end_time >='".date('Y-m-d')."' order by sort desc limit 8,15";
$rs_mall7=mysql_query($sql);
$sql="select * from ".$BIAOTOU."mall where end_time >='".date('Y-m-d')."' order by sort desc limit 13,15";
$rs_mall8=mysql_query($sql);

$sql="select * from ".$BIAOTOU."malltype order by sort asc limit 0,7";
$rs_malltype=mysql_query($sql);

$sql="select id,name,fan,catid from ".$BIAOTOU."mall where end_time >='".date('Y-m-d')."' order by sort desc";
$rs_malllist=mysql_query($sql);
$i=0;
while ($row2 = mysql_fetch_array($rs_malllist)){
	$allmalllist[$i]['id']= $row2['id'];
	$allmalllist[$i]['catid']= $row2['catid'];
	$allmalllist[$i]['name']= $row2['name'];
	$allmalllist[$i]['fan']= $row2['fan'];
	$allmalllist[$i]['catid']= $row2['catid'];
	$i++;
}
//公告
$sql_gg="select * from ".$BIAOTOU."category order by seq desc limit 0,9";
$rscat_gg=mysql_query($sql_gg);
//幻灯片
$sql="select * from ".$BIAOTOU."slides where hide=0 order by wz asc limit 0,10";
$rs_slides=mysql_query($sql);
$i=0;
while ($row = mysql_fetch_array($rs_slides)){
	$slides_pic[$i]=$row['pic'];
	$slides_url[$i]=$row['url'];
	$slides_title[$i]=$row['title'];
	$i++;
}

//热门店铺
$sql="select * from ".$BIAOTOU."shop order by tuijian desc, id desc  limit 0,5";
$rs_shop=mysql_query($sql);

//常见问题
$sql="select * from ".$BIAOTOU."article where cid=3 order by ontop desc,created_date desc limit 0,10";
$rs_article=mysql_query($sql);

//图片资讯
$sql="select * from ".$BIAOTOU."article where pic<>'' and cid>3 order by ontop desc,created_date desc limit 0,2";
$rs_pic_article=mysql_query($sql);

//购物资讯
$sql="select * from ".$BIAOTOU."article where cid>3 order by ontop desc,created_date desc limit 0,5";
$rs_new_article=mysql_query($sql);

//站点公告
$sql="select * from ".$BIAOTOU."article where cid=2 order by ontop desc,created_date desc limit 0,4";
$rs_gg=mysql_query($sql);

//文字商城
$sql="select * from ".$BIAOTOU."mall order by sort desc limit 8,17";
$rs_mall2=mysql_query($sql);

//带图优惠促销
$sql="select id,name,pic from ".$BIAOTOU."activity where recommend=1 and pic<>'' order by sort desc, etime desc limit 2";
$pic_cuxiao=mysql_query($sql);

//文字优惠促销
$sql="select a.id,a.name,a.pic,a.mallid,b.name as mallname from ".$BIAOTOU."activity as a,".$BIAOTOU."mall as b where a.mallid=b.id and a.recommend=1 order by a.sort desc, a.etime desc limit 2,6";
$cuxiao=mysql_query($sql);

//积分兑换
$sql="select * from ".$BIAOTOU."dhlist where recommend=1 and hide=0 order by sort desc, addtime desc limit 4";
$duihuan=mysql_query($sql);

//团购商品
$sql="select a.id,a.title,a.image,a.price,a.value,b.name,b.fan from ".$BIAOTOU."tuan_goods as a,".$BIAOTOU."mall as b where a.mall_id=b.id order by a.top desc,a.sort desc, endTime desc limit 5";
$tuan_goods=mysql_query($sql);

//友情链接
$sql="select * from ".$BIAOTOU."yqlj where leibie=0 order by wz desc";
$rs_yqlj=mysql_query($sql);

$Taoapi_Config = Taoapi_Config::Init();
$Taoapi_Config->setCharset('UTF-8');
$Taoapi = new Taoapi;
//热销
$Taoapi->method = 'taobao.taobaoke.items.get';
$Taoapi->fields = 'iid,num_iid,title,nick,pic_url,price,click_url,shop_click_url,volume,commission,commission_rate,commission_num,commission_volume,';
$Taoapi->nick = MYUSERNICK;
$Taoapi->keyword = HOTWORD;
$Taoapi->page_size = '8';
$Taoapi->sort = 'commissionNum_desc';
$Taoapi->outer_code=$_SESSION["dduserid"];
$rexiaoapi= $Taoapi->Send('get','xml')->getArrayData();
$ListHot = $rexiaoapi["taobaoke_items"]["taobaoke_item"]; 
?>
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<?php include(DDROOTPATH.'/cache/title/'.$pagetag.'_title.php');?>
<link rel="stylesheet" rev="stylesheet" href="template/<?=MOBAN?>/css/index.css" type="text/css" media="screen">
<link rel="stylesheet" rev="stylesheet" href="template/<?=MOBAN?>/css/public.css" type="text/css" media="screen">
<LINK rel=stylesheet type=text/css href="template/<?=MOBAN?>/css/common.css">
<script type="text/javascript" src="template/<?=MOBAN?>/js/jquery-1.3.2.min.js"></script>
<SCRIPT type="text/javascript" src="template/<?=MOBAN?>/js/base64.js"></SCRIPT>
<SCRIPT type="text/javascript" src="template/<?=MOBAN?>/js/taobao.js"></SCRIPT>
<SCRIPT type="text/javascript" src="template/<?=MOBAN?>/js/function.js"></SCRIPT>
<script language="javascript" >
$(function(){
	 var len2  = $("#idNum2 > li").length;
	 var index2 = 0;
	 $("#idNum2 li").mouseover(function(){
		index2  =   $("#idNum2 li").index(this);
		showImg2(index2);
	});	

	 $('#idTransformView2').hover(function(){
			  if(MyTime2){
				 clearInterval(MyTime2);
			  }
	 },function(){
			  MyTime2 = setInterval(function(){
				showImg2(index2)
				index2++;
				if(index2==len2){index2=0;}
			  } , 4000);
	 });
	 //自动开始
	 var MyTime2 = setInterval(function(){
		showImg2(index2)
		index2++;
		if(index2==len2){index2=0;}
	 } , 4000);
})
function showImg2(i){
		$("#idSlider2").stop(true,false).animate({left : -500*i},1000);
		 $("#idNum2 li")
			.eq(i).addClass("on")
			.siblings().removeClass("on");
}
</script>
<script language="javascript">
$.ajaxSetup ({
    cache: false //关闭AJAX相应的缓存
});
$(function(){
	$("#fenxiang_img .fenxiang_shangzhuang .fen_xiang:eq(0)").css({"width":"206px","height":"206px"});
	$("#fenxiang_img .fenxiang_shangzhuang .fen_xiang:eq(0) img").css({"width":"203px","height":"203px"});
	
	$("#fenxiang_img .fenxiang_xiazhuang .fen_xiang:eq(0)").css({"width":"206px","height":"203px"});
	$("#fenxiang_img .fenxiang_xiazhuang .fen_xiang:eq(0) img").css({"width":"203px","height":"203px"});
	
	$("#fenxiang_img .fenxiang_xiezi .fen_xiang:eq(0)").css({"width":"103px"});
	$("#fenxiang_img .fenxiang_baobao .fen_xiang:eq(1)").css({"float":"right"});
	$("#fenxiang_img .fenxiang_neiyi .fen_xiang:eq(1)").css({"float":"right"});
	$("#fenxiang_img .fenxiang_jiaju_qita .fen_xiang:eq(0)").css({"width":"103px"});
	$("#fenxiang_img .fenxiang_jiaju_qita .fen_xiang:eq(1)").css({"width":"103px"});
	
	$("#fenxiang_text .fenxiang_xiezi .fen_xiang:eq(0)").css({"width":"103px"});
	$("#fenxiang_text .fenxiang_baobao .fen_xiang:eq(1)").css({"float":"right"});
	$("#fenxiang_text .fenxiang_neiyi .fen_xiang:eq(1)").css({"float":"right"});
	$("#fenxiang_text .fenxiang_jiaju_qita .fen_xiang:eq(0)").css({"width":"103px"});
	$("#fenxiang_text .fenxiang_jiaju_qita .fen_xiang:eq(1)").css({"width":"103px"});
	
	$("#fenxiang_text .fenxiang_shangzhuang .fen_xiang:eq(0)").css({"width":"206px","height":"206px"});
	$("#fenxiang_text .fenxiang_shangzhuang .fen_xiang:eq(0) a").css({"width":"203px","height":"203px"});
	
	$("#fenxiang_text .fenxiang_xiazhuang .fen_xiang:eq(0)").css({"width":"206px","height":"206px"});
	$("#fenxiang_text .fenxiang_xiazhuang .fen_xiang:eq(0) a").css({"width":"203px","height":"203px"});
	
	$("#fenxiang_text .fenxiang_shangzhuang .fen_xiang:eq(2)").css({"position":"absolute","margin-top":"103px","margin-left":"-100px"});
	$("#fenxiang_img .fenxiang_shangzhuang .fen_xiang:eq(2)").css({"position":"absolute","margin-top":"103px","margin-left":"-100px"});
	
	$("#fenxiang_text .fenxiang_xiazhuang .fen_xiang:eq(2)").css("id","qufenxiazhuang");
	$("#fenxiang_img .fenxiang_xiazhuang .fen_xiang:eq(2)").css("id","qufenxiazhuang_img");
	
	var ll=$("#zuixinshandan .goods_list_img").length-1;
	$("#zuixinshandan .goods_list_img:eq("+ll+")").css({"padding-right":"0","border-right":"none","width":"220px"});
	$("#zuixinshandan").css({"width":"948px"});
	$('.goods_list_img_i').hover(function(){
		$('.goods_list_img_i').css("filter","alpha(opacity=55)").css('opacity',0.5);
	    $(this).css("filter","alpha(opacity=100)").css('opacity',1);
	},function(){
	    $('.goods_list_img_i').css("filter","alpha(opacity=100)").css('opacity',1);
	});
	
    $('.checkLogin').click(function(){
		url=$(this).attr('href');
		var ddusername='<?=$_SESSION["duoduouser"]?>';
		var img=$(this).parent('p').parent('li').find('img').attr('src');
		var price=$(this).parent('p').parent('li').find('.hot_goods_list_num').find('b').html();
		var fx=$(this).parent('p').parent('li').attr('fanli');
		$('#layer_goods').show();
		$('#jump_pic').attr('src',img);
		$('#jump_href').attr('href',url);
		$('.jump_price').text(price+'元');
		$('#jump_back').text(fx+'元');
	    if(ddusername!=''){
			window.open(url);
		}
		else{
		    $('.jumpbox').show();
		}
	return false;
	});
	
	$('#jump_href,#jumpclose').click(function(){
	    $('.jumpbox').hide();
	});
});
</script>
<SCRIPT language=JavaScript>
/*定义js路径*/
var contextPath = "http://<?=URL?>/";
<!--是否开启伪静态-->
var rewrite = <?=WJT?>;
<!--是否开启图片伪本地化-->
var taopicopen = 1;
</SCRIPT>
</head>

<body>
<?php
include("header.tpl.php");
?>
<?php
include("nav.tpl.php");
?>
<div class="index">
<div class="index_top">
<div class="white_top"><div class="white_top_left"></div><div class="white_top_middle"></div><div class="white_top_right"></div></div>
<div class="white_bg">
<!--可关闭步骤-->
<div id="flwindex_buzhou" class="flwindex_buzhou"><img width="950" border="0" src="template/<?=MOBAN?>/images/sbnfh.gif" usemap="#Map2">
<map name="Map2" id="Map2"><area shape="rect" coords="4,4,902,76" href="user/register.php" target="_blank" onclick="Ftrack('/virtual/www/home','regbanner');"><area shape="rect" coords="905,-1,930,20" href="javascript:void(0)" onclick="javascript:{$('.flwindex_buzhou').hide()}"></map></div>
<!--步骤-->

<!--使用教程-->
<div class="index_jc"><img border="0" usemap="#Map" src="template/<?=MOBAN?>/images/jiaoc_img.gif">
<map id="Map" name="Map">
  <area target="_blank" title="" href="/help.php" coords="-1,-1,162,68" shape="rect" title="淘宝返利教程">
  <area target="_blank" title="" href="/help.php#50" coords="0,69,162,138" shape="rect" title="返现提现教程">
  <area target="_blank" title="" href="/help.php#84" coords="0,139,162,209" shape="rect" title="商城返利教程">
</map></div>
<!--教程结束-->
<!--幻灯片-->
			<div class="container" id="idTransformView2">
			  <ul class="slider slider2" id="idSlider2">
              <?php
			  foreach($slides_url as $k=>$v){?>
				<li><a href="<?=$slides_url[$k]?>" target="_blank" title="<?=$slides_title[$k]?>"><img src="upload/<?=$slides_pic[$k]?>" alt="<?=$slides_title[$k]?>"/></a></li>
			  <?php }?>
              </ul>
			  <ul class="num" id="idNum2">
              <?php
			  foreach($slides_url as $k=>$v){?>
				<li><?=$k+1?></li>
			  <?php }?>
			  </ul>
			</div>
<!--幻灯片-->
<!--未登录-->
<div class="login">
    <div class="login_area">
    <?php if($_SESSION["duoduouser"]!=NULL){?>
    <div class="u_info">
      <div class="u_img"><a target="_blank" rel="nofollow" href="user/avatar.php"><img src="../upload/avatar/noavatar_middle.gif" onerror="this.src='../images/noavatar_middle.gif'" width="48" height="48"></a></div>
        <div class="u_right"><div class="ur_c1">
            <p></p><div style="float:left">您好：</div> <div style=" float:left;width:90px; overflow:hidden; font-weight:bold;" class="font_red"><?=$_SESSION["duoduouser"]?>&nbsp;&nbsp;&nbsp;&nbsp;</div> (^_^)∠※ <p></p>
            <p><a rel="nofollow" href="user/center.php">会员中心</a> | <a href="/user/exit.php" rel="nofollow">退出</a> <br> </p> </div><div class="ur_c2"></div></div></div><div class="clear"></div><div class="u_info1"><ul>
  <li class="m2">金额：<font class="font_red"><strong><?=$money?></strong></font>元</li>
  <li class="m1">累计返现：<font class="font_red"><strong><?=$txstate?></strong></font>元</li>
  <li class="m3">积分：<font class="font_red"><strong><?=$jifen?></strong></font></li></ul></div>	  
<div class="login_line"></div><div class="login_btn1"> <ul><li><a title="查看我的订单" rel="nofollow" href="user/tradelist.php?act=taobao"><div id="my_order"></div> 我的订单 </a> </li> <li><a title="把钱提出来就可以买东西哦 ^_^ " rel="nofollow" href="user/tixian.php">
 <div id="my_draw"></div> 我要提现 </a></li> <li><a title="邀请好友加入就送5元" rel="nofollow" href="user/tuiguang_url.php">
 <div id="my_friend"></div>邀请好友<br><font color="red">拿佣金</font></a></li><li><a title="" rel="nofollow" href="user/info.php">
 <div id="my_desk"></div>修改资料</a></li><br class="clear"></ul> </div>
  <!--已登录结束-->
  <? }else{?>
      <div class="login_t">
        <form onsubmit="return checkall()" name="form1" method="post" id="form1" action="user/checklogin.php">
          <input type="hidden" value="1" name="is_submit">
            <input type="hidden" value="user/checklogin.php" name="backurl">
          <table cellspacing="0" cellpadding="0">
            <tbody><tr>
             <td class="title_img" colspan="3"><img src="template/<?=MOBAN?>/images/login_title.gif"></td>
            </tr>
            <tr>
              <td>账　号：</td>
              <td><input type="text" tabindex="1" id="username" name="username" class="text_input" onBlur="checkusername(document.getElementById('username').value);" ></td>
              <td><a rel="nofollow" href="user/register.php"><font class="font_red">免费注册</font></a></td>
            </tr>
            <tr>
              <td>密　码：</td>
              <td><input type="password" tabindex="2" class="text_input" id="password" name="password" onBlur="checkpass(document.getElementById('password').value);"></td>
              <td><a target="_blank" rel="nofollow" href="user/getpassword.php"><font class="font_red">忘记密码</font></a></td>
            </tr>
            <tr>
              <td></td>
              <td colspan="2"><input type="image" align="absmiddle" style="cursor:pointer" src="template/<?=MOBAN?>/images/login_btn.gif">
			  <input type="checkbox" value="1" tabindex="4" name="remember" id="rem"/>
                记住两个星期</td>
            </tr>
          </tbody></table>
        </form>
      </div>
      
  <div class="qk_lg">
   <a href="api/sina"><img align="absmiddle" style="cursor:pointer" src="template/<?=MOBAN?>/images/SN.jpg"></a>
  <a href="api/login_tb/login.php"><img align="absmiddle" style="cursor:pointer" src="template/<?=MOBAN?>/images/tb.jpg"></a>
  <a href="api/qqspace/oauth/redirect_to_login.php"><img align="absmiddle" style="cursor:pointer" src="template/<?=MOBAN?>/images/qqlg.jpg"></a>
  
  </div>
     
    </div>
  </div>
  <? };?>
  <!--已登录-->
<!--登录结束-->
  </div>
    </div>
<div class="white_bottom"><div class="white_bottom_left"></div><div class="white_bottom_middle"></div><div class="white_bottom_right"></div></div>
<div class="index_center">  
<div class="white_top"><div class="white_top_left"></div><div class="white_top_middle"></div><div class="white_top_right"></div></div>
<!--左侧开始-->
<div class="white_bg">

<div class="index_left">
<!-- 淘宝商家信息 Start -->
<div id="Tab1" style="width:656px;">
<!--TabADS开始-->
<div class="TabADS">
	<ul> 
	<li class="TasADSOn" style="font-weight:bold; font-size:14px; color:#689200">品牌返利</li>
		<li>精品女装</li>
		<li>美容美妆</li>
		<li>鞋类箱包</li>
		<li>魅力男装</li>
		<li>居家日用</li>
		<li>母婴用品</li>
	<li><a href="taodian.php">更多商家</a></li>
	</ul>
    </div>
 <div class="TabADSCon">
 <ul>
<li>
<div class="incommall">
 <?php while ($row2 = mysql_fetch_array($rs_mall)) {?>
<dd>
<a href="mall<?=$url_head_id?><?=$row2['id']?><?=$url_end?>" target="_blank"><img src="<?=$row2['logo']?>" alt="<?=$row2['name']?>"/>
<p class="name template_mod">返利<font style="font-weight:bold;color:#FF85B4;"><?=$row2['fan']?></font></p>
</A> 
</dd>
<?php }?>
</div>
 </li>
	</ul>
    
<ul style="display:none;">
		<li>
<div class="incommall">
<?php while ($row3 = mysql_fetch_array($rs_mall2)) {?>
<dd>
<a href="mall<?=$url_head_id?><?=$row3['id']?><?=$url_end?>" target="_blank"><img src="<?=$row3['logo']?>" alt="<?=$row3['name']?>"/>
<p class="name template_mod">返利<font style="font-weight:bold;color:#FF85B4;"><?=$row3['fan']?></font></p>
</A> 
</dd>
<?php }?>
</div>
</li>
	</ul>

<ul style="display:none;">
		<li>
<div class="incommall">
<?php while ($row4 = mysql_fetch_array($rs_mall3)) {?>
<dd>
<a href="mall<?=$url_head_id?><?=$row4['id']?><?=$url_end?>" target="_blank"><img src="<?=$row4['logo']?>" alt="<?=$row4['name']?>"/>
<p class="name template_mod">返利<font style="font-weight:bold;color:#FF85B4;"><?=$row4['fan']?></font></p>
</A> 
</dd>
<?php }?>
</div>
</li>
	</ul>
<ul style="display:none;">
		<li>
<div class="incommall">
<?php while ($row5 = mysql_fetch_array($rs_mall4)) {?>
<dd>
<a href="mall<?=$url_head_id?><?=$row5['id']?><?=$url_end?>" target="_blank"><img src="<?=$row5['logo']?>" alt="<?=$row5['name']?>"/>
<p class="name template_mod">返利<font style="font-weight:bold;color:#FF85B4;"><?=$row5['fan']?></font></p>
</A> 
</dd>
<?php }?>
</div>
</li>
	</ul>
<ul style="display:none;">
		<li>
<div class="incommall">
<?php while ($row6 = mysql_fetch_array($rs_mall5)) {?>
<dd>
<a href="mall<?=$url_head_id?><?=$row6['id']?><?=$url_end?>" target="_blank"><img src="<?=$row6['logo']?>" alt="<?=$row6['name']?>"/>
<p class="name template_mod">返利<font style="font-weight:bold;color:#FF85B4;"><?=$row6['fan']?></font></p>
</A> 
</dd>
<?php }?>
</div>
</li>
	</ul>
<ul style="display:none;">
		<li>
<div class="incommall">
<?php while ($row7 = mysql_fetch_array($rs_mall6)) {?>
<dd>
<a href="mall<?=$url_head_id?><?=$row7['id']?><?=$url_end?>" target="_blank"><img src="<?=$row7['logo']?>" alt="<?=$row7['name']?>"/>
<p class="name template_mod">返利<font style="font-weight:bold;color:#FF85B4;"><?=$row7['fan']?></font></p>
</A> 
</dd>
<?php }?>
</div>
</li>
	</ul>
<ul style="display:none;">
		<li>
<div class="incommall">
<?php while ($row8 = mysql_fetch_array($rs_mall7)) {?>
<dd>
<a href="mall<?=$url_head_id?><?=$row8['id']?><?=$url_end?>" target="_blank"><img src="<?=$row8['logo']?>" alt="<?=$row8['name']?>"/>
<p class="name template_mod">返利<font style="font-weight:bold;color:#FF85B4;"><?=$row8['fan']?></font></p>
</A> 
</dd>
<?php }?>
</div>
</li>
	</ul>    
<ul style="display:none;">
		<li>
<div class="incommall">
<?php while ($row9 = mysql_fetch_array($rs_mall8)) {?>
<dd>
<a href="mall<?=$url_head_id?><?=$row9['id']?><?=$url_end?>" target="_blank"><img src="<?=$row9['logo']?>" alt="<?=$row9['name']?>"/>
<p class="name template_mod">返利<font style="font-weight:bold;color:#FF85B4;"><?=$row9['fan']?></font></p>
</A> 
</dd>
<?php }?>
</div>
</li>
	</ul>    
    
    
    
     
</div>
<!--TabADSCON结束-->
<!-- 淘宝推荐商家 End -->
</div>
</div>
<!--1-->
<!--商城结束--> 
<!--网站公告-->
<div class="mod m-new-income">
<div class="m-bodyg">
<div class="m-header">网站公告</div>
<div class="m-contentt">
<ul style="margin-top: 0px;">
<?php while ($row_gg = mysql_fetch_array($rs_gg)) {?>
<li>∴<a href="read<?=$url_head_id?><?=$row_gg['id']?><?=$url_end?>" target="_blank" class="template_mod" etype="innerHTML&href"><?=$row_gg['title']?></a></li>
<?php }?>
</ul>
</div>
</div>
<div id="ad3"><?=AD(3)?></div>
</div>
<!--网站公告结束-->

</div>
<!--左侧结束-->
<div class="white_bottom"><div class="white_bottom_left"></div><div class="white_bottom_middle"></div><div class="white_bottom_right"></div></div>
</div>
<!-- 分享-->
<div class="index_share">
<div class="white_top"><div class="white_top_left"></div><div class="white_top_middle"></div><div class="white_top_right"></div>	</div>
<div class="white_bg">
<!--淘宝热卖 start-->
<div class="piece_content_l">
		<div class="mod m-hot-discount">
	<div class="m-body">
		<div class="m-header">今日特价推荐<span class="more">
		<a href="list.php?cid=16" hidefocus="true">女装</a>
		<a href="list.php?cid=30" hidefocus="true">男装</a>
		<a href="list.php?cid=1801" hidefocus="true">化妆品</a>
		<a href="list.php?cid=50006843" hidefocus="true">鞋子</a>
		<a href="list.php?cid=50006842" hidefocus="true">包包</a>
		<a class="last" href="list.php" hidefocus="true">更多&gt;&gt;</a></span></div>
		<div class="m-content">
		<div class="offer-list-window">
        <ul class="offer-list-main clearfix">
        <!--循环开始-->
        <?php for($i = 0; $i < count($ListHot); $i++) {
				$hottitle=str_replace("'","",$ListHot[$i]["title"]);
				$hottitle=strip_tags($hottitle);
				//简易模式还是详细模式选择不同的链接地址
				if(WEBTYPE=='0'){
					$gourl="href=\"list.php?iid=".$ListHot[$i]["num_iid"]."\" target=\"_blank\"";
				}else{
					$gourl="href=\"view".$url_head_iid.encode_url($ListHot[$i]["num_iid"]).$url_end."\" target=\"_blank\"";
				}
				?>
        <li>
        <div class="image">
        <a <?=$gourl?>><SCRIPT language=javascript>setPic('<?php echo base64_encode($ListHot[$i]["pic_url"]."_310x310.jpg")?>',140,140,'<?php echo $hottitle ?>');</SCRIPT></a>
                        </div>
                        <div class="price"><span class="c-999">淘宝价: </span><span class="cny">￥</span><em><?php echo $ListHot[$i]["price"]; ?></em></div>
                        <div class="rebate">可返现：<? echo ck_fxje($ListHot[$i]["commission"],$_SESSION['dduserlevel'])?></div>
                        <div class="extra-info"><span class="cny">最近30天成交: </span><?php echo $ListHot[$i]["commission_num"] ?>件</div>
                    </li>
                    <?php } ?>
         <!--循环结束-->
         
         </ul></div>
		</div>
	</div>
</div>
		</div>
		<!--淘宝热卖结束-->
        <!--右侧开始-->
		<div class="piece_content_r">
		<!--最近消费滚动-->
<div class="mod m-new-income">
	<div class="m-body">
		<div class="m-header">大家正在省...</div>
		<div class="m-content" id="mq">
		
<ul style="margin-top: 0px;">
<li>
<div class="clearfix">
<div class="image fr">
<a href="view.php?iid=14417312911" target="_blank" class="Main_3_right_fl" title="艾曦2012女装春装新款韩版大码时尚修身长袖高领s杉针织衫打底衫"><img width="60" height="60" src="http://img01.taobaocdn.com/bao/uploaded/i1/T13XyVXm4hXXbh3II9_102658.jpg" alt="艾曦2012女装春装新款韩版大码时尚修身长袖高领s杉针织衫打底衫" /></a>
</div>
<p class="user"><span class="user-name">htc**</span> 刚省了 <b class="price"><em>5.62</em></b> 元</p>
 <p class="title"><a href="view.php?iid=14417312911" target="_blank" title="艾曦2012女装春装新款韩版大码时尚修身长袖高领s杉针织衫打底衫" class="vtip">艾曦2012女装春装新款韩版大码时尚修身长袖高领s杉针织衫打底衫</a></p>
<p class="green">淘宝价:￥78.00</p>
</div>
</li>
<li>
<div class="clearfix">
<div class="image fr">
<a href="view-13052818153.html" target="_blank" class="Main_3_right_fl" title="女装2012新款春装女衬衫女立领系带蝴蝶结荷叶边长袖衬衣女士衬衫"><img width="60" height="60" src="http://img03.taobaocdn.com/bao/uploaded/i3/T1wx1JXdpuXXa4wdo5_055314.jpg" alt="女装2012新款春装女衬衫女立领系带蝴蝶结荷叶边长袖衬衣女士衬衫" /></a>
</div>
<p class="user"><span class="user-name">fbj**</span> 刚省了 <b class="price"><em>3.38</em></b> 元</p>
 <p class="title"><a href="view.php?iid=13052818153" target="_blank" title="女装2012新款春装女衬衫女立领系带蝴蝶结荷叶边长袖衬衣女士衬衫" class="vtip">女装2012新款春装女衬衫女立领系带蝴蝶结荷叶边长袖衬衣女士衬衫</a></p>
<p class="green">淘宝价:￥65.00</p>
</div>
</li>
<li>
<div class="clearfix">
<div class="image fr">
<a href="view.php?iid=12903023685" target="_blank" class="Main_3_right_fl" title="2012春装新款韩版女装大码显瘦款修身打底秋冬背心裙羊毛呢连衣裙"><img width="60" height="60" src="http://img04.taobaocdn.com/bao/uploaded/i4/T1AAuRXm8mXXc0zysV_021119.jpg" alt="2012春装新款韩版女装大码显瘦款修身打底秋冬背心裙羊毛呢连衣裙" /></a>
</div>
<p class="user"><span class="user-name">m51**</span> 刚省了 <b class="price"><em>7.06</em></b> 元</p>
 <p class="title"><a href="view.php?iid=12903023685" target="_blank" title="2012春装新款韩版女装大码显瘦款修身打底秋冬背心裙羊毛呢连衣裙" class="vtip">2012春装新款韩版女装大码显瘦款修身打底秋冬背心裙羊毛呢连衣裙</a></p>
<p class="green">淘宝价:￥98.00</p>
</div>
</li>
<li>
<div class="clearfix">
<div class="image fr">
<a href="view.php?iid=12496949069" target="_blank" class="Main_3_right_fl" title="包邮 2012新款春装 蕾丝打底衫 百搭女装韩版圆领纯色长袖T恤小衫"><img width="60" height="60" src="http://img01.taobaocdn.com/bao/uploaded/i1/T1EMqBXepMXXc3V832_045206.jpg" alt="包邮 2012新款春装 蕾丝打底衫 百搭女装韩版圆领纯色长袖T恤小衫" /></a>
</div>
<p class="user"><span class="user-name">kjd**</span> 刚省了 <b class="price"><em>1.58</em></b> 元</p>
 <p class="title"><a href="view.php?iid=12496949069" target="_blank" title="包邮 2012新款春装 蕾丝打底衫 百搭女装韩版圆领纯色长袖T恤小衫" class="vtip">包邮 2012新款春装 蕾丝打底衫 百搭女装韩版圆领纯色长袖T恤小衫</a></p>
<p class="green">淘宝价:￥38.00</p>
</div>
</li>
<li>
<div class="clearfix">
<div class="image fr">
<a href="view.php?iid=10349500991" target="_blank" class="Main_3_right_fl" title="新款春装网纱裙蕾丝裙蓬蓬裙连衣裙吊带裙打底短裙子吊带蓬蓬裙女"><img width="60" height="60" src="http://img03.taobaocdn.com/bao/uploaded/i3/T103KVXklcXXbxrCk8_101550.jpg" alt="新款春装网纱裙蕾丝裙蓬蓬裙连衣裙吊带裙打底短裙子吊带蓬蓬裙女" /></a>
</div>
<p class="user"><span class="user-name">o1t**</span> 刚省了 <b class="price"><em>2.69</em></b> 元</p>
 <p class="title"><a href="view-10349500991.html" target="_blank" title="新款春装网纱裙蕾丝裙蓬蓬裙连衣裙吊带裙打底短裙子吊带蓬蓬裙女" class="vtip">新款春装网纱裙蕾丝裙蓬蓬裙连衣裙吊带裙打底短裙子吊带蓬蓬裙女</a></p>
<p class="green">淘宝价:￥42.00</p>
</div>
</li>
<li>
<div class="clearfix">
<div class="image fr">
<a href="view.php?iid=2224219795" target="_blank" class="Main_3_right_fl" title="2012 春装新款女装韩版女士黑色大码小西服修身小西装小外套 女款"><img width="60" height="60" src="http://img03.taobaocdn.com/bao/uploaded/i3/T19vXzXghsXXXNnc3V_020125.jpg" alt="2012 春装新款女装韩版女士黑色大码小西服修身小西装小外套 女款" /></a>
</div>
<p class="user"><span class="user-name">t71**</span> 刚省了 <b class="price"><em>6.66</em></b> 元</p>
 <p class="title"><a href="view.php?iid=2224219795" target="_blank" title="2012 春装新款女装韩版女士黑色大码小西服修身小西装小外套 女款" class="vtip">2012 春装新款女装韩版女士黑色大码小西服修身小西装小外套 女款</a></p>
<p class="green">淘宝价:￥128.00</p>
</div>
</li>
<li>
<div class="clearfix">
<div class="image fr">
<a href="view.php?iid=4290352806" target="_blank" class="Main_3_right_fl" title="新款春装团购纯棉衣衣 加绒加厚女格子衬衣 休闲长袖大码衬衫修身"><img width="60" height="60" src="http://img06.taobaocdn.com/bao/uploaded/i6/T1hLCUXcpgXXXB92Z4_053008.jpg" alt="新款春装团购纯棉衣衣 加绒加厚女格子衬衣 休闲长袖大码衬衫修身" /></a>
</div>
<p class="user"><span class="user-name">41x**</span> 刚省了 <b class="price"><em>2.2</em></b> 元</p>
 <p class="title"><a href="view.php?iid=4290352806" target="_blank" title="新款春装团购纯棉衣衣 加绒加厚女格子衬衣 休闲长袖大码衬衫修身" class="vtip">新款春装团购纯棉衣衣 加绒加厚女格子衬衣 休闲长袖大码衬衫修身</a></p>
<p class="green">淘宝价:￥55.00</p>
</div>
</li>
<li>
<div class="clearfix">
<div class="image fr">
<a href="view.php?iid=12960599722" target="_blank" class="Main_3_right_fl" title="2012  新款春装 不起球 不褪色 长袖针织衫 女 开衫 外套 尺码全"><img width="60" height="60" src="http://img02.taobaocdn.com/bao/uploaded/i2/T1vPeqXo0WXXXtpOo7_064822.jpg" alt="2012  新款春装 不起球 不褪色 长袖针织衫 女 开衫 外套 尺码全" /></a>
</div>
<p class="user"><span class="user-name">mzt**</span> 刚省了 <b class="price"><em>1.2</em></b> 元</p>
 <p class="title"><a href="view.php?iid=12960599722" target="_blank" title="2012  新款春装 不起球 不褪色 长袖针织衫 女 开衫 外套 尺码全" class="vtip">2012  新款春装 不起球 不褪色 长袖针织衫 女 开衫 外套 尺码全</a></p>
<p class="green">淘宝价:￥30.00</p>
</div>
</li>
<li>
<div class="clearfix">
<div class="image fr">
<a href="view.php?iid=10471318502" target="_blank" class="Main_3_right_fl" title="春装新款 女装 卡通淑女条纹蕾丝修身纯棉长袖T恤打底衫 实拍6666"><img width="60" height="60" src="http://img03.taobaocdn.com/bao/uploaded/i3/T1z1OmXjVtXXcwZB.._113343.jpg" alt="春装新款 女装 卡通淑女条纹蕾丝修身纯棉长袖T恤打底衫 实拍6666" /></a>
</div>
<p class="user"><span class="user-name">8rc**</span> 刚省了 <b class="price"><em>2.2</em></b> 元</p>
 <p class="title"><a href="view.php?iid=10471318502" target="_blank" title="春装新款 女装 卡通淑女条纹蕾丝修身纯棉长袖T恤打底衫 实拍6666" class="vtip">春装新款 女装 卡通淑女条纹蕾丝修身纯棉长袖T恤打底衫 实拍6666</a></p>
<p class="green">淘宝价:￥27.50</p>
</div>
</li>
<li>
<div class="clearfix">
<div class="image fr">
<a href="view.php?iid=13238380024" target="_blank" class="Main_3_right_fl" title="百谷香6折2012春装新款冬韩版打底衫低领长款女款女装大码长袖T恤"><img width="60" height="60" src="http://img02.taobaocdn.com/bao/uploaded/i2/T1EzanXjRWXXawJVoU_013430.jpg" alt="百谷香6折2012春装新款冬韩版打底衫低领长款女款女装大码长袖T恤" /></a>
</div>
<p class="user"><span class="user-name">kdd**</span> 刚省了 <b class="price"><em>9.05</em></b> 元</p>
 <p class="title"><a href="view.php?iid=13238380024" target="_blank" title="百谷香6折2012春装新款冬韩版打底衫低领长款女款女装大码长袖T恤" class="vtip">百谷香6折2012春装新款冬韩版打底衫低领长款女款女装大码长袖T恤</a></p>
<p class="green">淘宝价:￥78.00</p>
</div>
</li>
	
		
				</ul>
		</div>
	</div>
</div>
<!--最近消费滚动结束-->
		</div>
        <!--右侧结束-->
     </div>
      <div class="white_bottom"><div class="white_bottom_left"></div><div class="white_bottom_middle"></div><div class="white_bottom_right"></div></div>
</div>
<!--分享结束-->
</div><!--index结束-->
<!-- 友情链接-->
<div class="index_links">
<div class="white_top"><div class="white_top_left"></div><div class="white_top_middle"></div><div class="white_top_right"></div>	</div>
<div class="white_bg">
<div class="yqljtitle">友情链接</div>
	<ul class="yqljlist">
    <?php while ($row = mysql_fetch_array($rs_yqlj)) {?>
		<li><a href="<?=$row['url']?>" target="_blank" title="<?=$row['webname']?>"><?=$row['webname']?></a></li>
	<?php }?>
    </ul>
</div>  
<div class="white_bottom"><div class="white_bottom_left"></div><div class="white_bottom_middle"></div><div class="white_bottom_right"></div></div>
</div></div>  
<!--链接结束-->       
<?php
include("footer.tpl.php");
?>
<script language="javascript">
var oMarquee = document.getElementById("mq"); //滚动对象
var iLineHeight = 103; //单行高度，像素
var iLineCount = 10; //实际行数
var iScrollAmount = 1; //每次滚动高度，像素
function run() {
oMarquee.scrollTop += iScrollAmount;
if ( oMarquee.scrollTop == iLineCount * iLineHeight )
oMarquee.scrollTop = 0;
if ( oMarquee.scrollTop % iLineHeight == 0 ) {
window.setTimeout( "run()", 2000 );} else {
window.setTimeout( "run()", 2 );}}
oMarquee.innerHTML += oMarquee.innerHTML;
window.setTimeout( "run()", 2000 );
</script>
<script language="javascript" type="text/javascript">
function dk_slideplayer(object,count){
	var _this = this;
	_this.obj = object;
	_this.count = count;
	_this.time = 5000; //停留的时间
	_this.n = 0;
	var t;
	
	this.slide = function(){ //普通的选项卡
		$(_this.obj + " .TabADS li").bind("mouseover",function(event){
			
			$(event.target).addClass("TasADSOn").siblings().removeClass("TasADSOn");			
			var index = $(_this.obj + " .TabADS li").index(this);
			$(_this.obj + " .TabADSCon ul").eq(index).show().siblings().hide();
			_this.n = index;
		});
	}
	
	this.addhover = function(){ //鼠标悬停暂停轮换
		$(_this.obj).hover(function(){clearInterval(t);}, function(){t = setInterval(_this.autoplay,_this.time)});
	}
	
	this.autoplay = function(){ //通过模拟鼠标事件实现轮换
		_this.n = _this.n >= (_this.count - 1) ? 0 : ++_this.n;
		$(_this.obj + " .TabADS li").eq(_this.n).trigger("mouseover");
	}
	
	this.factory = function(){
		this.slide();
		this.addhover();
		t = setInterval(this.autoplay,_this.time);
	}	
	this.factory();
}
</script>
<script type="text/javascript">new dk_slideplayer("#Tab1",8);</script></body></html>
</body>
</html>