<?php defined('G_IN_SYSTEM')or exit('No permission resources.'); ?><?php include templates("index","header");?>
<link rel="stylesheet" type="text/css" href="<?php echo G_TEMPLATES_STYLE; ?>/css/LotteryDetail.css"/>

<style>
.huojiang{
 display:-webkit-box-flex;
  display:-webkit-flex;
  display:flex;
}
.hj-center{
  -webkit-box-flex:1;
  -webkit-flex:1;
  flex:1;
}
.gbtn:hover{
  opacity:0.8;
}


.w_winner_name dl dd{height:38px;color:#999;font-size:14px;line-height:38px;float:left;}
.w_winner_name dl dd.w_time{width:86px;padding-left:28px;}
/*2015-6-29 start*/
.w_winner_name dl dd.w_yin{width:140px;padding-left:80px;}
.w_winner_name dl dd.w_account,.w_account{width:204px;padding-left:60px;}
.w_winner_name dl dd.w_name,.w_name{width:400px;}
.w_winner_name dl dd.w_people,.w_people{width:90px;padding-left:80px;}
/*2015-6-29 end*/
.w_winner_name p{height:30px;line-height:30px;text-align:center;font-size:12px;color:#fff;width:100%;background:#dd2726;}
.w_winner_name .w_specific{margin-top:4px;}
/* .w_winner_name .w_specific ul{float:left;}  */
.w_winner_name .w_specific ul li{float:left;font-size:12px;color:#3c3c3c;}
</style>
<div style="padding-bottom:10px;" class="Current_nav">
    <a style="color:#7B7B7B" href="<?php echo WEB_PATH; ?>">首页</a> <span style="color:#7B7B7B">&gt;</span>
    <a style="color:#7B7B7B" href="<?php echo WEB_PATH; ?>/goods_list/<?php echo $item['cateid']; ?>">
    <?php echo $category['name']; ?>
    </a> <span style="color:#7B7B7B">&gt;</span>
    <a style="color:#7B7B7B" href="<?php echo WEB_PATH; ?>/goods_list/<?php echo $item['cateid']; ?>e<?php echo $item['brandid']; ?>">
    <?php echo $brand['name']; ?>
    </a> 
	<span style="color:#db3652">揭晓详情&nbsp;&nbsp;[期号:<?php echo $item['qishu']; ?>]</span>
</div>
<div class="show_content">
    <!-- 商品期数 -->

    <div id="divPeriodList" class="show_Period">
        <?php echo $loopqishu; ?>
    </div>

    <!-- 商品信息 -->
    <div class="Pro_Details">
       
        <div class="Pro_Detleft">
            <div class="Pro_Detimg">
                <div style="width:260px;height:230px;margin-left:-95px;margin-top:-1px;"  class="Pro_pic"><a href="<?php echo WEB_PATH; ?>/goods/<?php echo $item['id']; ?>" title="<?php echo $item['title']; ?>"><img style="width:260px;height:230px;"  src="<?php echo G_UPLOAD_PATH; ?>/<?php echo $item['thumb']; ?>"></a></div>
            </div>
            <?php if($itemzx): ?>
		<!--
            <div class="Result_LConduct">
                <dl>
                    <dt><span>第<?php echo $itemzx['qishu']; ?>期</span>正在进行</dt>
                    <dd>
                        <div class="Result_Progress-bar">
                            <p><span style="width:<?php echo width($itemzx['canyurenshu'],$itemzx['zongrenshu'],208); ?>px;"></span></p>
                            <ul class="Pro-bar-li">
                                <li class="P-bar01"><em><?php echo $itemzx['canyurenshu']; ?></em>已参与人次</li>
                                <li class="P-bar02"><em><?php echo $itemzx['zongrenshu']; ?></em>总需人次</li>
                                <li class="P-bar03"><em><?php echo $itemzx['shenyurenshu']; ?></em>剩余人次</li>
                            </ul>
                        </div>
                        <p><a href="<?php echo WEB_PATH; ?>/goods/<?php echo $itemzx['id']; ?>" target="_blank" class="Result_LConductBut">查看详情</a></p>
                    </dd>
                </dl>
            </div>
		-->
            <?php endif; ?>
        </div>
        <div style="margin-left:-290px;" class="Pro_Detright">
             <h1><span ><?php echo $item['title']; ?></span><span style="<?php echo $item['title_style']; ?>;color:#db3652;"><?php echo $item['title2']; ?></span></h1>
           <div style="height:140px;width:645px;background-image:url(<?php echo G_TEMPLATES_IMAGE; ?>/maininfo_bg.png);background-position:0 -139px;" class="">
		     <span style="position:relative;top:-5px;left:70px;color:#876009;font-family:'Microsoft YaHei';font-weight:bolder; font-size:12px;"><strong>期号:&nbsp;&nbsp;<?php echo $item['qishu']; ?></strong></span>
			 <?php $ln=1;if(is_array($q_user_code_arr)) foreach($q_user_code_arr AS $q_code_num): ?>

			 <span style="position:relative;top:35px;left:240px ;font-family:'Microsoft YaHei'; font-weight:bold; font-size:55px;color:#C40000;" class=""><?php echo $q_code_num; ?></span>
			  <?php  endforeach; $ln++; unset($ln); ?>

		   </div>

<!--
            <div class="Announced_Frame">
                <div class="Announced_FrameT">揭晓结果</div>
                <div class="Announced_FrameCode">
                    <ul class="Announced_FrameCodeMal">
                        <?php $ln=1;if(is_array($q_user_code_arr)) foreach($q_user_code_arr AS $q_code_num): ?>
                        <li class="Code_<?php echo $q_code_num; ?>"><?php echo $q_code_num; ?><b></b></li>
                        <?php  endforeach; $ln++; unset($ln); ?>
                    </ul>
                </div>
                <div class="Announced_FrameGet">
                    <dl>
                        <dd class="gray02">
                            <p>恭喜<a href="<?php echo WEB_PATH; ?>/uname/<?php echo idjia($item['q_uid']); ?>" target="_blank" class="blue" title="Warm">
                                <?php echo get_user_name($q_user); ?> </a> 获得本期商品
                            </p>
                            <p>揭晓时间：<?php echo microt($item['q_end_time']); ?></p>
                            <p><?php echo _cfg('web_name_two'); ?>时间：<?php echo microt($user_shop_time); ?></p>
                        </dd>
                    </dl>
                </div>

-->
                <!--补丁3.1.5_b.0.1-->
<!--
                <div class="Announced_FrameBut">
                    <a href="javascript:;"  class="Announced_But">本期详细计算结果</a>
                    <a href="javascript:;"  class="Announced_But">看看有谁参与了</a>
                    <a href="javascript:;" class="Announced_But">看看有谁晒单</a>
                </div>
-->
                <!--补丁3.1.5_b.0.1-->

<!--
                <div class="Announced_FrameBm"></div>
            </div>
			-->
			<!--
            <div class="MaCenter">
                <p>商品获得者本期总共<?php echo _cfg('web_name_two'); ?>了<em class="orange"><?php echo $user_shop_number; ?></em>人次</p>
                    <div id="userRnoId" class="MaCenterH"><dl>
                        <dt><?php echo microt($user_shop_time); ?>
                        <dd>
                            <?php echo yunma($user_shop_codes,"b"); ?>
                        </dd>
                    </dl>
                </div>
            </div>
            <div id="divOpen" class="MaOff" style=""><span>展开查看全部<s></s></span></div>
			-->
			
        </div>

    </div>

	<div style="width:920px;height:110px;background-color:#f2f2f2;border:1px solid #E0E0E0;float:left;border-left:none;border-bottom:none;" class="huojiang">
	  <div style="float:left;width:90px;height:90px;margin:10px;background-color:#fff;background-image:url(<?php echo G_UPLOAD_PATH; ?>/<?php echo get_user_key($item['q_uid'],'img'); ?>);background-repeat:no-repeat;background-size:80px 80px;background-position:5px 5px;border:1px solid #f2f2f2;border-radius:3px;" class=""></div>
	  <div style="float:left;height:90px;margin:10px;" class="hj-center">
	     <p style="color:#00A600;font-size:13px;margin-bottom:20px;">恭喜<a style="color:#C40000;" href="<?php echo WEB_PATH; ?>/uname/<?php echo idjia($item['q_uid']); ?>" target="_blank" class="blue" title="Warm">
                                <?php echo get_user_name($q_user); ?> </a> 获得本期商品
                            </p>
							<p style="color:#00A600;"><strong><b>用户ID:<?php echo $item['q_uid']; ?></b></strong>(ID为用户唯一不变标识)</p>
                            <p style="color:#996600;">揭晓时间：<?php echo microt($item['q_end_time']); ?></p>
                            <p style="color:#996600;"><?php echo _cfg('web_name_two'); ?>时间：<?php echo microt($user_shop_time); ?></p>

	  </div>
	  <div style="float:right;width:455px;height:90px;margin:10px;background-color:#fff;border:1px solid #E0E0E0; overflow-y:auto; overflow-x:auto; " class="">
	   
         <div style="border:none;" class="MaCenter">
                <p style="border:none;">商品获得者本期总共<?php echo _cfg('web_name_two'); ?>了<em class="orange"><?php echo $user_shop_number; ?></em>人次</p><?php echo microt($user_shop_time); ?>
				
                    <div style="margin-left:10px;" id="userRnoId" class="MaCenterH">
					<dl style="">
                       
                        <dd id="d" style="text-overflow:ellipsis;white-space:nowrap;overflow:hidden;">
                            <?php echo yunma($user_shop_codes,"b"); ?>
                        </dd>
						
                    </dl>
					
                </div>
            </div>

	  </div>

	  
	</div>
	<script>
	//alert(<?php echo $item['id']; ?>);
	function show(){
	var ddheight = document.getElementById("dd").offsetHeight; 
	   var dd = document.getElementById("dd");
	   var ss = document.getElementById("ss");
	    if(ddheight<45){
	     dd.style.height="45px";
		  ss.innerHTML="收起···";
	   }else{
	     dd.style.height="25px";
		  ss.innerHTML="展开···";
	   }
	}
	   window.onload = function(){ 
       var ddheight = document.getElementById("dd").offsetHeight; 
	   var dd = document.getElementById("dd");
	   var ss = document.getElementById("ss");
	   if(ddheight>25){
	     dd.style.height="25px";
		 ss.innerHTML="展开···";
	   }
    } 
	</script>
	 <!--计算公式-->
<div style="border:none;" id="divCalResult" class="Product_Content">
<!--
        <div class="ygRecord" name="div_tab">
                <div class="RecordOnehundred"><h4>截止该商品揭晓购买时间【<?php echo microt($item['q_end_time']); ?>】最后50条全站购买时间记录</h4>
                <div class="FloatBox"></div>
                    <?php 
                    $addList = $this->db->GetList("select * from `@#_member_go_record` where time < '{$item['overtime']}' order by id desc limit 50");
                     ?>
                   <?php $ln=1;if(is_array($addList)) foreach($addList AS $record): ?>
                   <?php 
                        $itemid = $item['id'];
                        $record_time = explode(".",$record['time']);
                        $record['time'] = $record_time[0];
                        $record['timeadd'] = str_replace(':','',date("H:i:s",$record['time']));
                        $record['timeadd'] = $record['timeadd'].$record_time[1];
                    ?>
                   <ul class="Record_content">
                        <li class="time"><b><?php echo date("Y-m-d",$record['time']); ?></b><?php echo date("H:i:s",$record['time']); ?>.<?php echo $record_time['1']; ?></li>
                        <li class="timeVal"><?php echo $record['timeadd']; ?></li>
                        <li class="nem"><a class="gray02" href="<?php echo WEB_PATH; ?>/uname/<?php echo idjia($record['uid']); ?>" target="_blank"><?php echo get_user_name($record['uid']); ?></a></li>
                        <li class="name"><a class="gray02" href="<?php echo WEB_PATH; ?>/goods/<?php echo $record['shopid']; ?>" target="_blank">（第<?php echo $record['shopqishu']; ?>期）<?php echo $record['shopname']; ?></a></li>
                        <li class="much"><?php echo $record['gonumber']; ?>人次</li>
                    </ul>
                    <?php  endforeach; $ln++; unset($ln); ?>
                </div>
-->
                <div style="margin-top:20px;height:90px;padding:8px;width:900px;float:left;position:relative;top:10px;border-right:none;" class="m-detail-main-rule">
                    <ul style="margin:0 auto;" class="txt">
                        <li>
                            <span class="title">计算公式</span>
                            <?php 
                                $result1 = 0;
                                foreach ($addList as $key => $value) {
                                    $tmp = explode('.', $value['time']);
                                    $item_time = date("His",$tmp[0]);
                                    $item_time .= $tmp[1];
                                    $result1 = bcadd($result1, $item_time);
                                }
                                $result2 = str_split($item['period1']);
                             ?>
                            <div class="formula">
                                <div class="box red-box">
                                    <b class="txt-red"><?php echo $item['q_user_code']; ?></b><br>
                                    <b class="txt-red" style="font-size:12px">本期幸运号码</b>
                                </div>
                                <div class="operator">=(</div>
                                <div class="box gray-box">
                                    <b class="txt-red"><?php echo $result1; ?></b><br>50个时间求和
                                    <div class="more-box">
                                        <i class="ico ico-arrow ico-arrow-yellow"></i>
                                        <div class="yellow-box f-breakword">奖品的最后一个号码分配完毕，公示该分配时间点前本站全部奖品的<span class="txt-red">最后50个参与时间</span>，并求和</div>
                                    </div>
                                </div>
                                <div class="operator" title="组合"></div>+
                                <div class="box gray-box">
                                    <b class="txt-red"><?php echo $item['period1']; ?></b><br>“老时时彩”开奖号码
                                    <div class="more-box">
                                        <i class="ico ico-arrow ico-arrow-yellow"></i>
                                        <div class="yellow-box f-breakword">取最近一期“老时时彩” (第<span class="txt-red"><?php echo $item['period1_date']; ?></span>期) 开奖结果。 <a href="http://baidu.lecai.com/lottery/draw/sorts/cqssc.php?agentId=5591" target="_blank">开奖查询</a></div>
                                    </div>
                                </div>
                                <div class="operator" title="取余">)%</div>
                                <div class="box"><b class="txt-red"><?php echo $item['canyurenshu']; ?></b><br>该奖品总需人次</div><div class="operator" title="相加">+</div><div class="box"><b class="txt-red">10000001</b><br>原始数</div>
                            </div>
                        </li>
                    </ul>
                </div>

    </div>


<!---计算公式结束-->

<!--	<div style="height:200px;width:200px;background-color:red;float:right;" class=""></div>-->
<div style="width:260px;height:25px;background-color:#f2f2f2;float:right; height:500px;border:1px solid #E0E0E0;margin-top:-490px;border-top:none;" class=""><div style="width:258px;height:40px; text-align:left;line-height:40px;font-size:20px;color:#7B7B7B;" class=""><span style="margin-left:28px;">最新一期</span></div>
  <div>
    <div class="qishu" style="width:240px;height:35px;margin:0px auto; background-color:#fff;line-height:35px;text-align:center;padding-top:15px;">
	  <div class="qishu-left"></div>
	  <div style="font-size:13px;"  class="qishu-center">最新一期正在进行，赶紧参加吧</div>
	  <div class="qishu-right"></div>
	</div>
	<div style="width:240px;height:350px;background-color:#fff;margin:0 auto;margin-top:3px;" class="">
	<img style="120px;height:150px;margin-left:5px;margin-top:10px;" src="<?php echo G_UPLOAD_PATH; ?>/<?php echo $item['thumb']; ?>">
	<h1 style="width:220px;margin-left:10px;margin-top:20px;"><?php echo $item['title']; ?><?php echo $item['title2']; ?></h1>
	<div style="margin-top:20px;" class="Result_Progress-bar">
                            <p><span style="width:<?php echo width($itemzx['canyurenshu'],$itemzx['zongrenshu'],208); ?>px;"></span></p>
                            <ul style="margin-top:5px;" class="Pro-bar-li">
                                <li style="margin-top:5px;" class="P-bar01"><em><?php echo $itemzx['canyurenshu']; ?></em>已参与人次</li>
                                <li style="margin-top:5px;" class="P-bar02"><em><?php echo $itemzx['zongrenshu']; ?></em>总需人次</li>
                                <li style="margin-top:5px;" class="P-bar03"><em><?php echo $itemzx['shenyurenshu']; ?></em>剩余人次</li>
                            </ul>
                        </div>
						<button style="width:110px; height:40px;border:1px solid #fff;background-color:#C40000;color:#fff;margin-left:67px;margin-top:20px;border-radius:3px;" class="gbtn"><a style="color:#fff;font-size:13px;" href="<?php echo WEB_PATH; ?>/goods/<?php echo $itemzx['id']; ?>" target="_blank" class="Result_LConductBut">立即云购</a></button>


	</div>

	<div style="width:240px;height:45px;background-color:#fff;margin:0 auto;" class=""></div>
    

							
  </div>

 
 </div>

	</div>
	


</div>

<!----------------------->
</div>


    <!-- 计算结果 所有参与记录 晒单 -->
    <div id="calculate" class="ProductTabNav">
        <div id="divMidNav" class="DetailsT_Tit">
            <div class="DetailsT_TitP">
                <ul>
                    <li class="Product_DetT DetailsTCur"><span class="DetailsTCur">计算结果</span></li>
                    <li class="All_RecordT"><span class="">所有参与记录</span></li>
                    <li class="Single_ConT"><span class="">晒单</span></li>
                </ul>
            </div>
        </div>
    </div>

    <!--补丁3.1.6_b.0.1-->
    <div id="divCalResult" class="Product_Content">
        <div class="ygRecord" name="div_tab">
		<ul class="w_winner_name" >
	          		<dl>
	            		<dd class="w_time">夺宝时间</dd>
	            		<dd class="w_yin">时间因子</dd>
		                <dd class="w_account">会员账号</dd>
		                <dd class="w_name">商品名称</dd>
		                <dd class="w_people">夺宝人次</dd>
	          		</dl>
                <div class="RecordOnehundred"><h4>截止该商品揭晓购买时间【<?php echo microt($item['q_end_time']); ?>】最后50条全站购买时间记录</h4>
                <div class="FloatBox"></div>
                    <?php 
                    $addList = $this->db->GetList("select * from `@#_member_go_record` where time < '{$item['overtime']}' order by id desc limit 50");
                     ?>
                   <?php $ln=1;if(is_array($addList)) foreach($addList AS $record): ?>
                   <?php 
                        $itemid = $item['id'];
                        $record_time = explode(".",$record['time']);
                        $record['time'] = $record_time[0];
                        $record['timeadd'] = str_replace(':','',date("H:i:s",$record['time']));
                        $record['timeadd'] = $record['timeadd'].$record_time[1];
                    ?>
                   <ul class="Record_content">
                        <li class="time"><b><?php echo date("Y-m-d",$record['time']); ?></b><?php echo date("H:i:s",$record['time']); ?>.<?php echo $record_time['1']; ?></li>
                        <li class="timeVal"><?php echo $record['timeadd']; ?></li>
                        <li class="nem"><a class="gray02" href="<?php echo WEB_PATH; ?>/uname/<?php echo idjia($record['uid']); ?>" target="_blank"><?php echo get_user_name($record['uid']); ?></a></li>
                        <li class="name"><a class="gray02" href="<?php echo WEB_PATH; ?>/goods/<?php echo $record['shopid']; ?>" target="_blank">（第<?php echo $record['shopqishu']; ?>期）<?php echo $record['shopname']; ?></a></li>
                        <li class="much"><?php echo $record['gonumber']; ?>人次</li>
                    </ul>
                    <?php  endforeach; $ln++; unset($ln); ?>
                </div>


                <div class="m-detail-main-rule" style="margin-top:15px;height: 90px;">
                    <ul class="txt">
                        <li>
                            <span class="title">计算公式</span>
                            <?php 
                                $result1 = 0;
                                foreach ($addList as $key => $value) {
                                    $tmp = explode('.', $value['time']);
                                    $item_time = date("His",$tmp[0]);
                                    $item_time .= $tmp[1];
                                    $result1 = bcadd($result1, $item_time);
                                }
                                $result2 = str_split($item['period1']);
                             ?>
                            <div class="formula">
                                <div class="box red-box">
                                    <b class="txt-red"><?php echo $item['q_user_code']; ?></b><br>
                                    <b class="txt-red" style="font-size:12px">本期幸运号码</b>
                                </div>
                                <div class="operator">=(</div>
                                <div class="box gray-box">
                                    <b class="txt-red"><?php echo $result1; ?></b><br>50个时间求和
                                    <div class="more-box">
                                        <i class="ico ico-arrow ico-arrow-yellow"></i>
                                        <div class="yellow-box f-breakword">奖品的最后一个号码分配完毕，公示该分配时间点前本站全部奖品的<span class="txt-red">最后50个参与时间</span>，并求和</div>
                                    </div>
                                </div>
                                <div class="operator" title="组合">+</div>
                                <div class="box gray-box">
                                    <b class="txt-red"><?php echo $item['period1']; ?></b><br>“老时时彩”开奖号码
                                    <div class="more-box">
                                        <i class="ico ico-arrow ico-arrow-yellow"></i>
                                        <div class="yellow-box f-breakword">取最近一期“老时时彩” (第<span class="txt-red"><?php echo $item['period1_date']; ?></span>期) 开奖结果。 <a href="http://baidu.lecai.com/lottery/draw/sorts/cqssc.php?agentId=5591" target="_blank">开奖查询</a></div>
                                    </div>
                                </div>
                                <div class="operator" title="取余">)%</div>
                                <div class="box"><b class="txt-red"><?php echo $item['canyurenshu']; ?></b><br>该奖品总需人次</div><div class="operator" title="相加">+</div><div class="box"><b class="txt-red">10000001</b><br>原始数</div>
                            </div>
                        </li>
                    </ul>
                </div>

                <div class="m-detail-mainTab-calcRule">
                    <h4><i class="ico ico-text"></i><br>幸运号码<br>计算规则</h4>
                    <div class="ruleWrap">
                        <ol class="ruleList">
                            <li><span class="index">1</span>奖品的最后一个号码分配完毕后，将公示该分配时间点前本站全部奖品的最后50个参与时间；</li>
                            <li><span class="index">2</span>将这50个时间的数值进行求和（得出数值A）（每个时间按时、分、秒、毫秒的顺序组合，如20:15:25.362则为201525362）；</li>
                            <li><span class="index">3</span>为保证公平公正公开，系统还会等待一小段时间，取最近下一期中国福利彩票“老时时彩”的开奖结果（一个五位数值B）；</li>
                            <li><span class="index">4</span>（数值A、数值B组合）除以该奖品总需人次得到的余数<i style="margin-top:-3px;" data-func="remainder" class="ico ico-questionMark"></i> + 原始数&nbsp;10000001，得到最终幸运号码，拥有该幸运号码者，直接获得该奖品。</li>
                            <li class="txt-red">注：最后一个号码分配时间距离“老时时彩”最近下一期开奖大于24小时，则采用下一期开奖结果,依次顺延。<a href="http://baidu.lecai.com/lottery/draw/sorts/cqssc.php?agentId=5591" style="color:#C40000;" target="_blank">了解更多“老时时彩”信息</a></li>
                        </ol>
                    </div>
                </div>

                <div class="m-detail-mainTab-resultList">
                <div class="resultRow">
                    <h4>计算结果<a name="calcResult"></a></h4>
                    <ol>
                        <li><span class="index">1、</span>求和：<?php echo $r2; ?>(上面50条参与记录的时间取值相加)</li>
                        <li><span class="index">2、</span>第 <?php echo $item['period1_date']; ?> 期 “老时时彩”开奖号码：<?php $ln=1;if(is_array($result2)) foreach($result2 AS $r2): ?><b class="ball"><?php echo $r2; ?></b><?php  endforeach; $ln++; unset($ln); ?><a href="http://baidu.lecai.com/lottery/draw/sorts/cqssc.php?agentId=5591" target="_blank">开奖查询&gt;&gt;</a></li>

                        <li><span class="index">3、</span>求余：(<?php echo $result1; ?>+<?php $ln=1;if(is_array($result2)) foreach($result2 AS $r2): ?><b class="square"><?php echo $r2; ?></b><?php  endforeach; $ln++; unset($ln); ?>) % <?php echo $item['canyurenshu']; ?> (奖品所需人次) =
                            <?php 
                                $shop_fmod = fmod($result1 + $item['period1'],$item['canyurenshu']);
                                $shop_fmod_list = str_split($shop_fmod);
                             ?>
                            <?php $ln=1;if(is_array($shop_fmod_list)) foreach($shop_fmod_list AS $listitem): ?><b class="square"><?php echo $listitem; ?></b><?php  endforeach; $ln++; unset($ln); ?>
                            (余数) <i data-func="remainder" class="ico ico-questionMark"></i>
                        </li>
                        <li><span class="index">4、</span>
                            <?php $ln=1;if(is_array($shop_fmod_list)) foreach($shop_fmod_list AS $listitem): ?><b class="square"><?php echo $listitem; ?></b><?php  endforeach; $ln++; unset($ln); ?>
                        (余数) + 10000001 =
                            <?php 
                                $q_user_code = $shop_fmod + 10000001;
                                $q_user_code_list = str_split($q_user_code);
                             ?>
                            <?php $ln=1;if(is_array($q_user_code_list)) foreach($q_user_code_list AS $codeitem): ?><b class="square"><?php echo $codeitem; ?></b><?php  endforeach; $ln++; unset($ln); ?>
                        </li>
                    </ol>
                    <span class="resultCode">幸运号码：<?php echo $item['q_user_code']; ?></span>
                </div>
                </div>
            </div>


        <!-- 购买记录20条 -->
        <div name="div_tab" id="bitem" class="AllRecordCon">
            <iframe id="iframea_bitem" g_src="<?php echo WEB_PATH; ?>/go/goods/go_record_ifram/<?php echo $itemid; ?>/20" style="width:978px; border:none;height:0px;" frameborder="0" scrolling="no"></iframe>
        </div>
       <!-- /购买记录20条 -->
       <!--补丁3.1.6_b.0.1-->

       <!--补丁3.1.6_b.0.2-->
        <!-- 晒单 -->
        <div name="div_tab" id="divPost" class="Single_Content">
            <iframe id="iframea_divPost" g_src="<?php echo WEB_PATH; ?>/go/shaidan/itmeifram/<?php echo $itemid; ?>" style="width:978px; border:none;height:0px;" frameborder="0" scrolling="no"></iframe>
        </div>
        <!-- 晒单 -->
        <!--补丁3.1.6_b.0.2-->
    </div>
<script>
<!--补丁3.1.6_b.0.3-->
function set_iframe_height(fid,did,height){
    $("#"+fid).css("height",height);
}

$(function(){
var fouli=$(".DetailsT_TitP ul li");
var divCalResult =  $("div[name='div_tab']");
    fouli.click(function(){
        var index=fouli.index(this);
        fouli.removeClass("DetailsTCur").eq(index).addClass("DetailsTCur");
        var iframe = divCalResult.hide().eq(index).find("iframe");
            if (typeof(iframe.attr("g_src")) != "undefined") {
                 iframe.attr("src",iframe.attr("g_src"));
                 iframe.removeAttr("g_src");
            }

        divCalResult.hide().eq(index).show();
    });
<!--补丁3.1.6_b.0.3-->


    $(".Announced_But").click(function(){
        var next_li = $(".DetailsT_TitP ul>li");
        var index = $(this).index()
        next_li.eq(index).click();
    });


    $(window).scroll(function(){
        if($(window).scrollTop()>=941){
            $("#divMidNav").addClass("nav-fixed");
        }else if($(window).scrollTop()<941){
            $("#divMidNav").removeClass("nav-fixed");
        }
    });
});
function divOpen(){
var height=$("#userRnoId").css("height");
    if(height=="90px"){
        $("#userRnoId").css("height","auto");
    }else{
        $("#userRnoId").css("height",90);
    };
}
$(function(){
    $("#divOpen").click(divOpen);
});
</script>
<?php include templates("index","footer");?>
