/*
 * Author       : dtreve
 * Generated on : 22-Nov-2009 22:33:12
 * Version      : 3.0
 */
application "eVizit - Full Version"
{
    type = public
    allow html = true
    date format = "dd-MMM-yyyy"
    time zone = "America/Los_Angeles"
    section eVizit_Home
    {
        displayname = "eVizit Home"
        form  eVizit
        {
            captcha = true
            success message  =  "Données enregistrées avec succès."
            
            f_133235_1
            (
                type  =  plaintext
                value = "<span style=\"font-weight: bold; text-decoration: underline;\">Contact :</span><br>\n"
            )

            must  have  Nom_entreprise
            (
                displayname  =  "Nom de l'entreprise"
                type  =  text
            )

            must  have  Secteur
            (
                displayname  =  "Secteur d'activite"
                type  =  picklist
                values  =  {"INFORMATIQUE - TELECOMS - HIGH-TECH",   "...Services et Ingenieries informatiques (SSII)",   "...Telecommunications",   "...Multimedia - Internet / Intranet",   "...Editeur Informatique (logiciels)",   "...Constructeur Informatique (materiel)",   "...Industrie electronique, electrotechnique",   "MEDIAS - EDITION - COMMUNICATION",   "...Medias",   "...Publicite",   "...Edition - Industrie graphique",   "...Communication - Evenementiel",   "AGRI - AGRO",   "...Agriculture / Horticulture",   "...Agroalimentaire",   "...Pêche / Mer",   "...Viticulture / Viniculture",   "COMMERCE - DISTRIBUTION",   "...Commerce de gros",   "...Distribution specialisee",   "...Grande distribution",   "SERVICES AUX ENTREPRISES",   "...Conseil",   "...Audit",   "...Expertise",   "...Formation",   "...Interim",   "...Locations",   "...Bureaux d'etudes",   "...Autres Services aux entreprises",   "BANQUES - ASSURANCES",   "...Banques - Etablissements financiers",   "...Assurances",   "SANTE - SOCIAL",   "...Secteur medical",   "...Secteur paramedical",   "...Action sociale - Prevoyance",   "...Associations",   "CONSTRUCTION - BTP - IMMOBILIER",   "...B.T.P.",   "...Immobilier",   "TRANSPORT - MANUTENTION - LOGISTIQUE",   "...Transport",   "...Manutention",   "...Logistique",   "BIENS D'EQUIPEMENTS",   "...Biens d'equipements industriels",   "...Biens d'equipements non industriels",   "...Biens d'equipement medical, biologique",   "...Autres fournisseurs de l'industrie",   "MECANIQUE - MACHINISME",   "...Industrie automobile",   "...Industrie aeronautique - Armement",   "...Machinisme agricole",   "...Autres Industries mecanique",   "CHIMIE - PHARMACIE",   "...Agrochimie",   "...Biotechnologie",   "...Peintures - Vernis",   "...Cosmetiques - Produits d'entretien",   "...Autres Industries chimiques",   "...Industrie pharmaceutique",   "TRANSFORMATION DES MATERIAUX",   "...Metallurgie - Siderurgie",   "...Industrie textile - Cuir - Maroquinerie",   "...Plasturgie",   "...Bois - Ameublement - Papier",   "MATIERES PREMIERES - ENERGIE",   "...Matieres premieres agricoles",   "...Matieres premieres minerales",   "...Matieres premieres energetiques",   "HÔTELLERIE, RESTAURATION - TOURISME, LOISIRS",   "...Hôtellerie, Restauration",   "...Tourisme",   "...Services et equipements de loisirs",   "...Musique",   "RECHERCHE",   "...Organismes de recherche",   "FONCTION PUBLIQUE",   "...Fonction publique d'etat",   "...Fonction publique territoriale",   "...Fonction publique hospitaliere",   "..."}
                defaultvalue  =  "-"
            )

            must  have  Nom
            (
                type  =  text
            )

            must  have  Pr_nom
            (
                displayname  =  "Prenom"
                type  =  text
            )

            must  have  Intitule_Poste
            (
                displayname  =  "Titre"
                type  =  text
            )

            must  have  Poste
            (
                type  =  picklist
                values  =  {"DIRECTION GENERALE - ORGANISATION - CONSEIL",   "...Direction d'entreprise (P.-D.G.-D.G.-D.G.A.)",   "...Organisation",   "...Conseil",   "INFORMATIQUE - RESEAUX - TELECOMS - MULTIMEDIA",   "...Direction informatique",   "...Audit informatique",   "...Informatique de gestion / etudes / developpement",   "...Informatique industrielle / electronique",   "...Production et exploitation informatiques",   "...Support informatique",   "...Systemes Reseaux",   "...Telecommunications",   "...Multimedia, Internet, NTIC",   "...Autres fonctions Informatique",   "...Autres fonctions Internet, multimedia, e-commerce",   "MARKETING - COMMUNICATION - CREATION",   "...Direction Marketing, Communication",   "...Direction Artistique",   "...Marketing, Promotion des Ventes, Etudes",   "...Communication, RP, Publicite, Promotion",   "...Journalisme",   "...Documentation, Traduction",   "...Creation - Graphisme - PAO",   "...Autres fonctions Marketing, Communication",   "COMMERCIAL - VENTES - IMPORT/EXPORT - ACHATS",   "...Direction commerciale, Import / Export",   "...Direction Achats",   "...Direction d'enseignes commerciales",   "...Encadrement commercial",   "...Ingenieur Commercial",   "...Technico-commercial",   "...Commercial - Ventes",   "...Administration des Ventes, SAV",   "...Distribution",   "...Import / Export",   "...Achats",   "...Autres fonctions Commercial, Export, Achats",   "COMPTABILITE - GESTION - FINANCE",   "...Direction comptable, gestion, finance",   "...Audit financier",   "...Comptabilite",   "...Controle de gestion",   "...Finances - Tresorerie",   "...Autres fonctions Comptabilite, Gestion, Finance",   "ETUDES - R&D - URBANISME",   "...Direction Etudes, Recherche, Developpement",   "...Conception, Gestion de projets d'etudes",   "...Urbanisme - Architecture",   "...Ingenierie d'Affaires",   "...Autres fonctions Etudes, R&D, Urbanisme",   "PRODUCTION - FABRICATION - TRAVAUX - CHANTIERS",   "...Direction technique de production, fabrication",   "...Metallurgistes, (Electro)Mecaniciens",   "...Electriciens, Electro(tech)niciens",   "...Chimistes, Pharmaciens, Agroalimentaire",   "...Textile, Bois, Papier, Mat. Construct., Imprimerie",   "...Autres fonctions de Production, Fabrication",   "...Chefs d'agences de travaux",   "...Cadres de chantiers",   "...Autres fonctions Travaux, Chantiers",   "SERVICES TECHNIQUES CONNEXES DE LA PRODUCTION",   "...Direction Services techniques",   "...Approvisionnements",   "...Logistique - Planification - Methode",   "...Maintenance - Entretien - Travaux neufs",   "...Qualite",   "...Controle - Securite",   "...Autres fonctions des Services techniques",   "SANTE - SOCIAL",   "...Direction, Gestion unites (socio-)medicales",   "...Professions medicales",   "...Professions paramedicales",   "...Professions sociales",   "...Visite medicale, hospitaliere",   "...Autres fonctions Sante, Social",   "BANQUE - ASSURANCE",   "...Direction Banque, Assurance",   "...Metiers de la Banque",   "...Metiers de l'Assurance",   "TOURISME - RESTAURATION - TRANSPORT - IMMOBILIER",   "...Direction",   "...Metiers du Tourisme, Hotellerie",   "...Metiers de la Restauration",   "...Metiers du Transport",   "...Metiers de l'Immobilier",   "ENSEIGNEMENT - UNITES CULTURELLES",   "...Direction, Gestion unites enseignement, culture",   "...Enseignement",   "...Professions culturelles et sportives",   "...Autres fonctions Enseignement, Unites culturelles",   "RESSOURCES HUMAINES - FORMATION - ADMINISTRATION",   "...Direction RH, Formation, Administration",   "...Conseil en recrutement",   "...Gestion administrative - Recrutement",   "...Formation - Animation",   "...Secretariat de direction - Assistanat",   "...Autres fonctions RH, Formation, Administration",   "JURIDIQUE - FISCALITE",   "...Direction juridique, fiscalite",   "...Droit - Fiscalite",   "...Autres Fonctions Juridique, Fiscalite",   "..."}
                defaultvalue  =  "-"
            )

            must  have  Adresse
            (
                type  =  text
            )

            must  have  Code_Postal
            (
                displayname  =  "Code Postal"
                type  =  number
                width  =  5
                maxchar  =  5
            )

            must  have  Ville
            (
                type  =  text
            )

            must  have  Pays
            (
                type  =  picklist
                values  =  {"France",   "-------------------------",   "Afghanistan",   "Afrique du Sud",   "Albanie",   "Algerie",   "Allemagne",   "American Samoa",   "Andorre",   "Angola",   "Anguille",   "Antarctique",   "Antigua et Barbuda",   "Antilles Neerlandaises",   "Arabie Saoudite",   "Argentine",   "Armenie",   "Aruba",   "Australie",   "Autriche",   "Azerbaijan",   "Bahamas",   "Bahrein",   "Barbade",   "Belgique",   "Belize",   "Bengladesh",   "Benin",   "Bermudes",   "Bhoutan",   "Bielorussie",   "Bolivie",   "Bosnie-Herzegovine",   "Botswana",   "Bresil",   "British Indian Ocean Territory",   "Brunei Darussalam",   "Bulgarie",   "Burkina Faso",   "Burundi",   "Cambodge",   "Cameroun",   "Canada",   "Cap Vert",   "Chili",   "Chine",   "Chypre",   "Cocos (Keeling) Islands",   "Colombie",   "Comores",   "Congo",   "Coree du Sud",   "Costa Rica",   "Cote d'Ivoire",   "Croatie",   "Danemark",   "Djibouti",   "Dominique",   "DOM-TOM",   "Egypte",   "El Salvador",   "Emirats Arabes Unis",   "Equateur",   "Erythree",   "Espagne",   "Estonie",   "Etats-Unis",   "Ethiopie",   "Ex-URSS",   "Finlande",   "Gabon",   "Gambie",   "Georgie",   "Ghana",   "Gibraltar",   "Grece",   "Grenade",   "Groenland",   "Guadeloupe",   "Guam",   "Guatemala",   "Guinee",   "Guinee Bissau",   "Guinee Equatoriale",   "Guyane",   "Guyane Francaise",   "Haiti",   "Heard and McDonald Islands",   "Honduras",   "Hong Kong",   "Hongrie",   "Ile de Bouvet",   "Ile de Paques",   "Ile Maurice",   "Ile Norfolk",   "Ile Pitcairn",   "Iles Caiman",   "Iles Cook",   "Iles Falkland",   "Iles Faroe",   "Iles Fidji",   "Iles Marshall",   "Iles Sandwich",   "Iles Solomon",   "Iles Svalbard et Jan Mayen",   "Iles Vierges (americaines)",   "Iles Vierges (britanniques)",   "Inde",   "Indonesie",   "Irak",   "Irlande",   "Islande",   "Israel",   "Italie",   "Jamaique",   "Japon",   "Jordanie",   "Kazakhstan",   "Kenya",   "Kirghistan",   "Kiribati",   "Koweit",   "La Reunion",   "Laos",   "Lesotho",   "Lettonie",   "Liban",   "Liberia",   "Liechtenstein",   "Lituanie",   "Luxembourg",   "Macao",   "Macedoine",   "Madagascar",   "Malaisie",   "Malawi",   "Maldives",   "Mali",   "Malte",   "Maroc",   "Martinique",   "Mauritanie",   "Mayotte",   "Mexique",   "Micronesie",   "Monaco",   "Mongolie",   "Montserrat",   "Mozambique",   "Namibie",   "Nauru",   "Nepal",   "Nicaragua",   "Niger",   "Nigeria",   "Niue",   "Northern Mariana Islands",   "Norvege",   "Nouvelle Caledonie",   "Nouvelle Zelande",   "Oman",   "Ouganda",   "Ouzbekistan",   "Pakistan",   "Palau",   "Panama",   "Papouasie Nouvelle Guinee",   "Paraguay",   "Pays Francophones",   "Pays-Bas",   "Perou",   "Philippines",   "Pologne",   "Polynesie",   "Portugal",   "Qatar",   "Republique Centrafricaine",   "Republique de Moldavie",   "Republique Dominicaine",   "Republique Tcheque",   "Roumanie",   "Royaume-Uni",   "Russie",   "Rwanda",   "Sahara Occidental",   "Saint Helene",   "Saint Kitts",   "Saint Pierre et Miquelon",   "Saint Thomas et Principe",   "Saint Vincent & Grenadines",   "Sainte Lucie",   "Samoa",   "San Marin",   "Senegal",   "Serbie-Montenegro",   "Seychelles",   "Sierra Leone",   "Singapour",   "Slovaquie",   "Slovenie",   "Somalie",   "Sri Lanka",   "Suede",   "Suisse",   "Surinam",   "Swaziland",   "Tadjikistan",   "Taiwan",   "Tanzanie",   "Tchad",   "Thailande",   "Timor Oriental",   "Togo",   "Tokelau",   "Tonga",   "Trinidad et Tobago",   "Tunisie",   "Turkmenistan",   "Turks and Caicos Islands",   "Turquie",   "Tuvalu",   "Ukraine",   "Uruguay",   "USA Minor Outlying Islands",   "Vanuatu",   "Vatican",   "Venezuela",   "Vietnam",   "Wallis et Futuna",   "Zaire",   "Zambie",   "Zimbabwe",   "..."}
            )

            must  have  E_mail
            (
                displayname  =  "E-mail"
                type  =  email
            )

            must  have  Telephone
            (
                type  =  number
                width  =  12
            )

            Fax
            (
                type  =  number
                width  =  12
            )

            formcomponent_25
            (
                type  =  plaintext
                value = "<span class=\"plain-text\" id=\"251805_133235_formadd_PlainTextarea\"><span style=\"font-weight: bold; text-decoration: underline;\">Plus d'informations sur le poste :</span></span>\n"
            )

            Departement
            (
                type  =  picklist
                values  =  {"Marketing",   "Ventes",   "Finance",   "Administratif",   "Ressources humaines",   "Support",   "Recherche / Conception",   "Logistique",   "Service Informatique",   "Autre"}
            )

            Niveau
            (
                type  =  picklist
                values  =  {"President",   "Directeur",   "Responsable",   "Employe",   "Autre"}
            )

            formcomponent_24
            (
                type  =  plaintext
                value = "<span style=\"font-weight: bold; text-decoration: underline;\">Plus d'informations sur l'entreprise :</span><br>\n"
            )

            Chiffre_d_affaires
            (
                displayname  =  "Chiffre d'affaires"
                type  =  picklist
                values  =  {"moins de 100 000 euros",   "entre 100 000 et 500 000 euros",   "entre 500 000 et 1 000 000 euros",   "entre 1 000 000 et 2 000 000 euros",   "entre 2 000 000 et 5 000 000 euros",   "entre 5 000 000 et 10 000 000 euros",   "plus de 10 000 000 euros"}
            )

            Employes
            (
                displayname  =  "Nombre d'employes"
                type  =  picklist
                values  =  {"1 a 4",   "5 a 9",   "10 a 24",   "25 a 49",   "50 a 74",   "75 a 99",   "100 a 199",   "200 a 500",   "500 a 1.000",   "1.000 a 2.500",   "2.500 a 5.000",   "5.000 a 10.000",   "plus de 10.000"}
            )

            Marche
            (
                type  =  picklist
                values  =  {"Regional",   "National",   "Europeen",   "International"}
            )

            Statut
            (
                type  =  picklist
                values  =  {"Prive",   "Public",   "Cote en bourse"}
            )

            Site_Internet_23
            (
                displayname  =  "Site Internet"
                type  =  text
                defaultvalue  =  "http://"
            )

            formcomponent_27
            (
                type  =  plaintext
                value = "<span style=\"font-weight: bold; text-decoration: underline;\">Options :</span><br>\n"
            )

            Contact
            (
                type  =  picklist
                values  =  {"Uniquement par telephone",   "Uniquement par e-mail",   "Uniquement par courrier postal",   "Ne souhaite pas etre contacte"}
            )

            Contact_29
            (
                displayname  =  "Contact +"
                type  =  textarea
            )

            Date_d_entree
            (
                type  =  formula
                value  =  zoho.currenttime
            )

            Utilisateur_Email
            (
                type  =  formula
                value  =  zoho.loginuserid
            )

            Utilisateur
            (
                type  =  formula
                value  =  zoho.loginuser
            )

            actions
            {
                on add
                {
                    Submit
                    (
                        type  =  submit
                        displayname  =  "Submit"
                        on success
                        {
                            sendmail
                            (
                                To       :  input.E_mail 
                                From     :  zoho.adminuserid 
                                Reply to :  "david.treve@evizit.com"
                                Subject  :  "Vous avez ajouté " + input.Pr_nom + " " + input.Nom + " avec succès" 
                                Message  :  "Bonjour,<bR><bR> " + input.Pr_nom + " " + input.Nom + " a été ajouté a votre base de données.<bR><bR>Cordialement,<bR><bR>eVizit.com" 
                            )
                        }
                    )
                    Reset
                    (
                        type  =  reset
                        displayname  =  "Reset"
                    )
                }
                on edit
                {
                    Update
                    (
                        type  =  submit
                        displayname  =  "Update"
                    )
                    Cancel
                    (
                        type  =  cancel
                        displayname  =  "Cancel"
                    )
                }
            }
        }

    }

    section eVizit_View
    {
        displayname = "eVizit View"
        list  eVizit_View
        {
            displayname = "eVizit View"
            show  all  rows  from  eVizit 
            (
                Secteur as "Secteur d'activite"
                Code_Postal as "Code Postal"
                Poste
                Pays
            )
            filters 
            (
                Secteur
                Departement
                Niveau
                Chiffre_d_affaires
                Employes
                Marche
                Statut
            )
            options
            (
                display rows = 100
            )
        }

    }

}
