<?php
//ini_set('session.gc_maxlifetime', 86400);

//session_set_cookie_params(86400);
session_start();
include_once('../config/#Config.php');
if(!$_SESSION['UserName']){
die('<script>window.location.href=\''.$config['site']['url'].'index.php\';</script>');
}
$get_AD = mysqli_query($conn, "Select * From config_admin WHERE Account = '".$_SESSION['UserName']."'");
if(!mysqli_num_rows($get_AD)){
	die('Không đủ quyền.');
}
mysqli_query($conn, "UPDATE config_admin Set TimerOnline = '".date('d/m/Y H:i:s')."' WHERE Account = '".$_SESSION['UserName']."'");
?>
<!doctype html>
<html lang="en">


<!-- Added by HTTrack --><meta http-equiv="content-type" content="text/html;charset=UTF-8" /><!-- /Added by HTTrack -->
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta http-equiv="Content-Language" content="en">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>Gửi Thư Chuyên Nghiệp - <?=$config['site']['Domain']?></title>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, shrink-to-fit=no" />
    <meta name="description" content="This is an example dashboard created using build-in elements and components.">
    <meta name="msapplication-tap-highlight" content="no">
    <!--
    =========================================================
    * ArchitectUI HTML Theme Dashboard - v1.0.0
    =========================================================
    * Product Page: https://dashboardpack.com
    * Copyright 2019 DashboardPack (https://dashboardpack.com)
    * Licensed under MIT (https://github.com/DashboardPack/architectui-html-theme-free/blob/master/LICENSE)
    =========================================================
    * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
    -->
    <script src="https://code.jquery.com/jquery-1.9.1.js"></script>

<link href="main.css" rel="stylesheet"></head>
<body>
    <div class="app-container app-theme-white body-tabs-shadow fixed-sidebar fixed-header">
        <div class="app-header header-shadow">
            <div class="app-header__logo">
                <div class="logo-src"></div>
                <div class="header__pane ml-auto">
                    <div>
                        <button type="button" class="hamburger close-sidebar-btn hamburger--elastic" data-class="closed-sidebar">
                            <span class="hamburger-box">
                                <span class="hamburger-inner"></span>
                            </span>
                        </button>
                    </div>
                </div>
            </div>
            <div class="app-header__mobile-menu">
                <div>
                    <button type="button" class="hamburger hamburger--elastic mobile-toggle-nav">
                        <span class="hamburger-box">
                            <span class="hamburger-inner"></span>
                        </span>
                    </button>
                </div>
            </div>
            <div class="app-header__menu">
                <span>
                    <button type="button" class="btn-icon btn-icon-only btn btn-primary btn-sm mobile-toggle-header-nav">
                        <span class="btn-icon-wrapper">
                            <i class="fa fa-ellipsis-v fa-w-6"></i>
                        </span>
                    </button>
                </span>
            </div>    <div class="app-header__content">
                <div class="app-header-left">
                    <div class="search-wrapper">
                        <div class="input-holder">
                            <input type="text" class="search-input" placeholder="Type to search">
                            <button class="search-icon"><span></span></button>
                        </div>
                        <button class="close"></button>
                    </div>
                    <ul class="header-menu nav">
                        <li class="nav-item">
                            <a href="javascript:void(0);" class="nav-link">
                                <i class="nav-link-icon fa fa-database"> </i>
                                Statistics
                            </a>
                        </li>
                        <li class="btn-group nav-item">
                            <a href="javascript:void(0);" class="nav-link">
                                <i class="nav-link-icon fa fa-edit"></i>
                                Projects
                            </a>
                        </li>
                        <li class="dropdown nav-item">
                            <a href="javascript:void(0);" class="nav-link">
                                <i class="nav-link-icon fa fa-cog"></i>
                                Settings
                            </a>
                        </li>
                    </ul>        </div>
                <div class="app-header-right">
                    <div class="header-btn-lg pr-0">
                        <div class="widget-content p-0">
                            <div class="widget-content-wrapper">
                               
                                <div class="widget-content-right header-user-info ml-3">
                                    <button type="button" class="btn-shadow p-1 btn btn-primary btn-sm show-toastr-example">
                                        <i class="fa text-white fa-calendar pr-1 pl-1"></i>
                                    </button>
                                </div>
                            </div>
                        </div>
                    </div>        </div>
            </div>
        </div>        <div class="ui-theme-settings">
            <button type="button" id="TooltipDemo" class="btn-open-options btn btn-warning">
                <i class="fa fa-cog fa-w-16 fa-spin fa-2x"></i>
            </button>
<?php include_once('temp_setting.php');?>
        </div>
        <div class="app-main">
                <div class="app-sidebar sidebar-shadow">
                    <div class="app-header__logo">
                        <div class="logo-src"></div>
                        <div class="header__pane ml-auto">
                            <div>
                                <button type="button" class="hamburger close-sidebar-btn hamburger--elastic" data-class="closed-sidebar">
                                    <span class="hamburger-box">
                                        <span class="hamburger-inner"></span>
                                    </span>
                                </button>
                            </div>
                        </div>
                    </div>
                    <div class="app-header__mobile-menu">
                        <div>
                            <button type="button" class="hamburger hamburger--elastic mobile-toggle-nav">
                                <span class="hamburger-box">
                                    <span class="hamburger-inner"></span>
                                </span>
                            </button>
                        </div>
                    </div>
                    <div class="app-header__menu">
                        <span>
                            <button type="button" class="btn-icon btn-icon-only btn btn-primary btn-sm mobile-toggle-header-nav">
                                <span class="btn-icon-wrapper">
                                    <i class="fa fa-ellipsis-v fa-w-6"></i>
                                </span>
                            </button>
                        </span>
                    </div>
                    <div class="scrollbar-sidebar">
                        <div class="app-sidebar__inner">
                           <?php include_once('temp_menu.php'); ?>
                        </div>
                    </div>
                </div>
                <div class="app-main__outer">
                <div class="app-main__inner">
                        <div class="app-page-title">
                            <div class="page-title-wrapper">
                                <div class="page-title-heading">
                                    <div class="page-title-icon">
                                        <i class="pe-7s-phone icon-gradient bg-premium-dark">
                                        </i>
                                    </div>
                                    <div>
                                        Gửi Thư Chuyên Nghiệp
                                        <div class="page-title-subheading">Hãy chú ý trước khi sử dụng bất kỳ Chức Năng nào.
                                        </div>
                                    </div>
                                </div>
                                <div class="page-title-actions">
                                    <button type="button" data-toggle="tooltip" title="" data-placement="bottom" class="btn-shadow mr-3 btn btn-dark" data-original-title="Example Tooltip">
                                        <i class="fa fa-star"></i>
                                    </button>
                                    <div class="d-inline-block dropdown">
                                        <button type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" class="btn-shadow dropdown-toggle btn btn-info">
                                            <span class="btn-icon-wrapper pr-2 opacity-7">
                                                <i class="fa fa-business-time fa-w-20"></i>
                                            </span>
                                            Buttons
                                        </button>
                                        <div tabindex="-1" role="menu" aria-hidden="true" class="dropdown-menu dropdown-menu-right">
                                            <ul class="nav flex-column">
                                                <li class="nav-item">
                                                    <a href="javascript:void(0);" class="nav-link">
                                                        <i class="nav-link-icon lnr-inbox"></i>
                                                        <span>
                                                            Inbox
                                                        </span>
                                                        <div class="ml-auto badge badge-pill badge-secondary">86</div>
                                                    </a>
                                                </li>
                                                <li class="nav-item">
                                                    <a href="javascript:void(0);" class="nav-link">
                                                        <i class="nav-link-icon lnr-book"></i>
                                                        <span>
                                                            Book
                                                        </span>
                                                        <div class="ml-auto badge badge-pill badge-danger">5</div>
                                                    </a>
                                                </li>
                                                <li class="nav-item">
                                                    <a href="javascript:void(0);" class="nav-link">
                                                        <i class="nav-link-icon lnr-picture"></i>
                                                        <span>
                                                            Picture
                                                        </span>
                                                    </a>
                                                </li>
                                                <li class="nav-item">
                                                    <a disabled="" href="javascript:void(0);" class="nav-link disabled">
                                                        <i class="nav-link-icon lnr-file-empty"></i>
                                                        <span>
                                                            File Disabled
                                                        </span>
                                                    </a>
                                                </li>
                                            </ul>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <script>
                                                function texttimkiem(){
                                                    $.post('timkiem.class.php', {keyword:$('#texttimkiem').val()}, function(data){
                                                            $('.table-responsive').html(data);
                                                    });

                                                }
                                            </script>                       
                        <div class="row">
                            <div class="col-md-12">
                                <div class="main-card mb-3 card">
                                    <div class="card-body">
                                    <style>
.discount {
    position: absolute;
    margin-left: 30px;
    margin-top: -25px;
    border: 2px solid #f15a21;
    border-radius: 100px 0 0 100px;
    padding: 2px;
    width: 50px;
    height: 23.5px;
}
.discount p {
    background: #f15a21;
    border-radius: 100px 0 0 100px;
    text-align: center;
    line-height: 0!important;
    font-size: .9em!important;
    padding: 7px;
}
.discount span {
    color: #fff;
    font-size: 11px;
    text-align: center;
    display: inline-block;
    font-weight: 700;
}
</style>
        <!-- Modal Header -->
        <div class="modal-header">
          <h4 class="modal-title">Gửi thư & vật phẩm.</h4>
          <button type="button" class="close" data-dismiss="modal">×</button>
        </div>
   
        <!-- Modal body -->
        <div class="modal-body">
		    <label>Chọn máy chủ</label>
		    <div class="form-group pass_show"> 
               <select id="list_sv" class="form-control">
			   <option value="-1">=== Chọn Máy Chủ ===</option>
			    <?php
				$getMayChu = mysqli_query($conn, "Select * From config_server");
				while($row = mysqli_fetch_array($getMayChu, MYSQLI_ASSOC)){
					echo '<option value=\''.$row['ServerID'].'\'>'.$row['ServerName'].'</option>';
				}
				?>
				
			   </select>
            </div> 
		    <label>Loại Gửi</label>
		    <div class="form-group pass_show"> 
               <select id="loaigui" class="form-control" onChange="if($('#loaigui').val() != 'SendMail_Kin'){$('#showdwID').hide();} else {$('#showdwID').show(); }">
               <option value="SendMail_ToanCau">=== Gửi Tất Cả Nhân Vật ===</option>
               <option value="SendMail_ALLOnline">=== Gửi Nhân Vật Online ===</option>
               <option value="SendMail_Kin">=== Gửi Thành Viên Bang Hội ===</option>
			   </select>
            </div> 
			<div id="showdwID" style="display:none">
			<label>ID Bang Hội</label> <span class="label label-warning" href="#myModal" data-toggle="modal" onClick="reloadinfo();">Load Danh Sách Bang Hội</span>

            <div class="form-group pass_show"> 
                <input type="text" value=""  id="creat_dwid" class="form-control" placeholder="Nhập ID Bang Hội"> 
            </div></div> 					
            <div class="form-group pass_show"> 
                <input type="text" value=""  id="messager_mail" class="form-control" placeholder="Nội dung thư" > 
            </div>			
<center>
		  </center>
			<div id="id1">
			<font color="red">========> Gửi vật phẩm</font> <br />
			  <div class="row align-items-start">
    <div class="col">
               <select id="loaivatpham" onChange="LoadItem();" class="form-control">
			   <?php
			   foreach (ItemList() as $key => $element) {

echo '<option value="'.$key.'">'.$element[0].'</option>';
}
?>			   
</select>
    </div>
    <div class="col">
                <input type="text" value=""  id="itemid_info" class="form-control" placeholder="ID vật phẩm hoặc tên vật phẩm"> 
    </div>
	<div class="col">
			<span id="searchresultdata">
			<select class="form-control" id="list_itemseacher">
			<?php 
			$_get_item = mysqli_query($conn, "Select * From item_goods");
			if(mysqli_num_rows($_get_item)){
				while($row = mysqli_fetch_array($_get_item, MYSQLI_ASSOC)){
					echo '<option value="'.$row['EventID'].'">'.$row['Name'].'</option>';
				}
			}
			?>
			</select>
			</span>
    </div>
	    <div class="col">
				<input type="submit" class="btn btn-success btn-block" value="Thêm" onClick="addItem();"/>
    </div>
  </div>
  <br/>
<center>
<table border="1px">
        <tr>
			<td style="width:80px;height:80px;text-align: center;">
						<div class="discount" id="btn-xoa-0" onClick="xoaitem('0');" style="display:none">
                <p><span>Xóa</span></p>
            </div>
			<div id="item_0"><font color="blue">Chưa có</font></span></div>
			</td>
            <td style="width:80px;height:80px;text-align: center;">
			<div class="discount"  id="btn-xoa-1" onClick="xoaitem('1');" style="display:none">
                <p><span>Xóa</span></p>
            </div>
			<div id="item_1"><font color="blue">Chưa có</font></span></div>
			</td>
            <td style="width:80px;height:80px;text-align: center;">
						<div class="discount"  id="btn-xoa-2" onClick="xoaitem('2');" style="display:none">
                <p><span>Xóa</span></p>
            </div>
			<div id="item_2"><font color="blue">Chưa có</font></span></div>
			</td>
            <td style="width:80px;height:80px;text-align: center;">
						<div class="discount" id="btn-xoa-3" onClick="xoaitem('3');" style="display:none">
                <p><span>Xóa</span></p>
            </div>
			<div id="item_3"><font color="blue">Chưa có</font></span></div>
			</td>
            <td style="width:80px;height:80px;text-align: center;">
						<div class="discount" id="btn-xoa-4" onClick="xoaitem('4');" style="display:none">
                <p><span>Xóa</span></p>
            </div>
			<div id="item_4"><font color="blue">Chưa có</font></span></div>
			</td>			
        </tr>
    </table>
</center>			
			<br />
		       <label>Tùy chọn Gửi thêm</label>			
            <div class="form-group pass_show"> 
			<select class="form-control" id="guikhac">
            <option value=''>Lựa Chọn</option>
            <option value='Gold'>Vàng</option>
            <option value='Coin'>Bạc</option>
            <option value='VipExp'>Vip EXP</option>
			<option value='Exp'>EXP</option>
			<option value='Honor'>Vinh Dự</option>
			<option value='Renown'>Danh Vọng</option>
			<option value='Contrib'>Cống Hiến</option>
			<option value='SilverBoard'>Ngân sức</option>
			<option value='DarkSteel'>Trượng Nghĩa Thần Thạch</option>
			</select>
            </div>			
		       <label>Số lượng</label>			
            <div class="form-group pass_show"> 
                <input type="text" value=""  id="count_sendkhac" class="form-control" placeholder="Nhập số lượng"> 
            </div>					
        
        <!-- Modal footer -->
        <div class="modal-footer">
          <button type="button" class="btn btn-danger" onClick="saveInfo();">Gửi ngay</button>
        </div>
<input type="hidden" id="o_0" value="" style="width:0px;height:0px"/>
<input type="hidden" id="o_1" value="" style="width:0px;height:0px" />
<input type="hidden" id="o_2" value="" style="width:0px;height:0px" />
<input type="hidden" id="o_3" value="" style="width:0px;height:0px" />
<input type="hidden" id="o_4" value="" style="width:0px;height:0px" />		
		</div>		
		</div>
		        </div>

		   
													</div> <!-- form-group// -->                                                           
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>

                    <div class="app-wrapper-footer">
                        <div class="app-footer">
                            <div class="app-footer__inner">
                                <div class="app-footer-left">
                                    <ul class="nav">
                                        <li class="nav-item">
                                            <a href="javascript:void(0);" class="nav-link">
                                                Võ lâm Truyền Kỳ
                                            </a>
                                        </li>
                                        <li class="nav-item">
                                            <a href="javascript:void(0);" class="nav-link">
                                               Võ lâm Truyền Kỳ
                                            </a>
                                        </li>
                                    </ul>
                                </div>
                                <div class="app-footer-right">
                                    <ul class="nav">
                                        <li class="nav-item">
                                            <a href="javascript:void(0);" class="nav-link">
                                                Võ lâm Truyền Kỳ
                                            </a>
                                        </li>
                                        <li class="nav-item">
                                            <a href="javascript:void(0);" class="nav-link">
                                                <div class="badge badge-success mr-1 ml-0">
                                                    <small>NEW</small>
                                                </div>
                                               Võ lâm Truyền Kỳ
                                            </a>
                                        </li>
                                    </ul>
                                </div>
                            </div>
                        </div>
                    </div>    </div>
        </div>
    </div>
 <!-- jQuery library -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<!-- Modal HTML -->
<div id="myModal" class="modal fade">
	<div class="modal-dialog modal-login">
		<div class="modal-content">
			<div class="modal-header">		
				<h4 class="modal-title">Danh sách Bang Hội</h4>	
                <button type="button" class="close" data-dismiss="myModal" aria-hidden="true" onClick="$('#myModal').removeClass('in show');$('#myModal').hide();$('.modal-backdrop').remove();">&times;</button>
			</div>
			<div class="modal-body" id="dachsachbang_form">
			</div>
		</div>
	</div>
</div>     
<!-- Latest compiled JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>   
<script type="text/javascript" src="assets/scripts/main.js"></script>
<link href="assets/scripts/toastr.css" rel="stylesheet" />
<script src="assets/scripts/toastr.js"></script>
<script src="assets/scripts/script.js"></script> 
<script type="text/javascript" src="assets/scripts/jquery.watermark.js"></script>
<style>
    .modal-fullscreen{
  width: 100%;
  height: 100%;
  margin: 0;
  top: 0;
  left: 0;
}
</style>
<script>
function LoadItem(){
	$.post('ajax/loaditem_setting.php', {list:$('#loaivatpham').val()}, function(data){
		$('#searchresultdata').html(data);
	});
}
 jQuery.fn.filterByText = function(itemid_info, selectSingleMatch) {
        return this.each(function() {
            var select = this;
            var options = [];
            $(select).find('option').each(function() {
                options.push({value: $(this).val(), text: $(this).text()});
            });
            $(select).data('options', options);
            $(itemid_info).bind('change keyup', function() {
                var options = $(select).empty().data('options');
                var search = $.trim($(this).val());
                var regex = new RegExp(search,"gi");

                $.each(options, function(i) {
                    var option = options[i];
                    if(option.text.match(regex) !== null) {
                        $(select).append(
                           $('<option>').text(option.text).val(option.value)
                        );
                    }
                });
                if (selectSingleMatch === true && $(select).children().length === 1) {
                    $(select).children().get(0).selected = true;
                }
            });            
        });
    };

    $(function() {
        $('#list_itemseacher').filterByText($('#itemid_info'), true);
    });  
</script>
<script type="text/javascript">
function xoaitem(o){
	$('#btn-xoa-'+o).hide();
	$('#o_'+o).val("");
	$('#item_'+o).html('<font color="blue">Chưa thêm</font>');
}
function addItem(){
	if($('#searchresultdata').find(":selected").val() == "" || $('#searchresultdata').find(":selected").val() == null || $('#searchresultdata').find(":selected").val() <= 0){
	alert('Vui lòng chọn vật phẩm để thêm vào.');
	} else {
	if($('#o_0').val() == ""){
		$('#item_0').html('<font color="red"><img src="assets/images/e8df9049a53edc450eacd12adfa54194_icon.png" style="width:30px" title="'+$('#searchresultdata').find(":selected").text()+'"/><Br/><center><input type="text" id="sl_0" value="1" class="form-control" style=" width: 100px; height: 20px; " maxlength="100"></center></font>');
		$('#o_0').val($('#searchresultdata').find(":selected").val());
		$('#btn-xoa-0').show();
		return false;
	} else if($('#o_1').val() == ""){
		$('#item_1').html('<font color="red"><img src="assets/images/e8df9049a53edc450eacd12adfa54194_icon.png" style="width:30px" title="'+$('#searchresultdata').find(":selected").text()+'"/><center><input type="text" id="sl_1" value="1" class="form-control" style=" width: 100px; height: 20px; " maxlength="100"></center></font>');
		$('#o_1').val($('#searchresultdata').find(":selected").val());
		$('#btn-xoa-1').show();		
		return false;		
	}else if($('#o_2').val() == ""){
		$('#item_2').html('<font color="red"><img src="assets/images/e8df9049a53edc450eacd12adfa54194_icon.png" style="width:30px" title="'+$('#searchresultdata').find(":selected").text()+'"/><center><input type="text" id="sl_2" value="1" class="form-control" style=" width: 100px; height: 20px; " maxlength="100"></center></font>');
		$('#o_2').val($('#searchresultdata').find(":selected").val());
		$('#btn-xoa-2').show();		
		return false;		
	}else if($('#o_3').val() == ""){
		$('#item_3').html('<font color="red"><img src="assets/images/e8df9049a53edc450eacd12adfa54194_icon.png" style="width:30px" title="'+$('#searchresultdata').find(":selected").text()+'"/><center><input type="text" id="sl_3" value="1" class="form-control" style=" width: 100px; height: 20px; " maxlength="100"></center></font>');
		$('#o_3').val($('#searchresultdata').find(":selected").val());
		$('#btn-xoa-3').show();
		return false;		
	}else if($('#o_4').val() == ""){
		$('#item_4').html('<font color="red"><img src="assets/images/e8df9049a53edc450eacd12adfa54194_icon.png" style="width:30px" title="'+$('#searchresultdata').find(":selected").text()+'"/><center><input type="text" id="sl_4" value="1" class="form-control" style=" width: 100px; height: 20px; " maxlength="100"></center></font>');
		$('#o_4').val($('#searchresultdata').find(":selected").val());
		$('#btn-xoa-4').show();
		return false;		
	} else {
	toastr.info('Không còn chỗ trống gửi thư', 'Chú ý');

	}
	}
}
function saveInfo(){
		 if($('#o_0').val() == "" && $('#o_1').val() == "" && $('#o_2').val() == "" && $('#o_3').val() == "" && $('#o_4').val() == "" && $('#guikhac').val() == ""){
			toastr.info('Vui lòng chọn thứ cần gửi đi', 'Chú ý');
			return false;
			} else {
			if($('#guikhac').val()){
				if($('#count_sendkhac').val() <= 0){
					toastr.info('Số lượng nhập không được nhỏ hơn 0', 'Chú ý');
			return false;				
				}	
			}
			if($('#sl_0').val() == 0 || $('#sl_1').val() == 0 || $('#sl_2').val() == 0 || $('#sl_3').val() == 0 || $('#sl_4').val() == 0){
				toastr.info('Số lượng không phù hợp', 'Chú ý');
				return false;
			}
					$.post('ajax/ajax_sendmail_chuyennghiep.php', 
			{  sv:$('#list_sv').val(),
				sl_0:$('#sl_0').val(),
				sl_1:$('#sl_1').val(),
				sl_2:$('#sl_2').val(),
				sl_3:$('#sl_3').val(),
				sl_4:$('#sl_4').val(),
				item_1:$('#o_0').val(),
				item_2:$('#o_1').val(),
				item_3:$('#o_2').val(),
				item_4:$('#o_3').val(),
				item_5:$('#o_4').val(),
                number:$('#guikhac').val(),
                loaigui:$('#loaigui').val(),
				KinID:$('#creat_dwid').val(),
				messager_mail:$('#messager_mail').val(),
				count:$('#count_sendkhac').val() }, function(data){
		if(data['type'] == 0){
			toastr.success(data['text'], 'Thông Báo');
		} else {
			toastr.info(data['text'], 'Chú ý');
			
		}
	},'json');
}
}
function reloadItem(){
		$.post('ajax/ajax-search.php', {keyword:$('#itemid_info').val()}, function(data){
$('#searchresultdata').html(data);
});
	return false;		// Không chuyển trang
}
function reloadinfo(){
    if($('#list_sv').val() == "-1"){
        toastr.info("Vui lòng chọn Máy chủ để Tải danh sách Bang Hội", 'Chú ý');
    } else {
        $.post('ajax/load_danhsachbang.php', { sv: $('#list_sv').val() }, function(data) {
            if (data['type'] == 0) {
                $('#dachsachbang_form').html(data['text']);
                toastr.success('Tải danh sách bang hội thành công.', 'Thông Báo');
            } else {
                toastr.info(data['text'], 'Chú ý');

            }
        }, 'json');       
    }
}
</script>
		   
</body>
</html>
