App->content (content manager), added preliminary support for translations.

This commit is contained in:
James Rose
2012-11-24 19:37:34 +00:00
parent 17abb63a17
commit fede87f757
17 changed files with 259 additions and 80 deletions
+10 -3
View File
@@ -22,6 +22,7 @@
Contributor(s):
Mark J Crane <markjcrane@fusionpbx.com>
James Rose <james.o.rose@gmail.com>
*/
include "root.php";
require_once "includes/require.php";
@@ -35,6 +36,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($_POST)>0) {
$rss_sub_category_uuid = uuid();
$rss_category = check_str($_POST["rss_category"]);
@@ -68,7 +75,7 @@ if (count($_POST)>0) {
require_once "includes/header.php";
echo "<meta http-equiv=\"refresh\" content=\"5;url=rss_sub_categorylist.php\">\n";
echo "Add Complete";
echo $text['message-add'];
require_once "includes/footer.php";
return;
}
@@ -83,7 +90,7 @@ echo " <br>";
echo "<form method='post' action=''>";
echo "<table>";
echo " <tr>";
echo " <td>RSS Category:</td>";
echo " <td>".$text['label-rss-category'].":</td>";
echo " <td><input type='text' name='rss_category'></td>";
echo " </tr>";
echo " <tr>";
@@ -103,7 +110,7 @@ echo " <td>rss_add_date:</td>";
echo " <td><input type='text' name='rss_add_date'></td>";
echo " </tr>\n";
echo " <tr>";
echo " <td colspan='2' align='right'><input type='submit' name='submit' value='Add'></td>";
echo " <td colspan='2' align='right'><input type='submit' name='submit' value='".$text['button-add-title']."'></td>";
echo " </tr>";
echo "</table>";
echo "</form>";