Update contacts.php

Fix the header on the contacts page so it will look better on smaller screens.
This commit is contained in:
FusionPBX 2016-08-04 20:00:23 -06:00 committed by GitHub
parent 199f06fe84
commit a2d84a20b5
1 changed files with 33 additions and 31 deletions

View File

@ -17,23 +17,27 @@
The Initial Developer of the Original Code is The Initial Developer of the Original Code is
Mark J Crane <markjcrane@fusionpbx.com> Mark J Crane <markjcrane@fusionpbx.com>
Portions created by the Initial Developer are Copyright (C) 2008-2015 Portions created by the Initial Developer are Copyright (C) 2008-2016
the Initial Developer. All Rights Reserved. the Initial Developer. All Rights Reserved.
Contributor(s): Contributor(s):
Mark J Crane <markjcrane@fusionpbx.com> Mark J Crane <markjcrane@fusionpbx.com>
*/ */
require_once "root.php";
require_once "resources/require.php"; //includes
require_once "resources/check_auth.php"; require_once "root.php";
require_once "resources/paging.php"; require_once "resources/require.php";
if (permission_exists('contact_view')) { require_once "resources/check_auth.php";
//access granted require_once "resources/paging.php";
}
else { //check permissions
echo "access denied"; if (permission_exists('contact_view')) {
exit; //access granted
} }
else {
echo "access denied";
exit;
}
//add multi-lingual support //add multi-lingual support
$language = new text; $language = new text;
@ -194,29 +198,27 @@ else {
//show the content //show the content
echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n"; echo "<table width='100%' border='0' cellpadding='0' cellspacing='0'>\n";
echo " <tr>\n"; echo " <tr>\n";
echo " <td align='left' valign='top' width='50%'>\n"; echo " <td align='left' valign='top' width='50%'>\n";
echo " <b>".$text['header-contacts']."</b>\n"; echo " <b>".$text['header-contacts']."</b>\n";
echo " <br /><br />"; echo " <br /><br />";
echo " ".$text['description-contacts']."<br /><br />\n"; echo " </td>\n";
echo " </td>\n"; echo " <td align='right' valign='top' width='50%' nowrap='nowrap'>\n";
echo " <td align='right' valign='top' width='50%'>\n"; echo " <form method='get' name='frm_search' action=''>\n";
echo " <table border='0' cellpadding='0' cellspacing='0'>\n"; echo " <input class='formfld' style='text-align: right;' type='text' name='search_all' id='search_all' value=\"".$search_all."\">\n";
echo " <tr>\n"; echo " <input class='btn' type='submit' name='submit' value=\"".$text['button-search']."\">\n";
echo " <td valign='middle' nowrap>\n";
echo " <form method='get' name='frm_search' action=''>\n";
echo " <input class='formfld' style='text-align: right;' type='text' name='search_all' id='search_all' value=\"".$search_all."\">\n";
echo " <input class='btn' type='submit' name='submit' value=\"".$text['button-search']."\">\n";
if (permission_exists('contact_add')) { if (permission_exists('contact_add')) {
echo "<input type='button' class='btn' alt='".$text['button-import']."' onclick=\"window.location='contact_import.php'\" value='".$text['button-import']."'>\n"; echo "<input type='button' class='btn' alt='".$text['button-import']."' onclick=\"window.location='contact_import.php'\" value='".$text['button-import']."'>\n";
} }
echo " </form>\n"; echo " </form>\n";
echo " </td>\n"; echo " </td>\n";
if ($paging_controls_mini != '') { if ($paging_controls_mini != '') {
echo " <td valign='middle' nowrap style='padding-left: 15px;'>".$paging_controls_mini."</td>\n"; echo " <td valign='middle' nowrap style='padding-left: 15px;'>".$paging_controls_mini."</td>\n";
} }
echo " </tr>\n"; echo " </tr>\n";
echo " </table>\n"; echo " <tr>\n";
echo " </td>\n"; echo " <td colspan='3'>\n";
echo " ".$text['description-contacts']."<br /><br />\n";
echo " </td>\n";
echo " </tr>\n"; echo " </tr>\n";
echo "</table>\n"; echo "</table>\n";
echo "<br />\n"; echo "<br />\n";
@ -286,4 +288,4 @@ else {
//include the footer //include the footer
require_once "resources/footer.php"; require_once "resources/footer.php";
?> ?>