This commit is contained in:
markjcrane
2016-03-29 02:35:59 -06:00
75 changed files with 703 additions and 521 deletions

View File

@@ -120,18 +120,11 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
require_once "resources/header.php";
//show the content
echo "<div align='center'>";
echo "<table width='100%' border='0' cellpadding='0' cellspacing=''>\n";
echo "<tr class='border'>\n";
echo " <td align=\"left\">\n";
echo " <br>";
echo "<form method='post' name='frm' action=''>\n";
echo "<div align='center'>\n";
echo "<table width='100%' border='0' cellpadding='6' cellspacing='0'>\n";
echo "<tr>\n";
echo "<td align='left' width='30%' nowrap='nowrap'><b>".$text['title-access_control']."</b></td>\n";
echo "<td width='70%' align='right'>\n";
echo "<td align='left' width='30%' nowrap='nowrap' valign='top'><b>".$text['title-access_control']."</b><br><br></td>\n";
echo "<td width='70%' align='right' valign='top'>\n";
echo " <input type='button' class='btn' name='' alt='".$text['button-back']."' onclick=\"window.location='access_controls.php'\" value='".$text['button-back']."'>";
echo " <input type='submit' name='submit' class='btn' value='".$text['button-save']."'>";
echo "</td>\n";
@@ -188,21 +181,18 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
if ($action == "update") {
echo " <input type='hidden' name='access_control_uuid' value='$access_control_uuid'>\n";
}
echo " <input type='submit' name='submit' class='btn' value='".$text['button-save']."'>\n";
echo " <br><input type='submit' name='submit' class='btn' value='".$text['button-save']."'>\n";
echo " </td>\n";
echo " </tr>";
echo "</table>";
echo "</form>";
echo "<br><br>";
if ($action == "update") {
require "access_control_nodes.php";
echo "<br><br>";
}
echo " </td>";
echo " </tr>";
echo "</table>";
echo "</div>";
//include the footer
require_once "resources/footer.php";
?>

View File

@@ -134,18 +134,12 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
require_once "resources/header.php";
//show the content
echo "<div align='center'>";
echo "<table width='100%' border='0' cellpadding='0' cellspacing=''>\n";
echo "<tr class='border'>\n";
echo " <td align=\"left\">\n";
echo " <br>";
echo "<form method='post' name='frm' action=''>\n";
echo "<div align='center'>\n";
echo "<table width='100%' border='0' cellpadding='6' cellspacing='0'>\n";
echo "<tr>\n";
echo "<td align='left' width='30%' nowrap='nowrap'><b>".$text['title-access_control_node']."</b></td>\n";
echo "<td width='70%' align='right'>\n";
echo "<td align='left' width='30%' nowrap='nowrap' valign='top'><b>".$text['title-access_control_node']."</b><br><br></td>\n";
echo "<td width='70%' align='right' valign='top'>\n";
echo " <input type='button' class='btn' name='' alt='".$text['button-back']."' onclick=\"window.location='access_control_edit.php?id=$access_control_uuid'\" value='".$text['button-back']."'>";
echo " <input type='submit' name='submit' class='btn' value='".$text['button-save']."'>";
echo "</td>\n";
@@ -214,16 +208,12 @@ if (count($_POST)>0 && strlen($_POST["persistformvar"]) == 0) {
if ($action == "update") {
echo " <input type='hidden' name='access_control_node_uuid' value='$access_control_node_uuid'>\n";
}
echo " <input type='submit' name='submit' class='btn' value='".$text['button-save']."'>\n";
echo " <br><input type='submit' name='submit' class='btn' value='".$text['button-save']."'>\n";
echo " </td>\n";
echo " </tr>";
echo "</table>";
echo "</form>";
echo " </td>";
echo " </tr>";
echo "</table>";
echo "</div>";
echo "<br><br>";
//include the footer
require_once "resources/footer.php";

View File

@@ -23,11 +23,6 @@ else {
require_once "resources/paging.php";
//show the content
echo "<div align='center'>";
echo "<table width='100%' border='0' cellpadding='0' cellspacing='2'>\n";
echo "<tr class='border'>\n";
echo " <td align=\"center\">\n";
echo " <br />";
echo "<table width='100%' border='0'>\n";
echo " <tr>\n";
@@ -53,7 +48,7 @@ else {
}
//prepare to page the results
$rows_per_page = 1000;
$rows_per_page = ($_SESSION['domain']['paging']['numeric'] != '') ? $_SESSION['domain']['paging']['numeric'] : 50;
$param = "";
$page = $_GET['page'];
if (strlen($page) == 0) { $page = 0; $_GET['page'] = 0; }
@@ -75,7 +70,6 @@ else {
$row_style["0"] = "row_style0";
$row_style["1"] = "row_style1";
echo "<div align='center'>\n";
echo "<table class='tr_hover' width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
echo "<tr>\n";
echo th_order_by('node_type', $text['label-node_type'], $order_by, $order);
@@ -136,13 +130,6 @@ else {
echo "</tr>\n";
echo "</table>";
echo "</div>";
echo "<br /><br />";
echo "</td>";
echo "</tr>";
echo "</table>";
echo "</div>";
echo "<br /><br />";
//include the footer

View File

@@ -23,12 +23,6 @@ else {
require_once "resources/paging.php";
//show the content
echo "<div align='center'>";
echo "<table width='100%' border='0' cellpadding='0' cellspacing='2'>\n";
echo "<tr class='border'>\n";
echo " <td align=\"center\">\n";
echo " <br />";
echo "<table width='100%' border='0'>\n";
echo " <tr>\n";
echo " <td width='50%' align='left' nowrap='nowrap'><b>".$text['title-access_controls']."</b></td>\n";
@@ -57,7 +51,7 @@ else {
}
//prepare to page the results
$rows_per_page = 10;
$rows_per_page = ($_SESSION['domain']['paging']['numeric'] != '') ? $_SESSION['domain']['paging']['numeric'] : 50;
$param = "";
$page = $_GET['page'];
if (strlen($page) == 0) { $page = 0; $_GET['page'] = 0; }
@@ -78,7 +72,6 @@ else {
$row_style["0"] = "row_style0";
$row_style["1"] = "row_style1";
echo "<div align='center'>\n";
echo "<table class='tr_hover' width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
echo "<tr>\n";
echo th_order_by('access_control_name', $text['label-access_control_name'], $order_by, $order);
@@ -132,18 +125,11 @@ else {
}
echo " </td>\n";
echo " </tr>\n";
echo " </table>\n";
echo "</table>\n";
echo "</td>\n";
echo "</tr>\n";
echo "</table>";
echo "</div>";
echo "<br /><br />";
echo "</td>";
echo "</tr>";
echo "</table>";
echo "</div>";
echo "<br /><br />";
//include the footer

View File

@@ -80,7 +80,7 @@ require_once "resources/require.php";
}
//prepare to page the results
$rows_per_page = 100;
$rows_per_page = ($_SESSION['domain']['paging']['numeric'] != '') ? $_SESSION['domain']['paging']['numeric'] : 50;
$param = "";
$page = $_GET['page'];
if (strlen($page) == 0) { $page = 0; $_GET['page'] = 0; }

View File

@@ -62,7 +62,7 @@ else {
$num_rows = count($result);
unset ($prep_statement, $result, $sql);
$rows_per_page = 10;
$rows_per_page = ($_SESSION['domain']['paging']['numeric'] != '') ? $_SESSION['domain']['paging']['numeric'] : 50;
$param = "";
$page = $_GET['page'];
if (strlen($page) == 0) { $page = 0; $_GET['page'] = 0; }

View File

@@ -242,7 +242,7 @@ require_once "resources/header.php";
echo "<div align='center'>";
echo "<table width='100%' border='0' cellpadding='0' cellspacing='2'>\n";
echo "<tr class='border'>\n";
echo "<tr>\n";
echo " <td align=\"center\">\n";
echo " <br>";

View File

@@ -69,7 +69,7 @@ else {
$result = $prep_statement->fetchAll(PDO::FETCH_NAMED);
$num_rows = count($result);
unset ($prep_statement, $result, $sql);
$rows_per_page = 100;
$rows_per_page = ($_SESSION['domain']['paging']['numeric'] != '') ? $_SESSION['domain']['paging']['numeric'] : 50;
$param = "";
$page = $_GET['page'];
if (strlen($page) == 0) { $page = 0; $_GET['page'] = 0; }

View File

@@ -77,7 +77,7 @@ else {
$result = $prep_statement->fetchAll(PDO::FETCH_NAMED);
$num_rows = count($result);
unset ($prep_statement, $result, $sql);
$rows_per_page = 100;
$rows_per_page = ($_SESSION['domain']['paging']['numeric'] != '') ? $_SESSION['domain']['paging']['numeric'] : 50;
$param = "";
$page = $_GET['page'];
if (strlen($page) == 0) { $page = 0; $_GET['page'] = 0; }

View File

@@ -86,7 +86,7 @@ else {
$num_rows = count($result);
unset ($prep_statement, $result, $sql);
$rows_per_page = 100;
$rows_per_page = ($_SESSION['domain']['paging']['numeric'] != '') ? $_SESSION['domain']['paging']['numeric'] : 50;
$param = "";
$page = $_GET['page'];
if (strlen($page) == 0) { $page = 0; $_GET['page'] = 0; }

View File

@@ -77,7 +77,7 @@ require_once "resources/paging.php";
}
//prepare to page the results
$rows_per_page = 10;
$rows_per_page = ($_SESSION['domain']['paging']['numeric'] != '') ? $_SESSION['domain']['paging']['numeric'] : 50;
$param = "";
$page = $_GET['page'];
if (strlen($page) == 0) { $page = 0; $_GET['page'] = 0; }

View File

@@ -91,7 +91,7 @@ else {
}
}
else {
$rows_per_page = 150;
$rows_per_page = ($_SESSION['domain']['paging']['numeric'] != '') ? $_SESSION['domain']['paging']['numeric'] : 50;
}
$param = "&search=".$search;
$page = $_GET['page'];
@@ -102,6 +102,7 @@ else {
//rework select data query
$sql = str_replace('count(extension_uuid) as count', '*', $sql);
$sql .= ' order by cast(extension as int) asc';
$sql .= " limit ".$rows_per_page." offset ".$offset." ";
//execute select data query

View File

@@ -95,7 +95,7 @@ else {
}
//prepare to page the results
$rows_per_page = 10;
$rows_per_page = ($_SESSION['domain']['paging']['numeric'] != '') ? $_SESSION['domain']['paging']['numeric'] : 50;
$param = "";
$page = $_GET['page'];
if (strlen($page) == 0) { $page = 0; $_GET['page'] = 0; }

View File

@@ -175,7 +175,7 @@ else {
$row_count = $conference_center->room_count();
//prepare to page the results
$rows_per_page = 150;
$rows_per_page = ($_SESSION['domain']['paging']['numeric'] != '') ? $_SESSION['domain']['paging']['numeric'] : 50;
$param = "";
$page = check_str($_GET['page']);
if (strlen($page) == 0) { $page = 0; $_GET['page'] = 0; }

View File

@@ -127,7 +127,7 @@ else {
}
//prepare to page the results
$rows_per_page = 500;
$rows_per_page = ($_SESSION['domain']['paging']['numeric'] != '') ? $_SESSION['domain']['paging']['numeric'] : 50;
$param = "";
$page = $_GET['page'];
if (strlen($page) == 0) { $page = 0; $_GET['page'] = 0; }

View File

@@ -81,7 +81,7 @@ else {
}
//prepare to page the results
$rows_per_page = 150;
$rows_per_page = ($_SESSION['domain']['paging']['numeric'] != '') ? $_SESSION['domain']['paging']['numeric'] : 50;
$param = "";
$page = $_GET['page'];
if (strlen($page) == 0) { $page = 0; $_GET['page'] = 0; }

View File

@@ -88,7 +88,7 @@ else {
}
//prepare to page the results
$rows_per_page = 10;
$rows_per_page = ($_SESSION['domain']['paging']['numeric'] != '') ? $_SESSION['domain']['paging']['numeric'] : 50;
$param = "";
$page = $_GET['page'];
if (strlen($page) == 0) { $page = 0; $_GET['page'] = 0; }

View File

@@ -312,9 +312,9 @@ if (!permission_exists('contact_time_add')) { echo "access denied"; exit; }
});
setTimeout(ajax_get, refresh);
};
<? if ($timer_state == 'running') { ?>
<?php if ($timer_state == 'running') { ?>
ajax_get();
<? } ?>
<?php } ?>
});
//set window title to time when timer is running
@@ -350,11 +350,11 @@ if (!permission_exists('contact_time_add')) { echo "access denied"; exit; }
</table>
<br>
<center>
<? if ($timer_state == 'running') { ?>
<?php if ($timer_state == 'running') { ?>
<input type='submit' class='btn' value="<?php echo $text['button-stop']; ?>">
<? } else if ($timer_state == 'stopped') { ?>
<?php } else if ($timer_state == 'stopped') { ?>
<input type='submit' class='btn' value="<?php echo $text['button-start']; ?>">
<? } ?>
<?php } ?>
</center>
</form>
</body>

View File

@@ -166,7 +166,7 @@ else {
}
//prepare to page the results
$rows_per_page = 100;
$rows_per_page = ($_SESSION['domain']['paging']['numeric'] != '') ? $_SESSION['domain']['paging']['numeric'] : 50;
$param = "";
$page = $_GET['page'];
if (strlen($page) == 0) { $page = 0; $_GET['page'] = 0; }

View File

@@ -40,10 +40,8 @@ else {
//get the http values and set them as variables
$search = check_str($_GET["search"]);
if (isset($_GET["order_by"])) {
$order_by = check_str($_GET["order_by"]);
$order = check_str($_GET["order"]);
}
$order_by = check_str($_GET["order_by"]);
$order = check_str($_GET["order"]);
//includes and title
require_once "resources/header.php";
@@ -82,7 +80,7 @@ else {
}
//prepare to page the results
$rows_per_page = 150;
$rows_per_page = ($_SESSION['domain']['paging']['numeric'] != '') ? $_SESSION['domain']['paging']['numeric'] : 50;
$param = "&search=".$search;
if ($_GET['showall'] && permission_exists('destination_all')) {
$param .= "&showall=true";
@@ -113,7 +111,17 @@ else {
$sql .= " or destination_description like '%".$search."%' ";
$sql .= ") ";
}
if (strlen($order_by) > 0) { $sql .= "order by $order_by $order "; }
if (strlen($order_by) > 0) {
if ($order_by == 'destination_type') {
$sql .= "order by destination_type ".$order.", destination_number asc ";
}
else {
$sql .= "order by ".$order_by." ".$order." ";
}
}
else {
$sql .= "order by destination_type asc, destination_number asc ";
}
$sql .= "limit $rows_per_page offset $offset ";
$prep_statement = $db->prepare(check_sql($sql));
$prep_statement->execute();

View File

@@ -85,7 +85,7 @@ else {
}
//prepare to page the results
$rows_per_page = 50;
$rows_per_page = ($_SESSION['domain']['paging']['numeric'] != '') ? $_SESSION['domain']['paging']['numeric'] : 50;
$param = "";
$page = $_GET['page'];
if (strlen($page) == 0) { $page = 0; $_GET['page'] = 0; }

View File

@@ -77,7 +77,7 @@ require_once "resources/paging.php";
}
//prepare to page the results
$rows_per_page = 100;
$rows_per_page = ($_SESSION['domain']['paging']['numeric'] != '') ? $_SESSION['domain']['paging']['numeric'] : 50;
$param = "";
$page = $_GET['page'];
if (strlen($page) == 0) { $page = 0; $_GET['page'] = 0; }

View File

@@ -98,7 +98,7 @@ else {
}
//prepare to page the results
$rows_per_page = 150;
$rows_per_page = ($_SESSION['domain']['paging']['numeric'] != '') ? $_SESSION['domain']['paging']['numeric'] : 50;
if ($_GET['showall'] && permission_exists('device_all')) {
$param = "&showall=true";
} else {

View File

@@ -521,7 +521,7 @@ else {
//display the results
if ($result_count > 0) {
echo "<table width='100%' border='0' cellpadding='0' cellspacing='2' style='margin: -2px;'>\n";
echo "<table width='100%' border='0' cellpadding='0' cellspacing='2' style='margin: -2px; border-collapse: separate; border-spacing: 2px;'>\n";
$x = 0;
foreach($details as $group) {
@@ -656,7 +656,7 @@ else {
//echo " <input type='button' id='btn_select_to_input_dialplan_detail_type' class='btn' style='visibility:hidden;' name='' alt='".$text['button-back']."' onclick='change_to_input(document.getElementById(\"dialplan_detail_type\"));this.style.visibility = \"hidden\";' value='&#9665;'>\n";
echo "</td>\n";
//data
echo "<td class='vtablerow' onclick=\"label_to_form('label_dialplan_detail_data_".$x."','dialplan_detail_data_".$x."');\" style='width: 100%; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;' nowrap='nowrap'>\n";
echo "<td class='vtablerow' onclick=\"label_to_form('label_dialplan_detail_data_".$x."','dialplan_detail_data_".$x."');\" style='width: 100%; max-width: 150px; overflow: hidden; _text-overflow: ellipsis; white-space: nowrap;' nowrap='nowrap'>\n";
if ($element['hidden']) {
$dialplan_detail_data_mod = $dialplan_detail_data;
if ($dialplan_detail_type == 'bridge') {
@@ -760,7 +760,7 @@ else {
//end the row
echo "</tr>\n";
if ($index != 999) {
echo "<tr><td colspan='7'><img src='about:blank;' style='width: 100%; height: 1px; border-bottom: 1px solid #e5e9f0;'></td></tr>";
echo "<tr><td colspan='7' style='margin: 0; padding: 0;'><img src='about:blank;' style='width: 100%; height: 1px; border-bottom: 1px solid #e5e9f0; margin: 0; padding: 0; display: block;'></td></tr>";
}
//increment the value
$x++;

View File

@@ -186,7 +186,7 @@ else {
}
unset($prep_statement, $result);
$rows_per_page = 150;
$rows_per_page = ($_SESSION['domain']['paging']['numeric'] != '') ? $_SESSION['domain']['paging']['numeric'] : 50;
$param = "";
if (strlen($app_uuid) > 0) { $param = "&app_uuid=".$app_uuid; }
$page = $_GET['page'];

View File

@@ -23,19 +23,7 @@
Contributor(s):
Mark J Crane <markjcrane@fusionpbx.com>
*/
/*
echo "<br><br>";
echo "</td></tr></table>";
echo "<span class='smalltext'>";
echo "fusionpbx ";
echo "&nbsp; &nbsp; &nbsp; &nbsp; ";
echo "<a href='http://fusionpbx.com'>http://fusionpbx.com</a>";
echo "&nbsp; &nbsp; &nbsp; &nbsp; ";
echo "Author: Mark J. Crane ";
echo "</span>";
*/
echo "<div>";
echo "</body>";
echo "</html>";

View File

@@ -58,7 +58,7 @@ else {
if ($_REQUEST['a'] == 'resend' && permission_exists('email_resend')) {
$email_uuid = check_str($_REQUEST["id"]);
$resend = true;
$msg_found = false;
if ($email_uuid != '') {
@@ -147,7 +147,7 @@ else {
}
//prepare to page the results
$rows_per_page = 50;
$rows_per_page = ($_SESSION['domain']['paging']['numeric'] != '') ? $_SESSION['domain']['paging']['numeric'] : 50;
if (permission_exists('emails_all') && $_REQUEST['showall'] == 'true') {
$param .= "&showall=true";
} else {

View File

@@ -77,7 +77,7 @@ require_once "resources/paging.php";
}
//prepare to page the results
$rows_per_page = 100;
$rows_per_page = ($_SESSION['domain']['paging']['numeric'] != '') ? $_SESSION['domain']['paging']['numeric'] : 50;
$param = "";
$page = $_GET['page'];
if (strlen($page) == 0) { $page = 0; $_GET['page'] = 0; }

View File

@@ -40,10 +40,8 @@ else {
//get the http values and set them as variables
$search = check_str($_GET["search"]);
if (isset($_GET["order_by"])) {
$order_by = check_str($_GET["order_by"]);
$order = check_str($_GET["order"]);
}
$order_by = check_str($_GET["order_by"]);
$order = check_str($_GET["order"]);
//handle search term
$search = check_str($_GET["search"]);
@@ -88,7 +86,7 @@ require_once "resources/paging.php";
unset($prep_statement, $result);
//prepare to page the results
$rows_per_page = 150;
$rows_per_page = ($_SESSION['domain']['paging']['numeric'] != '') ? $_SESSION['domain']['paging']['numeric'] : 50;
$param = "&search=".$search;
if (!isset($_GET['page'])) { $_GET['page'] = 0; }
$_GET['page'] = check_str($_GET['page']);
@@ -100,11 +98,11 @@ require_once "resources/paging.php";
$sql = "select * from v_extensions ";
$sql .= "where domain_uuid = '$domain_uuid' ";
$sql .= $sql_mod; //add search mod from above
if (isset($order_by)) {
$sql .= "order by $order_by $order ";
if (strlen($order_by) > 0) {
$sql .= ($order_by == 'extension') ? "order by cast(extension as int) ".$order." " : "order by ".$order_by." ".$order." ";
}
else {
$sql .= "order by extension asc ";
$sql .= "order by cast(extension as int) asc ";
}
$sql .= " limit $rows_per_page offset $offset ";
$prep_statement = $db->prepare(check_sql($sql));

View File

@@ -72,7 +72,7 @@ else {
}
unset($prep_statement, $result);
$rows_per_page = 150;
$rows_per_page = ($_SESSION['domain']['paging']['numeric'] != '') ? $_SESSION['domain']['paging']['numeric'] : 50;
$param = "";
$page = check_str($_GET['page']);
if (strlen($page) == 0) { $page = 0; $_GET['page'] = 0; }

View File

@@ -193,7 +193,7 @@ else {
}
//prepare to page the results
$rows_per_page = 50;
$rows_per_page = ($_SESSION['domain']['paging']['numeric'] != '') ? $_SESSION['domain']['paging']['numeric'] : 50;
$param = "&id=".$_GET['id']."&box=".$_GET['box']."&order_by=".$_GET['order_by']."&order=".$_GET['order'];
$page = $_GET['page'];
if (strlen($page) == 0) { $page = 0; $_GET['page'] = 0; }

View File

@@ -61,7 +61,7 @@ else {
}
//prepare to page the results
$rows_per_page = 50;
$rows_per_page = ($_SESSION['domain']['paging']['numeric'] != '') ? $_SESSION['domain']['paging']['numeric'] : 50;
$param = "&id=".$fax_uuid."&order_by=".$order_by."&order=".$order;
$page = $_GET['page'];
if (strlen($page) == 0) { $page = 0; $_GET['page'] = 0; }

View File

@@ -139,7 +139,7 @@ else {
$gateways = $prep_statement->fetchAll(PDO::FETCH_NAMED);
unset ($prep_statement, $sql);
$rows_per_page = 150;
$rows_per_page = ($_SESSION['domain']['paging']['numeric'] != '') ? $_SESSION['domain']['paging']['numeric'] : 50;
$param = "";
$page = check_str($_GET['page']);
if (strlen($page) == 0) { $page = 0; }

View File

@@ -73,7 +73,7 @@ else {
unset($prep_statement, $result);
//prepare to page the results
$rows_per_page = 150;
$rows_per_page = ($_SESSION['domain']['paging']['numeric'] != '') ? $_SESSION['domain']['paging']['numeric'] : 50;
$param = $_SERVER["QUERY_STRING"];
if (!isset($_GET['page'])) { $_GET['page'] = 0; }
$_GET['page'] = check_str($_GET['page']);

View File

@@ -75,7 +75,7 @@ else {
$total_ivr_menus = $num_rows;
//prepare to page the results
$rows_per_page = 150;
$rows_per_page = ($_SESSION['domain']['paging']['numeric'] != '') ? $_SESSION['domain']['paging']['numeric'] : 50;
$param = "";
if (!isset($_GET['page'])) { $_GET['page'] = 0; }
$_GET['page'] = check_str($_GET['page']);

View File

@@ -313,7 +313,7 @@ else {
echo "<input name='type' type='hidden' value='moh'>\n";
echo "<table cellpadding='0' cellspacing='0' border='0'>\n";
echo " <tr>\n";
echo " <td style='padding-right: 15px;' nowrap>\n";
echo " <td style='padding-right: 15px; white-space: nowrap'>\n";
echo " ".$text['label-file-path'];
echo " <input name='upload_file' id='upload_file' type='file' class='formfld fileinput' style='width: 300px; margin-right: 3px;' onchange=\"check_filetype(this);\">";
echo "<input type='button' class='btn' value='".$text['button-clear']."' onclick=\"reset_file_input('upload_file'); document.getElementById('sampling_rate').style.display='inline';\">\n";
@@ -376,7 +376,6 @@ else {
$c = 0;
$row_style["0"] = "row_style0";
$row_style["1"] = "row_style1";
$row_style["2"] = "row_style2";
//show the default category
if (permission_exists('music_on_hold_default_view')) {
@@ -411,7 +410,7 @@ else {
echo "<tr>\n";
echo " <td class='".$row_style[$c]."'>".$file."</td>\n";
if (strlen($file) > 0) {
echo " <td valign='top' class='".$row_style["2"]." ".((!$c) ? "row_style_hor_mir_grad" : null)." tr_link_void'>";
echo " <td valign='top' class='".$row_style[$c]." row_style_slim tr_link_void'>";
$recording_file_path = $file;
$recording_file_name = strtolower(pathinfo($recording_file_path, PATHINFO_BASENAME));
$recording_file_ext = pathinfo($recording_file_name, PATHINFO_EXTENSION);
@@ -485,7 +484,7 @@ else {
echo "<tr>\n";
echo " <td class='".$row_style[$c]."'>".$file."</td>\n";
if (strlen($file) > 0) {
echo " <td valign='top' class='".$row_style["2"]." ".((!$c) ? "row_style_hor_mir_grad" : null)." tr_link_void'>";
echo " <td valign='top' class='".$row_style[$c]." row_style_slim tr_link_void'>";
$recording_file_path = $file;
$recording_file_name = strtolower(pathinfo($row['recording_filename'], PATHINFO_BASENAME));
$recording_file_ext = pathinfo($recording_file_name, PATHINFO_EXTENSION);

View File

@@ -69,7 +69,7 @@ require_once "resources/check_auth.php";
$num_rows = count($result);
unset ($prep_statement, $result, $sql);
$rows_per_page = 50;
$rows_per_page = ($_SESSION['domain']['paging']['numeric'] != '') ? $_SESSION['domain']['paging']['numeric'] : 50;
$param = "";
$page = $_GET['page'];
if (strlen($page) == 0) { $page = 0; $_GET['page'] = 0; }

View File

@@ -264,7 +264,7 @@ require_once "resources/check_auth.php";
$num_rows = count($result);
unset ($prep_statement, $result, $sql);
$rows_per_page = 100;
$rows_per_page = ($_SESSION['domain']['paging']['numeric'] != '') ? $_SESSION['domain']['paging']['numeric'] : 50;
$param = "&order_by=".$order_by."&order=".$order;
$page = $_GET['page'];
if (strlen($page) == 0) { $page = 0; $_GET['page'] = 0; }
@@ -284,7 +284,6 @@ require_once "resources/check_auth.php";
$c = 0;
$row_style["0"] = "row_style0";
$row_style["1"] = "row_style1";
$row_style["2"] = "row_style2";
echo "<table class='tr_hover' width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
echo "<tr>\n";
@@ -307,7 +306,7 @@ require_once "resources/check_auth.php";
foreach($result as $row) {
//playback progress bar
if (permission_exists('recording_play')) {
echo "<tr id='recording_progress_bar_".$row['recording_uuid']."' style='display: none;'><td colspan='".$colspan."'><span class='playback_progress_bar' id='recording_progress_".$row['recording_uuid']."'></span></td></tr>\n";
echo "<tr id='recording_progress_bar_".$row['recording_uuid']."' style='display: none;'><td class='".$row_style[$c]."' style='border: none; padding: 0;' colspan='".$colspan."'><span class='playback_progress_bar' id='recording_progress_".$row['recording_uuid']."'></span></td></tr>\n";
}
$tr_link = (permission_exists('recording_edit')) ? "href='recording_edit.php?id=".$row['recording_uuid']."'" : null;
echo "<tr ".$tr_link.">\n";
@@ -319,7 +318,7 @@ require_once "resources/check_auth.php";
echo " <td class='".$row_style[$c]."' style='text-align: center;'>".$tmp_filesize."</td>\n";
}
if (permission_exists('recording_play') || permission_exists('recording_download')) {
echo " <td valign='top' class='".$row_style["2"]." ".((!$c) ? "row_style_hor_mir_grad" : null)." tr_link_void'>";
echo " <td valign='top' class='".$row_style[$c]." row_style_slim tr_link_void'>";
if (permission_exists('recording_play')) {
$recording_file_path = $row['recording_filename'];
$recording_file_name = strtolower(pathinfo($recording_file_path, PATHINFO_BASENAME));

View File

@@ -96,7 +96,7 @@ require_once "resources/paging.php";
}
}
else {
$rows_per_page = 150;
$rows_per_page = ($_SESSION['domain']['paging']['numeric'] != '') ? $_SESSION['domain']['paging']['numeric'] : 50;
}
$param = "";
$page = $_GET['page'];

View File

@@ -83,7 +83,7 @@ require_once "resources/paging.php";
}
//prepare to page the results
$rows_per_page = 150;
$rows_per_page = ($_SESSION['domain']['paging']['numeric'] != '') ? $_SESSION['domain']['paging']['numeric'] : 50;
$param = "";
$page = $_GET['page'];
if (strlen($page) == 0) { $page = 0; $_GET['page'] = 0; }

View File

@@ -133,7 +133,7 @@ if (strlen($_GET["a"]) > 0) {
$result = $prep_statement->fetchAll(PDO::FETCH_NAMED);
$num_rows = count($result);
unset ($prep_statement, $result, $sql);
$rows_per_page = 10;
$rows_per_page = ($_SESSION['domain']['paging']['numeric'] != '') ? $_SESSION['domain']['paging']['numeric'] : 50;
$param = "";
$page = $_GET['page'];
if (strlen($page) == 0) { $page = 0; $_GET['page'] = 0; }

View File

@@ -64,7 +64,7 @@ require_once "resources/paging.php";
}
//prepare to page the results
$rows_per_page = 200;
$rows_per_page = ($_SESSION['domain']['paging']['numeric'] != '') ? $_SESSION['domain']['paging']['numeric'] : 50;
$param = "";
$page = $_GET['page'];
if (strlen($page) == 0) { $page = 0; $_GET['page'] = 0; }

View File

@@ -80,7 +80,7 @@ require_once "resources/paging.php";
}
//prepare to page the results
$rows_per_page = 10;
$rows_per_page = ($_SESSION['domain']['paging']['numeric'] != '') ? $_SESSION['domain']['paging']['numeric'] : 50;
$param = "";
$page = $_GET['page'];
if (strlen($page) == 0) { $page = 0; $_GET['page'] = 0; }

View File

@@ -124,7 +124,7 @@ else {
}
unset($prep_statement, $result);
$rows_per_page = 150;
$rows_per_page = ($_SESSION['domain']['paging']['numeric'] != '') ? $_SESSION['domain']['paging']['numeric'] : 50;
$param = "";
if (strlen($app_uuid) > 0) { $param = "&app_uuid=".$app_uuid; }
$page = $_GET['page'];

View File

@@ -352,7 +352,6 @@ require_once "resources/check_auth.php";
$c = 0;
$row_style["0"] = "row_style0";
$row_style["1"] = "row_style1";
$row_style["2"] = "row_style2";
echo "<table class='tr_hover' width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
echo "<tr>\n";
@@ -397,7 +396,7 @@ require_once "resources/check_auth.php";
echo " <td class='".$row_style[$c]."' style='text-align: right;' nowrap>".$tmp_filesize."</td>\n";
}
if (permission_exists('voicemail_greeting_play') || permission_exists('voicemail_greeting_download')) {
echo " <td valign='top' class='".$row_style["2"]." ".((!$c) ? "row_style_hor_mir_grad" : null)." tr_link_void'>";
echo " <td valign='top' class='".$row_style[$c]." row_style_slim tr_link_void'>";
if (permission_exists('voicemail_greeting_play')) {
$greeting_file_path = $row['greeting_filename'];
$greeting_file_name = strtolower(pathinfo($greeting_file_path, PATHINFO_BASENAME));

View File

@@ -88,6 +88,20 @@ $text['option-voicemail_file_attach']['uk'] = "Приєднати аудіофа
$text['option-voicemail_file_attach']['de-at'] = "Audiodatei als Anhang";
$text['option-voicemail_file_attach']['he'] = "";
$text['message-toggled']['en-us'] = "Toggle Completed";
$text['message-toggled']['es-cl'] = "Alternar Completado";
$text['message-toggled']['pt-pt'] = "Alternar Concluído";
$text['message-toggled']['fr-fr'] = "Basculer Terminé";
$text['message-toggled']['pt-br'] = "Alternar Concluído";
$text['message-toggled']['pl'] = "Przegubowe Zakończony";
$text['message-toggled']['he'] = "הושלם Toggle";
$text['message-toggled']['uk'] = "переключити Завершений";
$text['message-toggled']['sv-se'] = "Växla Avslutade";
$text['message-toggled']['de-at'] = "Toggle Completed";
$text['message-toggled']['ro'] = "Completat toggle";
$text['message-toggled']['fa'] = "";
$text['message-toggled']['ar-eg'] = "الانتهاء من تبديل";
$text['message-messages_not_found']['en-us'] = "No messages found.";
$text['message-messages_not_found']['es-cl'] = "No hay mensajes encontrados.";
$text['message-messages_not_found']['pt-pt'] = "Nenhuma mensagem encontrada.";
@@ -662,6 +676,20 @@ $text['description-caller_id_name']['uk'] = "Caller ID Ім’я";
$text['description-caller_id_name']['de-at'] = "Anruferkennung (Name)";
$text['description-caller_id_name']['he'] = "";
$text['button-toggle']['en-us'] = "Toggle";
$text['button-toggle']['es-cl'] = "Palanca";
$text['button-toggle']['pt-pt'] = "Alternar";
$text['button-toggle']['fr-fr'] = "Basculer";
$text['button-toggle']['pt-br'] = "Alternar";
$text['button-toggle']['pl'] = "Przełącznik";
$text['button-toggle']['he'] = "לְמַתֵג";
$text['button-toggle']['uk'] = "тумблер";
$text['button-toggle']['sv-se'] = "toggle";
$text['button-toggle']['de-at'] = "Umschalten";
$text['button-toggle']['ro'] = "Comutare";
$text['button-toggle']['fa'] = "";
$text['button-toggle']['ar-eg'] = "تبديل";
$text['button-settings']['en-us'] = "Settings";
$text['button-settings']['es-cl'] = "Configuraciones";
$text['button-settings']['pt-pt'] = "Definições";

View File

@@ -250,11 +250,11 @@
public function message_waiting() {
//send the message waiting status
$fp = event_socket_create($_SESSION['event_socket_ip_address'], $_SESSION['event_socket_port'], $_SESSION['event_socket_password']);
if ($fp) {
$switch_cmd .= "luarun app.lua voicemail mwi ".$this->voicemail_id."@".$_SESSION['domain_name'];
$switch_result = event_socket_request($fp, 'api '.$switch_cmd);
}
$fp = event_socket_create($_SESSION['event_socket_ip_address'], $_SESSION['event_socket_port'], $_SESSION['event_socket_password']);
if ($fp) {
$switch_cmd .= "luarun app.lua voicemail mwi ".$this->voicemail_id."@".$_SESSION['domain_name'];
$switch_result = event_socket_request($fp, 'api '.$switch_cmd);
}
}
public function message_delete() {
@@ -300,13 +300,54 @@
$this->message_waiting();
}
public function message_toggle() {
//get the voicemail_id
if (!isset($this->voicemail_id)) {
$sql = "select voicemail_id from v_voicemails ";
$sql .= "where domain_uuid = '".$_SESSION['domain_uuid']."' ";
$sql .= "and voicemail_uuid = '".$this->voicemail_uuid."' ";
$prep_statement = $this->db->prepare(check_sql($sql));
$prep_statement->execute();
$result = $prep_statement->fetchAll(PDO::FETCH_NAMED);
foreach ($result as &$row) {
$this->voicemail_id = $row["voicemail_id"];
}
unset ($prep_statement);
}
//get message status
$sql = "select message_status from v_voicemail_messages ";
$sql .= "where domain_uuid = '".$this->domain_uuid."' ";
$sql .= "and voicemail_uuid = '".$this->voicemail_uuid."' ";
$sql .= "and voicemail_message_uuid = '".$this->voicemail_message_uuid."' ";
$prep_statement = $this->db->prepare(check_sql($sql));
$prep_statement->execute();
$row = $prep_statement->fetch(PDO::FETCH_NAMED);
$new_status = ($row['message_status'] == 'saved') ? 'null' : "'saved'";
unset($sql, $prep_statement, $row);
//set message status
$sql = "update v_voicemail_messages set ";
$sql .= "message_status = ".$new_status." ";
$sql .= "where domain_uuid = '".$this->domain_uuid."' ";
$sql .= "and voicemail_uuid = '".$this->voicemail_uuid."' ";
$sql .= "and voicemail_message_uuid = '".$this->voicemail_message_uuid."' ";
$prep_statement = $this->db->prepare(check_sql($sql));
$prep_statement->execute();
unset($sql, $prep_statement);
//check the message waiting status
$this->message_waiting();
}
public function message_saved() {
//set the voicemail status to saved
$sql = "update v_voicemail_messages set ";
$sql .= "message_status = 'saved' ";
$sql .= "where domain_uuid = '$this->domain_uuid' ";
$sql .= "and voicemail_uuid = '$this->voicemail_uuid' ";
$sql .= "and voicemail_message_uuid = '$this->voicemail_message_uuid'";
$sql .= "where domain_uuid = '".$this->domain_uuid."' ";
$sql .= "and voicemail_uuid = '".$this->voicemail_uuid."' ";
$sql .= "and voicemail_message_uuid = '".$this->voicemail_message_uuid."' ";
$prep_statement = $this->db->prepare(check_sql($sql));
$prep_statement->execute();
unset($sql, $prep_statement);

View File

@@ -0,0 +1,78 @@
<?php
/*
FusionPBX
Version: MPL 1.1
The contents of this file are subject to the Mozilla Public License Version
1.1 (the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS IS" basis,
WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
for the specific language governing rights and limitations under the
License.
The Original Code is FusionPBX
The Initial Developer of the Original Code is
Mark J Crane <markjcrane@fusionpbx.com>
Portions created by the Initial Developer are Copyright (C) 2008-2012
the Initial Developer. All Rights Reserved.
Contributor(s):
Mark J Crane <markjcrane@fusionpbx.com>
*/
require_once "root.php";
require_once "resources/require.php";
require_once "resources/check_auth.php";
if (permission_exists('voicemail_message_view')) {
//access granted
}
else {
echo "access denied";
exit;
}
//add multi-lingual support
$language = new text;
$text = $language->get();
//get submitted variables
$voicemail_messages = $_REQUEST["voicemail_messages"];
//toggle the voicemail message
$toggled = 0;
if (is_array($voicemail_messages) && sizeof($voicemail_messages) > 0) {
require_once "resources/classes/voicemail.php";
foreach ($voicemail_messages as $voicemail_uuid => $voicemail_message_uuids) {
foreach ($voicemail_message_uuids as $voicemail_message_uuid) {
$voicemail = new voicemail;
$voicemail->db = $db;
$voicemail->domain_uuid = $_SESSION['domain_uuid'];
$voicemail->voicemail_uuid = check_str($voicemail_uuid);
$voicemail->voicemail_message_uuid = check_str($voicemail_message_uuid);
$result = $voicemail->message_toggle();
unset($voicemail);
$toggled++;
}
}
}
//set the referrer
$http_referer = parse_url($_SERVER["HTTP_REFERER"]);
$referer_path = $http_referer['path'];
$referer_query = $http_referer['query'];
//redirect the user
if ($toggled > 0) {
$_SESSION["message"] = $text['message-toggled'].': '.$toggled;
}
if ($referer_path == PROJECT_PATH."/app/voicemails/voicemail_messages.php") {
header("Location: voicemail_messages.php?".$referer_query);
}
else {
header("Location: voicemails.php");
}
?>

View File

@@ -93,12 +93,11 @@ if (!(check_str($_REQUEST["action"]) == "download" && check_str($_REQUEST["src"]
$c = 0;
$row_style["0"] = "row_style0";
$row_style["1"] = "row_style1";
$row_style["2"] = "row_style2";
//loop through the voicemail messages
if (count($voicemails) > 0) {
echo "<form name='frm' id='frm' method='post' action='voicemail_message_delete.php'>\n";
echo "<form name='frm' id='frm' method='post' action=''>\n";
echo "<br />";
echo "<table class='tr_hover' width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
@@ -113,11 +112,12 @@ if (!(check_str($_REQUEST["action"]) == "download" && check_str($_REQUEST["src"]
echo " <b>".$text['label-mailbox'].": ".$field['voicemail_id']." </b><br />&nbsp;\n";
echo " </td>\n";
echo " <td colspan='".(($_SESSION['voicemail']['storage_type']['text'] != 'base64') ? 3 : 2)."' valign='bottom' align='right'>\n";
echo " <input type='button' class='btn' alt='".$text['button-toggle']."' onclick=\"$('#frm').attr('action', 'voicemail_message_toggle.php').submit();\" value='".$text['button-toggle']."'>\n";
if (permission_exists('voicemail_greeting_view')) {
echo " <input type='button' class='btn' alt='greetings' onclick=\"window.location='".PROJECT_PATH."/app/voicemail_greetings/voicemail_greetings.php?id=".$field['voicemail_id']."'\" value='".$text['button-greetings']."'>\n";
echo " <input type='button' class='btn' alt='".$text['button-greetings']."' onclick=\"document.location.href='".PROJECT_PATH."/app/voicemail_greetings/voicemail_greetings.php?id=".$field['voicemail_id']."'\" value='".$text['button-greetings']."'>\n";
}
if (permission_exists('voicemail_edit')) {
echo " <input type='button' class='btn' alt='settings' onclick=\"window.location='".PROJECT_PATH."/app/voicemails/voicemail_edit.php?id=".$field['voicemail_uuid']."'\" value='".$text['button-settings']."'>\n";
echo " <input type='button' class='btn' alt='".$text['button-settings']."' onclick=\"document.location.href='voicemail_edit.php?id=".$field['voicemail_uuid']."'\" value='".$text['button-settings']."'>\n";
}
echo " <br /><br />";
echo " </td>\n";
@@ -139,7 +139,7 @@ if (!(check_str($_REQUEST["action"]) == "download" && check_str($_REQUEST["src"]
}
if (permission_exists('voicemail_message_delete')) {
echo "<td class='list_control_icons' style='width: 25px;'>";
echo "<a href='javascript:void(0);' onclick=\"if (confirm('".$text['confirm-delete']."')) { document.forms.frm.submit(); }\" alt='".$text['button-delete']."'>".$v_link_label_delete."</a>";
echo "<a href='javascript:void(0);' onclick=\"if (confirm('".$text['confirm-delete']."')) { $('#frm').attr('action', 'voicemail_message_delete.php').submit(); }\" alt='".$text['button-delete']."'>".$v_link_label_delete."</a>";
echo "</td>";
}
echo "</tr>\n";
@@ -164,7 +164,7 @@ if (!(check_str($_REQUEST["action"]) == "download" && check_str($_REQUEST["src"]
echo " <td valign='top' class='".$row_style[$c]."' style=\"".$style."\" nowrap='nowrap'>".$row['created_date']."</td>\n";
echo " <td valign='top' class='".$row_style[$c]."' style=\"".$style."\">".$row['caller_id_name']."&nbsp;</td>\n";
echo " <td valign='top' class='".$row_style[$c]."' style=\"".$style."\">".$row['caller_id_number']."&nbsp;</td>\n";
echo " <td valign='top' class='".$row_style["2"]." ".((!$c) ? "row_style_hor_mir_grad" : null)." tr_link_void' onclick=\"$(this).closest('tr').children('td').css('font-weight','normal');\">";
echo " <td valign='top' class='".$row_style[$c]." row_style_slim tr_link_void' onclick=\"$(this).closest('tr').children('td').css('font-weight','normal');\">";
$recording_file_path = $file;
$recording_file_name = strtolower(pathinfo($recording_file_path, PATHINFO_BASENAME));
$recording_file_ext = pathinfo($recording_file_name, PATHINFO_EXTENSION);
@@ -174,7 +174,7 @@ if (!(check_str($_REQUEST["action"]) == "download" && check_str($_REQUEST["src"]
case "ogg" : $recording_type = "audio/ogg"; break;
}
echo "<audio id='recording_audio_".$row['voicemail_message_uuid']."' style='display: none;' ontimeupdate=\"update_progress('".$row['voicemail_message_uuid']."')\" preload='none' onended=\"recording_reset('".$row['voicemail_message_uuid']."');\" src=\"voicemail_messages.php?action=download&id=".$row['voicemail_id']."&voicemail_uuid=".$row['voicemail_uuid']."&uuid=".$row['voicemail_message_uuid']."\" type='".$recording_type."'></audio>";
echo "<span id='recording_button_".$row['voicemail_message_uuid']."' onclick=\"recording_play('".$row['voicemail_message_uuid']."');\" title='".$text['label-play']." / ".$text['label-pause']."'>".$v_link_label_play."</span>";
echo "<a id='recording_button_".$row['voicemail_message_uuid']."' onclick=\"recording_play('".$row['voicemail_message_uuid']."');\" title='".$text['label-play']." / ".$text['label-pause']."'>".$v_link_label_play."</a>";
echo "<a href=\"voicemail_messages.php?action=download&t=bin&id=".$row['voicemail_id']."&voicemail_uuid=".$row['voicemail_uuid']."&uuid=".$row['voicemail_message_uuid']."\" title='".$text['label-download']."'>".$v_link_label_download."</a>";
echo " </td>\n";
echo " <td valign='top' class='".$row_style[$c]."' style=\"".$style." text-align: right;\">".$row['message_length_label']."&nbsp;</td>\n";

View File

@@ -38,6 +38,10 @@ else {
$language = new text;
$text = $language->get();
//retrieve order by
$order_by = check_str($_GET["order_by"]);
$order = check_str($_GET["order"]);
//set the voicemail id and voicemail uuid arrays
foreach ($_SESSION['user']['extension'] as $index => $row) {
if (strlen($row['number_alias']) > 0) {
@@ -101,10 +105,9 @@ else {
}
//prepare to page the results
$rows_per_page = 150;
$rows_per_page = ($_SESSION['domain']['paging']['numeric'] != '') ? $_SESSION['domain']['paging']['numeric'] : 50;
$param = "";
if ($search != '') { $param .= "&search=".$search; }
if ($order_by != '') { $param .= "&order_by=".$order_by."&order=".$order; }
$page = $_GET['page'];
if (strlen($page) == 0) { $page = 0; $_GET['page'] = 0; }
list($paging_controls, $rows_per_page, $var3) = paging($num_rows, $param, $rows_per_page);
@@ -112,7 +115,12 @@ else {
//get the list
$sql = str_replace('count(*) as num_rows', '*', $sql);
$sql .= ($order_by != '') ? "order by ".$order_by." ".$order." " : "order by voicemail_id asc ";
if (strlen($order_by) > 0) {
$sql .= ($order_by == 'voicemail_id') ? "order by cast(voicemail_id as int) ".$order." " : "order by ".$order_by." ".$order." ";
}
else {
$sql .= "order by cast(voicemail_id as int) asc ";
}
$sql .= "limit ".$rows_per_page." offset ".$offset." ";
$prep_statement = $db->prepare(check_sql($sql));
$prep_statement->execute();

View File

@@ -44,7 +44,7 @@ else {
require_once "resources/paging.php";
//xml cdr include
$rows_per_page = 100;
$rows_per_page = ($_SESSION['domain']['paging']['numeric'] != '') ? $_SESSION['domain']['paging']['numeric'] : 50;
require_once "xml_cdr_inc.php";
//javascript function: send_cmd
@@ -461,7 +461,7 @@ else {
//recording playback
if (permission_exists('recording_play') && $recording_file_path != '') {
echo "<tr id='recording_progress_bar_".$row['uuid']."' style='display: none;'><td colspan='".((if_group("admin") || if_group("superadmin") || if_group("cdr")) ? ($col_count - 1) : $col_count)."'><span class='playback_progress_bar' id='recording_progress_".$row['uuid']."'></span></td></tr>\n";
echo "<tr id='recording_progress_bar_".$row['uuid']."' style='display: none;'><td class='".$row_style[$c]."' style='border: none; padding: 0;' colspan='".((if_group("admin") || if_group("superadmin") || if_group("cdr")) ? ($col_count - 1) : $col_count)."'><span class='playback_progress_bar' id='recording_progress_".$row['uuid']."'></span></td></tr>\n";
}
if (if_group("admin") || if_group("superadmin") || if_group("cdr")) {
@@ -529,7 +529,7 @@ else {
//recording
if (permission_exists('recording_play') || permission_exists('recording_download')) {
if ($recording_file_path != '') {
echo " <td valign='top' align='center' class='".$row_style["2"]." ".((!$c) ? "row_style_hor_mir_grad" : null)." tr_link_void' nowrap='nowrap'>";
echo " <td valign='top' align='center' class='".$row_style[$c]." row_style_slim tr_link_void' nowrap='nowrap'>";
if (permission_exists('recording_play')) {
echo "<audio id='recording_audio_".$row['uuid']."' style='display: none;' preload='none' ontimeupdate=\"update_progress('".$row['uuid']."')\" onended=\"recording_reset('".$row['uuid']."');\" src=\"".PROJECT_PATH."/app/recordings/recordings.php?a=download&type=rec&filename=".base64_encode($recording_file_path)."\" type='".$recording_type."'></audio>";
echo "<span id='recording_button_".$row['uuid']."' onclick=\"recording_play('".$row['uuid']."')\" title='".$text['label-play']." / ".$text['label-pause']."'>".$v_link_label_play."</span>";

View File

@@ -39,7 +39,7 @@ else {
$text = $language->get();
//additional includes
$rows_per_page = 0;
$rows_per_page = ($_SESSION['domain']['paging']['numeric'] != '') ? $_SESSION['domain']['paging']['numeric'] : 50;
require_once "xml_cdr_inc.php";
//get the format

View File

@@ -292,12 +292,15 @@ else {
if ($num_rows > $_SESSION['cdr']['limit']['numeric']) {
$num_rows = $_SESSION['cdr']['limit']['numeric'];
}
if ($rows_per_page > $_SESSION['cdr']['limit']['numeric']) {
$rows_per_page = $_SESSION['cdr']['limit']['numeric'];
if ($_SESSION['domain']['paging']['numeric'] != '' && $rows_per_page > $_SESSION['domain']['paging']['numeric']) {
$rows_per_page = $_SESSION['domain']['paging']['numeric'];
}
else {
$rows_per_page = 50;
}
//prepare to page the results
//$rows_per_page = 150; //set on the page that includes this page
//$rows_per_page = ($_SESSION['domain']['paging']['numeric'] != '') ? $_SESSION['domain']['paging']['numeric'] : 50; //set on the page that includes this page
$page = $_GET['page'];
if (strlen($page) == 0) { $page = 0; $_GET['page'] = 0; }
list($paging_controls_mini, $rows_per_page, $var_3) = paging($num_rows, $param, $rows_per_page, true); //top
@@ -362,6 +365,5 @@ else {
$c = 0;
$row_style["0"] = "row_style0";
$row_style["1"] = "row_style1";
$row_style["2"] = "row_style2";
?>

View File

@@ -76,7 +76,7 @@ else {
}
//prepare to page the results
$rows_per_page = 150;
$rows_per_page = ($_SESSION['domain']['paging']['numeric'] != '') ? $_SESSION['domain']['paging']['numeric'] : 50;
$param = "";
$page = $_GET['page'];
if (strlen($page) == 0) { $page = 0; $_GET['page'] = 0; }

View File

@@ -50,6 +50,13 @@ if ($domains_processed == 1) {
$array[$x]['default_setting_enabled'] = 'true';
$array[$x]['default_setting_description'] = 'outbound,loopback,lcr';
$x++;
$array[$x]['default_setting_category'] = 'domain';
$array[$x]['default_setting_subcategory'] = 'paging';
$array[$x]['default_setting_name'] = 'numeric';
$array[$x]['default_setting_value'] = '100';
$array[$x]['default_setting_enabled'] = 'false';
$array[$x]['default_setting_description'] = 'Set the maximum number of records displayed per page. (Default: 50)';
$x++;
$array[$x]['default_setting_category'] = 'security';
$array[$x]['default_setting_subcategory'] = 'password_length';
$array[$x]['default_setting_name'] = 'var';

View File

@@ -445,36 +445,7 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
elseif ($subcategory == 'password' || substr_count($subcategory, '_password') > 0 || $category == "login" && $subcategory == "password_reset_key" && $name == "text") {
echo " <input class='formfld' type='password' id='default_setting_value' name='default_setting_value' onmouseover=\"this.type='text';\" onfocus=\"this.type='text';\" onmouseout=\"if (!$(this).is(':focus')) { this.type='password'; }\" onblur=\"this.type='password';\" maxlength='255' value=\"".$default_setting_value."\">\n";
}
elseif (
$category == "theme" && $subcategory == "body_color" && $name == "text" ||
$category == "theme" && $subcategory == "body_shadow_color" && $name == "text" ||
$category == "theme" && $subcategory == "background_color" && $name == "array" ||
$category == "theme" && $subcategory == "login_shadow_color" && $name == "text" ||
$category == "theme" && $subcategory == "login_background_color" && $name == "text" ||
$category == "theme" && $subcategory == "domain_color" && $name == "text" ||
$category == "theme" && $subcategory == "domain_shadow_color" && $name == "text" ||
$category == "theme" && $subcategory == "domain_background_color" && $name == "text" ||
$category == "theme" && $subcategory == "domain_selector_shadow_color" && $name == "text" ||
$category == "theme" && $subcategory == "footer_color" && $name == "text" ||
$category == "theme" && $subcategory == "footer_background_color" && $name == "text" ||
$category == "theme" && $subcategory == "message_default_background_color" && $name == "text" ||
$category == "theme" && $subcategory == "message_default_color" && $name == "text" ||
$category == "theme" && $subcategory == "message_negative_background_color" && $name == "text" ||
$category == "theme" && $subcategory == "message_negative_color" && $name == "text" ||
$category == "theme" && $subcategory == "message_alert_background_color" && $name == "text" ||
$category == "theme" && $subcategory == "message_alert_color" && $name == "text" ||
$category == "theme" && $subcategory == "menu_main_background_color" && $name == "text" ||
$category == "theme" && $subcategory == "menu_main_text_color" && $name == "text" ||
$category == "theme" && $subcategory == "menu_main_text_color_hover" && $name == "text" ||
$category == "theme" && $subcategory == "menu_main_shadow_color" && $name == "text" ||
$category == "theme" && $subcategory == "menu_sub_background_color" && $name == "text" ||
$category == "theme" && $subcategory == "menu_sub_background_color_hover" && $name == "text" ||
$category == "theme" && $subcategory == "menu_sub_text_color" && $name == "text" ||
$category == "theme" && $subcategory == "menu_sub_text_color_hover" && $name == "text" ||
$category == "theme" && $subcategory == "menu_sub_shadow_color" && $name == "text" ||
$category == "theme" && $subcategory == "menu_brand_text_color" && $name == "text" ||
$category == "theme" && $subcategory == "menu_brand_text_color_hover" && $name == "text"
) {
elseif ($category == "theme" && substr_count($subcategory, "_color") > 0 && ($name == "text" || $name == 'array')) {
echo " <input type='text' class='formfld colorpicker' id='default_setting_value' name='default_setting_value' value=\"".$default_setting_value."\">\n";
}
elseif ($category == "fax" && $subcategory == "page_size" && $name == "text" ) {

View File

@@ -417,6 +417,14 @@ else {
echo " ".str_repeat('*', strlen($row['default_setting_value']));
}
else {
if ($category == "theme" && substr_count($subcategory, "_color") > 0 && ($name == "text" || $name == 'array')) {
$border = (
substr_count(strtolower($row['default_setting_value']), '#fff') > 0 ||
substr_count(strtolower($row['default_setting_value']), '#ffffff') > 0 ||
substr_count(str_replace(' ','',strtolower($row['default_setting_value'])), '255,255,255,') > 0
) ? "border: 1px solid #ccc; padding: -1px;" : null;
echo " <img src='data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7' style='background: ".$row['default_setting_value']."; width: 15px; height: 15px; margin-right: 4px; vertical-align: middle; ".$border."'>";
}
echo " ".htmlspecialchars($row['default_setting_value']);
}
echo " &nbsp;\n";

View File

@@ -542,36 +542,7 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
elseif ($subcategory == 'password' || substr_count($subcategory, '_password') > 0 || $category == "login" && $subcategory == "password_reset_key" && $name == "text") {
echo " <input class='formfld' type='password' id='domain_setting_value' name='domain_setting_value' maxlength='255' onmouseover=\"this.type='text';\" onfocus=\"this.type='text';\" onmouseout=\"if (!$(this).is(':focus')) { this.type='password'; }\" onblur=\"this.type='password';\" value=\"".$row['domain_setting_value']."\">\n";
}
elseif (
$category == "theme" && $subcategory == "body_color" && $name == "text" ||
$category == "theme" && $subcategory == "body_shadow_color" && $name == "text" ||
$category == "theme" && $subcategory == "background_color" && $name == "array" ||
$category == "theme" && $subcategory == "login_shadow_color" && $name == "text" ||
$category == "theme" && $subcategory == "login_background_color" && $name == "text" ||
$category == "theme" && $subcategory == "domain_color" && $name == "text" ||
$category == "theme" && $subcategory == "domain_shadow_color" && $name == "text" ||
$category == "theme" && $subcategory == "domain_background_color" && $name == "text" ||
$category == "theme" && $subcategory == "domain_selector_shadow_color" && $name == "text" ||
$category == "theme" && $subcategory == "footer_color" && $name == "text" ||
$category == "theme" && $subcategory == "footer_background_color" && $name == "text" ||
$category == "theme" && $subcategory == "message_default_background_color" && $name == "text" ||
$category == "theme" && $subcategory == "message_default_color" && $name == "text" ||
$category == "theme" && $subcategory == "message_negative_background_color" && $name == "text" ||
$category == "theme" && $subcategory == "message_negative_color" && $name == "text" ||
$category == "theme" && $subcategory == "message_alert_background_color" && $name == "text" ||
$category == "theme" && $subcategory == "message_alert_color" && $name == "text" ||
$category == "theme" && $subcategory == "menu_main_background_color" && $name == "text" ||
$category == "theme" && $subcategory == "menu_main_text_color" && $name == "text" ||
$category == "theme" && $subcategory == "menu_main_text_color_hover" && $name == "text" ||
$category == "theme" && $subcategory == "menu_main_shadow_color" && $name == "text" ||
$category == "theme" && $subcategory == "menu_sub_background_color" && $name == "text" ||
$category == "theme" && $subcategory == "menu_sub_background_color_hover" && $name == "text" ||
$category == "theme" && $subcategory == "menu_sub_text_color" && $name == "text" ||
$category == "theme" && $subcategory == "menu_sub_text_color_hover" && $name == "text" ||
$category == "theme" && $subcategory == "menu_sub_shadow_color" && $name == "text" ||
$category == "theme" && $subcategory == "menu_brand_text_color" && $name == "text" ||
$category == "theme" && $subcategory == "menu_brand_text_color_hover" && $name == "text"
) {
elseif ($category == "theme" && substr_count($subcategory, "_color") > 0 && ($name == "text" || $name == 'array')) {
echo " <input type='text' class='formfld colorpicker' id='domain_setting_value' name='domain_setting_value' value=\"".$row['domain_setting_value']."\">\n";
}
elseif ($category == "fax" && $subcategory == "page_size" && $name == "text" ) {

View File

@@ -115,7 +115,7 @@ if (sizeof($_REQUEST) > 1) {
}
//prepare to page the results
$rows_per_page = 200;
$rows_per_page = ($_SESSION['domain']['paging']['numeric'] != '') ? $_SESSION['domain']['paging']['numeric'] : 200;
$param = "";
$page = $_GET['page'];
if (strlen($page) == 0) { $page = 0; $_GET['page'] = 0; }
@@ -240,12 +240,20 @@ if (sizeof($_REQUEST) > 1) {
( $category == "theme" && $subcategory == "menu_position" && $name == "text" ) ||
( $category == "theme" && $subcategory == "logo_align" && $name == "text" )
) {
echo " ".$text['label-'.$row['default_setting_value']];
echo " ".$text['label-'.$row['domain_setting_value']];
}
else if ($subcategory == 'password' || substr_count($subcategory, '_password') > 0 || $category == "login" && $subcategory == "password_reset_key" && $name == "text") {
echo " ".str_repeat('*', strlen($row['domain_setting_value']));
}
else {
if ($category == "theme" && substr_count($subcategory, "_color") > 0 && ($name == "text" || $name == 'array')) {
$border = (
substr_count(strtolower($row['domain_setting_value']), '#fff') > 0 ||
substr_count(strtolower($row['domain_setting_value']), '#ffffff') > 0 ||
substr_count(str_replace(' ','',strtolower($row['domain_setting_value'])), '255,255,255,') > 0
) ? "border: 1px solid #ccc; padding: -1px;" : null;
echo " <img src='data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7' style='background: ".$row['domain_setting_value']."; width: 15px; height: 15px; margin-right: 4px; vertical-align: middle; ".$border."'>";
}
echo " ".htmlspecialchars($row['domain_setting_value']);
}
echo " &nbsp;\n";

View File

@@ -132,7 +132,7 @@ require_once "resources/check_auth.php";
}
//prepare to page the results
$rows_per_page = 100;
$rows_per_page = ($_SESSION['domain']['paging']['numeric'] != '') ? $_SESSION['domain']['paging']['numeric'] : 50;
$param = "";
$page = $_GET['page'];
if (strlen($page) == 0) { $page = 0; $_GET['page'] = 0; }

View File

@@ -75,7 +75,7 @@ else {
}
//prepare to page the results
$rows_per_page = 150;
$rows_per_page = ($_SESSION['domain']['paging']['numeric'] != '') ? $_SESSION['domain']['paging']['numeric'] : 50;
$param = "";
$page = $_GET['page'];
if (strlen($page) == 0) { $page = 0; $_GET['page'] = 0; }

View File

@@ -544,36 +544,7 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
elseif ($subcategory == 'password' || substr_count($subcategory, '_password') > 0 || $category == "login" && $subcategory == "password_reset_key" && $name == "text") {
echo " <input class='formfld' type='password' id='user_setting_value' name='user_setting_value' maxlength='255' onmouseover=\"this.type='text';\" onfocus=\"this.type='text';\" onmouseout=\"if (!$(this).is(':focus')) { this.type='password'; }\" onblur=\"this.type='password';\" value=\"".$row['user_setting_value']."\">\n";
}
elseif (
$category == "theme" && $subcategory == "body_color" && $name == "text" ||
$category == "theme" && $subcategory == "body_shadow_color" && $name == "text" ||
$category == "theme" && $subcategory == "background_color" && $name == "array" ||
$category == "theme" && $subcategory == "login_shadow_color" && $name == "text" ||
$category == "theme" && $subcategory == "login_background_color" && $name == "text" ||
$category == "theme" && $subcategory == "domain_color" && $name == "text" ||
$category == "theme" && $subcategory == "domain_shadow_color" && $name == "text" ||
$category == "theme" && $subcategory == "domain_background_color" && $name == "text" ||
$category == "theme" && $subcategory == "domain_selector_shadow_color" && $name == "text" ||
$category == "theme" && $subcategory == "footer_color" && $name == "text" ||
$category == "theme" && $subcategory == "footer_background_color" && $name == "text" ||
$category == "theme" && $subcategory == "message_default_background_color" && $name == "text" ||
$category == "theme" && $subcategory == "message_default_color" && $name == "text" ||
$category == "theme" && $subcategory == "message_negative_background_color" && $name == "text" ||
$category == "theme" && $subcategory == "message_negative_color" && $name == "text" ||
$category == "theme" && $subcategory == "message_alert_background_color" && $name == "text" ||
$category == "theme" && $subcategory == "message_alert_color" && $name == "text" ||
$category == "theme" && $subcategory == "menu_main_background_color" && $name == "text" ||
$category == "theme" && $subcategory == "menu_main_text_color" && $name == "text" ||
$category == "theme" && $subcategory == "menu_main_text_color_hover" && $name == "text" ||
$category == "theme" && $subcategory == "menu_main_shadow_color" && $name == "text" ||
$category == "theme" && $subcategory == "menu_sub_background_color" && $name == "text" ||
$category == "theme" && $subcategory == "menu_sub_background_color_hover" && $name == "text" ||
$category == "theme" && $subcategory == "menu_sub_text_color" && $name == "text" ||
$category == "theme" && $subcategory == "menu_sub_text_color_hover" && $name == "text" ||
$category == "theme" && $subcategory == "menu_sub_shadow_color" && $name == "text" ||
$category == "theme" && $subcategory == "menu_brand_text_color" && $name == "text" ||
$category == "theme" && $subcategory == "menu_brand_text_color_hover" && $name == "text"
) {
elseif ($category == "theme" && substr_count($subcategory, "_color") > 0 && ($name == "text" || $name == 'array')) {
echo " <input type='text' class='formfld colorpicker' id='user_setting_value' name='user_setting_value' value=\"".$row['user_setting_value']."\">\n";
}
elseif ($category == "fax" && $subcategory == "page_size" && $name == "text" ) {

View File

@@ -82,7 +82,7 @@ else {
}
//prepare to page the results
$rows_per_page = 200;
$rows_per_page = ($_SESSION['domain']['paging']['numeric'] != '') ? $_SESSION['domain']['paging']['numeric'] : 100;
$param = "";
$page = $_GET['page'];
if (strlen($page) == 0) { $page = 0; $_GET['page'] = 0; }
@@ -211,12 +211,20 @@ else {
( $category == "theme" && $subcategory == "menu_position" && $name == "text" ) ||
( $category == "theme" && $subcategory == "logo_align" && $name == "text" )
) {
echo " ".$text['label-'.$row['default_setting_value']];
echo " ".$text['label-'.$row['user_setting_value']];
}
else if ($subcategory == 'password' || substr_count($subcategory, '_password') > 0 || $category == "login" && $subcategory == "password_reset_key" && $name == "text") {
echo " ".str_repeat('*', strlen($row['user_setting_value']));
}
else {
if ($category == "theme" && substr_count($subcategory, "_color") > 0 && ($name == "text" || $name == 'array')) {
$border = (
substr_count(strtolower($row['user_setting_value']), '#fff') > 0 ||
substr_count(strtolower($row['user_setting_value']), '#ffffff') > 0 ||
substr_count(str_replace(' ','',strtolower($row['user_setting_value'])), '255,255,255,') > 0
) ? "border: 1px solid #ccc; padding: -1px;" : null;
echo " <img src='data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7' style='background: ".$row['user_setting_value']."; width: 15px; height: 15px; margin-right: 4px; vertical-align: middle; ".$border."'>";
}
echo " ".htmlspecialchars($row['user_setting_value']);
}
echo " &nbsp;\n";

View File

@@ -103,7 +103,7 @@ else {
}
}
unset ($prep_statement, $result, $sql);
$rows_per_page = 200;
$rows_per_page = ($_SESSION['domain']['paging']['numeric'] != '') ? $_SESSION['domain']['paging']['numeric'] : 50;
$param = "search=".$search_value;
if (permission_exists('user_all') && $_GET['showall'] == 'true') {
$param .= "&showall=true";

View File

@@ -27,7 +27,7 @@
function paging($num_rows, $param, $rows_per_page, $mini = false) {
if (strlen($rows_per_page)==0) {
$rows_per_page = "5"; //default number of rows per page
$rows_per_page = 50; //default number of rows per page
}

View File

@@ -302,6 +302,147 @@ if ($domains_processed == 1) {
$array[$x]['default_setting_value'] = '#69e5ff';
$array[$x]['default_setting_enabled'] = 'false';
$array[$x]['default_setting_description'] = 'Set the hover text color (and opacity) of sub menu items.';
$x++;
$array[$x]['default_setting_category'] = 'theme';
$array[$x]['default_setting_subcategory'] = 'heading_text_font';
$array[$x]['default_setting_name'] = 'text';
$array[$x]['default_setting_value'] = 'arial';
$array[$x]['default_setting_enabled'] = 'false';
$array[$x]['default_setting_description'] = 'Set the font of the page heading text.';
$x++;
$array[$x]['default_setting_category'] = 'theme';
$array[$x]['default_setting_subcategory'] = 'heading_text_size';
$array[$x]['default_setting_name'] = 'text';
$array[$x]['default_setting_value'] = '15px';
$array[$x]['default_setting_enabled'] = 'false';
$array[$x]['default_setting_description'] = 'Set the size of the page heading text.';
$x++;
$array[$x]['default_setting_category'] = 'theme';
$array[$x]['default_setting_subcategory'] = 'heading_text_color';
$array[$x]['default_setting_name'] = 'text';
$array[$x]['default_setting_value'] = '#952424';
$array[$x]['default_setting_enabled'] = 'false';
$array[$x]['default_setting_description'] = 'Set the color (and opacity) of the page heading text.';
$x++;
$array[$x]['default_setting_category'] = 'theme';
$array[$x]['default_setting_subcategory'] = 'body_text_font';
$array[$x]['default_setting_name'] = 'text';
$array[$x]['default_setting_value'] = 'arial';
$array[$x]['default_setting_enabled'] = 'false';
$array[$x]['default_setting_description'] = 'Set the font of body text.';
$x++;
$array[$x]['default_setting_category'] = 'theme';
$array[$x]['default_setting_subcategory'] = 'body_text_size';
$array[$x]['default_setting_name'] = 'text';
$array[$x]['default_setting_value'] = '12px';
$array[$x]['default_setting_enabled'] = 'false';
$array[$x]['default_setting_description'] = 'Set the size of the body text.';
$x++;
$array[$x]['default_setting_category'] = 'theme';
$array[$x]['default_setting_subcategory'] = 'body_text_color';
$array[$x]['default_setting_name'] = 'text';
$array[$x]['default_setting_value'] = '#5f5f5f';
$array[$x]['default_setting_enabled'] = 'false';
$array[$x]['default_setting_description'] = 'Set the color (and opacity) of the body text.';
$x++;
$array[$x]['default_setting_category'] = 'theme';
$array[$x]['default_setting_subcategory'] = 'text_link_color';
$array[$x]['default_setting_name'] = 'text';
$array[$x]['default_setting_value'] = '#004083';
$array[$x]['default_setting_enabled'] = 'false';
$array[$x]['default_setting_description'] = 'Set the link color (and opacity) of text links outside tables.';
$x++;
$array[$x]['default_setting_category'] = 'theme';
$array[$x]['default_setting_subcategory'] = 'text_link_color_hover';
$array[$x]['default_setting_name'] = 'text';
$array[$x]['default_setting_value'] = '#5082ca';
$array[$x]['default_setting_enabled'] = 'false';
$array[$x]['default_setting_description'] = 'Set the hover color (and opacity) of text links outside tables.';
$x++;
$array[$x]['default_setting_category'] = 'theme';
$array[$x]['default_setting_subcategory'] = 'table_heading_text_font';
$array[$x]['default_setting_name'] = 'text';
$array[$x]['default_setting_value'] = 'arial';
$array[$x]['default_setting_enabled'] = 'false';
$array[$x]['default_setting_description'] = 'Set the text font of table header rows.';
$x++;
$array[$x]['default_setting_category'] = 'theme';
$array[$x]['default_setting_subcategory'] = 'table_heading_text_size';
$array[$x]['default_setting_name'] = 'text';
$array[$x]['default_setting_value'] = '12px';
$array[$x]['default_setting_enabled'] = 'false';
$array[$x]['default_setting_description'] = 'Set the text size of table header rows.';
$x++;
$array[$x]['default_setting_category'] = 'theme';
$array[$x]['default_setting_subcategory'] = 'table_heading_text_color';
$array[$x]['default_setting_name'] = 'text';
$array[$x]['default_setting_value'] = '#3164ad';
$array[$x]['default_setting_enabled'] = 'false';
$array[$x]['default_setting_description'] = 'Set the text color (and opacity) of table header rows.';
$x++;
$array[$x]['default_setting_category'] = 'theme';
$array[$x]['default_setting_subcategory'] = 'table_heading_background_color';
$array[$x]['default_setting_name'] = 'text';
$array[$x]['default_setting_value'] = 'none';
$array[$x]['default_setting_enabled'] = 'false';
$array[$x]['default_setting_description'] = 'Set the background color (and opacity) of table header rows.';
$x++;
$array[$x]['default_setting_category'] = 'theme';
$array[$x]['default_setting_subcategory'] = 'table_heading_border_color';
$array[$x]['default_setting_name'] = 'text';
$array[$x]['default_setting_value'] = '#a4aebf';
$array[$x]['default_setting_enabled'] = 'false';
$array[$x]['default_setting_description'] = 'Set the bottom border color (and opacity) of table header rows.';
$x++;
$array[$x]['default_setting_category'] = 'theme';
$array[$x]['default_setting_subcategory'] = 'table_row_text_font';
$array[$x]['default_setting_name'] = 'text';
$array[$x]['default_setting_value'] = 'arial';
$array[$x]['default_setting_enabled'] = 'false';
$array[$x]['default_setting_description'] = 'Set the text font of table data rows.';
$x++;
$array[$x]['default_setting_category'] = 'theme';
$array[$x]['default_setting_subcategory'] = 'table_row_text_size';
$array[$x]['default_setting_name'] = 'text';
$array[$x]['default_setting_value'] = '12px';
$array[$x]['default_setting_enabled'] = 'false';
$array[$x]['default_setting_description'] = 'Set the text size of table data rows.';
$x++;
$array[$x]['default_setting_category'] = 'theme';
$array[$x]['default_setting_subcategory'] = 'table_row_text_color';
$array[$x]['default_setting_name'] = 'text';
$array[$x]['default_setting_value'] = '#000';
$array[$x]['default_setting_enabled'] = 'false';
$array[$x]['default_setting_description'] = 'Set the text color (and opacity) of table data rows.';
$x++;
$array[$x]['default_setting_category'] = 'theme';
$array[$x]['default_setting_subcategory'] = 'table_row_background_color_dark';
$array[$x]['default_setting_name'] = 'text';
$array[$x]['default_setting_value'] = '#e5e9f0';
$array[$x]['default_setting_enabled'] = 'false';
$array[$x]['default_setting_description'] = 'Set the darker background color (and opacity) of table data rows.';
$x++;
$array[$x]['default_setting_category'] = 'theme';
$array[$x]['default_setting_subcategory'] = 'table_row_background_color_medium';
$array[$x]['default_setting_name'] = 'text';
$array[$x]['default_setting_value'] = '#f0f2f6';
$array[$x]['default_setting_enabled'] = 'false';
$array[$x]['default_setting_description'] = 'Set the medium background color (and opacity) of table data rows.';
$x++;
$array[$x]['default_setting_category'] = 'theme';
$array[$x]['default_setting_subcategory'] = 'table_row_background_color_light';
$array[$x]['default_setting_name'] = 'text';
$array[$x]['default_setting_value'] = '#fff';
$array[$x]['default_setting_enabled'] = 'false';
$array[$x]['default_setting_description'] = 'Set the lighter background color (and opacity) of table data rows.';
$x++;
$array[$x]['default_setting_category'] = 'theme';
$array[$x]['default_setting_subcategory'] = 'table_row_border_color';
$array[$x]['default_setting_name'] = 'text';
$array[$x]['default_setting_value'] = '#c5d1e5';
$array[$x]['default_setting_enabled'] = 'false';
$array[$x]['default_setting_description'] = 'Set the bottom border (dividing line) color (and opacity) of table data rows.';
//get an array of the default settings
$sql = "select * from v_default_settings ";

View File

@@ -1,12 +1,12 @@
<?php
//define the link labels
$v_link_label_edit = "<img src='".PROJECT_PATH."/themes/default/images/icon_edit.png' class='list_control_icon'>";
$v_link_label_add = "<img src='".PROJECT_PATH."/themes/default/images/icon_add.png' class='list_control_icon'>";
$v_link_label_delete = "<img src='".PROJECT_PATH."/themes/default/images/icon_delete.png' class='list_control_icon'>";
$v_link_label_view = "<img src='".PROJECT_PATH."/themes/default/images/icon_view.png' class='list_control_icon'>";
$v_link_label_play = "<img src='".PROJECT_PATH."/themes/default/images/icon_play.png' class='list_control_icon'>";
$v_link_label_pause = "<img src='".PROJECT_PATH."/themes/default/images/icon_pause.png' class='list_control_icon'>";
$v_link_label_download = "<img src='".PROJECT_PATH."/themes/default/images/icon_download.png' class='list_control_icon'>";
$v_link_label_edit = "<button type='button' class='btn btn-default list_control_icon'><span class='glyphicon glyphicon-pencil'></span></button>";
$v_link_label_add = "<button type='button' class='btn btn-default list_control_icon'><span class='glyphicon glyphicon-plus'></span></button>";
$v_link_label_delete = "<button type='button' class='btn btn-default list_control_icon'><span class='glyphicon glyphicon-remove'></span></button>";
$v_link_label_view = "<button type='button' class='btn btn-default list_control_icon'><span class='glyphicon glyphicon-eye-open'></span></button>";
$v_link_label_play = "<button type='button' class='btn btn-default list_control_icon'><span class='glyphicon glyphicon-play'></span></button>";
$v_link_label_pause = "<button type='button' class='btn btn-default list_control_icon'><span class='glyphicon glyphicon-pause'></span></button>";
$v_link_label_download = "<button type='button' class='btn btn-default list_control_icon'><span class='glyphicon glyphicon-cloud-download'></span></button>";
?>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

View File

@@ -154,6 +154,11 @@
<style type='text/css'>
html {
height: 100%;
width: 100%;
}
body {
z-index: 1;
position: absolute;
@@ -177,6 +182,10 @@
?>
background-repeat: no-repeat;
background-attachment: fixed;
webkit-background-size:cover;
-moz-background-size:cover;
-o-background-size:cover;
background-size:cover;
}
div#footer {
@@ -201,7 +210,7 @@
color: <?php echo ($_SESSION['theme']['footer_color']['text'] != '') ? $_SESSION['theme']['footer_color']['text'] : 'rgba(255,255,255,0.3)'; ?>;
}
/* BOOTSTRAP MENU: BEGIN ******************************************************************/
/* MENU: BEGIN ******************************************************************/
/* main menu container */
.navbar {
@@ -232,6 +241,7 @@
/* menu brand text */
.navbar-header > div > a.navbar-brand {
color: <?php echo ($_SESSION['theme']['menu_brand_text_color']['text'] != '') ? $_SESSION['theme']['menu_brand_text_color']['text'] : 'rgba(255,255,255,0.80)'; ?>;
white-space: nowrap;
}
.navbar-header > div > a.navbar-brand:hover {
@@ -371,6 +381,78 @@
cursor: pointer;
}
/* BUTTONS ********************************************************************/
/* default buttons */
button.btn-default {
font-family: Candara, Calibri, Segoe, "Segoe UI", Optima, Arial, sans-serif;
padding: 4px 8px;
color: #fff;
font-weight: bold;
font-size: 8pt;
border: 1px solid #26242a;
background: #3e3e3e;
background-image: -moz-linear-gradient(top, #000 25%, #3e3e3e 64%);
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0.25, #000), color-stop(0.64, #3e3e3e));
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
-khtml-border-radius: 3px;
border-radius: 3px;
text-align: center;
text-transform: uppercase;
text-shadow: 0px 0px 1px rgba(0,0,0,0.9);
opacity: 0.9;
-moz-opacity: 0.9;
}
button.btn-default:hover, .btn-default:active, .btn-default:focus {
cursor: pointer;
color: #fff;
border: 1px solid #26242a;
box-shadow: 0 0 5px #cddaf0;
-webkit-box-shadow: 0 0 5px #cddaf0;
-moz-box-shadow: 0 0 5px #cddaf0;
opacity: 1.0;
-moz-opacity: 1.0;
}
/* control icons */
button.list_control_icon,
button.list_control_icon_disabled {
font-family: Candara, Calibri, Segoe, "Segoe UI", Optima, Arial, sans-serif;
padding: 2px;
color: #fff;
font-weight: normal;
font-size: 10.5pt;
width: 24px;
height: 24px;
margin: 1px;
border: 1px solid #26242a;
background: #3e3e3e;
background-image: -moz-linear-gradient(top, #000 25%, #3e3e3e 64%);
background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0.25, #000), color-stop(0.64, #3e3e3e));
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
-khtml-border-radius: 3px;
border-radius: 3px;
text-align: center;
text-shadow: 0px 0px 1px rgba(0,0,0,1.0);
opacity: 0.3;
-moz-opacity: 0.3;
}
button.list_control_icon:hover, button.list_control_icon:active, button.list_control_icon:focus {
cursor: pointer;
color: #fff;
border: 1px solid #26242a;
box-shadow: 0 0 5px #cddaf0;
-webkit-box-shadow: 0 0 5px #cddaf0;
-moz-box-shadow: 0 0 5px #cddaf0;
opacity: 1.0;
-moz-opacity: 1.0;
}
/* DOMAIN SELECTOR ***********************************************************/
#domains_container {
@@ -492,99 +574,54 @@
text-align: left;
}
/* default body padding */
.container-fluid {
width: 90%;
}
/* maximize viewport usage on xs displays */
@media(min-width: 0px) and (max-width: 767px) {
.container-fluid {
width: 100%;
}
#main_content {
padding: 8px;
}
}
/* GENERAL ELEMENTS *****************************************************************/
img {
border: none;
}
.title, b {
color: <?php echo ($_SESSION['theme']['heading_text_color']['text'] != '') ? $_SESSION['theme']['heading_text_color']['text'] : '#952424'; ?>;
font-size: <?php echo ($_SESSION['theme']['heading_text_size']['text'] != '') ? $_SESSION['theme']['heading_text_size']['text'] : '15px'; ?>;
font-family: <?php echo ($_SESSION['theme']['heading_text_font']['text'] != '') ? $_SESSION['theme']['heading_text_font']['text'] : 'arial'; ?>;
font-weight: bold
}
a {
color: #004083;
color: <?php echo ($_SESSION['theme']['text_link_color']['text'] != '') ? $_SESSION['theme']['text_link_color']['text'] : '#004083'; ?>;
width: 100%;
}
a:hover {
color: #5082ca;
}
.title {
color: #952424;
font-size: 15px;
font-family: arial;
font-weight: bold
}
b {
color: #952424;
font-size: 15px;
font-family: arial;
}
th {
border-bottom: 1px solid #a4aebf;
text-align: left;
color: #3164AD;
font-size: 12px;
font-family: arial;
padding-top: 4px;
padding-bottom: 4px;
padding-right: 7px;
padding-left: 0;
}
th a:link{ color:#3164AD; text-decoration: none; }
th a:visited{ color:#3164AD; }
th a:hover{ color:#5082ca; text-decoration: underline; }
th a:active{ color:#3164AD; }
td {
color: #5f5f5f;
font-size: 12px;
font-family: arial;
}
td.list_control_icons {
/* multiple icons exist (horizontally) */
padding: none;
padding-left: 2px;
width: 50px;
text-align: right;
vertical-align: top;
white-space: nowrap;
}
td.list_control_icon {
/* a single icon exists */
padding: none;
padding-left: 3px;
width: 25px;
text-align: right;
vertical-align: top;
white-space: nowrap;
}
img.list_control_icon {
margin: 2px;
width: 21px;
height: 21px;
border: none;
opacity: 0.4;
-moz-opacity: 0.4;
}
img.list_control_icon_disabled {
margin: 2px;
width: 21px;
height: 21px;
border: none;
opacity: 0.4;
-moz-opacity: 0.4;
color: <?php echo ($_SESSION['theme']['text_link_color_hover']['text'] != '') ? $_SESSION['theme']['text_link_color_hover']['text'] : '#5082ca'; ?>;
}
form {
margin: 0;
}
.frm {
border: solid 1px #ccc;
color: #666;
background-color: #EFEFEF;
}
input.btn, input.button {
font-family: Candara, Calibri, Segoe, "Segoe UI", Optima, Arial, sans-serif;
padding: 3px 8px 4px 8px;
@@ -685,6 +722,7 @@
input.fileinput {
padding: 1px;
display: inline;
}
label {
@@ -692,8 +730,68 @@
vertical-align: middle;
}
span.playback_progress_bar {
background-color: #c43e42;
height: 1px;
display: block;
}
/* TABLES *****************************************************************/
th {
border-bottom: 1px solid <?php echo ($_SESSION['theme']['table_heading_border_color']['text'] != '') ? $_SESSION['theme']['table_heading_border_color']['text'] : '#a4aebf'; ?>;
text-align: left;
color: <?php echo ($_SESSION['theme']['table_heading_text_color']['text'] != '') ? $_SESSION['theme']['table_heading_text_color']['text'] : '#3164ad'; ?>;
background: <?php echo ($_SESSION['theme']['table_heading_background_color']['text'] != '') ? $_SESSION['theme']['table_heading_background_color']['text'] : 'none'; ?>;
font-size: <?php echo ($_SESSION['theme']['table_heading_text_size']['text'] != '') ? $_SESSION['theme']['table_heading_text_size']['text'] : '12px'; ?>;
font-family: <?php echo ($_SESSION['theme']['table_heading_text_font']['text'] != '') ? $_SESSION['theme']['table_heading_text_font']['text'] : 'arial'; ?>;
padding: 4px 7px 4px 0;
padding: 4px 7px;
}
th a, th a:visited, th a:active {
color: <?php echo ($_SESSION['theme']['table_heading_text_color']['text'] != '') ? $_SESSION['theme']['table_heading_text_color']['text'] : '#3164ad'; ?>;
text-decoration: none;
}
th a:hover {
color: <?php echo ($_SESSION['theme']['table_heading_text_color']['text'] != '') ? $_SESSION['theme']['table_heading_text_color']['text'] : '#3164ad'; ?>;
text-decoration: underline;
}
td {
color: <?php echo ($_SESSION['theme']['body_text_color']['text'] != '') ? $_SESSION['theme']['body_text_color']['text'] : '#5f5f5f'; ?>;
font-size: <?php echo ($_SESSION['theme']['body_text_size']['text'] != '') ? $_SESSION['theme']['body_text_size']['text'] : '12px'; ?>;
font-family: <?php echo ($_SESSION['theme']['body_text_font']['text'] != '') ? $_SESSION['theme']['body_text_font']['text'] : 'arial'; ?>;
}
table.tr_hover tr {
cursor: default;
}
table.tr_hover tr:hover td,
table.tr_hover tr:hover td a {
color: <?php echo ($_SESSION['theme']['text_link_color_hover']['text'] != '') ? $_SESSION['theme']['text_link_color_hover']['text'] : '#5082ca'; ?>;
}
td.list_control_icons {
width: 52px;
padding: none;
padding-left: 2px;
text-align: right;
vertical-align: top;
white-space: nowrap;
}
td.list_control_icon {
width: 26px;
padding: none;
padding-left: 2px;
text-align: right;
vertical-align: top;
white-space: nowrap;
}
.vncell {
border-bottom: 1px solid #fff;
background-color: #e5e9f0;
@@ -762,143 +860,41 @@
height: 33px;
}
.listbg {
border-bottom: 1px solid #a4aebf;
font-size: 11px;
background-color: #990000;
color: #000;
padding: 4px 16px 4px 6px;
}
table.tr_hover tr {
background-color: transparent;
cursor: default;
}
table.tr_hover tr:hover td,
table.tr_hover tr:hover td a {
color: #5082ca;
}
.row_style0 {
border-bottom: 1px solid #c5d1e5;
background-color: #e5e9f0;
color: #000;
border-bottom: 1px solid <?php echo ($_SESSION['theme']['table_row_border_color']['text'] != '') ? $_SESSION['theme']['table_row_border_color']['text'] : '#c5d1e5'; ?>;
background: <?php echo ($_SESSION['theme']['table_row_background_color_dark']['text'] != '') ? $_SESSION['theme']['table_row_background_color_dark']['text'] : '#e5e9f0'; ?>;
color: <?php echo ($_SESSION['theme']['table_row_text_color']['text'] != '') ? $_SESSION['theme']['table_row_text_color']['text'] : '#000'; ?>;
font-family: <?php echo ($_SESSION['theme']['table_row_text_font']['text'] != '') ? $_SESSION['theme']['table_row_text_font']['text'] : 'arial'; ?>
font-size: <?php echo ($_SESSION['theme']['table_row_text_size']['text'] != '') ? $_SESSION['theme']['table_row_text_size']['text'] : '12px'; ?>
text-align: left;
padding: 4px 7px;
}
.row_style1 {
border-bottom: 1px solid #c5d1e5;
background-color: #fff;
color: #000;
border-bottom: 1px solid <?php echo ($_SESSION['theme']['table_row_border_color']['text'] != '') ? $_SESSION['theme']['table_row_border_color']['text'] : '#c5d1e5'; ?>;
background: <?php echo ($_SESSION['theme']['table_row_background_color_light']['text'] != '') ? $_SESSION['theme']['table_row_background_color_light']['text'] : '#fff'; ?>;
color: <?php echo ($_SESSION['theme']['table_row_text_color']['text'] != '') ? $_SESSION['theme']['table_row_text_color']['text'] : '#000'; ?>;
font-family: <?php echo ($_SESSION['theme']['table_row_text_font']['text'] != '') ? $_SESSION['theme']['table_row_text_font']['text'] : 'arial'; ?>
font-size: <?php echo ($_SESSION['theme']['table_row_text_size']['text'] != '') ? $_SESSION['theme']['table_row_text_size']['text'] : '12px'; ?>
text-align: left;
padding: 4px 7px;
}
.row_style2 {
border-bottom: 1px solid #c5d1e5;
background-color: #fff;
color: #000;
text-align: center;
padding: 0 1px 0 1px;
width: 51px;
.row_style_slim {
padding: 0;
white-space: nowrap;
}
.row_style_hor_mir_grad {
background: -moz-linear-gradient(left, #e5e9f0 0%, #fff 25%, #fff 75%, #e5e9f0 100%);
background: -webkit-gradient(linear, left top, right top, color-stop(0%,#e5e9f0), color-stop(25%,#fff), color-stop(75%,#fff), color-stop(100%,#e5e9f0));
background: -webkit-linear-gradient(left, #e5e9f0 0%,#fff 25%,#fff 75%,#e5e9f0 100%);
background: -o-linear-gradient(left, #e5e9f0 0%,#fff 25%,#fff 75%,#e5e9f0 100%);
background: -ms-linear-gradient(left, #e5e9f0 0%,#fff 25%,#fff 75%,#e5e9f0 100%);
background: linear-gradient(to right, #e5e9f0 0%,#fff 25%,#fff 75%,#e5e9f0 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#e5e9f0', endColorstr='#e5e9f0',GradientType=1 );
}
.row_stylebg {
border-bottom: 1px solid #b9c5d8;
background-color: #f0f2f6;
color: #000;
border-bottom: 1px solid <?php echo ($_SESSION['theme']['table_row_border_color']['text'] != '') ? $_SESSION['theme']['table_row_border_color']['text'] : '#c5d1e5'; ?>; /* #b9c5d8 */
background: <?php echo ($_SESSION['theme']['table_row_background_color_medium']['text'] != '') ? $_SESSION['theme']['table_row_background_color_medium']['text'] : '#f0f2f6'; ?>;
color: <?php echo ($_SESSION['theme']['table_row_text_color']['text'] != '') ? $_SESSION['theme']['table_row_text_color']['text'] : '#000'; ?>;
font-family: <?php echo ($_SESSION['theme']['table_row_text_font']['text'] != '') ? $_SESSION['theme']['table_row_text_font']['text'] : 'arial'; ?>
font-size: <?php echo ($_SESSION['theme']['table_row_text_size']['text'] != '') ? $_SESSION['theme']['table_row_text_size']['text'] : '12px'; ?>
text-align: left;
padding: 4px 7px;
}
table th {
padding:4px 7px
}
table tr.even td {
background:#eee;
background-image: url('<!--{project_path}-->/themes/default/images/background_cell.gif');
border-bottom: 1px solid #a4aebf;
color: #333333;
}
table tr.odd td {
border-bottom: 1px solid #a4aebf;
color: #000000;
}
table tr:first-child th:first-child {
-moz-border-radius-topleft:7px;
-webkit-border-top-left-radius:7px;
border-top-left-radius:7px;
}
table tr:first-child th:last-of-type {
-moz-border-radius-topright:7px;
-webkit-border-top-right-radius:7px;
border-top-right-radius:7px;
}
table tr:nth-last-child(-5) td:first-of-type {
-moz-border-radius-bottomleft:7px;
-webkit-border-bottom-left-radius:7px;
border-bottom-left-radius:7px;
}
table tr:nth-last-child(-5) td:first-of-type {
-moz-border-radius-topleft:7px;
-webkit-border-top-left-radius:7px;
border-bottom-top-radius:7px;
}
.border {
border: solid 1px #a4aebf;
}
.frm {
border: solid 1px #ccc;
color: #666;
background-color: #EFEFEF;
}
.smalltext {
color: #bbb;
font-size: 11px;
font-family: arial;
}
fieldset {
padding: 8px;
text-align: left;
border: 1px solid #aeb7c6;
border-radius: 3px;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
margin: 0;
}
legend {
font-size: 13px;
font-family: arial;
font-weight: bold;
color: #3164ad;
padding-bottom: 8px;
padding-right: 2px;
}
/* RESPONSE MESSAGES *******************************************************/
#message_container {
@@ -956,7 +952,7 @@
color: <?php echo $_SESSION['theme']['message_alert_color']['text']; ?>;
}
/* OPERATOR PANEL: BEGIN ********************************************************/
/* OPERATOR PANEL ****************************************************************/
div.op_ext {
float: left;
@@ -1103,15 +1099,7 @@
border: 1px solid #5d5f5a;
}
/* OPERATOR PANEL: END *******************************************************/
span.playback_progress_bar {
background-color: #c43e42;
height: 1px;
display: inline-block;
}
/* USER DASHBOARD: BEGIN *****************************************************/
/* USER DASHBOARD ****************************************************************/
/* login message */
div.login_message {
@@ -1412,47 +1400,6 @@
$("input.txt, textarea.txt, .formfld").autosizeInput();
//audio playback functions
img_play = new Image(); img_play.src = "<?php echo PROJECT_PATH; ?>/themes/default/images/icon_play.png";
img_pause = new Image(); img_pause.src = "<?php echo PROJECT_PATH; ?>/themes/default/images/icon_pause.png";
var recording_audio;
function recording_play(recording_id) {
if (document.getElementById('recording_progress_bar_'+recording_id)) {
document.getElementById('recording_progress_bar_'+recording_id).style.display='';
}
recording_audio = document.getElementById('recording_audio_'+recording_id)
if (recording_audio.paused) {
recording_audio.volume = 1;
recording_audio.play();
document.getElementById('recording_button_'+recording_id).innerHTML = "<?php echo str_replace("class='list_control_icon'", "class='list_control_icon' style='opacity: 1;'", $v_link_label_pause); ?>";
}
else {
recording_audio.pause();
document.getElementById('recording_button_'+recording_id).innerHTML = "<?php echo $v_link_label_play; ?>";
}
}
function recording_reset(recording_id) {
if (document.getElementById('recording_progress_bar_'+recording_id)) {
document.getElementById('recording_progress_bar_'+recording_id).style.display='none';
}
document.getElementById('recording_button_'+recording_id).innerHTML = "<?php echo $v_link_label_play; ?>";
}
function update_progress(recording_id) {
recording_audio = document.getElementById('recording_audio_'+recording_id);
var recording_progress = document.getElementById('recording_progress_'+recording_id);
var value = 0;
if (recording_audio.currentTime > 0) {
value = (100 / recording_audio.duration) * recording_audio.currentTime;
}
recording_progress.style.width = value + "%";
}
//apply bootstrap-datetime plugin
$(function() {
$('.datetimepicker').datetimepicker({
@@ -1482,6 +1429,46 @@
});
//audio playback functions
img_play = new Image(); img_play.src = "<?php echo PROJECT_PATH; ?>/themes/default/images/icon_play.png";
img_pause = new Image(); img_pause.src = "<?php echo PROJECT_PATH; ?>/themes/default/images/icon_pause.png";
var recording_audio;
function recording_play(recording_id) {
if (document.getElementById('recording_progress_bar_'+recording_id)) {
document.getElementById('recording_progress_bar_'+recording_id).style.display='';
}
recording_audio = document.getElementById('recording_audio_'+recording_id)
if (recording_audio.paused) {
recording_audio.volume = 1;
recording_audio.play();
document.getElementById('recording_button_'+recording_id).innerHTML = "<?php echo str_replace("class='list_control_icon'", "class='list_control_icon' style='opacity: 1;'", $v_link_label_pause); ?>";
}
else {
recording_audio.pause();
document.getElementById('recording_button_'+recording_id).innerHTML = "<?php echo $v_link_label_play; ?>";
}
}
function recording_reset(recording_id) {
if (document.getElementById('recording_progress_bar_'+recording_id)) {
document.getElementById('recording_progress_bar_'+recording_id).style.display='none';
}
document.getElementById('recording_button_'+recording_id).innerHTML = "<?php echo $v_link_label_play; ?>";
}
function update_progress(recording_id) {
recording_audio = document.getElementById('recording_audio_'+recording_id);
var recording_progress = document.getElementById('recording_progress_'+recording_id);
var value = 0;
if (recording_audio.currentTime > 0) {
value = (100 / recording_audio.duration) * recording_audio.currentTime;
}
recording_progress.style.width = value + "%";
}
</script>
<!--{head}-->
@@ -1617,12 +1604,12 @@
}
//define menu brand mark
$menu_brand_text = ($_SESSION['theme']['menu_brand_text']['text'] != '') ? $_SESSION['theme']['menu_brand_text']['text'] : "FusionPBX";
if ($_SESSION['theme']['menu_brand_type']['text'] == 'image') {
if ($_SESSION['theme']['menu_brand_type']['text'] == 'image' || $_SESSION['theme']['menu_brand_type']['text'] == '') {
$menu_brand_image = (isset($_SESSION['theme']['menu_brand_image']['text'])) ? $_SESSION['theme']['menu_brand_image']['text'] : PROJECT_PATH."/themes/default/images/logo_header.png";
echo "<img class='pull-left hidden-xs navbar-logo' src='".$menu_brand_image."' title=\"".$menu_brand_text."\" onclick=\"document.location.href='".$menu_brand_link."';\">";
echo "<img class='pull-left visible-xs navbar-logo' src='".$menu_brand_image."' title=\"".$menu_brand_text."\" onclick=\"document.location.href='".$menu_brand_link."';\" style='margin-left: 21px;'>";
}
else if ($_SESSION['theme']['menu_brand_type']['text'] == 'text' || $_SESSION['theme']['menu_brand_type']['text'] == '') {
else if ($_SESSION['theme']['menu_brand_type']['text'] == 'text') {
echo "<div class='pull-left'><a class='navbar-brand' href=\"".$menu_brand_link."\">".$menu_brand_text."</a></div>\n";
}
}
@@ -1659,7 +1646,15 @@
if ($submenu) {
echo "<ul class='dropdown-menu'>\n";
foreach ($menu_parent['menu_items'] as $index_sub => $menu_sub) {
$mod_a_2 = ($menu_sub['menu_item_link'] != '') ? $menu_sub['menu_item_link'] : '#';
$mod_a_2 = $menu_sub['menu_item_link'];
if($mod_a_2 == ''){
$mod_a_2 = '#';
}
else if (($menu_sub['menu_item_category'] == 'internal') ||
(($menu_sub['menu_item_category'] == 'external') && substr($mod_a_2, 0,1) == "/"))
{
$mod_a_2 = PROJECT_PATH . $mod_a_2;
}
$mod_a_3 = ($menu_sub['menu_item_category'] == 'external') ? "target='_blank' " : null;
if ($_SESSION['theme']['menu_sub_icons']['boolean'] == 'true') {
$mod_nw = ($menu_sub['menu_item_category'] == 'external') ? "<span class='glyphicon glyphicon-new-window'></span>" : null;
@@ -1707,7 +1702,7 @@
$menu_style = ($_SESSION['theme']['menu_style']['text'] != '') ? $_SESSION['theme']['menu_style']['text'] : 'fixed';
$menu_position = ($_SESSION['theme']['menu_position']['text']) ? $_SESSION['theme']['menu_position']['text'] : 'top';
$open_container = "<div class='container-fluid' style='width: 90%; padding: 0;' align='center'>";
$open_container = "<div class='container-fluid' style='padding: 0;' align='center'>";
switch ($menu_style) {
case 'inline':