<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>荷官端</title>
    <link rel="stylesheet" type="text/css" href="/static/handle/css/reset.css{$Think.VERSION_V}">
    <link rel="stylesheet" type="text/css" href="/static/handle/css/index_tab.css{$Think.VERSION_V}">
    <style type="text/css">
        .section .head .logo{background: url({$logoPath}) center center no-repeat;background-size: 110px;}
        .limit-box .list .item{width:100%;}
        img{width: 100%}
    </style>
    <script type="text/javascript">
        var casinoTableId = "{$table.table_num}";
        var localSbServer="{$localSbServer}";
        var scanner_type = "{$table.scanner_type}";
        var websocketUrl="{$websocketUrl}";
        var websocketProtocol="{$websocketProtocol}";
        var wait_time = "{$table.wait_time}";
        var table_type = "{$table.table_type}";
        var bet_type = "{$table.bet_type}";
        var lang;
        var flvUrl="{$table.media_far_rtmp}";
        var player="{$player}";
        var interval_time="{$table.interval_time}";
    </script>
</head>
<body>
<audio id="audio"></audio><section class="section"><!-- 导航结速-->
    <div class="footer">
        <div class="canvas-box big">
            <div class="countdown">
                <div class="num">
                </div>
            </div>
            <canvas id="canvas3"></canvas>
            <input type="hidden" id="wait_time" value="{$table.wait_time}">
        </div>
        <div class="askbox" id="askbox">
            <div class="item" id="bankerask">
                <div class="box">
                    下一局
                    <strong style="color:#c40404;">{:lang('dragon')}</strong>
                    <i class="tip circle"></i>
                    <i class="tip round"></i>
                    <i class="tip bar"></i>
                </div>
            </div>
            <div class="item" id="playerask">
                <div class="box">
                    下一局
                    <strong style="color:#0048ff;">{:lang('tiger')}</strong>
                    <i class="tip circle"></i>
                    <i class="tip round"></i>
                    <i class="tip bar"></i>
                </div>
            </div>
        </div>
        <div class="table-data">
            <div class="head box-sizing">
                <div class="logo">
                </div>
                <div class="box">
                    <div class="clearfix">
                        <div class="date">
                            <div>
                                {:lang('now_time')}：<span class="weekend"> 周四</span><span class="time"></span>
                            </div>
                        </div>
                    </div>
                    <div class="list clearfix">
                        <div class="item input-box" style="width: 35%;">
                            <!--label>{:lang('table')}</label--><input type="text" disabled="true" value="{$table.table_name}">
                        </div>
                        <div class="item input-box" style="width: 30%; padding-left:75px;">
                            <label>{:lang('boot')}</label><input id="boot_num" type="text" disabled="true" value="">
                        </div>
                        <div class="item input-box m0" style="width: 30%; padding-left:75px;">
                            <label>{:lang('number')}</label><input id="number_tab_number" type="text" disabled="true" value="">
                        </div>
                    </div>
                </div>
            </div>
            <ul class="title" style="margin-top:20px;">
                <li>
                    <strong style="color:#6b0008">{:lang('dragon')}</strong>
                    <small>Dragon</small>
                </li>
                <li>
                    <strong style="color:#023778">{:lang('tiger')}</strong>
                    <small>Tiger</small>
                </li>
                <li>
                    <strong style="color: #0a5101">{:lang('tie')}</strong>
                    <small>Tie</small>
                </li>
            </ul>
            <div class="top">
                <span style="color:#6b0008" id="result_total_banker">0</span>
                <span style="color:#023778" id="result_total_player">0</span>
                <span style="color: #0a5101" id="result_total_tie">0</span>
            </div>
            <div class="lan-box clearfix">
                <div class="item" style="text-align:center; display:inline-block;">
                    <span id="betstatus"></span>
                </div>
            </div>
            <div class="limit-box">
                <div class="list clearfix">
                    <div class="lab">
                        {:lang('dragon')}\{:lang('tiger')}
                    </div>
                    <div class="item fl">
                        <span class="fr showLimitBP">&nbsp;</span>
                    </div>
                </div>
                <div class="list clearfix">
                    <div class="lab">
                        {:lang('tie')}
                    </div>
                    <div class="item fl">
                        <span class="fr showLimitTie">&nbsp;</span>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="canvas-box small">
        <canvas id="canvas1"></canvas>
    </div>
    <div class="canvas-box small">
        <canvas id="canvas2"></canvas>
    </div>
</section><section class="control-box noselect">
    <div class="slide-btn">
        《
    </div>
    <div class="btn-box1">
        <select class="green_bg" id="language">
            <option value="cn" <?php if(isset($langType) && $langType == 'zh-cn') echo 'selected="selected"'; ?> >简体中文</option>
            <option value="tw" <?php if(isset($langType) && $langType == 'zh-tw') echo 'selected="selected"'; ?> >繁體中文</option>
            <option value="en" <?php if(isset($langType) && $langType == 'en-us') echo 'selected="selected"'; ?> >English</option>
        </select>
        <span class="green_bg" id="start_bet" onclick="startBet()">{:lang('start_bet')}</span>
        <!--<span class="red_bg" id="end_bet" onclick="endBet()">结束下注</span>-->
    </div>
    <div class="btn-box2">
        <span id="banker" onclick="confirmResult('banker',1)">{:lang('dragon_all')}</span>
        <span id="player" onclick="confirmResult('player',2)">{:lang('tiger_all')}</span>
        <span id="tie" onclick="confirmResult('tie',3)">{:lang('tie_all')}</span>
    </div>
    <div class="btn-box3">
        <span class="red_bg" id="dosubmit" onclick="opening()">{:lang('opening')}</span>
        <input type="hidden" id="opening" value="0">
        <input type="hidden" id="result_banker_pair" value="0">
        <input type="hidden" id="result_player_pair" value="0">
        <input type="hidden" id="dt_pair" value="0">
    </div>
    <div class="btn-box4">
        <!-- <span onclick="inCheckout()">{:lang('shuffle')}</span> -->
        <span onclick="resetNumberTab()">{:lang('reset_number')}</span>
        <span onclick="changeBoot()">{:lang('change_boot')}</span>
        <span onclick="resetBoot()">{:lang('close_boot')}</span>
        <span onclick="loginout()">{:lang('logout')}</span>
    </div>
    <div class="btn-box5">
        <div class="currencyBox">
            <span>币种：</span>
            <span><input type="checkbox" name="currencyType" value="CNY" checked> CNY</span>
            <span><input type="checkbox" name="currencyType" value="USD" checked> USD</span>
        </div>
        <div class="limitBox">
            <div style="width: 50%;display: inline;float:left;">
                <div style="padding: 0.5vh 0"><span>龙虎(RMB):</span><input type="text" style="width: 100px" id="cny_limit_bp" value="10-1000"></div>
                <div style="padding: 0.5vh 0"><span>&nbsp;&nbsp;&nbsp;&nbsp;和(RMB):</span><input type="text" id="cny_limit_tie" style="width: 100px" value="10-1000"></div>
            </div>
            <div style="width: 50%;display: inline;float:left;">
                <div style="padding: 0.5vh 0">龙虎(USD):<input type="text" style="width: 100px" id="usd_limit_bp" value="10-1000"></div>
                <div style="padding: 0.5vh 0">&nbsp;&nbsp;&nbsp;&nbsp;和(USD):<input type="text"id="usd_limit_tie"  style="width: 100px" value="10-1000"></div>
            </div>
        </div>
    </div>
    <div class="btn-box3">
        <span class="red_bg" id="doCurrency" onclick="setCurrencyLimit()">Currency</span>
    </div>
</section>
<div class="result-box" id="openingElement" style="display:none;">
    <img id="openingPng" src=""/>
</div>
<div id="fade" class="black_overlay">
</div>
<div class="iframe-box" style="display: none;">
    <h3 class="title"> 打印 <span class="off-btn" onclick="close_print()"> X </span></h3>
    <iframe src="" frameborder="0" id="print_iframe">
    </iframe>
</div>
<div class="update-ludan" id="update_ludan" style="z-index:999999;">
    <div class="update-ludan-title">
        {:lang('edit_previous_result')}
    </div>
    <div class="update-ludan-content">
        {:lang('select_result')}：
        <select id="update_ludan_result">
            <option value="">{:lang('select')}</option>
            <option value="1-0">{:lang('dragon')}</option>
            <option value="2-0">{:lang('tiger')}</option>
            <option value="3-0">{:lang('tie')}</option>
        </select>
    </div>
    <div class="update-ludan-footer">
        <a id="confirm_update_ludan">{:lang('confirm')}</a>
        <a id="cancel_update_ludan">{:lang('cancel')}</a>
    </div>
</div>
<input type="hidden" id="login_token" value="{$login_token}">
<input type="hidden" id="account" value="{$user.username}">
<input type="hidden" id="userid" value="{$user.id}">
<input type="hidden" id="number_tab_status">
<input type="hidden" id="table_id" value="{$table.id}">
<input type="hidden" id="game_id" value="{$table.game_id}">
<!--//1百家乐 2龙虎 4牛牛-->
<input type="hidden" id="is_scavenging" value="{$table.is_scavenging}">
<input type="hidden" id="boot_id" value="">
<input type="hidden" id="bet_type" value="{$table.bet_type}">
<input type="hidden" id="keycode" value="">
<script type="text/javascript" src="/static/handle/js/jquery-2.1.0.min.js"></script>
<script type="text/javascript" src="/static/handle/js/layer-v3.1.1/layer.js"></script>
<script type="text/javascript" src="/static/handle/js/jquery.cookie.js"></script>
<script type="text/javascript" src="/static/handle/js/socket.io-1.4.4.js"></script>
<script type="text/javascript" src="/static/handle/js/handle_b.js?1"></script>
</body>
</html>