diff --git a/css/transactions.css b/css/transactions.css index 10aa9d9..6da1b75 100644 --- a/css/transactions.css +++ b/css/transactions.css @@ -55,4 +55,4 @@ input[value=Save]:focus, input[value=Close]:focus { #range_slider { padding-top: 8px; -} \ No newline at end of file +} diff --git a/include_header.html b/include_header.html index 6705c0e..cad0bee 100644 --- a/include_header.html +++ b/include_header.html @@ -32,7 +32,7 @@ function resetTimer() - + diff --git a/js/transaction.js b/js/transaction.js index ab4e08f..0d2b250 100644 --- a/js/transaction.js +++ b/js/transaction.js @@ -13,6 +13,8 @@ $(function() { $("input[value='Create Transaction']").attr("tabindex",2); $("#trans_date").mask("0000-00-00", {placeholder: "yyyy-mm-dd" }); + // Add focus for easier tab browsing + // use .paid parent and hover & classes // If page has not been reloaded after a shop period ends, prevent edit from working. // Note: create transaction covered via a mysql_error()), but with a reload. diff --git a/transaction_log.php b/transaction_log.php index 247b00c..84547a2 100644 --- a/transaction_log.php +++ b/transaction_log.php @@ -289,7 +289,7 @@ if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "ConfirmDelete") && //Change Date isset($_POST["MM_update"]) ========================================================= if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "ChangeDate")) { - $editFormAction = $_SERVER['PHP_SELF'] . "?trans_date={$_POST['trans_date']}&trans_type={$_POST['trans_type']}&shop_dayname={$_POST['dayname']}&record_count={$_POST['record_count']}"; + $editFormAction = "?trans_date={$_POST['trans_date']}&trans_type={$_POST['trans_type']}&shop_dayname={$_POST['dayname']}&record_count={$_POST['record_count']}"; header(sprintf("Location: %s",$editFormAction )); //$editFormAction } @@ -646,7 +646,29 @@ if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "ChangeDate")) {
Show transactions on or before: - + + + + "; + // range bar echo "
"; echo "
";