<div class="primary-block">
    <div class="main-content">
        <h1 class="title-content">Khóa đồ</h1>
    </div>
</div>

<div class="primary-block out-top-20">
    <div class="in-20">
        <div class="form-2">
            <div class="form-row">
                <div class="form-col-1">Nhân vật Chọn</div>
                <div class="form-col-2">
                <span class="tag tag-orange"><? echo $_SESSION['mu_nvchon']; ?></span>
                </div>
            </div>
            <div class="line"></div>
            <p class="in-10">Điều kiện Khóa - Mở khóa đồ</p>
            <div class="form-row">
                <div class="form-col-1">Thoát Game</div>
                <div class="form-col-2">
                    <? echo $online; ?>
                </div>
            </div>
            <div class="line"></div>
<? if($_SESSION[nv_khoado] != 1) { ?>
		<form id="khoaitem" name="khoaitem" method="post" action="index.php?mod=char_manager&act=khoaitem">

		  <input type="hidden" name="action" value="khoaitem" />
            <p class="in-10">Khóa Đồ</p>
            <div class="form-row">
                <div class="form-col-1">Khởi tạo Mã khóa đồ </div>
                <div class="form-col-2">
                    <input class="form-style" type="password" name="makhoado" maxlength="10"/>
                </div>
            </div>
            <div class="form-row">
                <div class="form-col-1">Nhập lại mã khóa đồ  </div>
                <div class="form-col-2">
                    <input class="form-style" type="password" name="remakhoado" maxlength="10"/>
                </div>
            </div>
            <div class="form-row">

                    <button class="btn btn-green btn-block btn-lg" type="submit" name="Submit" <? if($accept=='0') { echo 'disabled="disabled"'; }  ?>>Khóa Đồ</button>

            </div>
        </form>
		
<? } else { ?>
		
		<form id="mokhoaitem" name="mokhoaitem" method="post" action="index.php?mod=char_manager&act=khoaitem">

		  <input type="hidden" name="action" value="mokhoaitem" />
		  	<p class="in-10">Mở Khóa Đồ</p>
            <div class="form-row">
                <div class="form-col-1">Mã khóa đồ </div>
                <div class="form-col-2">
                    <input class="form-style" type="password" name="makhoado" maxlength="10"/>
                </div>
            </div>
            <div class="form-row">

                    <button class="btn btn-green btn-block btn-lg" type="submit" name="Submit" <? if($accept=='0') { echo 'disabled="disabled"'; }  ?> >Mở Khóa Đồ</button>

            </div>
        </form>
		
		<form id="editmakhoa" name="editmakhoa" method="post" action="index.php?mod=char_manager&act=khoaitem">

		  <input type="hidden" name="action" value="editmakhoa" />
            <p class="in-10">Đổi mã Khóa Đồ</p>
            <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-row">
                <div class="form-col-1">Mã khóa đồ mới </div>
                <div class="form-col-2">
                    <input class="form-style" type="password" name="makhoado" maxlength="10"/>
                </div>
            </div>
            <div class="form-row">
                <div class="form-col-1">Nhập lại mã khóa đồ mới </div>
                <div class="form-col-2">
                    <input class="form-style" type="password" name="remakhoado" maxlength="10"/>
                </div>
            </div>
            <div class="form-row">

                    <button class="btn btn-green btn-block btn-lg" type="submit" name="Submit">Sửa mã Khóa Đồ</button>

            </div>
        </form>
<? } ?>
        </div>
    </div>
</div>
						
