Document (Window) Title: Update variable name to avoid conflict when paging is used.

This commit is contained in:
Nate Jones
2014-07-10 00:32:50 +00:00
parent a8e60b15d5
commit dc2196dd6f
80 changed files with 107 additions and 107 deletions

View File

@@ -301,10 +301,10 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
//show the header
require_once "resources/header.php";
if ($action == "add") {
$page["title"] = $text['title-call_center_agent_add'];
$document['title'] = $text['title-call_center_agent_add'];
}
if ($action == "update") {
$page["title"] = $text['title-call_center_agent_edit'];
$document['title'] = $text['title-call_center_agent_edit'];
}
//show the content

View File

@@ -41,7 +41,7 @@ else {
}
require_once "resources/header.php";
$page["title"] = $text['title-call_center_agent_status'];
$document['title'] = $text['title-call_center_agent_status'];
require_once "resources/paging.php";

View File

@@ -41,7 +41,7 @@ else {
}
require_once "resources/header.php";
$page["title"] = $text['title-call_center_agents'];
$document['title'] = $text['title-call_center_agents'];
require_once "resources/paging.php";

View File

@@ -394,10 +394,10 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
//show the header
require_once "resources/header.php";
if ($action == "add") {
$page["title"] = $text['title-call_center_queue_add'];
$document['title'] = $text['title-call_center_queue_add'];
}
if ($action == "update") {
$page["title"] = $text['title-call_center_queue_edit'];
$document['title'] = $text['title-call_center_queue_edit'];
}
//show the content

View File

@@ -41,7 +41,7 @@ else {
}
require_once "resources/header.php";
$page["title"] = $text['title-call_center_queues'];
$document['title'] = $text['title-call_center_queues'];
require_once "resources/paging.php";

View File

@@ -153,7 +153,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
//show the header
require_once "resources/header.php";
$page["title"] = $text['title-call_center_tier_edit'];
$document['title'] = $text['title-call_center_tier_edit'];
//show the content
echo "<div align='center'>";

View File

@@ -45,7 +45,7 @@ else {
//get the header
require_once "resources/header.php";
$page["title"] = $text['title-call_center_queue_activity'];
$document['title'] = $text['title-call_center_queue_activity'];
?><script type="text/javascript">
function loadXmlHttp(url, id) {

View File

@@ -41,7 +41,7 @@ else {
}
require_once "resources/header.php";
$page["title"] = $text['title-active_call_center'];
$document['title'] = $text['title-active_call_center'];
require_once "resources/paging.php";

View File

@@ -422,10 +422,10 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
//show the header
require_once "resources/header.php";
if ($action == "update") {
$page["title"] = $text['title-call_flow-edit'];
$document['title'] = $text['title-call_flow-edit'];
}
if ($action == "add") {
$page["title"] = $text['title-call_flow-add'];
$document['title'] = $text['title-call_flow-add'];
}
//show the content

View File

@@ -41,7 +41,7 @@ else {
}
require_once "resources/header.php";
$page["title"] = $text['title-call_flows'];
$document['title'] = $text['title-call_flows'];
require_once "resources/paging.php";

View File

@@ -45,7 +45,7 @@ $tmp_conference_name = str_replace("_", " ", $conference_name);
require_once "resources/header.php";
$page["title"] = $text['title'];
$document['title'] = $text['title'];
?><script type="text/javascript">
function loadXmlHttp(url, id) {

View File

@@ -199,10 +199,10 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
//show the header
require_once "resources/header.php";
if ($action == "update") {
$page["title"] = $text['title-contact_addresses-edit'];
$document['title'] = $text['title-contact_addresses-edit'];
}
else if ($action == "add") {
$page["title"] = $text['title-contact_addresses-add'];
$document['title'] = $text['title-contact_addresses-add'];
}
//show the content

View File

@@ -199,10 +199,10 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
//show the header
require_once "resources/header.php";
if ($action == "update") {
$page["title"] = $text['title-contact-edit'];
$document['title'] = $text['title-contact-edit'];
}
else if ($action == "add") {
$page["title"] = $text['title-contact-add'];
$document['title'] = $text['title-contact-add'];
}

View File

@@ -155,10 +155,10 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
//show the header
require_once "resources/header.php";
if ($action == "update") {
$page["title"] = $text['title-contact_notes-edit'];
$document['title'] = $text['title-contact_notes-edit'];
}
else if ($action == "add") {
$page["title"] = $text['title-contact_notes-add'];
$document['title'] = $text['title-contact_notes-add'];
}
//show the content

View File

@@ -159,10 +159,10 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
//show the header
require_once "resources/header.php";
if ($action == "update") {
$page["title"] = $text['title-contact_phones-edit'];
$document['title'] = $text['title-contact_phones-edit'];
}
else if ($action == "add") {
$page["title"] = $text['title-contact_phones-add'];
$document['title'] = $text['title-contact_phones-add'];
}
//show the content

View File

@@ -41,7 +41,7 @@ else {
}
require_once "resources/header.php";
$page["title"] = $text['title-contacts'];
$document['title'] = $text['title-contacts'];
require_once "resources/paging.php";

View File

@@ -418,10 +418,10 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
//show the header
require_once "resources/header.php";
if ($action == "update") {
$page["title"] = $text['title-destination-edit'];
$document['title'] = $text['title-destination-edit'];
}
else if ($action == "add") {
$page["title"] = $text['title-destination-add'];
$document['title'] = $text['title-destination-add'];
}
//show the content

View File

@@ -41,7 +41,7 @@ else {
}
require_once "resources/header.php";
$page["title"] = $text['title-destinations'];
$document['title'] = $text['title-destinations'];
require_once "resources/paging.php";

View File

@@ -162,10 +162,10 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
//show the header
require_once "resources/header.php";
if ($action == "update") {
$page["title"] = $text['title-device_setting-edit'];
$document['title'] = $text['title-device_setting-edit'];
}
elseif ($action == "add") {
$page["title"] = $text['title-device_setting-add'];
$document['title'] = $text['title-device_setting-add'];
}
//show the content

View File

@@ -42,7 +42,7 @@ else {
//additional includes
require_once "resources/header.php";
$page["title"] = $text['title-dialplan_add'];
$document['title'] = $text['title-dialplan_add'];
require_once "resources/paging.php";
//set the variables

View File

@@ -41,7 +41,7 @@ else {
}
require_once "resources/header.php";
$page["title"] = $text['title-default_dialplan'];
$document['title'] = $text['title-default_dialplan'];
if ($_GET['a'] == "default" && permission_exists('dialplan_advanced_edit')) {
//create the dialplan/default.xml for single tenant or dialplan/domain.xml

View File

@@ -211,7 +211,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
//show the header
require_once "resources/header.php";
$page["title"] = $text['title-dialplan_detail'];
$document['title'] = $text['title-dialplan_detail'];
//show the content
echo "<div align='center'>";

View File

@@ -283,7 +283,7 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
//show the header
require_once "resources/header.php";
$page["title"] = $text['title-dialplan_edit'];
$document['title'] = $text['title-dialplan_edit'];
//javascript to change select to input and back again
?><script language="javascript">

View File

@@ -50,19 +50,19 @@ else {
require_once "resources/header.php";
require_once "resources/paging.php";
if ($app_uuid == "c03b422e-13a8-bd1b-e42b-b6b9b4d27ce4") {
$page["title"] = $text['title-inbound_routes'];
$document['title'] = $text['title-inbound_routes'];
}
elseif ($app_uuid == "8c914ec3-9fc0-8ab5-4cda-6c9288bdc9a3") {
$page["title"] = $text['title-outbound_routes'];
$document['title'] = $text['title-outbound_routes'];
}
elseif ($app_uuid == "16589224-c876-aeb3-f59f-523a1c0801f7") {
$page["title"] = $text['title-queues'];
$document['title'] = $text['title-queues'];
}
elseif ($app_uuid == "4b821450-926b-175a-af93-a03c441818b1") {
$page["title"] = $text['title-time_conditions'];
$document['title'] = $text['title-time_conditions'];
}
else {
$page["title"] = $text['title-dialplan_manager'];
$document['title'] = $text['title-dialplan_manager'];
}
//show the content

View File

@@ -41,7 +41,7 @@ foreach($text as $key => $value) {
}
require_once "resources/header.php";
$page["title"] = $text['title-dialplan-inbound-add'];
$document['title'] = $text['title-dialplan-inbound-add'];
require_once "resources/paging.php";

View File

@@ -43,7 +43,7 @@ else {
//show the header
require_once "resources/header.php";
$page["title"] = $text['title-dialplan-outbound-add'];
$document['title'] = $text['title-dialplan-outbound-add'];
require_once "resources/paging.php";

View File

@@ -738,10 +738,10 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
//begin the page content
require_once "resources/header.php";
if ($action == "update") {
$page["title"] = $text['title-extension-edit'];
$document['title'] = $text['title-extension-edit'];
}
else if ($action == "add") {
$page["title"] = $text['title-extension-add'];
$document['title'] = $text['title-extension-add'];
}
echo "<script type=\"text/javascript\" language=\"JavaScript\">\n";

View File

@@ -41,7 +41,7 @@ else {
}
require_once "resources/header.php";
$page["title"] = $text['title-extensions'];
$document['title'] = $text['title-extensions'];
require_once "resources/paging.php";

View File

@@ -41,7 +41,7 @@ else {
}
require_once "resources/header.php";
$page["title"] = $text['title-queue_add'];
$document['title'] = $text['title-queue_add'];
require_once "resources/paging.php";

View File

@@ -58,7 +58,7 @@ else {
//show the header
require_once "resources/header.php";
$page["title"] = $text['title-queue'];
$document['title'] = $text['title-queue'];
?>
<script type="text/javascript">

View File

@@ -41,7 +41,7 @@ else {
}
require_once "resources/header.php";
$page["title"] = $text['title-active_queues'];
$document['title'] = $text['title-active_queues'];
?><script type="text/javascript">
function loadXmlHttp(url, id) {

View File

@@ -41,7 +41,7 @@ else {
}
require_once "resources/header.php";
$page["title"] = $text['title-hot_desking'];
$document['title'] = $text['title-hot_desking'];
require_once "resources/paging.php";

View File

@@ -354,7 +354,7 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
//content
require_once "resources/header.php";
$page["title"] = $text['title-ivr_menu'];
$document['title'] = $text['title-ivr_menu'];
echo "<script type=\"text/javascript\" language=\"JavaScript\">\n";
echo "\n";

View File

@@ -176,10 +176,10 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
//send the content to the browser
require_once "resources/header.php";
if ($action == "add") {
$page["title"] = $text['title-option_add'];
$document['title'] = $text['title-option_add'];
}
if ($action == "update") {
$page["title"] = $text['title-option_edit'];
$document['title'] = $text['title-option_edit'];
}
echo "<div align='center'>";

View File

@@ -42,7 +42,7 @@ else {
//additional includes
require_once "resources/header.php";
$page["title"] = $text['title-ivr_menus'];
$document['title'] = $text['title-ivr_menus'];
require_once "resources/paging.php";

View File

@@ -164,10 +164,10 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
//show the header
require_once "resources/header.php";
if ($action == "add") {
$page["title"] = $text['title-module_add'];
$document['title'] = $text['title-module_add'];
}
if ($action == "update") {
$page["title"] = $text['title-module_edit'];
$document['title'] = $text['title-module_edit'];
}
//show the content

View File

@@ -41,7 +41,7 @@ else {
}
require_once "resources/header.php";
$page["title"] = $text['title-modules'];
$document['title'] = $text['title-modules'];
require_once "resources/paging.php";

View File

@@ -318,7 +318,7 @@ else {
}
require_once "resources/header.php";
$page["title"] = $text['title-notifications'];
$document['title'] = $text['title-notifications'];
// show the content
echo "<div align='center'>";

View File

@@ -45,7 +45,7 @@ require_once "resources/check_auth.php";
//show the header
require_once "resources/header.php";
$page["title"] = $text['header-registrations'];
$document['title'] = $text['header-registrations'];
//set the variables
$profile = (isset($_REQUEST['profile']) && $_REQUEST['profile'] != '') ? $_REQUEST['profile'] : "internal";

View File

@@ -44,7 +44,7 @@ require_once "resources/check_auth.php";
//show the header
require_once "resources/header.php";
//$page["title"] = $text['title-ring_group_forward'];
//$document['title'] = $text['title-ring_group_forward'];
//get the hunt_group_uuid
$ring_group_uuid = check_str($_REQUEST["id"]);

View File

@@ -369,7 +369,7 @@ else {
//show the header
require_once "resources/header.php";
$page["title"] = $text['title-data'];
$document['title'] = $text['title-data'];
//pre-populate the form
if ($action == "update") {

View File

@@ -59,7 +59,7 @@ if (strlen($_GET["id"]) > 0) {
//show the header
require_once "resources/header.php";
$page["title"] = $text['title-data_view'];
$document['title'] = $text['title-data_view'];
//get the information about the schema by using the id
$sql = "select * from v_schemas ";

View File

@@ -175,7 +175,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
//show the header
require_once "resources/header.php";
$page["title"] = $text['title-schema'];
$document['title'] = $text['title-schema'];
//show the content
echo "<div align='center'>";

View File

@@ -201,7 +201,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
//show the header
require_once "resources/header.php";
$page["title"] = $text['title-field'];
$document['title'] = $text['title-field'];
//begin the content
echo "<div align='center'>";

View File

@@ -209,7 +209,7 @@ if (count($_POST)>0) {
//show the header
require_once "resources/header.php";
$page["title"] = $text['title-import_results'];
$document['title'] = $text['title-import_results'];
echo "<div align='center'>\n";
echo "<table width='100%' border='0' cellpadding='6' cellspacing='0'>\n";
@@ -304,7 +304,7 @@ if (count($_POST)>0) {
//show the header
require_once "resources/header.php";
$page["title"] = $text['title-import'];
$document['title'] = $text['title-import'];
//show the content
echo "<div align='center'>";

View File

@@ -158,7 +158,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
//show the header
require_once "resources/header.php";
$page["title"] = $text['title-name_value'];
$document['title'] = $text['title-name_value'];
//show the content
echo "<div align='center'>";

View File

@@ -41,7 +41,7 @@ else {
}
require_once "resources/header.php";
$page["title"] = $text['title-schemas'];
$document['title'] = $text['title-schemas'];
require_once "resources/paging.php";

View File

@@ -156,7 +156,7 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
//show the header
require_once "resources/header.php";
$page["title"] = $text['title-sip_profile'];
$document['title'] = $text['title-sip_profile'];
//show the content
echo "<div align='center'>";

View File

@@ -169,7 +169,7 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
//show the header
require_once "resources/header.php";
$page["title"] = $text['title-setting'];
$document['title'] = $text['title-setting'];
//show the content
echo "<div align='center'>";

View File

@@ -41,7 +41,7 @@ else {
}
require_once "resources/header.php";
$page["title"] = $text['title-sip_profiles'];
$document['title'] = $text['title-sip_profiles'];
require_once "resources/paging.php";

View File

@@ -42,7 +42,7 @@ else {
//show the header
require_once "resources/header.php";
$page["title"] = $text['title-sql_query'];
$document['title'] = $text['title-sql_query'];
//pdo voicemail database connection
require_once "sql_query_pdo.php";

View File

@@ -41,7 +41,7 @@ else {
}
require_once "resources/header.php";
$page["title"] = $text['title-databases'];
$document['title'] = $text['title-databases'];
require_once "resources/paging.php";

View File

@@ -70,7 +70,7 @@ else {
}
require_once "resources/header.php";
$page["title"] = $text['title-traffic_graph'];
$document['title'] = $text['title-traffic_graph'];
?>
<table width='100%'>
<tr>

View File

@@ -175,10 +175,10 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
//include header
require_once "resources/header.php";
if ($action == "add") {
$page["title"] = $text['title-var_add'];
$document['title'] = $text['title-var_add'];
}
if ($action == "update") {
$page["title"] = $text['title-var_edit'];
$document['title'] = $text['title-var_edit'];
}
//show contents

View File

@@ -42,7 +42,7 @@ else {
//include the header
require_once "resources/header.php";
$page["title"] = $text['title-variables'];
$document['title'] = $text['title-variables'];
//set http values as php variables
$order_by = $_GET["order_by"];

View File

@@ -42,7 +42,7 @@ else {
//include the header
require_once "resources/header.php";
$page["title"] = $text['title-variables_advanced'];
$document['title'] = $text['title-variables_advanced'];
//restore the default vars.xml
if ($_GET['a'] == "default" && permission_exists('var_edit')) {

View File

@@ -44,7 +44,7 @@ else {
require_once "resources/header.php";
$page["title"] = $text['title-xmpp'];
$document['title'] = $text['title-xmpp'];
require_once "resources/paging.php";

View File

@@ -53,10 +53,10 @@ if (isset($_REQUEST["id"])) {
}
if ($action == "update") {
$page["title"] = $text['title-xmpp-edit'];
$document['title'] = $text['title-xmpp-edit'];
}
else if ($action == "add") {
$page["title"] = $text['title-xmpp-add'];
$document['title'] = $text['title-xmpp-add'];
}
$domain_name = $_SESSION['domains'][$_SESSION['domain_uuid']]['domain_name'];

View File

@@ -41,7 +41,7 @@ else {
}
require_once "resources/header.php";
$page["title"] = $text['title-apps'];
$document['title'] = $text['title-apps'];
require_once "resources/paging.php";

View File

@@ -112,10 +112,10 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
//show the header
require_once "resources/header.php";
if ($action == "update") {
$page["title"] = $text['title-app-edit'];
$document['title'] = $text['title-app-edit'];
}
if ($action == "add") {
$page["title"] = $text['title-app-add'];
$document['title'] = $text['title-app-add'];
}
//pre-populate the form

View File

@@ -202,10 +202,10 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
//show the header
require_once "resources/header.php";
if ($action == "update") {
$page["title"] = $text['title-database-edit'];
$document['title'] = $text['title-database-edit'];
}
if ($action == "add") {
$page["title"] = $text['title-database-add'];
$document['title'] = $text['title-database-add'];
}
//show the content

View File

@@ -41,7 +41,7 @@ else {
}
require_once "resources/header.php";
$page["title"] = $text['title-databases'];
$document['title'] = $text['title-databases'];
require_once "resources/paging.php";

View File

@@ -162,10 +162,10 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
//show the header
require_once "resources/header.php";
if ($action == "update") {
$page["title"] = $text['title-default_setting-edit'];
$document['title'] = $text['title-default_setting-edit'];
}
elseif ($action == "add") {
$page["title"] = $text['title-default_setting-add'];
$document['title'] = $text['title-default_setting-add'];
}
//show the content

View File

@@ -41,7 +41,7 @@ else {
}
require_once "resources/header.php";
$page["title"] = $text['title-default_settings'];
$document['title'] = $text['title-default_settings'];
require_once "resources/paging.php";

View File

@@ -551,10 +551,10 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
//show the header
require_once "resources/header.php";
if ($action == "update") {
$page["title"] = $text['title-domain-edit'];
$document['title'] = $text['title-domain-edit'];
}
if ($action == "add") {
$page["title"] = $text['title-domain-add'];
$document['title'] = $text['title-domain-add'];
}
//show the content

View File

@@ -257,10 +257,10 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
//show the header
require_once "resources/header.php";
if ($action == "update") {
$page["title"] = $text['title-domain_setting-edit'];
$document['title'] = $text['title-domain_setting-edit'];
}
elseif ($action == "add") {
$page["title"] = $text['title-domain_setting-add'];
$document['title'] = $text['title-domain_setting-add'];
}
//show the content

View File

@@ -94,7 +94,7 @@ else {
//includes
require_once "resources/header.php";
$page["title"] = $text['title-domains'];
$document['title'] = $text['title-domains'];
require_once "resources/paging.php";

View File

@@ -41,7 +41,7 @@ else {
}
require_once "resources/header.php";
$page["title"] = $text['title-menus'];
$document['title'] = $text['title-menus'];
require_once "resources/paging.php";

View File

@@ -157,10 +157,10 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
//show the header
require_once "resources/header.php";
if ($action == "update") {
$page["title"] = $text['title-menu-edit'];
$document['title'] = $text['title-menu-edit'];
}
if ($action == "add") {
$page["title"] = $text['title-menu-add'];
$document['title'] = $text['title-menu-add'];
}
//show the content

View File

@@ -305,10 +305,10 @@ else {
//include the header
require_once "resources/header.php";
if ($action == "update") {
$page["title"] = $text['title-menu_item-edit'];
$document['title'] = $text['title-menu_item-edit'];
}
if ($action == "add") {
$page["title"] = $text['title-menu_item-add'];
$document['title'] = $text['title-menu_item-add'];
}
echo "<div align='center'>";

View File

@@ -59,7 +59,7 @@
}
require_once "resources/header.php";
$page["title"] = $text['title-upgrade_schema'];
$document['title'] = $text['title-upgrade_schema'];
$display_type = 'html'; //html, text
}

View File

@@ -67,7 +67,7 @@
// load header
require_once "resources/header.php";
$page["title"] = $text['title-user_dashboard'];
$document['title'] = $text['title-user_dashboard'];
echo "<br><b>".$text['header-user_dashboard']."</b><br>";
echo $text['description-user_dashboard'];

View File

@@ -42,7 +42,7 @@ else {
}
require_once "resources/header.php";
$page["title"] = $text['title-group_permissions'];
$document['title'] = $text['title-group_permissions'];
require_once "resources/paging.php";

View File

@@ -78,7 +78,7 @@ if (strlen($group_name) > 0) {
//include the header
include "resources/header.php";
$page["title"] = $text['title-group_add'];
$document['title'] = $text['title-group_add'];
//show the content
echo "<div align='center'>";

View File

@@ -64,7 +64,7 @@ else {
//include the header
require_once "resources/header.php";
$page["title"] = $text['title-group_members'];
$document['title'] = $text['title-group_members'];
//show the content
$c = 0;

View File

@@ -44,7 +44,7 @@ else {
//show the header
require_once "resources/header.php";
$page["title"] = $text['title-group_manager'];
$document['title'] = $text['title-group_manager'];
if (isset($_REQUEST["change"])) {
//get the values from the HTTP POST and save them as PHP variables
$change = check_str($_REQUEST["change"]);

View File

@@ -42,7 +42,7 @@ else {
//include the header
require_once "resources/header.php";
$page["title"] = $text['title-user_manager'];
$document['title'] = $text['title-user_manager'];
//show the user list
echo "<div align='center'>";

View File

@@ -198,7 +198,7 @@ if (count($_POST)>0 && check_str($_POST["persistform"]) != "1") {
//show the header
require_once "resources/header.php";
$page["title"] = $text['title-user_add'];
$document['title'] = $text['title-user_add'];
//show the content
echo "<script>";

View File

@@ -369,7 +369,7 @@ else {
//include the header
require_once "resources/header.php";
$page["title"] = $text['title-user_edit'];
$document['title'] = $text['title-user_edit'];
//show the content
$table_width ='width="100%"';

View File

@@ -27,7 +27,7 @@ include "root.php";
require_once "resources/require.php";
//get the output from the buffer
$body = $content_from_db.ob_get_contents();
$body = $content_from_db.ob_get_contents();
ob_end_clean(); //clean the buffer
//set a default template
@@ -71,7 +71,7 @@ require_once "resources/require.php";
//prepare the template to display the output
$custom_head = '';
$output = str_replace ("<!--{title}-->", $page["title"], $template); //<!--{title}--> defined in each individual page
$output = str_replace ("<!--{title}-->", $document["title"], $template); //<!--{title}--> defined in each individual page
$output = str_replace ("<!--{head}-->", $custom_head, $output); //<!--{head}--> defined in each individual page
if (strlen($v_menu) > 0) {
$output = str_replace ("<!--{menu}-->", $v_menu, $output); //defined in /resources/menu.php