

<!DOCTYPE html>
<html>
<head><meta content="text/html; charset=utf-8" http-equiv="Content-Type" /><meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, user-scalable=no, maximum-scale=1.0" />
<title>
	计算结果 - {wc:$webname}触屏版
</title>
<meta content="app-id=518966501" name="apple-itunes-app" /><meta content="yes" name="apple-mobile-web-app-capable" /><meta content="black" name="apple-mobile-web-app-status-bar-style" /><meta content="telephone=no" name="format-detection" />
<link href="{G_TEMPLATES_CSS}/mobile/comm.css" rel="stylesheet" type="text/css" />
<link href="{G_TEMPLATES_CSS}/mobile/lottery.css" rel="stylesheet" type="text/css" />
<script src="{G_TEMPLATES_JS}/mobile/jquery190.js" language="javascript" type="text/javascript"></script>
<script id="pageJS" data="{G_TEMPLATES_JS}/mobile/CalResult.js" language="javascript" type="text/javascript"></script></head>
<body>
<div class="h5-1yyg-v1">
    
<!-- 栏目页面顶部 -->


<!-- 内页顶部 -->

    <header class="g-header">
        <div class="head-l">
	        <a href="javascript:;" onclick="history.go(-1)" class="z-HReturn"><s></s><b>返回</b></a>
        </div>
        <h2>计算结果</h2>
        <div class="head-r">
	        <a id="btnCalMethod" href="javascript:;" class="z-RCornerBtn"><i></i>计算方法</a>
        </div>
    </header>

    <input name="hidCodeID" type="hidden" id="hidCodeID" value="{wc:$item['id']}" />
    <input name="hidRaffleTime" type="hidden" id="hidRaffleTime" value="{wc:fun:microt($item['q_end_time'])}" />
    <input name="hidBaseNum" type="hidden" id="hidBaseNum" value="{wc:$user_shop_time_add}" />
    <input name="hidCodeQuantity" type="hidden" id="hidCodeQuantity" value="{wc:$item['canyurenshu']}" />
    <input name="hidYuShu" type="hidden" id="hidYuShu" value="{wc:$user_shop_fmod}" />
    <input name="hidCodeRno" type="hidden" id="hidCodeRno" value="{wc:$item['q_user_code']}" />
		{wc:php:start}

			$addList = $this->db->GetList("select time,uid from `@#_member_go_record` where time < '{$item[overtime]}' order by id desc limit 50");
		
			
			$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);

			}

			$addResult = bcadd($result1,$item['period1']);

			$shop_fmod = bcmod($addResult,$item['zongrenshu']);

			$shop_result = $shop_fmod + 10000001;

		{wc:php:end}
		
	<script>
		function showInfo(){
			$("#result2").toggle();
		}
	</script>
		
	<div class="infoResult" >
		<ul class="result1">
		</ul>
		<dl id="showInfo" onClick="showInfo();">
			截止揭晓时间【{wc:fun:microt($item['q_end_time'])}】最<em>后50条全站购买时间记录</em>
		</dl>
		<ul class="result2" id="result2" style="display:none;">
			<li class="iTitle">
				<span>云购时间</span>
				<span>转换数据</span>
				<span>会员账号</span>
			</li>
			
                   {wc:loop $addList $record}

                   {wc:php:start}

                        $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];

                   {wc:php:end}
			
				<li class="iTitle">
					<span>
						{wc:fun:date("Y-m-d",$record['time'])} {wc:fun:date("H:i:s",$record['time'])}.{wc:$record_time[1]}
					</span>
					<span>
						{wc:$record['timeadd']}
					</span>
					<span>
						<a class="gray02" href="{WEB_PATH}/mobile/mobile/userindex/{wc:fun:idjia($record['uid'])}" target="_blank">
							{wc:fun:get_user_name($record['uid'])}
						</a>
					</span>
					
				</li>
				{wc:loop:end}
		</ul>
	</div>
	
    <section class="z-minheight">
        <div class="infoCount">
            <div class="infoCount2">
                <ul>
                    <li style="text-align:center;border:0 none;">开奖计算结果</li>
                    <li>1、求和：{wc:$result1} (最后50条参与记录的时间取值相加)</li>
                    <li>2、取得第 {wc:$item['period1_date']} 期 “老时时彩”开奖号码：<em>{wc:$item['period1']}</em></br><a href="http://888.qq.com/info/award/index.php?mod=kuaicai&loty_name=ssc" target="_blank">开奖查询>></a></li>
                    <li>3、求余：{wc:$addResult}+{wc:$item['period1']}<em>(求和)</em>%{wc:$item['zongrenshu']}<em>(奖品所需人次)</em>=<span>{wc:$shop_fmod}<em>(余数)</em></span><p></p></li>
                    <li>4、计算结果：{wc:$shop_fmod}<em>(余数)</em>+10000001=<span>{wc:$shop_result}</span><p></p></li>
                </ul>
            </div>
        </div>
    </section>
    
    
{wc:templates "mobile/index","footer"}
<script language="javascript" type="text/javascript">
  var Path = new Object();
  Path.Skin="{G_TEMPLATES_STYLE}";  
  Path.Webpath = "{WEB_PATH}";
  
var Base={head:document.getElementsByTagName("head")[0]||document.documentElement,Myload:function(B,A){this.done=false;B.onload=B.onreadystatechange=function(){if(!this.done&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){this.done=true;A();B.onload=B.onreadystatechange=null;if(this.head&&B.parentNode){this.head.removeChild(B)}}}},getScript:function(A,C){var B=function(){};if(C!=undefined){B=C}var D=document.createElement("script");D.setAttribute("language","javascript");D.setAttribute("type","text/javascript");D.setAttribute("src",A);this.head.appendChild(D);this.Myload(D,B)},getStyle:function(A,B){var B=function(){};if(callBack!=undefined){B=callBack}var C=document.createElement("link");C.setAttribute("type","text/css");C.setAttribute("rel","stylesheet");C.setAttribute("href",A);this.head.appendChild(C);this.Myload(C,B)}}
function GetVerNum(){var D=new Date();return D.getFullYear().toString().substring(2,4)+'.'+(D.getMonth()+1)+'.'+D.getDate()+'.'+D.getHours()+'.'+(D.getMinutes()<10?'0':D.getMinutes().toString().substring(0,1))}
Base.getScript('{G_TEMPLATES_JS}/mobile/Bottom.js?v='+GetVerNum());
</script>

</div>
</body>
</html>
