Voicemail Greetings: Minor language mods, re-enabled editing of greeting.

This commit is contained in:
Nate Jones 2014-05-06 00:03:39 +00:00
parent 76ef315b28
commit 83d089e498
3 changed files with 19 additions and 10 deletions

View File

@ -41,11 +41,17 @@
$text['button-back']['pt-pt'] = "Voltar";
$text['button-back']['fr-fr'] = "Retour";
$text['button-save']['en-us'] = "Upload";
$text['button-upload']['en-us'] = "Upload";
$text['button-upload']['es-cl'] = "Subir";
$text['button-upload']['pt-pt'] = "Carregar";
$text['button-upload']['fr-fr'] = "Télécharger";
$text['button-save']['en-us'] = "Save";
$text['button-save']['es-cl'] = "Guardar";
$text['button-save']['pt-pt'] = "Guardar";
$text['button-save']['fr-fr'] = "Sauvegarder";
//voicemail_greeting_edit
$text['confirm-name']['en-us'] = "Please provide: Greeting Name (play)";
$text['confirm-name']['es-cl'] = "Por favor indique: Nombre de Bienvenida (reproducir)";

View File

@ -186,7 +186,10 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
if ($action == "update") {
echo "<td align='left' width='30%' nowrap><b>".$text['label-edit']."</b></td>\n";
}
echo "<td width='70%' align='right'><input type='button' class='btn' name='' alt='back' onclick=\"window.location='voicemail_greetings.php?id=".$voicemail_id."'\" value='".$text['button-back']."'></td>\n";
echo "<td width='70%' align='right'>\n";
echo " <input type='button' class='btn' name='' alt='".$text['button-back']."' onclick=\"window.location='voicemail_greetings.php?id=".$voicemail_id."'\" value='".$text['button-back']."'>";
echo " <input type='submit' name='submit' class='btn' value='".$text['button-save']."'>\n";
echo "</td>\n";
echo "</tr>\n";
echo "<tr>\n";

View File

@ -78,7 +78,7 @@ else {
$v_greeting_dir = $_SESSION['switch']['storage']['dir'].'/voicemail/default/'.$_SESSION['domains'][$domain_uuid]['domain_name'].'/'.$voicemail_id;
//upload the recording
if (($_POST['submit'] == $text['button-save']) && is_uploaded_file($_FILES['file']['tmp_name']) && permission_exists('voicemail_greeting_upload')) {
if (($_POST['submit'] == $text['button-upload']) && is_uploaded_file($_FILES['file']['tmp_name']) && permission_exists('voicemail_greeting_upload')) {
if ($_POST['type'] == 'rec') {
for($i = 1; $i < 10; $i++){
$tmp_greeting = 'greeting_'.$i.'.wav';
@ -97,7 +97,7 @@ else {
}
//save the selected greeting
if ($_REQUEST['submit'] == $text['button-save']) {
if ($_REQUEST['submit'] == $text['button-upload']) {
//save the greeting_id to a variable
$greeting_id = check_str($_REQUEST['greeting_id']);
@ -237,7 +237,7 @@ else {
echo " <input type='button' class='btn' name='' alt='back' onclick=\"javascript:history.back();\" value='".$text['button-back']."'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n";
echo " <input name=\"file\" type=\"file\" class=\"formfld\" id=\"file\">\n";
echo " <input name=\"type\" type=\"hidden\" value=\"rec\">\n";
echo " <input name=\"submit\" type=\"submit\" class=\"btn\" id=\"upload\" value=\"".$text['button-save']."\">\n";
echo " <input name=\"submit\" type=\"submit\" class=\"btn\" id=\"upload\" value=\"".$text['button-upload']."\">\n";
echo " </td>\n";
}
@ -333,12 +333,12 @@ else {
echo " </td>\n";
echo " <td class='".$row_style[$c]."' nowrap>".$tmp_filesize."</td>\n";
echo " <td valign='top' class='row_stylebg'>".$row['greeting_description']."&nbsp;</td>\n";
echo " <td valign='top' align='right'>\n";
//if (permission_exists('voicemail_greeting_edit')) {
// echo " <a href='voicemail_greeting_edit.php?id=".$row['voicemail_greeting_uuid']."&voicemail_id=".$voicemail_id."' alt='edit'>$v_link_label_edit</a>\n";
//}
echo " <td valign='top' align='right' nowrap>\n";
if (permission_exists('voicemail_greeting_edit')) {
echo "<a href='voicemail_greeting_edit.php?id=".$row['voicemail_greeting_uuid']."&voicemail_id=".$voicemail_id."' alt='edit'>$v_link_label_edit</a>";
}
if (permission_exists('voicemail_greeting_delete')) {
echo " <a href='voicemail_greeting_delete.php?id=".$row['voicemail_greeting_uuid']."&voicemail_id=".$voicemail_id."' alt='delete' onclick=\"return confirm('Do you really want to delete this?')\">$v_link_label_delete</a>\n";
echo "<a href='voicemail_greeting_delete.php?id=".$row['voicemail_greeting_uuid']."&voicemail_id=".$voicemail_id."' alt='delete' onclick=\"return confirm('Do you really want to delete this?')\">$v_link_label_delete</a>";
}
echo " </td>\n";
echo "</tr>\n";