Add the text class to more of the applications.

This commit is contained in:
Mark Crane
2015-01-18 10:06:08 +00:00
parent fbb48feb0d
commit 03220c9754
176 changed files with 518 additions and 865 deletions
+6 -7
View File
@@ -35,14 +35,13 @@ else {
}
//add multi-lingual support
require_once "app_languages.php";
foreach($text as $key => $value) {
$text[$key] = $value[$_SESSION['domain']['language']['code']];
}
$language = new text;
$text = $language->get();
if (count($_GET)>0) {
$id = $_GET["id"];
}
//get the id
if (count($_GET)>0) {
$id = $_GET["id"];
}
if (strlen($id)>0) {
$sql = "delete from v_modules ";
+2 -4
View File
@@ -35,10 +35,8 @@ else {
}
//add multi-lingual support
require_once "app_languages.php";
foreach($text as $key => $value) {
$text[$key] = $value[$_SESSION['domain']['language']['code']];
}
$language = new text;
$text = $language->get();
//determin the action add or update
if (isset($_REQUEST["id"])) {
+9 -10
View File
@@ -35,18 +35,17 @@ else {
}
//add multi-lingual support
require_once "app_languages.php";
foreach($text as $key => $value) {
$text[$key] = $value[$_SESSION['domain']['language']['code']];
}
$language = new text;
$text = $language->get();
require_once "resources/header.php";
$document['title'] = $text['title-modules'];
//get includes and the title
require_once "resources/header.php";
$document['title'] = $text['title-modules'];
require_once "resources/paging.php";
require_once "resources/paging.php";
$order_by = $_GET["order_by"];
$order = $_GET["order"];
//get the http values ans set as variables
$order_by = $_GET["order_by"];
$order = $_GET["order"];
$fp = event_socket_create($_SESSION['event_socket_ip_address'], $_SESSION['event_socket_port'], $_SESSION['event_socket_password']);
if (strlen($_GET["a"]) > 0) {