Source

moumar_eval_form / config.php

Full commit
<?php

$MEF_RATING_DESCRIPTIONS = array(
    "Nul",
    "A la limite",
    "Assez bien",
    "Très bien",
    "Excellent!"
);

$MEF_FORM_DESCRIPTION = array(
  "annee_visite"        => array("nom" => "Année de visite", 
                                 "type" => "select",
                                 "valeurs" => range("1950", date('Y'))),
  "temps_sur_place"     => array("nom" => "Temps sur place",
                                 "type" => "checkbox",
                                 "valeurs" => array("moins d'une semaine", "moins de 2 semaines", "moins de 1 mois")),
  "age"                 => array("nom" => "Votre âge",
                                 "type" => "select",
                                 "valeurs" => array_map(function($age) { return $age." ans"; }, range(7, 100))),
  "sexe"                => array('nom' => "Votre sexe",
                                 "type" => "checkbox",
                                 "valeurs" => array("homme", "femme")),
  "type_voyage"         => array("nom" => "Type de voyage",
                                 "type" => "select",
                                 "valeurs" => array("Routard", "Famille", "Groupe", "indépendant", "Voyage organisé", "Hotel-club", "Expat")),
  "villes_visitees"     => array("nom" => "Régions ou villes notables visitées",
                                 "type" => "textarea"),
  "ce_qui_a_plu"        => array("nom" => "Ce qui vous a plu dans ce pays",
                                 "type" => "textarea",
                                 "limite" => 500),
  "ce_qui_a_deplu"      => array("nom"  => "Ce qui vous a déplu dans ce pays",
                                 "type" => "textarea",
                                 "limite" => 500),
  "budget"              => array("nom" => "Budget",
                                 "type" => "select",
                                 "valeurs" => array('moins de 500 €', 'moins de 1000 €')),
  #"Communication"                       => array(),
  "hebergement"         => array("nom" => 'Hébergement', "type" => "note"),
  "gastronomie"         => array("nom" => 'Gastronomie', "type" => "note"),
  "accueil"             => array("nom" => 'Accueil & hospitalité', "type" => "note"),
  "meteo"               => array("nom" => 'Météo', "type" => "note"),
  "night-life"          => array("nom" => 'Bars/boîtes/night life', "type" => "note"),
  "paysages"            => array("nom" => 'Paysages', "type" => "note"),
  "culture"             => array("nom" => 'Culture/Monuments/musées', "type" => "note"),
  "activites"           => array("nom" => 'Activités/loisirs/sport', "type" => "note"),
  "shopping"            => array("nom" => 'Shopping', "type" => "note"),
  "sante"               => array("nom" => 'Hygiène/Santé', "type" => "note"),
  "securite"            => array("nom" => 'Sécurité', "type" => "note"),
  "gay"                 => array("nom" => 'Gay-Friendly', "type" => "note"),
  "photo"               => array("nom" => 'Intérêt photographique', "type" => "note"),
  "deplacements"        => array("nom" => 'Déplacements intérieurs', "type" => "note"),
  "commentaire_supp"    => array("nom" => "Commentaire supplémentaire",
                                 "type" => "textarea",
                                 "taille" => 500,
                                 "facultatif" => true),
  "bons_plans"          => array("nom" => "Bons plans",
                                 "type" => "textarea",
                                 "taille" => 500),
  "recommander_ami"     => array("nom" => "Recommanderiez vous cette destination à un ami",
                                 "type" => "checkbox",
                                 "valeurs" => array("oui", "non")),
  "pseudo"              => array("nom" => "Votre pseudo",
                                 "type" => "text")
  #(Eventuellement :)
  #Langues:
  #Racisme:
);
?>