Fix a notice error on the menu.

This commit is contained in:
Mark Crane 2013-01-16 06:38:45 +00:00
parent 6019c49f41
commit 58e00e580b
8 changed files with 49 additions and 5 deletions

View File

@ -35,6 +35,12 @@ else {
exit;
}
//add multi-lingual support
require_once "app_languages.php";
foreach($text as $key => $value) {
$text[$key] = $value[$_SESSION['domain']['language']['code']];
}
//set the http get/post variable(s) to a php variable
if (isset($_REQUEST["id"])) {
$ivr_menu_uuid = $_GET["id"];

View File

@ -34,6 +34,12 @@ else {
exit;
}
//add multi-lingual support
require_once "app_languages.php";
foreach($text as $key => $value) {
$text[$key] = $value[$_SESSION['domain']['language']['code']];
}
if (count($_GET)>0) {
$id = check_str($_GET["id"]);
}

View File

@ -34,6 +34,12 @@ else {
exit;
}
//add multi-lingual support
require_once "app_languages.php";
foreach($text as $key => $value) {
$text[$key] = $value[$_SESSION['domain']['language']['code']];
}
function recur_sounds_dir($dir) {
global $dir_array;
global $dir_path;

View File

@ -34,6 +34,12 @@ else {
exit;
}
//add multi-lingual support
require_once "app_languages.php";
foreach($text as $key => $value) {
$text[$key] = $value[$_SESSION['domain']['language']['code']];
}
//set the http values as variables
if (count($_GET)>0) {
$id = check_str($_GET["id"]);

View File

@ -34,6 +34,12 @@ else {
exit;
}
//add multi-lingual support
require_once "app_languages.php";
foreach($text as $key => $value) {
$text[$key] = $value[$_SESSION['domain']['language']['code']];
}
//action add or update
if (isset($_REQUEST["id"])) {
$action = "update";

View File

@ -34,7 +34,8 @@ else {
exit;
}
require_once "includes/paging.php";
//additional includes
require_once "includes/paging.php";
//get the http values and set them as variables
if (isset($_GET["order_by"])) {

View File

@ -33,8 +33,16 @@ else {
echo "access denied";
exit;
}
require_once "includes/header.php";
require_once "includes/paging.php";
//add multi-lingual support
require_once "app_languages.php";
foreach($text as $key => $value) {
$text[$key] = $value[$_SESSION['domain']['language']['code']];
}
//additional includes
require_once "includes/header.php";
require_once "includes/paging.php";
//get the http values and set them as variables
if (isset($_GET["order_by"])) {

View File

@ -54,9 +54,14 @@ include "root.php";
$music_on_hold_dir = $music_on_hold_dir."/".$_SESSION['domain_name'];
}
//add multi-lingual support
require_once "app/music_on_hold/app_languages.php";
foreach($text as $key => $value) {
$text[$key] = $value[$_SESSION['domain']['language']['code']];
}
//start the select
$select = "";
$select .= " <select class='formfld' name='".$this->select_name."' id='".$this->select_name."' style='width: auto;'>\n";
$select = " <select class='formfld' name='".$this->select_name."' id='".$this->select_name."' style='width: auto;'>\n";
$select .= " <option value='' style='font-style: italic;'>".$text['opt-default']."</option>\n";
//categories