Subversion-Projekte lars-tiefland.prado

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
3 lars 1
<?php
2
 
3
    //$Id$
4
 
5
    /**
6
     * @author Lars Tiefland <tiefland@weban.de>
7
     * @copyright 2009 Webagentur Niewerth
8
     * @package prado
9
     * @version $Rev$
10
     * @license propietary
11
     * @filesource
12
     *
13
     */
14
 
15
    /**
16
     *
17
     * @author Lars Tiefland <tiefland@weban.de>
18
     * @copyright 2009 Webagentur Niewerth
19
     * @package prado
20
     */
21
 
22
    class Contact extends TPage
23
    {
24
        /**
25
         * Event handler for the OnClick event of the submit button.
26
         * @param TButton the button triggering the event
27
         * @param TEventParameter event parameter (null here)
28
         */
29
        public function submitButtonClicked( $sender, $param )
30
        {
31
            if ( $this->IsValid ) // check if input validation is successful
32
 
33
            {
34
                // obtain the user name, email, feedback from the textboxes
35
                $name = $this->Name->Text;
36
                $email = $this->Email->Text;
37
                $feedback = $this->Feedback->Text;
38
 
39
                // send an email to administrator with the above information
40
                $this->mailFeedback( $name, $email, $feedback );
41
            }
42
        }
43
 
44
        protected function mailFeedback( $name, $email, $feedback )
45
        {
46
            // implementation of sending the feedback email
47
        }
48
    }
49
 
50
?>