From 90c1e0aadc7d5f79e6bc367e015c5af97928bd9b Mon Sep 17 00:00:00 2001 From: "(no author)" <(no author)@1b90f75b-8b96-4784-87c0-14078182fce6> Date: Mon, 13 Oct 2008 20:03:15 +0000 Subject: [PATCH] git-svn-id: https://svn.salfter.gotdns.org/svn/compmgmt/trunk@168 1b90f75b-8b96-4784-87c0-14078182fce6 --- protected/application.xml | 4 +++- protected/layouts/MainLayout.php | 5 +++++ protected/layouts/MainLayout.tpl | 22 +++++++++++++++++++ protected/pages/Contact.page | 37 ++++++++++++++++++++++++++++++++ protected/pages/Contact.php | 28 ++++++++++++++++++++++++ protected/pages/Home.page | 9 ++------ 6 files changed, 97 insertions(+), 8 deletions(-) create mode 100644 protected/layouts/MainLayout.php create mode 100644 protected/layouts/MainLayout.tpl create mode 100644 protected/pages/Contact.page create mode 100644 protected/pages/Contact.php diff --git a/protected/application.xml b/protected/application.xml index 5c044ff..7fd5689 100644 --- a/protected/application.xml +++ b/protected/application.xml @@ -27,7 +27,9 @@ - + + + + + +
+ + +
+Feedback: + +
+ + +
+ + diff --git a/protected/pages/Contact.php b/protected/pages/Contact.php new file mode 100644 index 0000000..256092e --- /dev/null +++ b/protected/pages/Contact.php @@ -0,0 +1,28 @@ +IsValid) // check if input validation is successful + { + // obtain the user name, email, feedback from the textboxes + $name = $this->Name->Text; + $email = $this->Email->Text; + $feedback = $this->Feedback->Text; + + // send an email to administrator with the above information + $this->mailFeedback($name, $email, $feedback); + } + } + + protected function mailFeedback($name, $email, $feedback) + { + // implementation of sending the feedback email + } +} +?> \ No newline at end of file diff --git a/protected/pages/Home.page b/protected/pages/Home.page index 3f21ad3..803a386 100644 --- a/protected/pages/Home.page +++ b/protected/pages/Home.page @@ -1,8 +1,3 @@ - - - Welcome to PRADO - - +

Welcome to PRADO!

- - \ No newline at end of file +
\ No newline at end of file