mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
App->content (content manager), added preliminary support for translations.
This commit is contained in:
@@ -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']];
|
||||
}
|
||||
|
||||
$rss_uuid = $_GET["rss_uuid"];
|
||||
$order_by = $_GET["order_by"];
|
||||
$order = $_GET["order"];
|
||||
@@ -48,7 +55,7 @@ require_once "includes/header.php";
|
||||
echo " <td align=\"left\">\n";
|
||||
|
||||
echo " <br>";
|
||||
echo " <b>$module_title Details</b>";
|
||||
echo " <b>$module_title ".$text['label-details']."</b>";
|
||||
$sql = "";
|
||||
$sql .= "select * from v_rss ";
|
||||
$sql .= "where domain_uuid = '$domain_uuid' ";
|
||||
@@ -81,10 +88,10 @@ require_once "includes/header.php";
|
||||
//echo "<td valign='top'>".$row[rss_category]."</td>";
|
||||
|
||||
echo "<tr>";
|
||||
echo " <td valign='top'>Title: </td>";
|
||||
echo " <td valign='top'>".$text['label-title'].": </td>";
|
||||
echo " <td valign='top'><b>".$row[rss_title]."</b></td>";
|
||||
echo " <td valign='top' align='right'>";
|
||||
echo " <input type='button' class='btn' name='' onclick=\"window.location='rssupdate.php?rss_uuid=".$row[rss_uuid]."'\" value='Update'>";
|
||||
echo " <input type='button' class='btn' name='' onclick=\"window.location='rssupdate.php?rss_uuid=".$row[rss_uuid]."'\" value='".$text['button-update']."'>";
|
||||
echo " </td>";
|
||||
$rss_description = $row[rss_description];
|
||||
//$rss_description = str_replace ("\r\n", "<br>", $rss_description);
|
||||
@@ -93,24 +100,24 @@ require_once "includes/header.php";
|
||||
|
||||
|
||||
echo "<tr>";
|
||||
echo " <td valign='top'>Template: </td>";
|
||||
echo " <td valign='top'>".$text['label-template'].": </td>";
|
||||
echo " <td valign='top'>".$row[rss_sub_category]."</td>";
|
||||
echo "</tr>";
|
||||
|
||||
echo "<tr>";
|
||||
echo " <td valign='top'>Group: </td>";
|
||||
echo " <td valign='top'>".$text['label-group'].": </td>";
|
||||
echo " <td valign='top'>".$row[rss_group]."</td>";
|
||||
echo "</tr>";
|
||||
|
||||
if (strlen($row[rss_order]) > 0) {
|
||||
echo "<tr>";
|
||||
echo " <td valign='top'>Order: </td>";
|
||||
echo " <td valign='top'>".text['label-order'].": </td>";
|
||||
echo " <td valign='top'>".$row[rss_order]."</td>";
|
||||
echo "</tr>";
|
||||
}
|
||||
|
||||
//echo "<td valign='top'>".$row[rss_link]."</td>";
|
||||
echo " <td valign='top'>Description: </td>";
|
||||
echo " <td valign='top'>".$text['label-description'].": </td>";
|
||||
echo " <td valign='top' colspan='2'>".$rss_description."</td>";
|
||||
//echo "<td valign='top'>".$row[rss_img]."</td>";
|
||||
|
||||
@@ -380,12 +387,12 @@ require_once "includes/header.php";
|
||||
//echo "<td valign='top'>".$row[rss_sub_add_user]."</td>";
|
||||
|
||||
echo "<td valign='top'>";
|
||||
echo " <input type='button' class='btn' name='' onclick=\"if (confirm('Are you sure you wish to continue?')) { window.location='rsssubdelete.php?rss_uuid=".$row[rss_uuid]."&rss_sub_uuid=".$row[rss_sub_uuid]."' }\" value='Delete'>";
|
||||
echo " <input type='button' class='btn' name='' onclick=\"if (confirm('".$text['message-confirm-delete']."')) { window.location='rsssubdelete.php?rss_uuid=".$row[rss_uuid]."&rss_sub_uuid=".$row[rss_sub_uuid]."' }\" value='".$text['button-delete']."'>";
|
||||
echo "</td>";
|
||||
|
||||
echo "<td valign='top' align='right'>";
|
||||
echo " ";
|
||||
echo " <input type='button' class='btn' name='' onclick=\"window.location='rsssubupdate.php?rss_uuid=".$rss_uuid."&rss_sub_uuid=".$row[rss_sub_uuid]."'\" value='Update'>";
|
||||
echo " <input type='button' class='btn' name='' onclick=\"window.location='rsssubupdate.php?rss_uuid=".$rss_uuid."&rss_sub_uuid=".$row[rss_sub_uuid]."'\" value='".$text['button-update']."'>";
|
||||
echo " \n";
|
||||
//echo " <a href='rsssubupdate.php?rss_uuid=".$rss_uuid."&rss_sub_uuid=".$row[rss_sub_uuid]."'>Update</a> ";
|
||||
echo "</td>";
|
||||
@@ -428,7 +435,7 @@ require_once "includes/header.php";
|
||||
|
||||
//echo "<input type='button' class='btn' name='' onclick=\"window.location='rsssubsearch.php'\" value='Search'> \n";
|
||||
if ($rss_sub_show == 1) {
|
||||
echo "<input type='button' class='btn' name='' onclick=\"window.location='rsssubadd.php?rss_uuid=".$rss_uuid."'\" value='Add $rss_sub_title'> \n";
|
||||
echo "<input type='button' class='btn' name='' onclick=\"window.location='rsssubadd.php?rss_uuid=".$rss_uuid."'\" value='".$text['button-add-title']." $rss_sub_title'> \n";
|
||||
}
|
||||
echo "</div>";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user