1
0
mirror of https://github.com/fspc/Yellow-Bike-Database.git synced 2025-02-22 17:03:22 -05:00

Moved individual_history back to /, and removed another PHP_SELF from trans.

This commit is contained in:
Jonathan Rosenbaum 2015-01-20 06:12:13 +00:00
parent 2dd7573408
commit 69cc2241d2
3 changed files with 6 additions and 6 deletions

View File

@ -64,8 +64,8 @@ define("PAGE_SHOP_LOG", "/shop_log.php");
define("PAGE_EDIT_CONTACT", "/contact_add_edit.php"); define("PAGE_EDIT_CONTACT", "/contact_add_edit.php");
define("PAGE_SELECT_CONTACT", "/contact_add_edit_select.php"); define("PAGE_SELECT_CONTACT", "/contact_add_edit_select.php");
define("PAGE_SHOP_LOG_DELETE_VISIT", "/shop_log_delete_shopvisitid.php"); define("PAGE_SHOP_LOG_DELETE_VISIT", "/shop_log_delete_shopvisitid.php");
define("INDIVIDUAL_HOURS_LOG", "/stats/individual_hours_log.php"); define("INDIVIDUAL_HOURS_LOG", "/individual_hours_log.php");
define("INDIVIDUAL_HISTORY_LOG", "/stats/individual_history_log.php"); define("INDIVIDUAL_HISTORY_LOG", "/individual_history_log.php");
define("PAGE_SALE_LOG", "/transaction_log.php"); define("PAGE_SALE_LOG", "/transaction_log.php");
define("PAGE_EDIT_LOCATION", "/location_add_edit.php"); define("PAGE_EDIT_LOCATION", "/location_add_edit.php");
define("PAGE_SELECT_LOCATION", "/location_add_edit_select.php"); define("PAGE_SELECT_LOCATION", "/location_add_edit_select.php");

View File

@ -1,6 +1,6 @@
<?php <?php
require_once('../Connections/YBDB.php'); require_once('Connections/YBDB.php');
require_once('../Connections/database_functions.php'); require_once('Connections/database_functions.php');
$page_edit_contact = PAGE_EDIT_CONTACT; $page_edit_contact = PAGE_EDIT_CONTACT;
$page_shop_log = PAGE_SHOP_LOG; $page_shop_log = PAGE_SHOP_LOG;

View File

@ -94,7 +94,6 @@ $totalRows_Recordset1 = mysql_num_rows($Recordset1);
//Action on form update //Action on form update
$editFormAction = ""; $editFormAction = "";
//$editFormAction = $_SERVER['PHP_SELF'];
//Form Submit New Transaction=================================================================== //Form Submit New Transaction===================================================================
if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "FormNew")) { if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "FormNew")) {
@ -662,7 +661,8 @@ if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "ChangeDate")) {
if(isset( $_GET["trans_type"] )){ if(isset( $_GET["trans_type"] )){
$selected_trans_type = $_GET["trans_type"]; $selected_trans_type = $_GET["trans_type"];
} else { $selected_trans_type = "all_types"; } } else { $selected_trans_type = "all_types"; }
?> ?>
// remember pull-down list selections
$(function() { $(function() {
$("[name='dayname']").val("<?php echo $selected_shop_dayname; ?>").prop("selected","selected"); $("[name='dayname']").val("<?php echo $selected_shop_dayname; ?>").prop("selected","selected");
$("[name='trans_type']").val("<?php echo $selected_trans_type; ?>").prop("selected","selected"); $("[name='trans_type']").val("<?php echo $selected_trans_type; ?>").prop("selected","selected");