Update time_condition_edit.php

Fix the time condition edit and improve the indentation on the code.
This commit is contained in:
FusionPBX 2016-08-04 18:46:39 -06:00 committed by GitHub
parent dbb5812236
commit e428332e64
1 changed files with 76 additions and 67 deletions

View File

@ -23,9 +23,13 @@
Contributor(s):
Mark J Crane <markjcrane@fusionpbx.com>
*/
//includes
include "root.php";
require_once "resources/require.php";
require_once "resources/check_auth.php";
//check permissions
if (permission_exists('time_condition_add') || permission_exists('time_condition_edit')) {
//access granted
}
@ -33,8 +37,6 @@ else {
echo "access denied";
exit;
}
require_once "resources/header.php";
//add multi-lingual support
$language = new text;
@ -554,6 +556,9 @@ require_once "resources/header.php";
}
//include the header
require_once "resources/header.php";
?>
<script type="text/javascript">
@ -803,7 +808,6 @@ echo " <tr>\n";
echo " <td align='left' valign='top'>\n";
echo " <span class='title'>".$text['title-time_conditions']."</span>";
echo " <br /><br />\n";
echo " ".$text['description-time_conditions']."\n";
echo " </td>\n";
echo " <td align='right' valign='top'>\n";
echo " <input type='button' class='btn' name='' alt='".$text['button-back']."' onclick=\"window.location='".PROJECT_PATH."/app/time_conditions/time_conditions.php?app_uuid=4b821450-926b-175a-af93-a03c441818b1'\" value='".$text['button-back']."'>\n";
@ -813,6 +817,11 @@ if (if_group("superadmin") && $action == 'update') {
echo " <input type='submit' name='submit' class='btn' value='".$text['button-save']."'>\n";
echo " </td>\n";
echo " </tr>\n";
echo " <tr>\n";
echo " <td colspan='2'>\n";
echo " ".$text['description-time_conditions']."\n";
echo " </td>\n";
echo " </tr>\n";
echo "</table>";
echo "<br />\n";