<div class="primary-block">
    <div class="main-content">
        <h1 class="title-content">Nạp thẻ</h1>
        <ul class="tabs-content">
            <li class="active"><a href="#napthe&amp;act=napthe" rel="ajax" class="tooltipstered">Nạp thẻ</a></li>
            <li><a href="#napthe&amp;act=listcard" rel="ajax" class="tooltipstered">Danh sách thẻ đã nạp</a></li>
        </ul>
    </div>
</div>

<div class="primary-block out-top-20">
    <div class="head-block">
        <h1 class="title-head"><span class="text-semibold">Nạp thẻ</span></h1>
    </div>
    <div class="in-20">
	<input type="hidden" name="loaithe" id="loaithe" value="<? echo $act; ?>" />
        <table class="table table-blue table-border-1 table-text-center">
            <thead>
            <tr>
                <th>Loại thẻ</th>
				<? if($use_card10k==1) { ?>
                <th>10k</th>
				<? } ?>
				<? if($use_card20k==1) { ?>
                <th>20k</th>
				<? } ?>
				<? if($use_card30k==1) { ?>
                <th>30k</th>		
				<? } ?>
				<? if($use_card50k==1) { ?>
                <th>50k</th>
				<? } ?>
				<? if($use_card100k==1) { ?>
                <th>100k</th>
				<? } ?>
				<? if($use_card200k==1) { ?>
                <th>200k</th>
				<? } ?>
				<? if($use_card300k==1) { ?>
                <th>300k</th>
				<? } ?>
				<? if($use_card500k==1) { ?>
                <th>500k</th>
				<? } ?>
				<? if($use_card1000k==1) { ?>
                <th>1000k</th>
				<? } ?>
            </tr>
            </thead>
            <tbody>
            <tr>
                <td>Gcoin</td>
				<? if($use_card10k==1) { ?>
                <td><strong><? echo number_format($menhgia10000, 0, ',', '.'); ?></strong> </td>
				<? } ?>
				<? if($use_card20k==1) { ?>
                <td><strong><? echo number_format($menhgia20000, 0, ',', '.'); ?></strong> </td>
				<? } ?>
				<? if($use_card30k==1) { ?>
                <td><strong><? echo number_format($menhgia30000, 0, ',', '.'); ?></strong> </td>
				<? } ?>
				<? if($use_card50k==1) { ?>
                <td><strong><? echo number_format($menhgia50000, 0, ',', '.'); ?></strong> </td>
				<? } ?>
				<? if($use_card100k==1) { ?>
                <td><strong><? echo number_format($menhgia100000, 0, ',', '.'); ?></strong> </td>
				<? } ?>
				<? if($use_card200k==1) { ?>
                <td><strong><? echo number_format($menhgia200000, 0, ',', '.'); ?></strong> </td>
				<? } ?>
				<? if($use_card300k==1) { ?>
                <td><strong><? echo number_format($menhgia300000, 0, ',', '.'); ?></strong> </td>
				<? } ?>
				<? if($use_card500k==1) { ?>
                <td><strong><? echo number_format($menhgia500000, 0, ',', '.'); ?></strong> </td>
				<? } ?>
				<? if($use_card1000k==1) { ?>
                <td><strong><? echo number_format($menhgia1000000, 0, ',', '.'); ?></strong> </td>
				<? } ?>
            </tr>           

			<tr>
                <td>Gcoin Khuyến mãi</td>
				<? if($use_card10k==1) { ?>
                <td><strong><? echo number_format($menhgia10000_km, 0, ',', '.'); ?></strong></td>
				<? } ?>
				<? if($use_card20k==1) { ?>
                <td><strong><? echo number_format($menhgia20000_km, 0, ',', '.'); ?></strong> </td>
				<? } ?>
				<? if($use_card30k==1) { ?>
                <td><strong><? echo number_format($menhgia30000_km, 0, ',', '.'); ?></strong> </td>
				<? } ?>
				<? if($use_card50k==1) { ?>
                <td><strong><? echo number_format($menhgia50000_km, 0, ',', '.'); ?></strong> </td>
				<? } ?>
				<? if($use_card100k==1) { ?>
                <td><strong><? echo number_format($menhgia100000_km, 0, ',', '.'); ?></strong> </td>
				<? } ?>
				<? if($use_card200k==1) { ?>
                <td><strong><? echo number_format($menhgia200000_km, 0, ',', '.'); ?></strong> </td>
				<? } ?>
				<? if($use_card300k==1) { ?>
                <td><strong><? echo number_format($menhgia300000_km, 0, ',', '.'); ?></strong> </td>
				<? } ?>
				<? if($use_card500k==1) { ?>
                <td><strong><? echo number_format($menhgia500000_km, 0, ',', '.'); ?></strong> </td>
				<? } ?>
				<? if($use_card1000k==1) { ?>
                <td><strong><? echo number_format($menhgia1000000_km, 0, ',', '.'); ?></strong> </td>
				<? } ?>
            </tr>
            </tbody>
        </table>

        <div class="in-top-30 out-bottom-40 form-card">
            <div class="line"></div>
            <div class="card-form-col">

                    <ul class="card-center">
                        <li>
                            <div class="form-card-title">Loại thẻ</div>
                            <div class="form-card-text">
						<select name="cardtype" id="cardtype" class="form-style" onchange="location = this.options[this.selectedIndex].value;">
						<? if ($Use_CardGATE){?>
						 <option value="#napthe&act=gate">GATE</option>
						<? }?>
						<? if ($Use_CardMobi){?>
						 <option value="#napthe&act=mobi">Mobiphone</option>
						<? }?>
						<? if ($Use_CardVina){?>
						 <option value="#napthe&act=vina">Vinaphone</option>
						<? }?>
						<? if ($Use_CardVNmobile){?>
						 <option value="#napthe&act=VNmobile">VNmobile</option>
						<? }?>
						<? if ($Use_CardViettel){?>
						 <option value="#napthe&act=viettel">Viettel</option>
						<? }?>
						<? if ($Use_CardZing){?>
						 <option value="#napthe&act=zing">Zing</option>
						<? }?>
						<? if ($Use_CardVTC){?>
						 <option value="#napthe&act=vtc" selected="selected">VTC</option>
						<? }?>
						</select>
                            </div>
                        </li>
                        <li>
                            <div class="form-card-title">Mệnh giá</div>
                            <div class="form-card-text">
								<select name="menhgia" id="menhgia" class="form-style">
								<option value="0" selected="selected">Chọn mệnh giá</option>
			<? if($use_card10k==1) { ?>
									<option value="10000">10.000 VNĐ</option>
			<? } ?>
			<? if($use_card20k==1) { ?>
									<option value="20000">20.000 VNĐ</option>
			<? } ?>
			<? if($use_card30k==1) { ?>
									<option value="30000">30.000 VNĐ</option>
			<? } ?>
			<? if($use_card50k==1) { ?>
									<option value="50000">50.000 VNĐ</option>
			<? } ?>
			<? if($use_card100k==1) { ?>
									<option value="100000">100.000 VNĐ</option>
			<? } ?>
			<? if($use_card200k==1) { ?>
									<option value="200000">200.000 VNĐ</option>
			<? } ?>
			<? if($use_card300k==1) { ?>
									<option value="300000">300.000 VNĐ</option>
			<? } ?>
			<? if($use_card500k==1) { ?>
									<option value="500000">500.000 VNĐ</option>
			<? } ?>
			<? if($use_card1000k==1) { ?>
									<option value="1000000">1.000.000 VNĐ</option>
			<? } ?>
								</select>
                            </div>
                        </li>
                        <li>
                            <div class="form-card-title">Nhập mã thẻ</div>
                            <div class="form-card-text">
                                <input class="form-style" type="text" name="card_num" id="card_num">
                                <label id="msg_card_num" class="msg"></label>
                            </div>
                        </li>
                        <li>
                            <div class="form-card-title">Nhập serial</div>
                            <div class="form-card-text">
                                <input class="form-style" type="text" name="card_serial" id="card_serial">
                                <label id="msg_card_serial" class="msg"></label>
                            </div>
                        </li>
                        <li>
                            <div class="form-card-title">&nbsp;</div>
                            <div class="form-card-text"><button class="btn btn-green btn-block btn-lg" id="btn_napthe" name="Submit">NẠP THẺ</button>
							</div>
                        </li>
                    </ul>
			<div id="msg_napthe"></div>
            </div>
            <div class="card-form-col">
                <div class="card-center">
                    <div class="current-card">
                        <span class="title-card">Bạn muốn nạp thẻ :</span>
                        <span class="image-card card-vtc" id="image-card"></span>
                    </div>
                                        <div class="promotion in-10 priority-block">
                        <p>Khuyến mại nạp thẻ</p>
                        <span class="promotion-number"><? echo $tyle_km; ?>%</span>
                    </div>
                                    </div>
            </div>
        </div>

        <div class="in-top-20">
            <fieldset class="notify-red">
                <legend>Lưu ý:</legend>
                <div class="in-10">
                    - Sau khi nạp thẻ phải giữ thẻ cẩn thận không cho một ai biết cho đến khi nào <a href="#napthe&amp;act=listcard" rel="ajax" class="tooltipstered">TÌNH TRẠNG THẺ</a> đó là Thẻ đúng/hoàn tất.<br>
                    - Nếu không thẻ của bạn bị người khác lấy và nạp mất thì chúng tôi hoàn toàn không chịu trách nhiệm.
                </div>
            </fieldset>
        </div>
        <div class="in-top-20">
            <table class="table table-blue table-border-1 table-text-center">
                <thead>
                <tr>
                    <th colspan="2">Số thẻ tối đa cho phép nạp trong ngày</th>
                </tr>
                </thead>
                <tbody>
                <tr>
                    <td width="50%">Reset < <? echo $reset_1; ?> lần</td><td><? echo $slg_card_1; ?>  thẻ / ngày</td>
                </tr>
                <tr>
                    <td><? echo $reset_1; ?> < Reset < <? echo $reset_2; ?> lần</td><td><? echo $slg_card_2; ?> thẻ / ngày</td>
                </tr>
                <tr>
                    <td><? echo $reset_2; ?> < Reset < <? echo $reset_3; ?> lần</td><td><? echo $slg_card_3; ?> thẻ / ngày</td>
                </tr>
                <tr>
                    <td><? echo $reset_3; ?> < Reset < <? echo $reset_4; ?> lần</td><td><? echo $slg_card_4; ?> thẻ / ngày</td>
                </tr>
                <tr>
                    <td><? echo $reset_4; ?> < Reset hoặc đã ReLife</td><td><? echo $slg_card_max; ?> thẻ / ngày</td>
                </tr>
                </tbody>
            </table>
        </div>
    </div>
</div>