2012-06-04 16:58:40 +02:00
|
|
|
<?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 <markjcrane@fusionpbx.com>
|
|
|
|
|
Portions created by the Initial Developer are Copyright (C) 2008-2012
|
|
|
|
|
the Initial Developer. All Rights Reserved.
|
|
|
|
|
|
|
|
|
|
Contributor(s):
|
|
|
|
|
Mark J Crane <markjcrane@fusionpbx.com>
|
|
|
|
|
*/
|
|
|
|
|
include "root.php";
|
2013-07-06 08:03:27 +02:00
|
|
|
require_once "resources/require.php";
|
2014-12-26 07:37:07 +01:00
|
|
|
|
|
|
|
|
//check permissions
|
|
|
|
|
require_once "resources/check_auth.php";
|
|
|
|
|
if (if_group("admin") || if_group("superadmin")) {
|
|
|
|
|
//access allowed
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
echo "access denied";
|
|
|
|
|
return;
|
|
|
|
|
}
|
2012-06-04 16:58:40 +02:00
|
|
|
|
2013-06-09 06:32:24 +02:00
|
|
|
//add multi-lingual support
|
2015-01-18 10:22:07 +01:00
|
|
|
$language = new text;
|
|
|
|
|
$text = $language->get();
|
|
|
|
|
|
2015-03-22 09:17:04 +01:00
|
|
|
//get total user count from the database, check limit, if defined
|
|
|
|
|
if ($_SESSION['limit']['users']['numeric'] != '') {
|
|
|
|
|
$sql = "select count(*) as num_rows from v_users where domain_uuid = '".$_SESSION['domain_uuid']."' ";
|
|
|
|
|
$prep_statement = $db->prepare($sql);
|
|
|
|
|
if ($prep_statement) {
|
|
|
|
|
$prep_statement->execute();
|
|
|
|
|
$row = $prep_statement->fetch(PDO::FETCH_ASSOC);
|
|
|
|
|
$total_users = $row['num_rows'];
|
|
|
|
|
}
|
|
|
|
|
unset($prep_statement, $row);
|
|
|
|
|
if ($total_users >= $_SESSION['limit']['users']['numeric']) {
|
|
|
|
|
$_SESSION['message_mood'] = 'negative';
|
2015-03-23 21:06:28 +01:00
|
|
|
$_SESSION['message'] = $text['message-maximum_users'].' '.$_SESSION['limit']['users']['numeric'];
|
2015-03-22 09:17:04 +01:00
|
|
|
header('Location: index.php');
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2015-01-18 10:22:07 +01:00
|
|
|
//get the values from http and set as variables
|
|
|
|
|
$username = check_str($_POST["username"]);
|
|
|
|
|
$password = check_str($_POST["password"]);
|
|
|
|
|
$confirmpassword = check_str($_POST["confirmpassword"]);
|
|
|
|
|
$group_uuid_name = check_str($_POST["group_uuid_name"]);
|
|
|
|
|
$user_email = check_str($_POST["user_email"]);
|
|
|
|
|
$contact_organization = check_str($_POST["contact_organization"]);
|
|
|
|
|
$contact_name_given = check_str($_POST["contact_name_given"]);
|
|
|
|
|
$contact_name_family = check_str($_POST["contact_name_family"]);
|
2014-06-21 21:40:16 +02:00
|
|
|
|
2014-10-18 08:49:34 +02:00
|
|
|
if ($group_uuid_name != '') {
|
|
|
|
|
$group_data = explode('|', $group_uuid_name);
|
|
|
|
|
$group_uuid = $group_data[0];
|
|
|
|
|
$group_name = $group_data[1];
|
|
|
|
|
}
|
2012-06-04 16:58:40 +02:00
|
|
|
|
|
|
|
|
if (count($_POST)>0 && check_str($_POST["persistform"]) != "1") {
|
|
|
|
|
|
2013-12-27 19:09:42 +01:00
|
|
|
$msg = '';
|
2012-06-04 16:58:40 +02:00
|
|
|
|
|
|
|
|
//--- begin captcha verification ---------------------
|
|
|
|
|
//session_start(); //make sure sessions are started
|
|
|
|
|
if (strtolower($_SESSION["captcha"]) != strtolower($_REQUEST["captcha"]) || strlen($_SESSION["captcha"]) == 0) {
|
2013-12-27 19:09:42 +01:00
|
|
|
//$msg .= "Captcha Verification Failed<br>\n";
|
2012-06-04 16:58:40 +02:00
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
//echo "verified";
|
|
|
|
|
}
|
|
|
|
|
//--- end captcha verification -----------------------
|
|
|
|
|
|
|
|
|
|
//username is already used.
|
|
|
|
|
if (strlen($username) == 0) {
|
2013-12-27 19:09:42 +01:00
|
|
|
$msg .= $text['message-required'].$text['label-username']."<br>\n";
|
2012-06-04 16:58:40 +02:00
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
$sql = "SELECT * FROM v_users ";
|
2013-12-27 19:09:42 +01:00
|
|
|
$sql .= "WHERE username = '$username' ";
|
|
|
|
|
if ($_SESSION["user"]["unique"]["text"] != "global") {
|
|
|
|
|
$sql .= "AND domain_uuid = '$domain_uuid' ";
|
|
|
|
|
}
|
|
|
|
|
//$sql .= "and user_enabled = 'true' ";
|
2012-06-04 16:58:40 +02:00
|
|
|
$prep_statement = $db->prepare(check_sql($sql));
|
|
|
|
|
$prep_statement->execute();
|
|
|
|
|
if (count($prep_statement->fetchAll(PDO::FETCH_NAMED)) > 0) {
|
2013-12-27 19:09:42 +01:00
|
|
|
$msg .= "Please choose a different Username.<br>\n";
|
2012-06-04 16:58:40 +02:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2013-12-27 19:09:42 +01:00
|
|
|
if (strlen($password) == 0) { $msg .= $text['message-password_blank']."<br>\n"; }
|
|
|
|
|
if ($password != $confirmpassword) { $msg .= $text['message-password_mismatch']."<br>\n"; }
|
|
|
|
|
//if (strlen($contact_organization) == 0) { $msg .= $text['message-required'].$text['label-company_name']."<br>\n"; }
|
|
|
|
|
//if (strlen($contact_name_given) == 0) { $msg .= $text['message-required'].$text['label-first_name']."<br>\n"; }
|
|
|
|
|
//if (strlen($contact_name_family) == 0) { $msg .= $text['message-required'].$text['label-last_name']."<br>\n"; }
|
|
|
|
|
if (strlen($user_email) == 0) { $msg .= $text['message-required'].$text['label-email']."<br>\n"; }
|
2014-10-18 10:18:03 +02:00
|
|
|
if (strlen($group_uuid_name) == 0) { $msg .= $text['message-required'].$text['label-group']."<br>\n"; }
|
2012-06-04 16:58:40 +02:00
|
|
|
|
2013-12-27 19:09:42 +01:00
|
|
|
if (strlen($msg) > 0) {
|
2013-07-06 08:29:50 +02:00
|
|
|
require_once "resources/header.php";
|
2012-06-04 16:58:40 +02:00
|
|
|
echo "<div align='center'>";
|
|
|
|
|
echo "<table><tr><td>";
|
2013-12-27 19:09:42 +01:00
|
|
|
echo $msg;
|
2012-06-04 16:58:40 +02:00
|
|
|
echo "</td></tr></table>";
|
2013-07-06 08:24:11 +02:00
|
|
|
require_once "resources/persist_form.php";
|
2012-06-04 16:58:40 +02:00
|
|
|
echo persistform($_POST);
|
|
|
|
|
echo "</div>";
|
2013-07-06 08:29:50 +02:00
|
|
|
require_once "resources/footer.php";
|
2012-06-04 16:58:40 +02:00
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//salt used with the password to create a one way hash
|
2015-02-10 21:44:16 +01:00
|
|
|
$salt = uuid();
|
2012-06-04 16:58:40 +02:00
|
|
|
|
|
|
|
|
//prepare the uuids
|
|
|
|
|
$user_uuid = uuid();
|
2014-06-21 21:40:16 +02:00
|
|
|
$group_user_uuid = uuid();
|
2012-06-04 16:58:40 +02:00
|
|
|
$contact_uuid = uuid();
|
2015-04-04 21:40:20 +02:00
|
|
|
$contact_email_uuid = uuid();
|
2012-06-04 16:58:40 +02:00
|
|
|
|
|
|
|
|
//add the user
|
|
|
|
|
$sql = "insert into v_users ";
|
|
|
|
|
$sql .= "(";
|
|
|
|
|
$sql .= "domain_uuid, ";
|
|
|
|
|
$sql .= "user_uuid, ";
|
|
|
|
|
$sql .= "contact_uuid, ";
|
|
|
|
|
$sql .= "username, ";
|
|
|
|
|
$sql .= "password, ";
|
|
|
|
|
$sql .= "salt, ";
|
2012-08-31 03:44:11 +02:00
|
|
|
$sql .= "add_date, ";
|
|
|
|
|
$sql .= "add_user, ";
|
2012-08-10 19:29:25 +02:00
|
|
|
$sql .= "user_enabled ";
|
2012-06-04 16:58:40 +02:00
|
|
|
$sql .= ") ";
|
|
|
|
|
$sql .= "values ";
|
|
|
|
|
$sql .= "(";
|
2015-04-04 21:40:20 +02:00
|
|
|
$sql .= "'".$domain_uuid."', ";
|
|
|
|
|
$sql .= "'".$user_uuid."', ";
|
|
|
|
|
$sql .= "'".$contact_uuid."', ";
|
|
|
|
|
$sql .= "'".$username."', ";
|
2012-06-04 16:58:40 +02:00
|
|
|
$sql .= "'".md5($salt.$password)."', ";
|
|
|
|
|
$sql .= "'".$salt."', ";
|
|
|
|
|
$sql .= "now(), ";
|
2012-08-10 19:29:25 +02:00
|
|
|
$sql .= "'".$_SESSION["username"]."', ";
|
|
|
|
|
$sql .= "'true' ";
|
2012-06-04 16:58:40 +02:00
|
|
|
$sql .= ")";
|
|
|
|
|
$db->exec(check_sql($sql));
|
|
|
|
|
unset($sql);
|
|
|
|
|
|
2014-06-21 21:40:16 +02:00
|
|
|
//add the user to the group
|
2014-10-18 08:49:34 +02:00
|
|
|
if (strlen($group_uuid) > 0) {
|
2014-06-21 21:40:16 +02:00
|
|
|
if ( ($group_name == "superadmin" && if_group("superadmin")) || $group_name != "superadmin") {
|
|
|
|
|
$sql = "insert into v_group_users ";
|
|
|
|
|
$sql .= "( ";
|
|
|
|
|
$sql .= "group_user_uuid, ";
|
|
|
|
|
$sql .= "domain_uuid, ";
|
|
|
|
|
$sql .= "group_name, ";
|
2014-10-18 08:49:34 +02:00
|
|
|
$sql .= "group_uuid, ";
|
2014-06-21 21:40:16 +02:00
|
|
|
$sql .= "user_uuid ";
|
|
|
|
|
$sql .= ") ";
|
|
|
|
|
$sql .= "values ";
|
|
|
|
|
$sql .= "(";
|
|
|
|
|
$sql .= "'".$group_user_uuid."', ";
|
|
|
|
|
$sql .= "'".$domain_uuid."', ";
|
|
|
|
|
$sql .= "'".$group_name."', ";
|
2014-10-18 08:49:34 +02:00
|
|
|
$sql .= "'".$group_uuid."', ";
|
2014-06-21 21:40:16 +02:00
|
|
|
$sql .= "'".$user_uuid."' ";
|
|
|
|
|
$sql .= ")";
|
|
|
|
|
$db->exec(check_sql($sql));
|
|
|
|
|
unset($sql);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2012-06-04 16:58:40 +02:00
|
|
|
//add to contacts
|
|
|
|
|
$sql = "insert into v_contacts ";
|
|
|
|
|
$sql .= "(";
|
|
|
|
|
$sql .= "domain_uuid, ";
|
|
|
|
|
$sql .= "contact_uuid, ";
|
|
|
|
|
$sql .= "contact_type, ";
|
|
|
|
|
$sql .= "contact_organization, ";
|
|
|
|
|
$sql .= "contact_name_given, ";
|
|
|
|
|
$sql .= "contact_name_family, ";
|
2015-04-04 21:40:20 +02:00
|
|
|
$sql .= "contact_nickname ";
|
2012-06-04 16:58:40 +02:00
|
|
|
$sql .= ") ";
|
|
|
|
|
$sql .= "values ";
|
|
|
|
|
$sql .= "(";
|
2015-04-04 21:40:20 +02:00
|
|
|
$sql .= "'".$domain_uuid."', ";
|
|
|
|
|
$sql .= "'".$contact_uuid."', ";
|
2012-06-04 16:58:40 +02:00
|
|
|
$sql .= "'user', ";
|
2015-04-04 21:40:20 +02:00
|
|
|
$sql .= "'".$contact_organization."', ";
|
|
|
|
|
$sql .= "'".$contact_name_given."', ";
|
|
|
|
|
$sql .= "'".$contact_name_family."', ";
|
|
|
|
|
$sql .= "'".$username."' ";
|
|
|
|
|
$sql .= ")";
|
|
|
|
|
$db->exec(check_sql($sql));
|
|
|
|
|
unset($sql);
|
|
|
|
|
|
|
|
|
|
//add to emails
|
|
|
|
|
$sql = "insert into v_contact_emails ";
|
|
|
|
|
$sql .= "(";
|
|
|
|
|
$sql .= "contact_email_uuid, ";
|
|
|
|
|
$sql .= "domain_uuid, ";
|
|
|
|
|
$sql .= "contact_uuid, ";
|
|
|
|
|
$sql .= "email_address, ";
|
|
|
|
|
$sql .= "email_primary ";
|
|
|
|
|
$sql .= ") ";
|
|
|
|
|
$sql .= "values ";
|
|
|
|
|
$sql .= "(";
|
|
|
|
|
$sql .= "'".$contact_email_uuid."', ";
|
|
|
|
|
$sql .= "'".$domain_uuid."', ";
|
|
|
|
|
$sql .= "'".$contact_uuid."', ";
|
|
|
|
|
$sql .= "'".$user_email."', ";
|
|
|
|
|
$sql .= "1 ";
|
2012-06-04 16:58:40 +02:00
|
|
|
$sql .= ")";
|
|
|
|
|
$db->exec(check_sql($sql));
|
|
|
|
|
unset($sql);
|
|
|
|
|
|
|
|
|
|
//log the success
|
|
|
|
|
//$log_type = 'user'; $log_status='add'; $log_add_user=$_SESSION["username"]; $log_desc= "username: ".$username." user added.";
|
|
|
|
|
//log_add($db, $log_type, $log_status, $log_desc, $log_add_user, $_SERVER["REMOTE_ADDR"]);
|
|
|
|
|
|
2014-02-23 10:39:12 +01:00
|
|
|
$_SESSION["message"] = $text['message-add'];
|
|
|
|
|
header("Location: index.php");
|
2012-06-04 16:58:40 +02:00
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//show the header
|
2013-07-06 08:29:50 +02:00
|
|
|
require_once "resources/header.php";
|
2014-07-10 02:32:50 +02:00
|
|
|
$document['title'] = $text['title-user_add'];
|
2012-06-04 16:58:40 +02:00
|
|
|
|
|
|
|
|
//show the content
|
2014-07-07 18:34:43 +02:00
|
|
|
echo "<script>";
|
|
|
|
|
echo " function compare_passwords() {";
|
2014-07-07 21:04:28 +02:00
|
|
|
echo " if (document.getElementById('password') === document.activeElement || document.getElementById('confirmpassword') === document.activeElement) {";
|
|
|
|
|
echo " if (document.getElementById('password').value != '' || document.getElementById('confirmpassword').value != '') {";
|
|
|
|
|
echo " if (document.getElementById('password').value != document.getElementById('confirmpassword').value) {";
|
|
|
|
|
echo " $('#password').removeClass('formfld_highlight_good');";
|
|
|
|
|
echo " $('#confirmpassword').removeClass('formfld_highlight_good');";
|
|
|
|
|
echo " $('#password').addClass('formfld_highlight_bad');";
|
|
|
|
|
echo " $('#confirmpassword').addClass('formfld_highlight_bad');";
|
|
|
|
|
echo " }";
|
|
|
|
|
echo " else {";
|
|
|
|
|
echo " $('#password').removeClass('formfld_highlight_bad');";
|
|
|
|
|
echo " $('#confirmpassword').removeClass('formfld_highlight_bad');";
|
|
|
|
|
echo " $('#password').addClass('formfld_highlight_good');";
|
|
|
|
|
echo " $('#confirmpassword').addClass('formfld_highlight_good');";
|
|
|
|
|
echo " }";
|
|
|
|
|
echo " }";
|
2014-07-07 18:34:43 +02:00
|
|
|
echo " }";
|
|
|
|
|
echo " else {";
|
2014-07-07 21:04:28 +02:00
|
|
|
echo " if (document.getElementById('password').value == document.getElementById('confirmpassword').value) {";
|
|
|
|
|
echo " $('#password').removeClass('formfld_highlight_bad');";
|
|
|
|
|
echo " $('#confirmpassword').removeClass('formfld_highlight_bad');";
|
|
|
|
|
echo " $('#password').removeClass('formfld_highlight_good');";
|
|
|
|
|
echo " $('#confirmpassword').removeClass('formfld_highlight_good');";
|
|
|
|
|
echo " }";
|
2014-07-07 18:34:43 +02:00
|
|
|
echo " }";
|
|
|
|
|
echo " }";
|
|
|
|
|
echo "</script>";
|
|
|
|
|
|
2012-06-04 16:58:40 +02:00
|
|
|
$tablewidth ='width="100%"';
|
|
|
|
|
echo "<form method='post' action=''>";
|
|
|
|
|
|
2014-10-18 10:18:03 +02:00
|
|
|
echo "<table border='0' $tablewidth cellpadding='0' cellspacing='0'>";
|
2012-06-04 16:58:40 +02:00
|
|
|
echo " <tr>\n";
|
2014-10-18 10:18:03 +02:00
|
|
|
echo " <td width='80%' valign='top'>\n";
|
2013-06-09 06:32:24 +02:00
|
|
|
echo " <b>".$text['header-user_add']."</b>\n";
|
|
|
|
|
echo " <br><br>\n";
|
|
|
|
|
echo " ".$text['description-user_add']."\n";
|
2015-02-15 10:39:23 +01:00
|
|
|
echo " <br><br>\n";
|
2012-06-04 16:58:40 +02:00
|
|
|
echo " </td>\n";
|
2014-10-18 10:18:03 +02:00
|
|
|
echo " <td width='20%' valign='top' align='right'>\n";
|
|
|
|
|
echo " <input type='button' class='btn' name='back' alt='".$text['button-back']."' onclick=\"document.location.href='index.php';\" value='".$text['button-back']."'>\n";
|
2012-06-04 16:58:40 +02:00
|
|
|
echo " </td>\n";
|
|
|
|
|
echo " </tr>\n";
|
|
|
|
|
echo "</table>\n";
|
|
|
|
|
|
2014-10-18 10:18:03 +02:00
|
|
|
echo "<table border='0' $tablewidth cellpadding='0' cellspacing='0'>";
|
2012-06-04 16:58:40 +02:00
|
|
|
echo " <tr>";
|
2015-02-15 07:50:00 +01:00
|
|
|
echo " <td class='vncellreq' width='30%'>".$text['label-username']."</td>";
|
2014-07-07 20:11:55 +02:00
|
|
|
echo " <td class='vtable' width='70%'><input type='text' class='formfld' autocomplete='off' name='username' value='$username'></td>";
|
2012-06-04 16:58:40 +02:00
|
|
|
echo " </tr>";
|
|
|
|
|
|
|
|
|
|
echo " <tr>";
|
2015-02-15 07:50:00 +01:00
|
|
|
echo " <td class='vncellreq'>".$text['label-password']."</td>";
|
2014-07-07 21:04:28 +02:00
|
|
|
echo " <td class='vtable'><input type='password' class='formfld' autocomplete='off' name='password' id='password' value='$password' onfocus='compare_passwords();' onkeyup='compare_passwords();' onblur='compare_passwords();'></td>";
|
2012-06-04 16:58:40 +02:00
|
|
|
echo " </tr>";
|
|
|
|
|
echo " <tr>";
|
2015-02-15 07:50:00 +01:00
|
|
|
echo " <td class='vncellreq'>".$text['label-confirm_password']."</td>";
|
2014-07-07 21:04:28 +02:00
|
|
|
echo " <td class='vtable'><input type='password' class='formfld' autocomplete='off' name='confirmpassword' id='confirmpassword' value='$confirmpassword' onfocus='compare_passwords();' onkeyup='compare_passwords();' onblur='compare_passwords();'></td>";
|
2012-06-04 16:58:40 +02:00
|
|
|
echo " </tr>";
|
|
|
|
|
echo " <tr>";
|
2015-02-15 07:50:00 +01:00
|
|
|
echo " <td class='vncellreq'>".$text['label-email']."</td>";
|
2012-06-04 16:58:40 +02:00
|
|
|
echo " <td class='vtable'><input type='text' class='formfld' name='user_email' value='$user_email'></td>";
|
|
|
|
|
echo " </tr>";
|
|
|
|
|
echo " <tr>";
|
2015-02-15 07:50:00 +01:00
|
|
|
echo " <td class='vncellreq' valign='top'>".$text['label-group']."</td>";
|
2014-06-21 21:40:16 +02:00
|
|
|
echo " <td class='vtable'>";
|
|
|
|
|
$sql = "SELECT * FROM v_groups ";
|
|
|
|
|
$sql .= "where domain_uuid = '".$domain_uuid."' ";
|
2015-01-08 09:51:40 +01:00
|
|
|
$sql .= "or domain_uuid is null ";
|
2014-06-21 21:40:16 +02:00
|
|
|
$sql .= "order by group_name asc ";
|
|
|
|
|
$prep_statement = $db->prepare(check_sql($sql));
|
|
|
|
|
$prep_statement->execute();
|
2014-10-18 08:49:34 +02:00
|
|
|
echo " <select name=\"group_uuid_name\" class='formfld' style='width: auto; margin-right: 3px;'>\n";
|
2014-06-21 21:40:16 +02:00
|
|
|
echo " <option value=\"\"></option>\n";
|
|
|
|
|
$result = $prep_statement->fetchAll(PDO::FETCH_NAMED);
|
|
|
|
|
foreach($result as $field) {
|
2014-10-18 08:49:34 +02:00
|
|
|
if ($field['group_name'] == "superadmin" && !if_group("superadmin")) { continue; } //only show the superadmin group to other superadmins
|
|
|
|
|
if ($field['group_name'] == "admin" && (!if_group("superadmin") && !if_group("admin") )) { continue; } //only show the admin group to other admins
|
|
|
|
|
echo " <option value='".$field['group_uuid']."|".$field['group_name']."'>".$field['group_name']."</option>\n";
|
2014-06-21 21:40:16 +02:00
|
|
|
}
|
|
|
|
|
echo " </select>";
|
|
|
|
|
unset($sql, $result);
|
|
|
|
|
echo " </td>";
|
|
|
|
|
echo " </tr>";
|
|
|
|
|
echo " <tr>";
|
2015-02-15 07:50:00 +01:00
|
|
|
echo " <td class='vncell'>".$text['label-first_name']."</td>";
|
2012-06-04 16:58:40 +02:00
|
|
|
echo " <td class='vtable'><input type='text' class='formfld' name='contact_name_given' value='$contact_name_given'></td>";
|
|
|
|
|
echo " </tr>";
|
|
|
|
|
echo " <tr>";
|
2015-02-15 07:50:00 +01:00
|
|
|
echo " <td class='vncell'>".$text['label-last_name']."</td>";
|
2012-06-04 16:58:40 +02:00
|
|
|
echo " <td class='vtable'><input type='text' class='formfld' name='contact_name_family' value='$contact_name_family'></td>";
|
|
|
|
|
echo " </tr>";
|
|
|
|
|
echo " <tr>";
|
2015-02-15 07:50:00 +01:00
|
|
|
echo " <td class='vncell'>".$text['label-company_name']."</td>";
|
2012-06-04 16:58:40 +02:00
|
|
|
echo " <td class='vtable'><input type='text' class='formfld' name='contact_organization' value='$contact_organization'></td>";
|
|
|
|
|
echo " </tr>";
|
|
|
|
|
echo " <tr>";
|
|
|
|
|
echo " <td colspan='2' align='right'>";
|
2014-10-18 10:18:03 +02:00
|
|
|
echo " <br><input type='submit' name='submit' class='btn' value='".$text['button-create_account']."'>";
|
2012-06-04 16:58:40 +02:00
|
|
|
echo " </td>";
|
|
|
|
|
echo " </tr>";
|
|
|
|
|
echo "</table>";
|
|
|
|
|
echo "</form>";
|
|
|
|
|
|
|
|
|
|
//show the footer
|
2013-07-06 08:29:50 +02:00
|
|
|
require_once "resources/footer.php";
|
2012-06-04 16:58:40 +02:00
|
|
|
?>
|