12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031 |
- <?php
- /*
- FusionPBX
- Version: MPL 1.1
- The contents of this file are subject to the Mozilla Public License Version
- 1.1 (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
- http://www.mozilla.org/MPL/
- Software distributed under the License is distributed on an "AS IS" basis,
- WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
- for the specific language governing rights and limitations under the
- License.
- The Original Code is FusionPBX
- The Initial Developer of the Original Code is
- Mark J Crane <[email protected]>
- Portions created by the Initial Developer are Copyright (C) 2008-2012
- the Initial Developer. All Rights Reserved.
- Contributor(s):
- Mark J Crane <[email protected]>
- */
- include "root.php";
- require_once "resources/require.php";
- require_once "resources/check_auth.php";
- if (permission_exists('contact_add') || permission_exists('contact_edit')) {
- //access granted
- }
- else {
- echo "access denied";
- exit;
- }
- //set the action to an add or update
- if (isset($_REQUEST["id"])) {
- $action = "update";
- $user_uuid = check_str($_REQUEST["id"]);
- }
- else {
- $action = "add";
- }
- //get the http post values and set them as php variables
- if (count($_POST)>0) {
- $username = check_str($_POST["username"]);
- $password = check_str($_POST["password"]);
- $user_type = check_str($_POST["user_type"]);
- $user_category = check_str($_POST["user_category"]);
- $user_first_name = check_str($_POST["user_first_name"]);
- $user_last_name = check_str($_POST["user_last_name"]);
- $user_company_name = check_str($_POST["user_company_name"]);
- $user_physical_address_1 = check_str($_POST["user_physical_address_1"]);
- $user_physical_address_2 = check_str($_POST["user_physical_address_2"]);
- $user_physical_city = check_str($_POST["user_physical_city"]);
- $user_physical_state_province = check_str($_POST["user_physical_state_province"]);
- $user_physical_postal_code = check_str($_POST["user_physical_postal_code"]);
- $user_physical_country = check_str($_POST["user_physical_country"]);
- $user_mailing_address_1 = check_str($_POST["user_mailing_address_1"]);
- $user_mailing_address_2 = check_str($_POST["user_mailing_address_2"]);
- $user_mailing_city = check_str($_POST["user_mailing_city"]);
- $user_mailing_state_province = check_str($_POST["user_mailing_state_province"]);
- $user_mailing_postal_code = check_str($_POST["user_mailing_postal_code"]);
- $user_mailing_country = check_str($_POST["user_mailing_country"]);
- $user_billing_address_1 = check_str($_POST["user_billing_address_1"]);
- $user_billing_address_2 = check_str($_POST["user_billing_address_2"]);
- $user_billing_city = check_str($_POST["user_billing_city"]);
- $user_billing_state_province = check_str($_POST["user_billing_state_province"]);
- $user_billing_postal_code = check_str($_POST["user_billing_postal_code"]);
- $user_billing_country = check_str($_POST["user_billing_country"]);
- $user_shipping_address_1 = check_str($_POST["user_shipping_address_1"]);
- $user_shipping_address_2 = check_str($_POST["user_shipping_address_2"]);
- $user_shipping_city = check_str($_POST["user_shipping_city"]);
- $user_shipping_state_province = check_str($_POST["user_shipping_state_province"]);
- $user_shipping_postal_code = check_str($_POST["user_shipping_postal_code"]);
- $user_shipping_country = check_str($_POST["user_shipping_country"]);
- $user_phone_1 = check_str($_POST["user_phone_1"]);
- $user_phone_1_ext = check_str($_POST["user_phone_1_ext"]);
- $user_phone_2 = check_str($_POST["user_phone_2"]);
- $user_phone_2_ext = check_str($_POST["user_phone_2_ext"]);
- $user_phone_mobile = check_str($_POST["user_phone_mobile"]);
- $user_phone_fax = check_str($_POST["user_phone_fax"]);
- $user_phone_emergency_mobile = check_str($_POST["user_phone_emergency_mobile"]);
- $user_email_emergency = check_str($_POST["user_email_emergency"]);
- $user_email = check_str($_POST["user_email"]);
- $user_url = check_str($_POST["user_url"]);
- $user_notes = check_str($_POST["user_notes"]);
- $user_optional_1 = check_str($_POST["user_optional_1"]);
- $user_add_user = check_str($_POST["user_add_user"]);
- $user_add_date = check_str($_POST["user_add_date"]);
- }
- if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
- $msg = '';
- if ($action == "update") {
- $id = check_str($_POST["id"]);
- }
- //check for all required data
- //if (strlen($username) == 0) { $msg .= "Please provide: Username<br>\n"; }
- //if (strlen($password) == 0) { $msg .= "Please provide: Password<br>\n"; }
- //if (strlen($user_type) == 0) { $msg .= "Please provide: Type<br>\n"; }
- //if (strlen($user_category) == 0) { $msg .= "Please provide: Category<br>\n"; }
- //if (strlen($user_first_name) == 0) { $msg .= "Please provide: First Name<br>\n"; }
- //if (strlen($user_last_name) == 0) { $msg .= "Please provide: Last Name<br>\n"; }
- //if (strlen($user_company_name) == 0) { $msg .= "Please provide: Organization<br>\n"; }
- //if (strlen($user_physical_address_1) == 0) { $msg .= "Please provide: Address 1<br>\n"; }
- //if (strlen($user_physical_address_2) == 0) { $msg .= "Please provide: Address 2<br>\n"; }
- //if (strlen($user_physical_city) == 0) { $msg .= "Please provide: City<br>\n"; }
- //if (strlen($user_physical_state_province) == 0) { $msg .= "Please provide: State/Province<br>\n"; }
- //if (strlen($user_physical_postal_code) == 0) { $msg .= "Please provide: Postal Code<br>\n"; }
- //if (strlen($user_physical_country) == 0) { $msg .= "Please provide: Country<br>\n"; }
- //if (strlen($user_mailing_address_1) == 0) { $msg .= "Please provide: Address 1<br>\n"; }
- //if (strlen($user_mailing_address_2) == 0) { $msg .= "Please provide: Address 2<br>\n"; }
- //if (strlen($user_mailing_city) == 0) { $msg .= "Please provide: City<br>\n"; }
- //if (strlen($user_mailing_state_province) == 0) { $msg .= "Please provide: State/Province<br>\n"; }
- //if (strlen($user_mailing_postal_code) == 0) { $msg .= "Please provide: Postal Code<br>\n"; }
- //if (strlen($user_mailing_country) == 0) { $msg .= "Please provide: Country<br>\n"; }
- //if (strlen($user_billing_address_1) == 0) { $msg .= "Please provide: Address 1<br>\n"; }
- //if (strlen($user_billing_address_2) == 0) { $msg .= "Please provide: Address 2<br>\n"; }
- //if (strlen($user_billing_city) == 0) { $msg .= "Please provide: City<br>\n"; }
- //if (strlen($user_billing_state_province) == 0) { $msg .= "Please provide: State/Province<br>\n"; }
- //if (strlen($user_billing_postal_code) == 0) { $msg .= "Please provide: Postal Code<br>\n"; }
- //if (strlen($user_billing_country) == 0) { $msg .= "Please provide: Country<br>\n"; }
- //if (strlen($user_shipping_address_1) == 0) { $msg .= "Please provide: Address 1<br>\n"; }
- //if (strlen($user_shipping_address_2) == 0) { $msg .= "Please provide: Address 2<br>\n"; }
- //if (strlen($user_shipping_city) == 0) { $msg .= "Please provide: City<br>\n"; }
- //if (strlen($user_shipping_state_province) == 0) { $msg .= "Please provide: State/Province<br>\n"; }
- //if (strlen($user_shipping_postal_code) == 0) { $msg .= "Please provide: Postal Code<br>\n"; }
- //if (strlen($user_shipping_country) == 0) { $msg .= "Please provide: Country<br>\n"; }
- //if (strlen($user_phone_1) == 0) { $msg .= "Please provide: Phone 1<br>\n"; }
- //if (strlen($user_phone_1_ext) == 0) { $msg .= "Please provide: Ext 1<br>\n"; }
- //if (strlen($user_phone_2) == 0) { $msg .= "Please provide: Phone 2<br>\n"; }
- //if (strlen($user_phone_2_ext) == 0) { $msg .= "Please provide: Ext 2<br>\n"; }
- //if (strlen($user_phone_mobile) == 0) { $msg .= "Please provide: Mobile<br>\n"; }
- //if (strlen($user_phone_fax) == 0) { $msg .= "Please provide: FAX<br>\n"; }
- //if (strlen($user_phone_emergency_mobile) == 0) { $msg .= "Please provide: Emergency Mobile<br>\n"; }
- //if (strlen($user_email_emergency) == 0) { $msg .= "Please provide: Emergency Email<br>\n"; }
- //if (strlen($user_email) == 0) { $msg .= "Please provide: Email<br>\n"; }
- //if (strlen($user_url) == 0) { $msg .= "Please provide: URL<br>\n"; }
- //if (strlen($user_notes) == 0) { $msg .= "Please provide: Notes<br>\n"; }
- //if (strlen($user_optional_1) == 0) { $msg .= "Please provide: Optional 1<br>\n"; }
- //if (strlen($user_add_user) == 0) { $msg .= "Please provide: Add User<br>\n"; }
- //if (strlen($user_add_date) == 0) { $msg .= "Please provide: Add Date<br>\n"; }
- if (strlen($msg) > 0 && strlen($_POST["persistformvar"]) == 0) {
- require_once "resources/header.php";
- require_once "resources/persist_form_var.php";
- echo "<div align='center'>\n";
- echo "<table><tr><td>\n";
- echo $msg."<br />";
- echo "</td></tr></table>\n";
- persistformvar($_POST);
- echo "</div>\n";
- require_once "resources/footer.php";
- return;
- }
- //add or update the database
- if ($_POST["persistformvar"] != "true") {
- if ($action == "add" && permission_exists('contact_add')) {
- $sql = "insert into v_users ";
- $sql .= "(";
- $sql .= "domain_uuid, ";
- $sql .= "user_uuid, ";
- //$sql .= "username, ";
- //$sql .= "password, ";
- $sql .= "user_type, ";
- $sql .= "user_category, ";
- $sql .= "user_first_name, ";
- $sql .= "user_last_name, ";
- $sql .= "user_company_name, ";
- $sql .= "user_physical_address_1, ";
- $sql .= "user_physical_address_2, ";
- $sql .= "user_physical_city, ";
- $sql .= "user_physical_state_province, ";
- $sql .= "user_physical_postal_code, ";
- $sql .= "user_physical_country, ";
- $sql .= "user_mailing_address_1, ";
- $sql .= "user_mailing_address_2, ";
- $sql .= "user_mailing_city, ";
- $sql .= "user_mailing_state_province, ";
- $sql .= "user_mailing_postal_code, ";
- $sql .= "user_mailing_country, ";
- $sql .= "user_billing_address_1, ";
- $sql .= "user_billing_address_2, ";
- $sql .= "user_billing_city, ";
- $sql .= "user_billing_state_province, ";
- $sql .= "user_billing_postal_code, ";
- $sql .= "user_billing_country, ";
- $sql .= "user_shipping_address_1, ";
- $sql .= "user_shipping_address_2, ";
- $sql .= "user_shipping_city, ";
- $sql .= "user_shipping_state_province, ";
- $sql .= "user_shipping_postal_code, ";
- $sql .= "user_shipping_country, ";
- $sql .= "user_phone_1, ";
- $sql .= "user_phone_1_ext, ";
- $sql .= "user_phone_2, ";
- $sql .= "user_phone_2_ext, ";
- $sql .= "user_phone_mobile, ";
- $sql .= "user_phone_fax, ";
- $sql .= "user_phone_emergency_mobile, ";
- $sql .= "user_email_emergency, ";
- $sql .= "user_email, ";
- $sql .= "user_url, ";
- $sql .= "user_notes, ";
- $sql .= "user_optional_1, ";
- $sql .= "user_add_user, ";
- $sql .= "user_add_date ";
- $sql .= ")";
- $sql .= "values ";
- $sql .= "(";
- $sql .= "'$domain_uuid', ";
- $sql .= "'".uuid()."', ";
- //$sql .= "'$username', ";
- //$sql .= "'$password', ";
- $sql .= "'$user_type', ";
- $sql .= "'$user_category', ";
- $sql .= "'$user_first_name', ";
- $sql .= "'$user_last_name', ";
- $sql .= "'$user_company_name', ";
- $sql .= "'$user_physical_address_1', ";
- $sql .= "'$user_physical_address_2', ";
- $sql .= "'$user_physical_city', ";
- $sql .= "'$user_physical_state_province', ";
- $sql .= "'$user_physical_postal_code', ";
- $sql .= "'$user_physical_country', ";
- $sql .= "'$user_mailing_address_1', ";
- $sql .= "'$user_mailing_address_2', ";
- $sql .= "'$user_mailing_city', ";
- $sql .= "'$user_mailing_state_province', ";
- $sql .= "'$user_mailing_postal_code', ";
- $sql .= "'$user_mailing_country', ";
- $sql .= "'$user_billing_address_1', ";
- $sql .= "'$user_billing_address_2', ";
- $sql .= "'$user_billing_city', ";
- $sql .= "'$user_billing_state_province', ";
- $sql .= "'$user_billing_postal_code', ";
- $sql .= "'$user_billing_country', ";
- $sql .= "'$user_shipping_address_1', ";
- $sql .= "'$user_shipping_address_2', ";
- $sql .= "'$user_shipping_city', ";
- $sql .= "'$user_shipping_state_province', ";
- $sql .= "'$user_shipping_postal_code', ";
- $sql .= "'$user_shipping_country', ";
- $sql .= "'$user_phone_1', ";
- $sql .= "'$user_phone_1_ext', ";
- $sql .= "'$user_phone_2', ";
- $sql .= "'$user_phone_2_ext', ";
- $sql .= "'$user_phone_mobile', ";
- $sql .= "'$user_phone_fax', ";
- $sql .= "'$user_phone_emergency_mobile', ";
- $sql .= "'$user_email_emergency', ";
- $sql .= "'$user_email', ";
- $sql .= "'$user_url', ";
- $sql .= "'$user_notes', ";
- $sql .= "'$user_optional_1', ";
- $sql .= "'$user_add_user', ";
- $sql .= "'$user_add_date' ";
- $sql .= ")";
- $db->exec(check_sql($sql));
- unset($sql);
- require_once "resources/header.php";
- echo "<meta http-equiv=\"refresh\" content=\"2;url=users.php\">\n";
- echo "<div align='center'>\n";
- echo "Add Complete\n";
- echo "</div>\n";
- require_once "resources/footer.php";
- return;
- } //if ($action == "add")
- if ($action == "update" || permission_exists('contact_edit')) {
- $sql = "update v_users set ";
- //$sql .= "username = '$username', ";
- //if (strlen($password) > 0) {
- // $sql .= "password = '$password', ";
- //}
- $sql .= "user_type = '$user_type', ";
- $sql .= "user_category = '$user_category', ";
- $sql .= "user_first_name = '$user_first_name', ";
- $sql .= "user_last_name = '$user_last_name', ";
- $sql .= "user_company_name = '$user_company_name', ";
- $sql .= "user_physical_address_1 = '$user_physical_address_1', ";
- $sql .= "user_physical_address_2 = '$user_physical_address_2', ";
- $sql .= "user_physical_city = '$user_physical_city', ";
- $sql .= "user_physical_state_province = '$user_physical_state_province', ";
- $sql .= "user_physical_postal_code = '$user_physical_postal_code', ";
- $sql .= "user_physical_country = '$user_physical_country', ";
- $sql .= "user_mailing_address_1 = '$user_mailing_address_1', ";
- $sql .= "user_mailing_address_2 = '$user_mailing_address_2', ";
- $sql .= "user_mailing_city = '$user_mailing_city', ";
- $sql .= "user_mailing_state_province = '$user_mailing_state_province', ";
- $sql .= "user_mailing_postal_code = '$user_mailing_postal_code', ";
- $sql .= "user_mailing_country = '$user_mailing_country', ";
- $sql .= "user_billing_address_1 = '$user_billing_address_1', ";
- $sql .= "user_billing_address_2 = '$user_billing_address_2', ";
- $sql .= "user_billing_city = '$user_billing_city', ";
- $sql .= "user_billing_state_province = '$user_billing_state_province', ";
- $sql .= "user_billing_postal_code = '$user_billing_postal_code', ";
- $sql .= "user_billing_country = '$user_billing_country', ";
- $sql .= "user_shipping_address_1 = '$user_shipping_address_1', ";
- $sql .= "user_shipping_address_2 = '$user_shipping_address_2', ";
- $sql .= "user_shipping_city = '$user_shipping_city', ";
- $sql .= "user_shipping_state_province = '$user_shipping_state_province', ";
- $sql .= "user_shipping_postal_code = '$user_shipping_postal_code', ";
- $sql .= "user_shipping_country = '$user_shipping_country', ";
- $sql .= "user_phone_1 = '$user_phone_1', ";
- $sql .= "user_phone_1_ext = '$user_phone_1_ext', ";
- $sql .= "user_phone_2 = '$user_phone_2', ";
- $sql .= "user_phone_2_ext = '$user_phone_2_ext', ";
- $sql .= "user_phone_mobile = '$user_phone_mobile', ";
- $sql .= "user_phone_fax = '$user_phone_fax', ";
- $sql .= "user_phone_emergency_mobile = '$user_phone_emergency_mobile', ";
- $sql .= "user_email_emergency = '$user_email_emergency', ";
- $sql .= "user_email = '$user_email', ";
- $sql .= "user_url = '$user_url', ";
- $sql .= "user_notes = '$user_notes', ";
- $sql .= "user_optional_1 = '$user_optional_1' ";
- //$sql .= "user_add_user = '$user_add_user', ";
- //$sql .= "user_add_date = '$user_add_date' ";
- $sql .= "where domain_uuid = '$domain_uuid' ";
- $sql .= "and user_uuid = '$id' ";
- $db->exec(check_sql($sql));
- unset($sql);
- require_once "resources/header.php";
- echo "<meta http-equiv=\"refresh\" content=\"2;url=users.php\">\n";
- echo "<div align='center'>\n";
- echo "Update Complete\n";
- echo "</div>\n";
- require_once "resources/footer.php";
- return;
- } //if ($action == "update")
- } //if ($_POST["persistformvar"] != "true")
- } //(count($_POST)>0 && strlen($_POST["persistformvar"]) == 0)
- //pre-populate the form
- if (count($_GET)>0 && $_POST["persistformvar"] != "true") {
- $id = $_GET["id"];
- $sql = "";
- $sql .= "select * from v_users ";
- $sql .= "where domain_uuid = '$domain_uuid' ";
- $sql .= "and id = '$id' ";
- $prep_statement = $db->prepare(check_sql($sql));
- $prep_statement->execute();
- $result = $prep_statement->fetchAll(PDO::FETCH_NAMED);
- foreach ($result as &$row) {
- //$username = $row["username"];
- //$password = $row["password"];
- $user_type = $row["user_type"];
- $user_category = $row["user_category"];
- $user_first_name = $row["user_first_name"];
- $user_last_name = $row["user_last_name"];
- $user_company_name = $row["user_company_name"];
- $user_physical_address_1 = $row["user_physical_address_1"];
- $user_physical_address_2 = $row["user_physical_address_2"];
- $user_physical_city = $row["user_physical_city"];
- $user_physical_state_province = $row["user_physical_state_province"];
- $user_physical_postal_code = $row["user_physical_postal_code"];
- $user_physical_country = $row["user_physical_country"];
- $user_mailing_address_1 = $row["user_mailing_address_1"];
- $user_mailing_address_2 = $row["user_mailing_address_2"];
- $user_mailing_city = $row["user_mailing_city"];
- $user_mailing_state_province = $row["user_mailing_state_province"];
- $user_mailing_postal_code = $row["user_mailing_postal_code"];
- $user_mailing_country = $row["user_mailing_country"];
- $user_billing_address_1 = $row["user_billing_address_1"];
- $user_billing_address_2 = $row["user_billing_address_2"];
- $user_billing_city = $row["user_billing_city"];
- $user_billing_state_province = $row["user_billing_state_province"];
- $user_billing_postal_code = $row["user_billing_postal_code"];
- $user_billing_country = $row["user_billing_country"];
- $user_shipping_address_1 = $row["user_shipping_address_1"];
- $user_shipping_address_2 = $row["user_shipping_address_2"];
- $user_shipping_city = $row["user_shipping_city"];
- $user_shipping_state_province = $row["user_shipping_state_province"];
- $user_shipping_postal_code = $row["user_shipping_postal_code"];
- $user_shipping_country = $row["user_shipping_country"];
- $user_phone_1 = $row["user_phone_1"];
- $user_phone_1_ext = $row["user_phone_1_ext"];
- $user_phone_2 = $row["user_phone_2"];
- $user_phone_2_ext = $row["user_phone_2_ext"];
- $user_phone_mobile = $row["user_phone_mobile"];
- $user_phone_fax = $row["user_phone_fax"];
- $user_phone_emergency_mobile = $row["user_phone_emergency_mobile"];
- $user_email_emergency = $row["user_email_emergency"];
- $user_email = $row["user_email"];
- $user_url = $row["user_url"];
- $user_notes = $row["user_notes"];
- $user_optional_1 = $row["user_optional_1"];
- //$user_add_user = $row["user_add_user"];
- //$user_add_date = $row["user_add_date"];
- break; //limit to 1 row
- }
- unset ($prep_statement);
- }
- //show the header
- require_once "resources/header.php";
- //show the content
- echo "<div align='center'>";
- echo "<table width='100%' border='0' cellpadding='0' cellspacing=''>\n";
- echo "<tr class=''>\n";
- echo " <td align=\"left\">\n";
- echo " <br>";
- $tablewidth = "width='100%'";
- echo "<form method='post' name='frm' action=''>\n";
- echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
- echo "<tr>\n";
- if ($action == "add") {
- echo "<td width='30%' nowrap><b>Contact Add</b></td>\n";
- }
- if ($action == "update") {
- echo "<td width='30%' nowrap><b>Contact Edit</b></td>\n";
- }
- echo "<td width='70%' align='right'>\n";
- echo " <input type='button' class='btn' name='' alt='back' onclick=\"window.location='users_vcard.php?id=$id'\" value='vcard'>\n";
- echo " <input type='button' class='btn' name='' alt='back' onclick=\"window.location='users.php'\" value='Back'>\n";
- echo "</td>\n";
- echo "</tr>\n";
- echo "<tr><td colspan='2'>\n";
- if ($action == "add") {
- echo "Add the contact information to the fields below.</td>\n";
- }
- if ($action == "update") {
- echo "Edit the contact information using the fields below.\n";
- }
- echo "</td>\n";
- echo "</tr>\n";
- echo "</table>\n";
- echo "<br />\n";
- echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
- echo "<tr>\n";
- echo "<td valign='top'>\n";
- echo "<b>User Info</b><br>";
- echo "<div align='center' class='' style='padding:10px;'>\n";
- echo "<table $tablewidth cellpadding='6' cellspacing='0'>";
- //echo "<tr>\n";
- //echo "<td width='30%' class='vncell' valign='top' align='left' nowrap>\n";
- //echo " Username:\n";
- //echo "</td>\n";
- //echo "<td width='70%' class='vtable' align='left'>\n";
- //echo " <input style='width: 80%;' class='formfld' type='text' name='username' autocomplete='off' maxlength='255' value=\"$username\">\n";
- //echo "<br />\n";
- //echo "\n";
- //echo "</td>\n";
- //echo "</tr>\n";
- //echo "<tr>\n";
- //echo "<td class='vncell' valign='top' align='left' nowrap>\n";
- //echo " Password:\n";
- //echo "</td>\n";
- //echo "<td class='vtable' align='left'>\n";
- //echo " <input style='width: 80%;' class='formfld' type='password' name='password' autocomplete='off' maxlength='255' value=\"$password\">\n";
- //echo "<br />\n";
- //echo "\n";
- //echo "</td>\n";
- //echo "</tr>\n";
- echo "<tr>\n";
- echo "<td width='30%' class='vncell' valign='top' align='left' nowrap>\n";
- echo " Type:\n";
- echo "</td>\n";
- echo "<td width='70%' class='vtable' align='left'>\n";
- echo " <select style='width: 80%;' class='formfld' name='user_type'>\n";
- echo " <option value=''></option>\n";
- if ($user_type == "Individual") {
- echo " <option value='Individual' selected>Individual</option>\n";
- }
- else {
- echo " <option value='Individual'>Individual</option>\n";
- }
- if ($user_type == "Organization") {
- echo " <option value='Organization' selected>Organization</option>\n";
- }
- else {
- echo " <option value='Organization'>Organization</option>\n";
- }
- echo " </select>\n";
- echo "<br />\n";
- echo "\n";
- echo "</td>\n";
- echo "</tr>\n";
- echo "<tr>\n";
- echo "<td class='vncell' valign='top' align='left' nowrap>\n";
- echo " Category:\n";
- echo "</td>\n";
- echo "<td class='vtable' align='left'>\n";
- echo " <input style='width: 80%;' class='formfld' type='text' name='user_category' maxlength='255' value=\"$user_category\">\n";
- echo "<br />\n";
- echo "\n";
- echo "</td>\n";
- echo "</tr>\n";
- echo "<tr>\n";
- echo "<td class='vncell' valign='top' align='left' nowrap>\n";
- echo " First Name:\n";
- echo "</td>\n";
- echo "<td class='vtable' align='left'>\n";
- echo " <input style='width: 80%;' class='formfld' style='' type='text' name='user_first_name' maxlength='255' value=\"$user_first_name\"> <span class='smalltext'>vcard</span>\n";
- echo "<br />\n";
- echo "\n";
- echo "</td>\n";
- echo "</tr>\n";
- echo "<tr>\n";
- echo "<td class='vncell' valign='top' align='left' nowrap>\n";
- echo " Last Name:\n";
- echo "</td>\n";
- echo "<td class='vtable' align='left'>\n";
- echo " <input style='width: 80%;' class='formfld' type='text' name='user_last_name' maxlength='255' value=\"$user_last_name\"> <span class='smalltext'>vcard</span>\n";
- echo "<br />\n";
- echo "\n";
- echo "</td>\n";
- echo "</tr>\n";
- echo "<tr>\n";
- echo "<td class='vncell' valign='top' align='left' nowrap>\n";
- echo " Organization:\n";
- echo "</td>\n";
- echo "<td class='vtable' align='left'>\n";
- echo " <input style='width: 80%;' class='formfld' type='text' name='user_company_name' maxlength='255' value=\"$user_company_name\"> <span class='smalltext'>vcard</span>\n";
- echo "<br />\n";
- echo "\n";
- echo "</td>\n";
- echo "</tr>\n";
- echo "</table>\n";
- echo "</div>\n";
- echo "<b>Contact Information</b><br>";
- echo "<div align='center' class='' style='padding:10px;'>\n";
- echo "<table $tablewidth cellpadding='6' cellspacing='0'>";
- echo "<tr>\n";
- echo "<td width='30%' class='vncell' valign='top' align='left' nowrap>\n";
- echo " Phone 1:\n";
- echo "</td>\n";
- echo "<td width='70%' class='vtable' align='left'>\n";
- echo " <input style='width: 80%;' class='formfld' type='text' name='user_phone_1' maxlength='255' value=\"$user_phone_1\"> <span class='smalltext'>vcard</span>\n";
- echo "<br />\n";
- echo "\n";
- echo "</td>\n";
- echo "</tr>\n";
- echo "<tr>\n";
- echo "<td class='vncell' valign='top' align='left' nowrap>\n";
- echo " Ext 1:\n";
- echo "</td>\n";
- echo "<td class='vtable' align='left'>\n";
- echo " <input style='width: 80%;' class='formfld' type='text' name='user_phone_1_ext' maxlength='255' value=\"$user_phone_1_ext\">\n";
- echo "<br />\n";
- echo "\n";
- echo "</td>\n";
- echo "</tr>\n";
- echo "<tr>\n";
- echo "<td class='vncell' valign='top' align='left' nowrap>\n";
- echo " Phone 2:\n";
- echo "</td>\n";
- echo "<td class='vtable' align='left'>\n";
- echo " <input style='width: 80%;' class='formfld' type='text' name='user_phone_2' maxlength='255' value=\"$user_phone_2\">\n";
- echo "<br />\n";
- echo "\n";
- echo "</td>\n";
- echo "</tr>\n";
- echo "<tr>\n";
- echo "<td class='vncell' valign='top' align='left' nowrap>\n";
- echo " Ext 2:\n";
- echo "</td>\n";
- echo "<td class='vtable' align='left'>\n";
- echo " <input style='width: 80%;' class='formfld' type='text' name='user_phone_2_ext' maxlength='255' value=\"$user_phone_2_ext\">\n";
- echo "<br />\n";
- echo "\n";
- echo "</td>\n";
- echo "</tr>\n";
- echo "<tr>\n";
- echo "<td class='vncell' valign='top' align='left' nowrap>\n";
- echo " Mobile:\n";
- echo "</td>\n";
- echo "<td class='vtable' align='left'>\n";
- echo " <input style='width: 80%;' class='formfld' type='text' name='user_phone_mobile' maxlength='255' value=\"$user_phone_mobile\"> <span class='smalltext'>vcard</span>\n";
- echo "<br />\n";
- echo "\n";
- echo "</td>\n";
- echo "</tr>\n";
- echo "<tr>\n";
- echo "<td class='vncell' valign='top' align='left' nowrap>\n";
- echo " FAX:\n";
- echo "</td>\n";
- echo "<td class='vtable' align='left'>\n";
- echo " <input style='width: 80%;' class='formfld' type='text' name='user_phone_fax' maxlength='255' value=\"$user_phone_fax\"> <span class='smalltext'>vcard</span>\n";
- echo "<br />\n";
- echo "\n";
- echo "</td>\n";
- echo "</tr>\n";
- echo "<tr>\n";
- echo "<td class='vncell' valign='top' align='left' nowrap>\n";
- echo " Emergency Mobile:\n";
- echo "</td>\n";
- echo "<td class='vtable' align='left'>\n";
- echo " <input style='width: 80%;' class='formfld' type='text' name='user_phone_emergency_mobile' maxlength='255' value=\"$user_phone_emergency_mobile\">\n";
- echo "<br />\n";
- echo "\n";
- echo "</td>\n";
- echo "</tr>\n";
- echo "<tr>\n";
- echo "<td class='vncell' valign='top' align='left' nowrap>\n";
- echo " Emergency Email:\n";
- echo "</td>\n";
- echo "<td class='vtable' align='left'>\n";
- echo " <input style='width: 80%;' class='formfld' type='text' name='user_email_emergency' maxlength='255' value=\"$user_email_emergency\">\n";
- echo "<br />\n";
- echo "\n";
- echo "</td>\n";
- echo "</tr>\n";
- echo "</table>\n";
- echo "</div>\n";
- echo "<b>Additional Information</b><br>";
- echo "<div align='center' class='' style='padding:10px;'>\n";
- echo "<table $tablewidth cellpadding='6' cellspacing='0'>";
- echo "<tr>\n";
- echo "<td width='30%' class='vncell' valign='top' align='left' nowrap>\n";
- echo " Email:\n";
- echo "</td>\n";
- echo "<td width='70%' class='vtable' align='left'>\n";
- echo " <input style='width: 80%;' class='formfld' type='text' name='user_email' maxlength='255' value=\"$user_email\"> <span class='smalltext'>vcard</span>\n";
- echo "<br />\n";
- echo "\n";
- echo "</td>\n";
- echo "</tr>\n";
- echo "<tr>\n";
- echo "<td class='vncell' valign='top' align='left' nowrap>\n";
- echo " URL:\n";
- echo "</td>\n";
- echo "<td class='vtable' align='left'>\n";
- echo " <input style='width: 80%;' class='formfld' type='text' name='user_url' maxlength='255' value=\"$user_url\"> <span class='smalltext'>vcard</span>\n";
- echo "<br />\n";
- echo "\n";
- echo "</td>\n";
- echo "</tr>\n";
- echo "<tr>\n";
- echo "<td class='vncell' valign='top' align='left' nowrap>\n";
- echo " Notes:\n";
- echo "</td>\n";
- echo "<td class='vtable' align='left'>\n";
- echo " <textarea style='width: 80%;' class='formfld' type='text' name='user_notes' rows='5'>$user_notes</textarea> <span class='smalltext'>vcard</span>\n";
- echo "<br />\n";
- echo "\n";
- echo "</td>\n";
- echo "</tr>\n";
- //echo "<tr>\n";
- //echo "<td class='vncell' valign='top' align='left' nowrap>\n";
- //echo " Optional 1:\n";
- //echo "</td>\n";
- //echo "<td class='vtable' align='left'>\n";
- //echo " <input style='width: 80%;' class='formfld' type='text' name='user_optional_1' maxlength='255' value=\"$user_optional_1\">\n";
- //echo "<br />\n";
- //echo "\n";
- //echo "</td>\n";
- //echo "</tr>\n";
- //echo "<tr>\n";
- //echo "<td class='vncell' valign='top' align='left' nowrap>\n";
- //echo " Optional 1:\n";
- //echo "</td>\n";
- //echo "<td class='vtable' align='left'>\n";
- //echo " <input style='width: 80%;' class='formfld' type='text' name='user_optional_2' maxlength='255' value=\"$user_optional_2\">\n";
- //echo "<br />\n";
- //echo "\n";
- //echo "</td>\n";
- //echo "</tr>\n";
- echo "</table>\n";
- echo "</div>\n";
- echo "</td>\n";
- echo "<td valign='top'>\n";
- echo "<b>Physical Address</b><br>";
- echo "<div align='center' class='' style='padding:10px;'>\n";
- echo "<table $tablewidth cellpadding='6' cellspacing='0'>";
- echo "<tr>\n";
- echo "<td width='30%' class='vncell' valign='top' align='left' nowrap>\n";
- echo " Address 1:\n";
- echo "</td>\n";
- echo "<td width='70%' class='vtable' align='left'>\n";
- echo " <input style='width: 80%;' class='formfld' type='text' name='user_physical_address_1' maxlength='255' value=\"$user_physical_address_1\"> <span class='smalltext'>vcard</span>\n";
- echo "<br />\n";
- echo "\n";
- echo "</td>\n";
- echo "</tr>\n";
- echo "<tr>\n";
- echo "<td class='vncell' valign='top' align='left' nowrap>\n";
- echo " Address 2:\n";
- echo "</td>\n";
- echo "<td class='vtable' align='left'>\n";
- echo " <input style='width: 80%;' class='formfld' type='text' name='user_physical_address_2' maxlength='255' value=\"$user_physical_address_2\"> <span class='smalltext'>vcard</span>\n";
- echo "<br />\n";
- echo "\n";
- echo "</td>\n";
- echo "</tr>\n";
- echo "<tr>\n";
- echo "<td class='vncell' valign='top' align='left' nowrap>\n";
- echo " City:\n";
- echo "</td>\n";
- echo "<td class='vtable' align='left'>\n";
- echo " <input style='width: 80%;' class='formfld' type='text' name='user_physical_city' maxlength='255' value=\"$user_physical_city\"> <span class='smalltext'>vcard</span>\n";
- echo "<br />\n";
- echo "\n";
- echo "</td>\n";
- echo "</tr>\n";
- echo "<tr>\n";
- echo "<td class='vncell' valign='top' align='left' nowrap>\n";
- echo " State/Province:\n";
- echo "</td>\n";
- echo "<td class='vtable' align='left'>\n";
- echo " <input style='width: 80%;' class='formfld' type='text' name='user_physical_state_province' maxlength='255' value=\"$user_physical_state_province\"> <span class='smalltext'>vcard</span>\n";
- echo "<br />\n";
- echo "\n";
- echo "</td>\n";
- echo "</tr>\n";
- echo "<tr>\n";
- echo "<td class='vncell' valign='top' align='left' nowrap>\n";
- echo " Postal Code:\n";
- echo "</td>\n";
- echo "<td class='vtable' align='left'>\n";
- echo " <input style='width: 80%;' class='formfld' type='text' name='user_physical_postal_code' maxlength='255' value=\"$user_physical_postal_code\"> <span class='smalltext'>vcard</span>\n";
- echo "<br />\n";
- echo "\n";
- echo "</td>\n";
- echo "</tr>\n";
- echo "<tr>\n";
- echo "<td class='vncell' valign='top' align='left' nowrap>\n";
- echo " Country:\n";
- echo "</td>\n";
- echo "<td class='vtable' align='left'>\n";
- echo " <input style='width: 80%;' class='formfld' type='text' name='user_physical_country' maxlength='255' value=\"$user_physical_country\"> <span class='smalltext'>vcard</span>\n";
- echo "<br />\n";
- echo "\n";
- echo "</td>\n";
- echo "</tr>\n";
- echo "</table>\n";
- echo "</div>\n";
- echo "<b>Postal Address</b><br>";
- echo "<div align='center' class='' style='padding:10px;'>\n";
- echo "<table $tablewidth cellpadding='6' cellspacing='0'>";
- echo "<tr>\n";
- echo "<td width='30%' class='vncell' valign='top' align='left' nowrap>\n";
- echo " Address 1:\n";
- echo "</td>\n";
- echo "<td width='70%' class='vtable' align='left'>\n";
- echo " <input style='width: 80%;' class='formfld' type='text' name='user_mailing_address_1' maxlength='255' value=\"$user_mailing_address_1\">\n";
- echo "<br />\n";
- echo "\n";
- echo "</td>\n";
- echo "</tr>\n";
- echo "<tr>\n";
- echo "<td class='vncell' valign='top' align='left' nowrap>\n";
- echo " Address 2:\n";
- echo "</td>\n";
- echo "<td class='vtable' align='left'>\n";
- echo " <input style='width: 80%;' class='formfld' type='text' name='user_mailing_address_2' maxlength='255' value=\"$user_mailing_address_2\">\n";
- echo "<br />\n";
- echo "\n";
- echo "</td>\n";
- echo "</tr>\n";
- echo "<tr>\n";
- echo "<td class='vncell' valign='top' align='left' nowrap>\n";
- echo " City:\n";
- echo "</td>\n";
- echo "<td class='vtable' align='left'>\n";
- echo " <input style='width: 80%;' class='formfld' type='text' name='user_mailing_city' maxlength='255' value=\"$user_mailing_city\">\n";
- echo "<br />\n";
- echo "\n";
- echo "</td>\n";
- echo "</tr>\n";
- echo "<tr>\n";
- echo "<td class='vncell' valign='top' align='left' nowrap>\n";
- echo " State/Province:\n";
- echo "</td>\n";
- echo "<td class='vtable' align='left'>\n";
- echo " <input style='width: 80%;' class='formfld' type='text' name='user_mailing_state_province' maxlength='255' value=\"$user_mailing_state_province\">\n";
- echo "<br />\n";
- echo "\n";
- echo "</td>\n";
- echo "</tr>\n";
- echo "<tr>\n";
- echo "<td class='vncell' valign='top' align='left' nowrap>\n";
- echo " Postal Code:\n";
- echo "</td>\n";
- echo "<td class='vtable' align='left'>\n";
- echo " <input style='width: 80%;' class='formfld' type='text' name='user_mailing_postal_code' maxlength='255' value=\"$user_mailing_postal_code\">\n";
- echo "<br />\n";
- echo "\n";
- echo "</td>\n";
- echo "</tr>\n";
- echo "<tr>\n";
- echo "<td class='vncell' valign='top' align='left' nowrap>\n";
- echo " Country:\n";
- echo "</td>\n";
- echo "<td class='vtable' align='left'>\n";
- echo " <input style='width: 80%;' class='formfld' type='text' name='user_mailing_country' maxlength='255' value=\"$user_mailing_country\">\n";
- echo "<br />\n";
- echo "\n";
- echo "</td>\n";
- echo "</tr>\n";
- echo "</table>\n";
- echo "</div>\n";
- echo "<b>Billing Address</b><br>";
- echo "<div align='center' class='' style='padding:10px;'>\n";
- echo "<table $tablewidth cellpadding='6' cellspacing='0'>";
- echo "<tr>\n";
- echo "<td width='30%' class='vncell' valign='top' align='left' nowrap>\n";
- echo " Address 1:\n";
- echo "</td>\n";
- echo "<td width='70%' class='vtable' align='left'>\n";
- echo " <input style='width: 80%;' class='formfld' type='text' name='user_billing_address_1' maxlength='255' value=\"$user_billing_address_1\">\n";
- echo "<br />\n";
- echo "\n";
- echo "</td>\n";
- echo "</tr>\n";
- echo "<tr>\n";
- echo "<td class='vncell' valign='top' align='left' nowrap>\n";
- echo " Address 2:\n";
- echo "</td>\n";
- echo "<td class='vtable' align='left'>\n";
- echo " <input style='width: 80%;' class='formfld' type='text' name='user_billing_address_2' maxlength='255' value=\"$user_billing_address_2\">\n";
- echo "<br />\n";
- echo "\n";
- echo "</td>\n";
- echo "</tr>\n";
- echo "<tr>\n";
- echo "<td class='vncell' valign='top' align='left' nowrap>\n";
- echo " City:\n";
- echo "</td>\n";
- echo "<td class='vtable' align='left'>\n";
- echo " <input style='width: 80%;' class='formfld' type='text' name='user_billing_city' maxlength='255' value=\"$user_billing_city\">\n";
- echo "<br />\n";
- echo "\n";
- echo "</td>\n";
- echo "</tr>\n";
- echo "<tr>\n";
- echo "<td class='vncell' valign='top' align='left' nowrap>\n";
- echo " State/Province:\n";
- echo "</td>\n";
- echo "<td class='vtable' align='left'>\n";
- echo " <input style='width: 80%;' class='formfld' type='text' name='user_billing_state_province' maxlength='255' value=\"$user_billing_state_province\">\n";
- echo "<br />\n";
- echo "\n";
- echo "</td>\n";
- echo "</tr>\n";
- echo "<tr>\n";
- echo "<td class='vncell' valign='top' align='left' nowrap>\n";
- echo " Postal Code:\n";
- echo "</td>\n";
- echo "<td class='vtable' align='left'>\n";
- echo " <input style='width: 80%;' class='formfld' type='text' name='user_billing_postal_code' maxlength='255' value=\"$user_billing_postal_code\">\n";
- echo "<br />\n";
- echo "\n";
- echo "</td>\n";
- echo "</tr>\n";
- echo "<tr>\n";
- echo "<td class='vncell' valign='top' align='left' nowrap>\n";
- echo " Country:\n";
- echo "</td>\n";
- echo "<td class='vtable' align='left'>\n";
- echo " <input style='width: 80%;' class='formfld' type='text' name='user_billing_country' maxlength='255' value=\"$user_billing_country\">\n";
- echo "<br />\n";
- echo "\n";
- echo "</td>\n";
- echo "</tr>\n";
- echo "</table>\n";
- echo "</div>\n";
- echo "<b>Shipping Address</b><br>";
- echo "<div align='center' class='' style='padding:10px;'>\n";
- echo "<table $tablewidth cellpadding='6' cellspacing='0'>";
- echo "<tr>\n";
- echo "<td width='30%' class='vncell' valign='top' align='left' nowrap>\n";
- echo " Address 1:\n";
- echo "</td>\n";
- echo "<td width='70%' class='vtable' align='left'>\n";
- echo " <input style='width: 80%;' class='formfld' type='text' name='user_shipping_address_1' maxlength='255' value=\"$user_shipping_address_1\">\n";
- echo "<br />\n";
- echo "\n";
- echo "</td>\n";
- echo "</tr>\n";
- echo "<tr>\n";
- echo "<td class='vncell' valign='top' align='left' nowrap>\n";
- echo " Address 2:\n";
- echo "</td>\n";
- echo "<td class='vtable' align='left'>\n";
- echo " <input style='width: 80%;' class='formfld' type='text' name='user_shipping_address_2' maxlength='255' value=\"$user_shipping_address_2\">\n";
- echo "<br />\n";
- echo "\n";
- echo "</td>\n";
- echo "</tr>\n";
- echo "<tr>\n";
- echo "<td class='vncell' valign='top' align='left' nowrap>\n";
- echo " City:\n";
- echo "</td>\n";
- echo "<td class='vtable' align='left'>\n";
- echo " <input style='width: 80%;' class='formfld' type='text' name='user_shipping_city' maxlength='255' value=\"$user_shipping_city\">\n";
- echo "<br />\n";
- echo "\n";
- echo "</td>\n";
- echo "</tr>\n";
- echo "<tr>\n";
- echo "<td class='vncell' valign='top' align='left' nowrap>\n";
- echo " State/Province:\n";
- echo "</td>\n";
- echo "<td class='vtable' align='left'>\n";
- echo " <input style='width: 80%;' class='formfld' type='text' name='user_shipping_state_province' maxlength='255' value=\"$user_shipping_state_province\">\n";
- echo "<br />\n";
- echo "\n";
- echo "</td>\n";
- echo "</tr>\n";
- echo "<tr>\n";
- echo "<td class='vncell' valign='top' align='left' nowrap>\n";
- echo " Postal Code:\n";
- echo "</td>\n";
- echo "<td class='vtable' align='left'>\n";
- echo " <input style='width: 80%;' class='formfld' type='text' name='user_shipping_postal_code' maxlength='255' value=\"$user_shipping_postal_code\">\n";
- echo "<br />\n";
- echo "\n";
- echo "</td>\n";
- echo "</tr>\n";
- echo "<tr>\n";
- echo "<td class='vncell' valign='top' align='left' nowrap>\n";
- echo " Country:\n";
- echo "</td>\n";
- echo "<td class='vtable' align='left'>\n";
- echo " <input style='width: 80%;' class='formfld' type='text' name='user_shipping_country' maxlength='255' value=\"$user_shipping_country\">\n";
- echo "<br />\n";
- echo "\n";
- echo "</td>\n";
- echo "</tr>\n";
- echo "</table>\n";
- echo "</div>\n";
- echo "</td>\n";
- echo "</tr>\n";
- echo "</table>\n";
- //echo "<tr>\n";
- //echo "<td class='vncell' valign='top' align='left' nowrap>\n";
- //echo " Add User:\n";
- //echo "</td>\n";
- //echo "<td class='vtable' align='left'>\n";
- //echo " <input style='width: 80%;' class='formfld' type='text' name='user_add_user' maxlength='255' value=\"$user_add_user\">\n";
- //echo "<br />\n";
- //echo "\n";
- //echo "</td>\n";
- //echo "</tr>\n";
- //echo "<tr>\n";
- //echo "<td class='vncell' valign='top' align='left' nowrap>\n";
- //echo " Add Date:\n";
- //echo "</td>\n";
- //echo "<td class='vtable' align='left'>\n";
- //echo " <input style='width: 80%;' class='formfld' type='text' name='user_add_date' maxlength='255' value=\"$user_add_date\">\n";
- //echo "<br />\n";
- //echo "\n";
- //echo "</td>\n";
- //echo "</tr>\n";
- echo " <tr>\n";
- echo " <td colspan='2' align='right'>\n";
- if ($action == "update") {
- echo " <input type='hidden' name='id' value='$user_uuid'>\n";
- }
- echo " <input type='submit' name='submit' class='btn' value='Save'>\n";
- echo " </td>\n";
- echo " </tr>";
- echo "</table>";
- echo "</form>";
- echo " </td>";
- echo " </tr>";
- echo "</table>";
- echo "</div>";
- echo "<br />\n";
- echo "<br />\n";
- //show the footer
- require_once "resources/footer.php";
- ?>
|