/*
 * Author       : paolobiasini
 * Generated on : 23-Nov-2009 01:17:33
 * Version      : 3.0
 */
application "Download Termografia"
{
    type = public
    date format = "dd-MMM-yyyy"
    time zone = "America/Los_Angeles"
    section Home
    {
        form  Download_Termografia
        {
            displayname  =  "Download Termografia"
            
            must  have  Nome_e_Cognome
            (
                displayname  =  "Nome e Cognome"
                type  =  text
            )

            must  have  e_mail
            (
                displayname  =  "e-mail"
                type  =  email
            )

            actions
            {
                on add
                {
                    Submit
                    (
                        type  =  submit
                        displayname  =  "Submit"
                        on success
                        {
                            sendmail
                            (
                                To       :  "info@paolobiasini.it" 
                                From     :  zoho.adminuserid 
                                Subject  :  "Download file Termografia" 
                                Message  :  "<p>Il seguente utente ha effettuato il download dei file Termografia</p>" + input.formdata 
                            )
                        }
                    )
                    Reset
                    (
                        type  =  reset
                        displayname  =  "Reset"
                    )
                }
                on edit
                {
                    Update
                    (
                        type  =  submit
                        displayname  =  "Update"
                    )
                    Cancel
                    (
                        type  =  cancel
                        displayname  =  "Cancel"
                    )
                }
            }
        }

        list  Download_Termografia_View
        {
            displayname = "Download Termografia View"
            show  all  rows  from  Download_Termografia 
            (
                ID
                Added_User as "Added User"
                Added_Time as "Added Time"
                Modified_User as "Last Modified User"
                Modified_Time as "Last Modified Time"
                Nome_e_Cognome as "First Name"
                e_mail as "EmailId"
            )
            options
            (
                display rows = 100
            )
        }

    }

}
