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:
parent
63c82fa7d4
commit
199f06fe84
|
|
@ -23,9 +23,13 @@
|
||||||
Contributor(s):
|
Contributor(s):
|
||||||
Mark J Crane <markjcrane@fusionpbx.com>
|
Mark J Crane <markjcrane@fusionpbx.com>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
//includes
|
||||||
include "root.php";
|
include "root.php";
|
||||||
require_once "resources/require.php";
|
require_once "resources/require.php";
|
||||||
require_once "resources/check_auth.php";
|
require_once "resources/check_auth.php";
|
||||||
|
|
||||||
|
//check permissions
|
||||||
if (permission_exists('follow_me') || permission_exists('call_forward') || permission_exists('do_not_disturb')) {
|
if (permission_exists('follow_me') || permission_exists('call_forward') || permission_exists('do_not_disturb')) {
|
||||||
//access granted
|
//access granted
|
||||||
}
|
}
|
||||||
|
|
@ -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";
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue