<div class="primary-block">
<div class="primary-block out-top-20">
    <div class="main-content">
        
    </div>
</div>
    <div class="main-content">
        <h1 class="title-content">Chợ Phúc Lợi >> Bán Điểm Phúc Lợi</h1>
		<div class="intro-content">
            <div class="in-20">
            </div>
        </div>
    </div>
</div>
<!-- Content -->
<? 
    if(isset($error_module)) echo "<div class='error'>$error_module</div>";
?>
<div class="primary-block out-top-20">
    <div class="head-block">
        <h1 class="title-head"><span class="text-semibold">Điểm Phúc Lợi hiện có : <strong><font color="red"><span id="pl_point"><? echo $mypl; ?></span></font></strong></span></h1><strong>
    </strong></div><strong>
    
    <div class="in-20">
     <center>
     Bán <input class="form-style" type="text" id="plpoint_ban" maxlength="3" />Điểm Phúc Lợi giá <input class="form-style" type="text" id="plpoint_gcoin" maxlength="6" /> Gcoin <input type="button" id="btn_pl_ban" value="Bán Phúc Lợi" /> <span id="banpl_loading"></span>
	<br>
	<br>
	<br>
<div id="plchange_success"></div>
<div id="plchange_error"></div>  
    </center>     
    </div>
</strong></div>

    <div id="banpl_view"></div>
    <? if(count($mystore_arr) > 0) { ?>
    <div class="out-top-20">
    <table class="table table-blue table-text-center table-border-2">
<thead>
                <tr class="span">
                    <th colspan="4">Cửa hàng Phúc Lợi của bạn</th>
                </tr>
                <tr>
                    <th align="center"><b>#</b></th>
                    <th align="center"><b>Điểm PL</b></th>
                    <th align="center"><b>Giá</b> (Gcoin)</th>
                    <th align="center"><b>Mua</b></th>
                </tr>
            </thead>
<? 
    foreach($mystore_arr as $store_k => $store_v) {
?>
<tbody>
	  <tr>
	    <td align="center"><? echo $store_k+1; ?></td>
        <td align="center"><? echo number_format($store_v['plpoint'], 0, ',', '.'); ?></td>
        <td align="center"><? echo number_format($store_v['price'], 0, ',', '.'); ?></td>
        <td align="center" id="td_huyban_<? echo $store_v['id']; ?>"><? echo $store_v['info'] . $store_v['huyban']; ?></td>
	  </tr>
</tbody>
<?   } ?>
	</table>
	</div>
    <? } ?>
    
<!-- End Content -->