Usability Enhancement: Click on list rows to View/Edit items.

Conference Center: Misc minor visual mods.
Contacts: Misc minor visual mods.
This commit is contained in:
Nate Jones
2014-06-22 03:24:36 +00:00
parent 3412d12f79
commit 752ad07d8a
14 changed files with 88 additions and 67 deletions
+10
View File
@@ -415,6 +415,16 @@
$text['label-address_tools']['pt-pt'] = "Ferramentas";
$text['label-address_tools']['fr-fr'] = "Outils";
$text['option-home']['en-us'] = "Home";
$text['option-home']['es-cl'] = "Casa";
$text['option-home']['pt-pt'] = "Casa";
$text['option-home']['fr-fr'] = "Maison";
$text['option-work']['en-us'] = "Work";
$text['option-work']['es-cl'] = "Lugar de Trabajo";
$text['option-work']['pt-pt'] = "Local de Trabalho";
$text['option-work']['fr-fr'] = "En Milieu de Travail";
// contact extensions
$text['label-contact_extensions']['en-us'] = "Extensions";
$text['label-contact_extensions']['es-cl'] = "Extensións";
+4 -4
View File
@@ -264,16 +264,16 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
echo " <select class='formfld' name='address_type'>\n";
echo " <option value=''></option>\n";
if (strtolower($address_type) == "home") {
echo " <option value='home' selected='selected'>home</option>\n";
echo " <option value='home' selected='selected'>".$text['option-home']."</option>\n";
}
else {
echo " <option value='home'>home</option>\n";
echo " <option value='home'>".$text['option-home']."</option>\n";
}
if (strtolower($address_type) == "work") {
echo " <option value='work' selected='selected'>work</option>\n";
echo " <option value='work' selected='selected'>".$text['option-work']."</option>\n";
}
else {
echo " <option value='work'>work</option>\n";
echo " <option value='work'>".$text['option-work']."</option>\n";
}
echo " </select>\n";
}
+7 -6
View File
@@ -92,7 +92,7 @@ require_once "resources/paging.php";
$row_style["1"] = "row_style1";
echo "<div align='center'>\n";
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
echo "<table class='tr_hover' width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
echo "<tr>\n";
echo th_order_by('address_type', $text['label-address_type'], $order_by, $order);
@@ -109,14 +109,15 @@ require_once "resources/paging.php";
echo "<td class='list_control_icons'>";
echo "<a href='contact_address_edit.php?contact_uuid=".$_GET['id']."' alt='".$text['button-add']."'>$v_link_label_add</a>";
echo "</td>\n";
echo "<tr>\n";
echo "</tr>\n";
if ($result_count > 0) {
foreach($result as $row) {
$map_query = $row['address_street']." ".$row['address_extended'].", ".$row['address_locality'].", ".$row['address_region'].", ".$row['address_region'].", ".$row['address_postal_code'];
echo "<tr >\n";
$tr_link = "href='contact_address_edit.php?contact_uuid=".$row['contact_uuid']."&id=".$row['contact_address_uuid']."'";
echo "<tr ".$tr_link.">\n";
//echo " <td valign='top' class='".$row_style[$c]."'>".$row['address_name']."&nbsp;</td>\n";
echo " <td valign='top' class='".$row_style[$c]."'>".$row['address_type']."&nbsp;</td>\n";
echo " <td valign='top' class='".$row_style[$c]."'>".ucwords($row['address_type'])."&nbsp;</td>\n";
//echo " <td valign='top' class='".$row_style[$c]."'>".$row['address_street']."&nbsp;</td>\n";
//echo " <td valign='top' class='".$row_style[$c]."'>".$row['address_extended']."&nbsp;</td>\n";
echo " <td valign='top' class='".$row_style[$c]."'>".$row['address_locality']."&nbsp;</td>\n";
@@ -125,10 +126,10 @@ require_once "resources/paging.php";
echo " <td valign='top' class='".$row_style[$c]."'>".$row['address_country']."&nbsp;</td>\n";
//echo " <td valign='top' class='".$row_style[$c]."'>".$row['address_latitude']."&nbsp;</td>\n";
//echo " <td valign='top' class='".$row_style[$c]."'>".$row['address_longitude']."&nbsp;</td>\n";
echo " <td valign='top' class='".$row_style[$c]."'>\n";
echo " <td valign='top' class='".$row_style[$c]." tr_link_void'>\n";
echo " <a href=\"http://maps.google.com/maps?q=".urlencode($map_query)."&hl=en\" target=\"_blank\">Map</a>&nbsp;\n";
echo " </td>\n";
echo " <td valign='top' class='".$row_style[$c]."'>".$row['address_description']."&nbsp;</td>\n";
echo " <td valign='top' class='row_stylebg'>".$row['address_description']."&nbsp;</td>\n";
echo " <td class='list_control_icons'>";
echo "<a href='contact_address_edit.php?contact_uuid=".$row['contact_uuid']."&id=".$row['contact_address_uuid']."' alt='".$text['button-edit']."'>$v_link_label_edit</a>";
echo "<a href='contact_address_delete.php?contact_uuid=".$row['contact_uuid']."&id=".$row['contact_address_uuid']."' alt='".$text['button-delete']."' onclick=\"return confirm('".$text['confirm-delete']."')\">$v_link_label_delete</a>";
+2 -2
View File
@@ -247,7 +247,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
echo "<table border='0' cellpadding='3' cellspacing='3' width='100%'>\n";
echo "<tr>\n";
echo "<td width='50%' valign='top' align='left' nowrap='nowrap'>\n";
echo "<td width='40%' valign='top' align='left' nowrap='nowrap'>\n";
echo "<form method='post' name='frm' action=''>\n";
echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'>\n";
@@ -537,7 +537,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
if ($action == "update") {
echo "<td>&nbsp;&nbsp;</td>";
echo "<td width='50%' class='' valign='top' align='center'>\n";
echo "<td width='60%' class='' valign='top' align='center'>\n";
//echo " <img src='contacts_vcard.php?id=$contact_uuid&type=image' width='90%'><br /><br />\n";
require "contact_phones.php";
require "contact_addresses.php";
+4 -3
View File
@@ -115,7 +115,7 @@ require_once "resources/paging.php";
$row_style["1"] = "row_style1";
echo "<div align='center'>\n";
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
echo "<table class='tr_hover' width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
echo "<tr>\n";
echo th_order_by('extension', $text['label-extension'], $order_by, $order);
echo th_order_by('enabled', $text['label-enabled'], $order_by, $order);
@@ -125,10 +125,11 @@ require_once "resources/paging.php";
echo " <a href='/app/extensions/extension_edit.php' alt='".$text['button-add']."'>$v_link_label_add</a>\n";
}
echo "</td>\n";
echo "<tr>\n";
echo "</tr>\n";
if ($result_count > 0) {
foreach($result as $row) {
echo "<tr >\n";
$tr_link = (permission_exists('extension_edit')) ? "href='/app/extensions/extension_edit.php?id=".$row['extension_uuid']."'" : null;
echo "<tr ".$tr_link.">\n";
echo " <td valign='top' class='".$row_style[$c]."'>";
if (permission_exists('extension_edit')) {
echo "<a href='/app/extensions/extension_edit.php?id=".$row['extension_uuid']."'>".$row['extension']."</a>";
+7 -13
View File
@@ -100,14 +100,12 @@ require_once "resources/paging.php";
$row_style["1"] = "row_style1";
echo "<div align='center'>\n";
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
echo "<table class='tr_hover' width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
if ($result_count == 0) {
echo "<tr>\n";
echo "<th>\n";
echo " &nbsp; \n";
echo "</th>\n";
echo "<td class='list_control_icons'>";
echo "<th>&nbsp;</th>\n";
echo "<td class='list_control_icon'>";
echo "<a href='contact_note_edit.php?contact_uuid=".$_GET['id']."' alt='".$text['button-add']."'>$v_link_label_add</a>";
echo "</td>\n";
echo "</tr>\n";
@@ -117,7 +115,7 @@ require_once "resources/paging.php";
$contact_note = $row['contact_note'];
$contact_note = str_replace("\n","<br />",$contact_note);
echo "<tr>\n";
echo "<tr >\n";
echo "<th>\n";
echo " ".$row['last_mod_date']."&nbsp; &nbsp; \n";
echo " ".$row['last_mod_user']." &nbsp; &nbsp; \n";
@@ -127,9 +125,9 @@ require_once "resources/paging.php";
echo "<td align='right' width='42'>\n";
echo " <a href='contact_note_edit.php?contact_uuid=".$_GET['id']."' alt='".$text['button-add']."'>$v_link_label_add</a>\n";
echo "</td>\n";
echo "<tr>\n";
echo "<tr >\n";
echo "</tr>\n";
$tr_link = "href='contact_note_edit.php?contact_uuid=".$row['contact_uuid']."&id=".$row['contact_note_uuid']."'";
echo "<tr ".$tr_link.">\n";
echo " <td valign='top' class='".$row_style[$c]."'>".$contact_note."&nbsp;</td>\n";
//echo " <td valign='top' class='".$row_style[$c]."'>".$row['last_mod_date']."&nbsp;</td>\n";
//echo " <td valign='top' class='".$row_style[$c]."'>".$row['last_mod_user']."&nbsp;</td>\n";
@@ -139,10 +137,6 @@ require_once "resources/paging.php";
echo " </td>\n";
echo "</tr>\n";
echo "<tr>\n";
echo " <td>&nbsp;</td>\n";
echo "</tr>\n";
if ($c==0) { $c=1; } else { $c=0; }
} //end foreach
unset($sql, $result, $row_count);
+7 -6
View File
@@ -107,7 +107,7 @@ require_once "resources/paging.php";
$row_style["1"] = "row_style1";
echo "<div align='center'>\n";
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
echo "<table class='tr_hover' width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
echo "<tr>\n";
echo th_order_by('phone_type', $text['label-phone_type'], $order_by, $order);
echo th_order_by('phone_number', $text['label-phone_number'], $order_by, $order);
@@ -116,22 +116,23 @@ require_once "resources/paging.php";
echo "<td class='list_control_icons'>";
echo "<a href='contact_phone_edit.php?contact_uuid=".$_GET['id']."' alt='".$text['button-add']."'>$v_link_label_add</a>";
echo "</td>\n";
echo "<tr>\n";
echo "</tr>\n";
if ($result_count > 0) {
foreach($result as $row) {
echo "<tr >\n";
echo " <td valign='top' class='".$row_style[$c]."'>".$row['phone_type']."&nbsp;</td>\n";
$tr_link = "href='contact_phone_edit.php?contact_uuid=".$row['contact_uuid']."&id=".$row['contact_phone_uuid']."'";
echo "<tr ".$tr_link.">\n";
echo " <td valign='top' class='".$row_style[$c]."'>".ucwords($row['phone_type'])."&nbsp;</td>\n";
echo " <td valign='top' class='".$row_style[$c]."'>\n";
echo " <a href=\"javascript:void(0)\" onclick=\"send_cmd('".PROJECT_PATH."/app/click_to_call/click_to_call.php?src_cid_name=".urlencode($row['phone_number'])."&src_cid_number=".urlencode($row['phone_number'])."&dest_cid_name=".urlencode($_SESSION['user']['extension'][0]['outbound_caller_id_name'])."&dest_cid_number=".urlencode($_SESSION['user']['extension'][0]['outbound_caller_id_number'])."&src=".urlencode($_SESSION['user']['extension'][0]['user'])."&dest=".urlencode($row['phone_number'])."&rec=false&ringback=us-ring&auto_answer=true');\">\n";
echo " ".format_phone($row['phone_number'])."</a>&nbsp;\n";
echo " </td>\n";
echo " <td valign='top' class='".$row_style[$c]."' nowrap='nowrap'>\n";
echo " <td valign='top' class='".$row_style[$c]." tr_link_void' nowrap='nowrap'>\n";
echo " <a href=\"javascript:void(0)\" onclick=\"send_cmd('".PROJECT_PATH."/app/click_to_call/click_to_call.php?src_cid_name=".urlencode($row['phone_number'])."&src_cid_number=".urlencode($row['phone_number'])."&dest_cid_name=".urlencode($_SESSION['user']['extension'][0]['outbound_caller_id_name'])."&dest_cid_number=".urlencode($_SESSION['user']['extension'][0]['outbound_caller_id_number'])."&src=".urlencode($_SESSION['user']['extension'][0]['user'])."&dest=".urlencode($row['phone_number'])."&rec=false&ringback=us-ring&auto_answer=true');\">".$text['label-phone_call']."</a>\n";
echo " &nbsp;\n";
echo " <a href=\"".PROJECT_PATH."/app/xml_cdr/xml_cdr.php?caller_id_number=".$row['phone_number']."&destination_number=".$row['phone_number']."\">CDR</a>\n";
echo " &nbsp;\n";
echo " </td>\n";
echo " <td valign='top' class='".$row_style[$c]."'>".$row['phone_description']."&nbsp;</td>\n";
echo " <td valign='top' class='row_stylebg'>".$row['phone_description']."&nbsp;</td>\n";
echo " <td class='list_control_icons'>";
echo "<a href='contact_phone_edit.php?contact_uuid=".$row['contact_uuid']."&id=".$row['contact_phone_uuid']."' alt='".$text['button-edit']."'>$v_link_label_edit</a>";
echo "<a href='contact_phone_delete.php?contact_uuid=".$row['contact_uuid']."&id=".$row['contact_phone_uuid']."' alt='".$text['button-delete']."' onclick=\"return confirm('".$text['confirm-delete']."')\">$v_link_label_delete</a>";
+4 -3
View File
@@ -182,7 +182,7 @@ require_once "resources/paging.php";
$row_style["1"] = "row_style1";
echo "<div align='center'>\n";
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
echo "<table class='tr_hover' width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
echo "<tr>\n";
echo th_order_by('contact_type', $text['label-contact_type'], $order_by, $order);
echo th_order_by('contact_organization', $text['label-contact_organization'], $order_by, $order);
@@ -199,11 +199,12 @@ require_once "resources/paging.php";
echo "<td class='list_control_icons'>";
echo "<a href='contact_edit.php' alt='".$text['button-add']."'>$v_link_label_add</a>";
echo "</td>\n";
echo "<tr>\n";
echo "</tr>\n";
if ($result_count > 0) {
foreach($result as $row) {
echo "<tr >\n";
$tr_link = "href='contact_edit.php?id=".$row['contact_uuid']."&query_string=".urlencode($_SERVER["QUERY_STRING"])."'";
echo "<tr ".$tr_link.">\n";
echo " <td valign='top' class='".$row_style[$c]."'>".ucwords($row['contact_type'])."&nbsp;</td>\n";
echo " <td valign='top' class='".$row_style[$c]."'><a href='contact_edit.php?id=".$row['contact_uuid']."&query_string=".urlencode($_SERVER["QUERY_STRING"])."'>".$row['contact_organization']."</a>&nbsp;</td>\n";
echo " <td valign='top' class='".$row_style[$c]."'><a href='contact_edit.php?id=".$row['contact_uuid']."&query_string=".urlencode($_SERVER["QUERY_STRING"])."'>".$row['contact_name_given']."</a>&nbsp;</td>\n";