<!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" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<?php include(DDROOTPATH.'/cache/title/'.$pagetag.'_title.php');?>
<LINK rel=stylesheet type=text/css href="/template/<?=MOBAN?>/css/mall.css" />
<LINK rel=stylesheet type=text/css href="/template/<?=MOBAN?>/css/common.css" />
<LINK rel=stylesheet type=text/css href="css/colorbox.css" />
<script type="text/javascript" src="/template/<?=MOBAN?>/js/jquery-1.3.2.min.js"></script>
<SCRIPT type="text/javascript" src="/template/<?=MOBAN?>/js/function.js"></SCRIPT>
<script language="javascript">
$.ajaxSetup ({
    cache: false //关闭AJAX相应的缓存
});
$(function(){
    $('.checkLogin').click(function(){
		url=$(this).attr('href');
		lay=$(this).attr('layer');
		index=$(this).attr('index');
		$('#jumpbox .detail').hide();
		$('#layer_mall').show();
		var ddusername='<?=$_SESSION['duoduouser']?>';
		var img=$('#left .malllogo img').attr('src');
		var price=$('#left .malljj .malldetail').find('font').html();
		$('#jump_pic').attr('src',img);
		$('#jump_href').attr('href',url);
		$('.jump_price').html(price);
		
	    if(ddusername!=''){
			window.open(url);
		}
		else{
		    $('.jumpbox').show();
		}
	return false;
	});
	
	$('#jump_href,#jumpclose').click(function(){
	    $('.jumpbox').hide();
	});
    
	$('.x_s_6 img').each(function(){
        var theImage = new Image(); 
        theImage.src = $(this).attr("src");
        if(theImage.width>640){
			if(isFirefox=navigator.userAgent.indexOf("Firefox")>0){ 
                $(this).css('width','640px');
            }
			else{
			    $(this).css('width','640');
			}
		} 
	});
});
</script>
</head>

<body>
<?php
include("header.tpl.php");
?>
<?php
include("nav.tpl.php");
?>
<div id="weizhi">当前位置：<a href="index.php">首页</a> > <a href="coupons.php">促销优惠</a> > <?=$cuxiao['name']?></div>
<div id="main">
<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>
<img usemap="#m" src="/template/<?=MOBAN?>/images/mall_top.gif" style="margin-bottom:10px; width:920px;">
<map id="m">
	<area coords="500,0,583,30" shape="rect" target="_blank" href="/h_49.html">
</map>
</div>
	<div id="left">
		<div class="malljj">
			<div class="malllogo"><span style="writing-mode: tb-rl;vertical-align: middle; height:150px"><img src="upload/<?=$mall['logo']?>" width="140px" /></span></div>
			<div class="malldetail">
				<ul>
					<li style="height:30px; line-height:30px; font-size:14px; font-weight:bold; width:500px;"><div style="float:left"><?=$mall['name']?>最高返现 <font style="color:#f30; font-size:20px;  font-weight:bold; font-family:Georgia,"Times New Roman",Times,serif"><?=$mall['fan']?></font></div> <?php if($mall['renzheng']=='on'){?> <div style="float:left; margin-left:5px; padding-top:6px"><img alt="网站认证" src="/template/<?=MOBAN?>/images/renzheng.gif" /></div><?php }?></li>
					<li style="height:35px; line-height:35px; width:500px; overflow:hidden;"><font style="font-size:14px; font-weight:bold;">温馨提示：</font>返现额度根据您在<?=$mall['name']?>的下单金额而定，最高可以获得<?=$mall['fan']?>的返现！</li>
					<li style="border-bottom:1px dashed #ddd; width:500px;"></li>
					<li style=" height:10px; width:500px;"></li>
					<li style="height:30px; line-height:30px; width:500px;"><div style="float:left">满意度：</div><div title="满意度<?=(round($fen/5,2)*100).'%'?>" style="background:url(/template/<?=MOBAN?>/images/5bx.gif) 0px 0px no-repeat; width:128px; height:24px; float:left"><div style="background:url(/template/<?=MOBAN?>/images/5hx.gif) 0px 0px; width:<?=$x?>px; height:23px;"></div></div><div style="float:left">（<?=(round($fen/5,2)*100).'%'?>）</div></li>
<?php if($_SESSION["duoduouser"]==NULL){echo "<li style=\"height:30px; line-height:30px; width:500px; color:#FF0000;\">您尚未登录，请<a onclick=\"window.location='user/login.php?url='+encodeURIComponent(window.location.href)\" style=\"cursor:pointer;\">登录</a>后从本页进入$mall[name]购物才可获得返现！</li>"; }else{echo "<li style=\"height:30px; line-height:30px; width:500px; color:#006600;\">您已经登录，从本页进入糯米网购物即可获得返现！</li>";}?><li style=" height:25px; width:500px; text-align:left"><a href="jump.php?act_id=<?=$cuxiao['id']?>" class="checkLogin"><img src="template/<?=MOBAN?>/images/gomall.gif" /></a></li>
				</ul>
			</div>
		</div>
		<div class="jsbar">
          <div class="current"><a>促销优惠</a></div>
        </div>
<div class="shang_3" style=" width:715px; margin-top:5px">
          <div class="x_s">
            <div class="x_s_1">
              <table width="390" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td width="67" height="25"class="color_4"><strong>活动名称：</strong></td>
                  <td width="323" height="25" class="color_4"><?=$cuxiao['name']?></td>
                </tr>
                <tr>
                  <td height="25"class="color_4"><strong>活动商家：</strong></td>
                  <td height="25"><a class="color_4"><?=$cuxiao['mallname']?></a></td>
                </tr>
                <tr>
                  <td height="25" class="color_4"><strong>有效日期：</strong></td>
                  <td height="25" class="color_4"><?=$cuxiao['stime']?> -- <?=$cuxiao['etime']?></td>
                </tr>
              </table>
            </div>
            <div class="x_s_2"></div>
          <div class="clear"></div>
          <div class="x_s_5 color_4"><strong>活动信息：</strong></div>
          <div class="x_s_6">
          	<?=str_replace('../../upload','upload',$cuxiao['content'])?>
		 </div>
          <div class="clear"></div>
          
		  </div>
          </div>
         
          <div style="height:10px">&nbsp;</div>
	</div>
	
	<div id="right_other">
    <div class="r_box">
			<div class="title"><span>热门促销</span></div>
			<div class="hc">
				<ul>
							</ul>
				<div class="clear"></div>
			</div>
			<div class="clear"></div>
		</div>
		<div id="ad4"><?=AD(4)?></div>
	</div></div>
    <div class="white_bottomm"><div class="white_bottom_left"></div><div class="white_bottom_middle"></div><div class="white_bottom_right"></div>
</div></div>
	<?php include("footer.tpl.php");?>
</body>
</html>
