<? if (isset($_SESSION['mu_nvchon'])) { ?>
<div class="primary-block">
    <div class="main-content">
        <h1 class="title-content">Mua Item <? echo $name_money; ?></h1>
    </div>
</div>


<div class="priority-block out-top-20">
    <div class="head-block">
        <h1 class="title-head"><span class="text-semibold">Lưu ý</span></h1>
    </div>
    <div class="in-20">
        <ul class="noted in-left-10">
            <li>Số <? echo $name_money; ?> sẽ bị trừ tương ứng với giá trị vật phẩm khi mua.</li>
            <li>Sau khi mua xong, Item <? echo $name_money; ?> sẽ nằm trong hòm đồ chung.</li>
            <li class="tik">Item <? echo $name_money; ?> 50k không được ném ra đất</li>
            <li>Mọi trường hợp không đọc kỹ trước khí sử dụng đều không được giải quyết</li>
        </ul>
    </div>
</div>



<form id="vpoint2item" name="vpoint2item" method="post" action="index.php?mod=tiente&act=vpoint2item">
<div class="out-top-20">
    <table class="table table-blue table-text-center table-border-2">
        <thead>
            <tr>
                <th align="center">#</th>
                <th align="center"><strong>Hình ảnh</strong></th>
                <th align="center"><strong>Tên Item</strong></th>
                <th align="center"><strong>Giá</strong> (<? echo $name_money; ?>)</th>
                <th align="center"><strong>Mua</strong></th>
            </tr>
        </thead>
        <tbody>
<? if($use_item_low){?>
            <tr>
                <td align="center">1</td>
                <td align="center"><img src="img_item/gold.gif"></td>
                <td align="center">Item Gold</td>
                <td align="center"><? echo number_format($giatri_item_low, 0, ',', '.'); ?></td>
                <td align="center"><input type="radio" name="item" checked="checked" value="gold" /></td>
            </tr>
<? }?>
<? if($use_item_hight){?>
            <tr>
                <td align="center">2</td>
                <td align="center"><img src="img_item/zen.gif"></td>
                <td align="center">Item Sing of Zen</td>
                <td align="center"><? echo number_format($giatri_item_hight, 0, ',', '.'); ?></td>
                <td align="center"><input type="radio" name="item" value="zen" /></td>
            </tr>
<? }?>
<? if($use_item_50k){?>
            <tr>
                <td align="center">3</td>
                <td align="center"><img src="img_item/zen50k.jpg"></td>
                <td align="center">Item Zen</td>
                <td align="center"><? echo number_format($giatri_item_50k, 0, ',', '.'); ?></td>
                <td align="center"><input type="radio" name="item" value="vpoint50k" /></td>
            </tr>
<? }?>
        </tbody>
    </table>
</div>


<div class="primary-block out-top-20">
    <div class="in-20">


	<input type="hidden" name="action" value="vpoint2item" />
	<input type="hidden" name="character" value="<? echo $_SESSION['mu_nvchon']; ?>" />

    <div class="form-3">
        <div class="form-row">
            <div class="form-col-1">Nhân vật Mua Item <? echo $name_money; ?> </div>
            <div class="form-col-2">
                <span class="tag tag-orange"><? echo $_SESSION['mu_nvchon']; ?></span>
            </div>
        </div>

        <div class="form-row">
            <div class="form-col-1">Số lượng đồ cần mua</div>
            <div class="form-col-2">
					<select name="slg" class="form-style">
						<option value="1" selected="selected">1</option>
						<option value="2">2</option>
						<option value="3">3</option>
						<option value="4">4</option>
						<option value="5">5</option>
						<option value="6">6</option>
						<option value="7">7</option>
						<option value="8">8</option>
					</select>
            </div>
        </div>

        <div class="form-row">
            <div class="form-col-1">Mật khẩu Web</div>
            <div class="form-col-2">
                <input class="form-style" type="password" name="pass2" maxlength="32"/>
            </div>
        </div>

        <div class="form-submit">
            <button class="btn btn-green btn-lg" type="submit" name="Submit">Mua Item <? echo $name_money; ?></button>
        </div>
    </div>

    </div>
</div>
</form>
<? } else include('templates/char_manager.aspx'); ?>