Update calls.php

Fix the page heading so that if the call routing page is width is small the page layout still looks good with the description.
This commit is contained in:
FusionPBX 2016-08-04 19:47:40 -06:00 committed by GitHub
parent 63c82fa7d4
commit 199f06fe84
1 changed files with 32 additions and 27 deletions

View File

@ -23,16 +23,20 @@
Contributor(s): Contributor(s):
Mark J Crane <markjcrane@fusionpbx.com> Mark J Crane <markjcrane@fusionpbx.com>
*/ */
include "root.php";
require_once "resources/require.php"; //includes
require_once "resources/check_auth.php"; include "root.php";
if (permission_exists('follow_me') || permission_exists('call_forward') || permission_exists('do_not_disturb')) { require_once "resources/require.php";
require_once "resources/check_auth.php";
//check permissions
if (permission_exists('follow_me') || permission_exists('call_forward') || permission_exists('do_not_disturb')) {
//access granted //access granted
} }
else { else {
echo "access denied"; echo "access denied";
exit; exit;
} }
//get the https values and set as variables //get the https values and set as variables
$order_by = check_str($_GET["order_by"]); $order_by = check_str($_GET["order_by"]);
@ -112,18 +116,13 @@ else {
$row_style["0"] = "row_style0"; $row_style["0"] = "row_style0";
$row_style["1"] = "row_style1"; $row_style["1"] = "row_style1";
echo "<div style='float: left;'>"; //start the content
echo " <b>".$text['header-call_routing']."</b><br />"; echo "<table cellpadding='0' cellspacing='0' border='0' width='100%'>\n";
if (!$is_included) {
echo $text['description-call_routing']."<br />";
}
echo " <br />";
echo "</div>\n";
echo "<div style='float: right; margin-bottom: 10px;'>";
echo " <table border='0' cellpadding='0' cellspacing='0'>\n";
echo " <tr>\n"; echo " <tr>\n";
echo " <td style='vertical-align: top; white-space: nowrap;'>\n"; echo " <td valign='top'>";
echo " <b>".$text['header-call_routing']."</b><br />";
echo " </td>\n";
echo " <td valign='top' style='text-align: right; white-space: nowrap;'>\n";
if ($result_count > 10 && $is_included) { if ($result_count > 10 && $is_included) {
echo " <input id='btn_viewall_callrouting' type='button' class='btn' value='".$text['button-view_all']."' onclick=\"document.location.href='".PROJECT_PATH."/app/calls/calls.php';\">"; echo " <input id='btn_viewall_callrouting' type='button' class='btn' value='".$text['button-view_all']."' onclick=\"document.location.href='".PROJECT_PATH."/app/calls/calls.php';\">";
} }
@ -135,11 +134,17 @@ else {
if ($paging_controls_mini != '') { if ($paging_controls_mini != '') {
echo "<span style='margin-left: 15px;'>".$paging_controls_mini."</span>\n"; echo "<span style='margin-left: 15px;'>".$paging_controls_mini."</span>\n";
} }
} echo " </td>\n";
echo " </tr>\n";
echo " <tr>\n";
echo " <td colspan='2' valign='top'>";
if (!$is_included) {
echo $text['description-call_routing']."<br />";
} }
echo " </td>\n"; echo " </td>\n";
echo " </tr>\n"; echo " </tr>\n";
echo " </table>\n"; echo "</table>\n";
echo "</div>\n"; echo "<br />";
echo "<table class='tr_hover' width='100%' border='0' cellpadding='0' cellspacing='0'>\n"; echo "<table class='tr_hover' width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
echo "<tr>\n"; echo "<tr>\n";