From ee46dc8fd5c1d378ef2c34f8972c3fb71081efe8 Mon Sep 17 00:00:00 2001 From: Jonathan Rosenbaum Date: Sun, 5 Apr 2015 08:52:54 +0000 Subject: [PATCH] GUI and logic changes from practical experience in the shop environment 1) makes sign in button larger 2) changes "Current Shop" menu text to "Sign In" for normal user 3) takes all users after submitting contact to Sign In page rather than only new users. --- contact_add_edit.php | 2 +- css/contacts.css | 2 +- include_header_shop.html | 2 +- shop_log.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/contact_add_edit.php b/contact_add_edit.php index 011e44a..4795626 100644 --- a/contact_add_edit.php +++ b/contact_add_edit.php @@ -193,7 +193,7 @@ if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) { $result = mysql_query($sql, $YBDB) or die(mysql_error()); } - if ($_POST['contact_id_entry'] == 'new_contact'){ + if ($_POST['contact_id_entry'] == 'new_contact' || $_POST['contact_id_entry'] == $_POST['contact_id']){ //navigate back to shop that it came from $pagegoto = PAGE_SHOP_LOG . "?shop_id={$shop_id}&new_user_id={$contact_id}"; diff --git a/css/contacts.css b/css/contacts.css index 834f33e..840ad3e 100644 --- a/css/contacts.css +++ b/css/contacts.css @@ -25,7 +25,7 @@ margin-top: 0; } -#submit_contact { +#submit_contact, #sign_in_button { height: 36px; width: 98px; font-size: x-large; diff --git a/include_header_shop.html b/include_header_shop.html index 3f2a319..e03979c 100644 --- a/include_header_shop.html +++ b/include_header_shop.html @@ -44,7 +44,7 @@ function resetTimer() - +
About/HelpCurrent Shop | All Shops | Add/Edit Contact | Statistics | Transaction Log | PS HomeSign In | All Shops | Add/Edit Contact | Statistics | Transaction Log | PS Home
diff --git a/shop_log.php b/shop_log.php index 181b7af..8351b82 100644 --- a/shop_log.php +++ b/shop_log.php @@ -182,7 +182,7 @@ if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "FormEdit")) { - +