</td> <td><?php echo get_person_province_string($id, 1); ?> </td> <td> <?php if ($person['CHINANAME_ID'] == 0) { ?> <a style="color:white" class="mdi-action-spellcheck" onClick="check('<?php echo $id; ?> ')">สร้างชื่อจีน</a> <?php } else { echo get_person_china_full_name($id, 0); } ?> </td> <!-- <td><a style="color: white;" class="mdi-action-pageview"onClick="javascript:window.location.assign('manage_person_detial.php?id=<?php echo $id; ?> ')">ดูรายละเอียด</a></td> <td><a style="color: white;" class="mdi-action-delete" onclick="del('<?php echo $person['NAME'] . " " . $person['SURNAME']; ?> ', '<?php echo $id; ?> ', '<?php echo $_GET['table'];
</td> </tr> <?php } else { ?> <tr> <td><h3><?php echo $person['ID']; ?> </h3></td> <td><h3><?php echo get_person_title_string($person['TITLE_ID']) . ' ' . get_person_name_string($person['ID']) . ' ' . get_person_surname_string($person['ID']); ?> </h3></td> <td><h3><?php echo get_person_china_full_name($person['ID'], 0); ?> </h3></td> <td align='right'><h3><a style="color: white;" class="mdi-action-pageview" onClick="javascript:window.location.assign('manage_person_detial.php?id=<?php echo $person['ID']; ?> &type=gen')">ดูรายละเอียด</a></h3></td> <td> <!--<a style="color: white;" class="mdi-action-find-in-page"onClick="javascript:window.location.assign('view/view_gen.php?gen_id=////<?php // echo $gen_id; ?> ')">view</a>--> </td> </tr> <?php }
if ($person['PARENT_ID'] != 0 || $person['BROTHER_LIST'] != '') { $brothers = get_person_brother($person['PARENT_ID'], $person['BROTHER_LIST'], $person['ID']); while ($brother = mysql_fetch_assoc($brothers)) { ?> <div class="row"> <div class="col-xs-4"> <?php echo get_person_name_string($brother['ID']) . " " . get_person_surname_string($brother['ID']); ?> </div> <div class="col-xs-4"> <?php if ($brother['CHINANAME_ID'] == 0) { $bro_chinaname = ''; } else { $bro_chinaname = get_person_china_full_name($brother['ID'], 0); } echo $bro_chinaname; ?> </div> <div class="col-xs-4"> <?php if ($brother['STATUS'] == 1) { echo "ยังมีชีวิตอยู่"; } else { if ($brother['STATUS'] == 2) { echo "เสียชีวิตแล้ว"; } else { echo "ไม่ระบุ"; } }
echo get_person_title_string($person['TITLE_ID']) . ' ' . get_person_name_string($id) . " " . get_person_surname_string($id); } else { echo get_person_name_string($id) . " " . get_person_surname_string($id); } ?> </h6> <!--</p>--> </div> <div class="col-xs-2"> <h5>ชื่อจีน</h5> </div> <div class="col-xs-3" style="margin-top: 1px"> <h6> <?php if ($person['CHINANAME_ID'] != 0) { echo get_person_china_full_name($id, 0) . '( ' . get_person_china_full_name($id, 1) . ', ' . get_person_china_full_name($id, 2) . ' )'; } else { echo '-'; } ?> </h6> </div> <!-- <div class="col-xs-1"> <h4>เพศ</h4> </div> <div class="col-xs-1" style="margin-top: 10px"> <?php // echo get_person_gender_string($person['GENDER_ID']); ?> </div>--> </div>
</div> <div class="col-xs-8"> <h5><?php echo get_person_title_string($child['TITLE_ID']) . ' ' . get_person_name_string($child['ID']) . ' ' . get_person_surname_string($child['ID']); ?> </h5> </div> </div> <div class="row"> <div class="col-xs-3"> <h5>ชื่อจีน</h5> </div> <div class="col-xs-9"> <?php if ($child['CHINANAME_ID'] != 0) { echo get_person_china_full_name($child['ID'], 0) . '<br/>( ' . get_person_china_full_name($child['ID'], 1) . ', ' . get_person_china_full_name($child['ID'], 2) . ' )'; } else { echo '-'; } ?> </div> </div> <div class="row"> <div class="col-xs-4"> <h5> <a class="mdi-social-people" onClick="javascript:window.location.assign('family_tree_detail.php?id=<?php echo $child['ID']; ?> ')">family tree</a> </h5> </div>
} </style> </head> <body> <?php $id = $_GET['id']; include '../helper/db_connect.php'; include '../helper/helper.php'; connect_database(); $persons = get_person_detial($id); $person = mysql_fetch_assoc($persons); // print_r($person); if ($person['CHINANAME_ID'] == 0) { $chinaname = ''; } else { $chinaname = get_person_china_full_name($id, 0); } $homeAddrs = get_person_all_address($id, 1); $checkHome = mysql_fetch_assoc(get_person_all_address($id, 1)); if ($checkHome) { $homeAddr = mysql_fetch_assoc($homeAddrs); } else { $homeAddr = give_addr(); } $homeTels = get_person_contact($person['ID'], 1); $checkHomeTel = mysql_fetch_assoc(get_person_contact($id, 1)); if ($checkHomeTel) { $homeTel = mysql_fetch_assoc($homeTels); if ($homeTel['CONTACT_COMMENT'] == '') { $homePhoneSting = $homeTel['CONTACT_ARER_CODE'] . '-' . $homeTel['CONTACT_STRING']; } else {