/*
 * Author       : entrepares
 * Generated on : 22-Nov-2009 19:25:51
 * Version      : 3.0
 */
application "ADA_B-Learning ITM - julio 15"
{
    type = public
    date format = "dd-MMM-yyyy"
    time zone = "America/Bogota"
    section Home
    {
        form  ADA_B_Learning_ITM
        {
            displayname  =  "Copy of ADA_B-Learning ITM"
            
            must  have  Documento_de_identidad
            (
                displayname  =  "Documento de identidad"
                type  =  text
            )

            must  have  Nombre_Completos
            (
                displayname  =  "Nombre Completos"
                type  =  text
                maxchar  =  100
            )

            must  have  email
            (
                type  =  text
            )

            Avisale_a_colega_ITM_para_que_se_inscriba
            (
                displayname  =  "Avisale a un colega ITM para que se inscriba - [Correo del colega]"
                type  =  email
            )

            Telefono
            (
                type  =  text
            )

            must  have  Elija_la_fecha_y_jornada_del_curso
            (
                displayname  =  "Elija la fecha  y jornada del curso"
                type  =  picklist
                values  =  {"Martes 15 julio al Viernes 18 - 8:00 -12:00 [Sede Tecnosoft]",   "Martes 15 julio al Viernes 18 - 14:00 -18:00 [Sede Tecnosoft]",   "Martes 15 julio al Viernes 18 - 18:00 -21:30 [Sede Tecnosoft]"}
            )

            must  have  Checkbox_1
            (
                displayname  =  "Modulo que a tomado en el B-learning"
                type  =  checkboxes
                values  =  {"Tablero Digital",   "Herramientas ofimaticas [word,excel...]",   "Aplicaciones Matematicas",   "Ninguno"}
            )

            Comentarios
            (
                type  =  textarea
            )

            actions
            {
                on add
                {
                    Submit
                    (
                        type  =  submit
                        displayname  =  "Submit"
                        on success
                        {
                            sendmail
                            (
                                To       :  "gloriagaleano@itm.edu.co" 
                                From     :  zoho.adminuserid 
                                CC       :  "formacion@peesco.com"
                                BCC      :  "gerencia@peesco.com"
                                Subject  :  "Nuevo inscrito ADA" 
                                Message  :  "Buen d&iacute;a&nbsp; " + input.Nombre_Completos + "<br /><br />Est&aacute; incrito en el m&oacute;dulo de ADA alfabetizaci&oacute;n digital Academica<br /><br />Su fecha de inicio es : " + input.Elija_la_fecha_y_jornada_del_curso + "<br /><br /><br />Gracias por contactarnos.<br /><br />Datos de registro:<br /><br />____________________________________________<br />" + input.formdata 
                            )
                        }
                    )
                    Reset
                    (
                        type  =  reset
                        displayname  =  "Reset"
                    )
                }
                on edit
                {
                    Update
                    (
                        type  =  submit
                        displayname  =  "Update"
                    )
                    Cancel
                    (
                        type  =  cancel
                        displayname  =  "Cancel"
                    )
                }
            }
        }

        list  ADA_B_Learning_ITM_View
        {
            displayname = "ADA_B-Learning ITM View"
            show  all  rows  from  ADA_B_Learning_ITM 
            (
                Nombre_Completos as "Nombre Completos"
                Elija_la_fecha_y_jornada_del_curso as "Jornada en la que está incrito"
                Added_Time as "Fecha de inscripción"
                Documento_de_identidad as "Documento de identidad"
                email
                Telefono
            )
            filters 
            (
                Elija_la_fecha_y_jornada_del_curso
            )
            options
            (
                display rows = 50
            )
        }

    }

}
