Create database_transaction_edit.php

This commit is contained in:
FusionPBX 2017-06-11 21:08:13 -07:00 committed by GitHub
parent d2c6bacd9d
commit d0961c7cd4
1 changed files with 77 additions and 78 deletions

View File

@ -17,7 +17,7 @@
The Initial Developer of the Original Code is
Mark J Crane <markjcrane@fusionpbx.com>
Portions created by the Initial Developer are Copyright (C) 2016
Portions created by the Initial Developer are Copyright (C) 2016 - 2017
the Initial Developer. All Rights Reserved.
Contributor(s):
@ -231,7 +231,7 @@
echo " ".$app_name."\n";
//echo " <input class='formfld' type='text' name='app_name' maxlength='255' value='$app_name'>\n";
//echo " <br />\n";
//echo $text['description-app_uuid']."\n";
//echo " ".$text['description-app_uuid']."\n";
echo " </td>\n";
echo " </tr>\n";
@ -256,7 +256,7 @@
echo " ".$username."\n";
//echo " <input class='formfld' type='text' name='username' maxlength='255' value='$username'>\n";
//echo " <br />\n";
//echo $text['description-user_uuid']."\n";
//echo " ".$text['description-user_uuid']."\n";
echo " </td>\n";
echo " </tr>\n";
echo " </table>\n";
@ -272,10 +272,9 @@
echo " $transaction_code\n";
//echo " <input class='formfld' type='text' name='transaction_code' maxlength='255' value='$transaction_code'>\n";
//echo " <br />\n";
//echo $text['description-transaction_code']."\n";
//echo " ".$text['description-transaction_code']."\n";
echo " </td>\n";
echo " </tr>\n";
echo " <tr>\n";
echo " <th valign='top' align='left' nowrap='nowrap'>\n";
echo " ".$text['label-transaction_address']."\n";
@ -284,7 +283,7 @@
echo " $transaction_address\n";
//echo " <input class='formfld' type='text' name='transaction_address' maxlength='255' value=\"$transaction_address\">\n";
//echo " <br />\n";
//echo $text['description-transaction_address']."\n";
//echo " ".$text['description-transaction_address']."\n";
echo " </td>\n";
echo " </tr>\n";
echo " </table>\n";
@ -398,8 +397,13 @@
$array = show_difference($value);
}
else {
//set the variables
$old = $value['old'];
$new = $value['new'];
if (is_null($old)) { $old = ''; }
if (is_null($new)) { $new = ''; }
//determine if the value has changed
if (strval($value['old']) == strval($value['new']) && isset($value['old'])) {
if (strval($old) == strval($new) && isset($old)) {
$color = "#000000";
}
else {
@ -412,11 +416,6 @@
}
$_SESSION['previous_name'] = $_SESSION['name'];
$_SESSION['previous_row'] = $_SESSION['row'];
//set the variables
$old = $value['old'];
$new = $value['new'];
if (is_null($old)) { $old = "null"; }
if (is_null($new)) { $new = "null"; }
//show the results
echo "<tr style='color: $color;'>\n";
//echo " <td class=\"vtable\" style='color: $color;'>".$_SESSION['name']."</td>\n";