</div> <div class="row"> <div class="col-xs-10 col-xs-offset-1"> <?php if ($_GET['type'] == 'sector') { ?> <table class="table"> <thead> <tr> <th><h3>รายชื่อจังหวัด</h3></th> <th style='text-align:right'><h3>จำนวน</h3></th> </tr> </thead> <tbody> <?php $provinces = get_province_id_by_province_sector_id($_GET['data']); $table_count = 0; $limit = 10; if (isset($_GET['start'])) { $start = $_GET['start']; $page = $_GET['page']; $count = $start + 1; } else { $page = 1; $start = 0; $count = 1; } $noperson = ''; while ($province = mysql_fetch_assoc($provinces)) { $counts = count_person_by_provice_id($province['PROVINCE_ID']); $count = mysql_fetch_row($counts);
$add_str .= 'ตะวันออก'; } else { if ($_GET['s_id'] == 5) { $headder_str .= 'ตะวันตก'; $add_str .= 'ตะวันตก'; } else { if ($_GET['s_id'] == 6) { $headder_str .= 'ใต้'; $add_str .= 'ใต้'; } } } } } } $querys = get_province_id_by_province_sector_id($data); } else { if ($_GET['type'] == "province") { $data = $_GET['p_id']; $s_id = $_GET['s_id']; $headder_str = "รายละเอียดข้อมูลอำเภอ/เขตของ จังหวัด" . get_province_string($data); $querys = get_amphur_id_by_province_id($data); } else { if ($_GET['type'] == "amphur") { $data = $_GET['a_id']; $p_id = $_GET['p_id']; $s_id = $_GET['s_id']; $headder_str = "รายละเอียดข้อมูลตำบล/แขวงของ อำเภอ" . get_amphur_string($data); $querys = get_district_id_by_province_id($data); } }