mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 19:53:56 +00:00
Usability Enhancement: Click on list rows to View/Edit items.
Misc other fixes.
This commit is contained in:
@@ -267,7 +267,7 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
|
||||
echo "</tr>\n";
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
|
||||
echo "<td class='vncellreq' valign='top' align='left' nowrap='nowrap'>\n";
|
||||
echo " ".$text['label-voicemail_id'].":\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
@@ -278,7 +278,7 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
|
||||
echo "</tr>\n";
|
||||
|
||||
echo "<tr>\n";
|
||||
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
|
||||
echo "<td class='vncellreq' valign='top' align='left' nowrap='nowrap'>\n";
|
||||
echo " ".$text['label-voicemail_password'].":\n";
|
||||
echo "</td>\n";
|
||||
echo "<td class='vtable' align='left'>\n";
|
||||
|
||||
@@ -117,7 +117,7 @@ else {
|
||||
$table_header .= "<td align='right' width='21'>\n";
|
||||
$table_header .= " \n";
|
||||
$table_header .= "</td>\n";
|
||||
$table_header .= "<tr>\n";
|
||||
$table_header .= "</tr>\n";
|
||||
|
||||
//loop through the voicemail messages
|
||||
if (count($voicemails) > 0) {
|
||||
@@ -126,8 +126,8 @@ else {
|
||||
if ($previous_voicemail_id != $field['voicemail_id']) {
|
||||
echo "<tr>\n";
|
||||
echo " <td colspan='3' align='left'>\n";
|
||||
echo " <br /><br />\n";
|
||||
echo " <b>".$text['label-mailbox'].": ".$field['voicemail_id']." </b> \n";
|
||||
echo " <br /><br /><br /><br />\n";
|
||||
echo " <b>".$text['label-mailbox'].": ".$field['voicemail_id']." </b><br /> \n";
|
||||
echo " </td>\n";
|
||||
echo " <td colspan='3' valign='bottom' align='right'>\n";
|
||||
if (permission_exists('voicemail_greeting_view')) {
|
||||
@@ -136,7 +136,7 @@ else {
|
||||
if (permission_exists('voicemail_view')) {
|
||||
echo " <input type='button' class='btn' name='' alt='settings' onclick=\"window.location='".PROJECT_PATH."/app/voicemails/voicemail_edit.php?id=".$field['voicemail_uuid']."'\" value='".$text['button-settings']."'>\n";
|
||||
}
|
||||
echo " </td>\n";
|
||||
echo " <br /><br /></td>\n";
|
||||
echo " <td> </td>\n";
|
||||
echo "</tr>\n";
|
||||
echo $table_header;
|
||||
@@ -163,7 +163,7 @@ else {
|
||||
echo " </a>\n";
|
||||
echo " </td>\n";
|
||||
//echo " <td valign='top' class='".$row_style[$c]."'>".$row['message_priority']." </td>\n";
|
||||
echo " <td valign='top' align='right'>\n";
|
||||
echo " <td class='list_control_icon'>\n";
|
||||
if (permission_exists('voicemail_message_delete')) {
|
||||
echo " <a href='voicemail_message_delete.php?voicemail_uuid=".$row['voicemail_uuid']."&id=".$row['voicemail_message_uuid']."' alt='".$text['button-delete']."' onclick=\"return confirm('".$text['confirm-delete']."')\">$v_link_label_delete</a>\n";
|
||||
}
|
||||
|
||||
@@ -176,7 +176,7 @@ else {
|
||||
$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('voicemail_id', $text['label-voicemail_id'], $order_by, $order);
|
||||
//echo th_order_by('voicemail_password', $text['label-voicemail_password'], $order_by, $order);
|
||||
@@ -193,11 +193,12 @@ else {
|
||||
echo "<a href='voicemail_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 = (permission_exists('voicemail_edit')) ? "href='voicemail_edit.php?id=".$row['voicemail_uuid']."'" : null;
|
||||
echo "<tr ".$tr_link.">\n";
|
||||
echo " <td valign='top' class='".$row_style[$c]."'>";
|
||||
if (permission_exists('voicemail_edit')) {
|
||||
echo "<a href='voicemail_edit.php?id=".$row['voicemail_uuid']."'>".$row['voicemail_id']."</a>";
|
||||
|
||||
Reference in New Issue
Block a user