示例#1
0
$checkOrganization = mysql_fetch_assoc($checkOrganizations);
if (!$checkOrganization) {
    ?>
                            <div class="row">
                                <div class="col-xs-6 col-xs-offset-2">
                                    <h4 class="text-danger">ไม่พบข้อมูลอาชีพ กรุณากดปุ่มเพิ่มข้อมูลอาชีพ</h4>
                                </div>
                            </div>
                            <?php 
} else {
    $organizationroles = get_person_organization($id);
    $count = 1;
    while ($organizationrole = mysql_fetch_assoc($organizationroles)) {
        //                        print_r($organizationrole);
        $organization_id = $organizationrole['ORGANIZATION_ID'];
        $organizations = get_organization_data($organization_id);
        $organization = mysql_fetch_assoc($organizations);
        ?>
                                <fieldset class="scheduler-border">
                                    <legend class="scheduler-border"><h5>อาชีพ/ธุรกิจ<?php 
        echo $count;
        ?>
</h5></legend>
                                    <div class="row">
                                        <div class="col-sm-2">
                                            <h5>ธุรกิจ</h5>
                                        </div>
                                        <div class="col-sm-4">
                                            <h6><?php 
        echo get_organization_type_string($organization['ORGANIZATION_TYPE_ID']);
        ?>
示例#2
0
     $line = array("CONTACT_STRING" => '');
 }
 $facebooks = get_person_contact($id, 5);
 $checkFB = mysql_fetch_assoc(get_person_contact($id, 5));
 if ($checkFB) {
     $facebook = mysql_fetch_assoc($facebooks);
 } else {
     $facebook = array("CONTACT_STRING" => '');
 }
 $organization_ids = get_person_organization($person["ID"]);
 $organization_id = mysql_fetch_assoc($organization_ids);
 if ($organization_id) {
     $organization_ids = get_person_organization($person["ID"]);
     $organization_id = mysql_fetch_assoc($organization_ids);
     //                                print_r($organization_id);
     $organization_datas = get_organization_data($organization_id['ORGANIZATION_ID']);
     $organization_data = mysql_fetch_assoc($organization_datas);
     $org_type = $organization_data['ORGANIZATION_TYPE_ID'];
     $org_comment = $organization_data['ORGANIZATION_COMMENT'];
     $org_name = $organization_data['ORGANIZATION_NAME'];
     $org_role = $organization_id['ORGANIZATION_ROLE'];
     $organization_addrs = get_person_all_address($organization_id['ORGANIZATION_ID'], 2);
     $org_addr = mysql_fetch_assoc($organization_addrs);
     $organization_phones = get_person_contact($organization_id['ORGANIZATION_ID'], 6);
     $organization_phone = mysql_fetch_assoc($organization_phones);
     if ($organization_phone) {
         $organization_phones = get_person_contact($organization_id['ORGANIZATION_ID'], 6);
         $organization_phone = mysql_fetch_assoc($organization_phones);
         if ($organization_phone['CONTACT_COMMENT'] == '') {
             $org_phone_string = $homeTel['CONTACT_ARER_CODE'] . '-' . $homeTel['CONTACT_STRING'];
         } else {