Voicemails - List: Misc minor adjustments.

This commit is contained in:
fusionate
2023-03-01 22:13:27 +00:00
parent e2c1157227
commit 49ed64bba9

View File

@@ -250,9 +250,6 @@
if (permission_exists('voicemail_message_view') || permission_exists('voicemail_greeting_view')) {
echo "<th>".$text['label-tools']."</th>\n";
}
if (permission_exists('voicemail_message_view') && permission_exists('voicemail_greeting_view')) {
echo "<th></th>\n";
}
echo th_order_by('voicemail_enabled', $text['label-voicemail_enabled'], $order_by, $order, null, "class='center'");
echo th_order_by('voicemail_description', $text['label-voicemail_description'], $order_by, $order, null, "class='hide-sm-dn'");
if (permission_exists('voicemail_edit') && $_SESSION['theme']['list_row_edit_button']['boolean'] == 'true') {
@@ -297,17 +294,15 @@
if (is_array($_SESSION['voicemail']['transcribe_enabled']) && $_SESSION['voicemail']['transcribe_enabled']['boolean'] == 'true') {
echo " <td>".ucwords(escape($row['voicemail_transcription_enabled']))."&nbsp;</td>\n";
}
if (permission_exists('voicemail_message_view')) {
echo " <td class='no-wrap' width = '10%'>\n";
$tmp_voicemail_string = (array_key_exists($row['voicemail_uuid'], $voicemails_count)) ? " (" . $voicemails_count[$row['voicemail_uuid']] . ")" : " (0)";
echo " <a href='voicemail_messages.php?id=".escape($row['voicemail_uuid'])."'>".$text['label-messages'].$tmp_voicemail_string."</a>\n";
echo " </td>\n";
}
echo " <td class='no-link no-wrap'>\n";
if (permission_exists('voicemail_greeting_view')) {
echo " <td class='no-wrap' width = '10%'>\n";
echo " <a href='".PROJECT_PATH."/app/voicemail_greetings/voicemail_greetings.php?id=".$row['voicemail_id']."&back=".urlencode($_SERVER["REQUEST_URI"])."'>".$text['label-greetings']."</a>\n";
echo " </td>\n";
echo " <a href='".PROJECT_PATH."/app/voicemail_greetings/voicemail_greetings.php?id=".$row['voicemail_id']."&back=".urlencode($_SERVER["REQUEST_URI"])."' style='margin-right: 15px;'>".$text['label-greetings']."</a>\n";
}
if (permission_exists('voicemail_message_view')) {
$tmp_voicemail_string = (array_key_exists($row['voicemail_uuid'], $voicemails_count)) ? " (" . $voicemails_count[$row['voicemail_uuid']] . ")" : " (0)";
echo " <a href='voicemail_messages.php?id=".escape($row['voicemail_uuid'])."'>".$text['label-messages'].$tmp_voicemail_string."</a>\n";
}
echo " </td>\n";
if (permission_exists('voicemail_edit')) {
echo " <td class='no-link center'>\n";
echo button::create(['type'=>'submit','class'=>'link','label'=>$text['label-'.$row['voicemail_enabled']],'title'=>$text['button-toggle'],'onclick'=>"list_self_check('checkbox_".$x."'); list_action_set('toggle'); list_form_submit('form_list')"]);