Esempio n. 1
0
         $address_country = $row["address_country"];
         $address_latitude = $row["address_latitude"];
         $address_longitude = $row["address_longitude"];
         $address_type = strtolower(trim($address_type));
         $vcard->data[$address_type . '_address'] = $address_street;
         $vcard->data[$address_type . '_extended_address'] = $address_extended;
         $vcard->data[$address_type . '_city'] = $address_locality;
         $vcard->data[$address_type . '_state'] = $address_region;
         $vcard->data[$address_type . '_postal_code'] = $address_postal_code;
         $vcard->data[$address_type . '_country'] = $address_country;
     }
     unset($prep_statement);
 }
 //download the vcard
 if ($_GET['type'] == "download") {
     $vcard->download();
 }
 //show the vcard in a text qr code
 if ($_GET['type'] == "text") {
     $vcard->build();
     $content = $vcard->card;
     if ($qr_vcard) {
         $qr_vcard = $content;
     } else {
         echo $content;
     }
 }
 //show the vcard in an image qr code
 if ($_GET['type'] == "image" || $_GET['type'] == "html") {
     $vcard->build();
     $content = $vcard->card;
Esempio n. 2
0
        /*
        //additional un accounted fields
        additional_name
        name_prefix
        name_suffix
        nickname
        title
        role
        department
        work_po_box
        home_po_box
        home_extended_address
        home_address
        home_city
        home_state
        home_postal_code
        home_country
        pager_tel
        email2
        photo
        birthday
        timezone
        sort_string
        */
        break;
        //limit to 1 row
    }
    unset($prepstatement);
}
$vc->download();