From 7b64d0c49495ed4fbda90d0a39495b3e35f44383 Mon Sep 17 00:00:00 2001
From: Jonathan Rosenbaum
Date: Wed, 11 Feb 2015 01:55:38 +0000
Subject: [PATCH] Spiffs up contact_and_edit, adding error correction and
required waiver.
1). Next step will be an opt-in/out to mailman.
2). Originally this program was using google lists, but there are too many steps for users involved.
---
Connections/database_functions.php | 9 +
.../contact_add_edit_confirmation.html | 0
...ontact_add_edit_confirmation_frameset.html | 0
...act_add_edit_confirmation_framesetphp.html | 0
.../contact_add_edit_confirmation_iframe.php | 0
.../contact_add_edit_newsletter.php | 0
contact_add_edit.php | 220 +++++++++---------
css/contacts.css | 7 +
include_header.html | 2 +
js/contact.js | 122 ++++++++++
js/transaction.js | 21 +-
json/transaction.php | 15 +-
12 files changed, 269 insertions(+), 127 deletions(-)
rename contact_add_edit_confirmation.html => attic/contact_add_edit_confirmation.html (100%)
rename contact_add_edit_confirmation_frameset.html => attic/contact_add_edit_confirmation_frameset.html (100%)
rename contact_add_edit_confirmation_framesetphp.html => attic/contact_add_edit_confirmation_framesetphp.html (100%)
rename contact_add_edit_confirmation_iframe.php => attic/contact_add_edit_confirmation_iframe.php (100%)
rename contact_add_edit_newsletter.php => attic/contact_add_edit_newsletter.php (100%)
create mode 100644 css/contacts.css
create mode 100644 js/contact.js
diff --git a/Connections/database_functions.php b/Connections/database_functions.php
index a038c48..9f292c7 100644
--- a/Connections/database_functions.php
+++ b/Connections/database_functions.php
@@ -236,6 +236,15 @@ function list_distinct_shop_years($form_name = "none", $default_value = ""){
generate_list($querySQL,$list_value,$list_text,$form_name, $default_value);
}
+
+function list_history($object) {
+/* require_once('../php-console/src/PhpConsole/__autoload.php');
+ $handler = PhpConsole\Handler::getInstance();
+ $handler->start();
+ $handler->debug($object);*/
+
+}
+
// #####################
// Date/Time functions
diff --git a/contact_add_edit_confirmation.html b/attic/contact_add_edit_confirmation.html
similarity index 100%
rename from contact_add_edit_confirmation.html
rename to attic/contact_add_edit_confirmation.html
diff --git a/contact_add_edit_confirmation_frameset.html b/attic/contact_add_edit_confirmation_frameset.html
similarity index 100%
rename from contact_add_edit_confirmation_frameset.html
rename to attic/contact_add_edit_confirmation_frameset.html
diff --git a/contact_add_edit_confirmation_framesetphp.html b/attic/contact_add_edit_confirmation_framesetphp.html
similarity index 100%
rename from contact_add_edit_confirmation_framesetphp.html
rename to attic/contact_add_edit_confirmation_framesetphp.html
diff --git a/contact_add_edit_confirmation_iframe.php b/attic/contact_add_edit_confirmation_iframe.php
similarity index 100%
rename from contact_add_edit_confirmation_iframe.php
rename to attic/contact_add_edit_confirmation_iframe.php
diff --git a/contact_add_edit_newsletter.php b/attic/contact_add_edit_newsletter.php
similarity index 100%
rename from contact_add_edit_newsletter.php
rename to attic/contact_add_edit_newsletter.php
diff --git a/contact_add_edit.php b/contact_add_edit.php
index ec38eb5..2abec88 100644
--- a/contact_add_edit.php
+++ b/contact_add_edit.php
@@ -14,7 +14,8 @@ case 'new_error_message': //this is a sample error message. insert error case h
$error_message = '';
break;
default:
- $error_message = 'Enter or Update Contact Information - Yellow Bike uses this information soely to support the project and it is kept entirely private. When we apply for grants it helps us to know a little bit about our shop users. Thanks for supporting The Yellow Bike Project.
-
|