attributes['Date']).'" />'; $local['hint_fr'] = 'écrivez le jour le mois puis l¨année '; $hint = get_local('hint'); $fields[] = array($label, $input, $hint); //Votre pseudo $local['label_fr'] = 'Pseudo'; $label = get_local('label'); $input = ''; $local['hint_fr'] = 'Votre pseudo ou votre vrai nom, à votre convenance'; $hint = get_local('hint'); $fields[] = array($label, $input, $hint); // illustrations $local['label_fr'] = 'Fonctionnaires'; $label = get_local('label'); $input = ''; $local['hint_fr'] = 'Évaluez les compétances des fonctionnaires 10 (très humain) 5 (ça dépend) 0 (totalement indifférend)'; $hint = get_local('hint'); $fields[] = array($label, $input, $hint); // L'administration de la SAAQ $local['label_fr'] = 'administration'; $label = get_local('label'); $input = ''; $local['hint_fr'] = 'Écrivez les services auquels vous avez eu affaire, et notez les 10 (très humain) 5 (ça dépend) 0 (totalement indifférend)Indemnisation, réadaptation, médecin évaluateur, médecin expert, avocat de la SAAQ '; $hint = get_local('hint'); $fields[] = array($label, $input, $hint); return $fields; } /** * get an overlaid label * * Accepted action codes: * - 'edit' the modification of an existing object * - 'delete' the deleting form * - 'new' the creation of a new object * - 'view' a displayed object * * @see overlays/overlay.php * * @param string the target label * @param string the on-going action * @return the label to use */ function get_label($name, $action='view') { global $context, $local; // the target label switch($name) { // description label case 'description': $local['label_fr'] = 'VOTRE OPINION: Écrivez ce qui doit être amélioré en priorité'; return get_local('label'); // description hint case 'description_hint': $local['label_fr'] = 'Vous pouvez commencer chaque étape par les caractères [*]'; return get_local('label'); // help panel case 'help': if(($action == 'new') || ($action == 'edit')) { $local['label_fr'] = '
Merci de ne pas être grossier sinon votre texte sera censuré.
'; return get_local('label'); } return NULL; // page title case 'title': switch($action) { case 'edit': $local['label_fr'] = 'Modifiez une liste de vos blessures'; return get_local('label'); case 'delete': $local['label_fr'] = 'Supprimez la liste de vos blessures'; return get_local('label'); case 'new': $local['label_fr'] = 'Publiez une nouvelle liste de vos blessures'; return get_local('label'); case 'view': default: // use the article title as the page title return NULL; } } // no match return NULL; } /** * display the content of one livre * * Accepted variant codes: * - 'view' - embedded into the main viewing page * * @see overlays/overlay.php * * @param string the variant code * @param array the hosting record * @return some HTML to be inserted into the resulting page */ function get_text($variant='view', $host=NULL) { global $context, $local; // add something to zooming views only if($variant != 'view') return ''; // date de l'accident $local['label_en'] = 'Date'; $local['label_fr'] = ''.get_local('label').': '.$this->attributes['Date']."
\n"; // the Pseudo $local['label_fr'] = ''.get_local('label').': '.$this->attributes['Pseudo']."
\n"; // the Fonctionnaires $local['label_fr'] = ''.get_local('label').': '.$this->attributes['Fonctionnaires']."
\n"; // administration $local['label_fr'] = ''.get_local('label').':'.BR.$this->attributes['Administration']."
\n"; return Codes::beautify($text); } /** * retrieve the content of one modified overlay * * @see overlays/overlay.php * * @param the fields as filled by the end user * @return the updated fields */ function parse_fields($fields) { $this->attributes['Date'] = $fields['Date']; $this->attributes['Pseudo'] = $fields['Pseudo']; $this->attributes['Fonctionnaires'] = $fields['Fonctionnaires']; $this->attributes['Administration'] = $fields['Administration']; return $this->attributes; } } ?>