"> <div class="col-xs-10 col-xs-offset-1"> <table class="table"> <thead> <tr> <th><h3>รายการ</h3></th> <th style='text-align:right'><h3>จำนวน</h3></th> </tr> </thead> <tbody> <tr> <td><h3>ข้อมูลสมาชิกทั้งหมด</h3></td> <td style='text-align:right'> <h3> <?php $results = count_all_person_detial(); while ($result = mysql_fetch_row($results)) { // echo $result[0]; ?> <a style="color: white;" onClick="javascript:window.location.assign('view/stat_detail.php?data=1&type=all')"><?php echo $result[0]; ?> </a> <?php } ?> </h3> </td> </tr> <tr> <td><h3>ข้อมูลสมาชิกที่ยังมีชีวิต</h3></td>
document.body.innerHTML = printContents; window.print(); document.body.innerHTML = originalContents; } </script> </head> <body> <div class= "bs-component" name="print" style="margin-left: 20px;"> <?php $count_row = 0; include '../helper/db_connect.php'; include '../helper/helper.php'; connect_database(); $count_all_persons = count_all_person_detial(); $count_all_person = mysql_fetch_array($count_all_persons); $row = intval($count_all_person[0] / 3); $all_persons = get_all_person_detial(); $all_person = mysql_fetch_assoc($all_persons); while ($all_person = mysql_fetch_assoc($all_persons)) { $id = $all_person['ID']; // echo "id : ".$id; $person_name = get_person_name_string($id) . ' ' . get_person_surname_string($id); $homeAddrs = get_person_all_address($id, 1); $checkHome = mysql_fetch_assoc(get_person_all_address($id, 1)); // echo $id; if ($checkHome) { $homeAddr = mysql_fetch_assoc($homeAddrs); } else { $homeAddr = give_addr();