Changeset 76747 in spip-zone for _plugins_/itineraires
- Timestamp:
- Sep 30, 2013, 1:04:46 PM (8 years ago)
- Location:
- _plugins_/itineraires/trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
_plugins_/itineraires/trunk/base/itineraires.php
r76719 r76747 48 48 "titre" => "text NOT NULL DEFAULT ''", 49 49 "texte" => "text NOT NULL DEFAULT ''", 50 " distance" => "floatnot null default 0",50 "longueur" => "float(9,3) not null default 0", 51 51 "denivele" => "int(11) NOT NULL DEFAULT 0", 52 52 "difficulte" => "int(11) NOT NULL DEFAULT 0", … … 66 66 'titre' => "titre AS titre, '' AS lang", 67 67 'date' => "date", 68 'champs_editables' => array('titre', 'texte', ' distance', 'denivele', 'difficulte', 'depart', 'balisage', 'boucle', 'transport', 'handicap'),69 'champs_versionnes' => array('titre', 'texte', ' distance', 'denivele', 'difficulte', 'depart', 'balisage', 'boucle', 'transport', 'handicap'),68 'champs_editables' => array('titre', 'texte', 'longueur', 'denivele', 'difficulte', 'depart', 'balisage', 'boucle', 'transport', 'handicap'), 69 'champs_versionnes' => array('titre', 'texte', 'longueur', 'denivele', 'difficulte', 'depart', 'balisage', 'boucle', 'transport', 'handicap'), 70 70 'rechercher_champs' => array("titre" => 8, "texte" => 5), 71 71 'tables_jointures' => array(), -
_plugins_/itineraires/trunk/formulaires/editer_itineraire.php
r76719 r76747 99 99 'saisie' => 'input', 100 100 'options' => array( 101 'nom' => ' distance',102 'label' => _T('itineraire:champ_ distance_label'),103 'explication' => _T('itineraire:champ_ distance_explication'),101 'nom' => 'longueur', 102 'label' => _T('itineraire:champ_longueur_label'), 103 'explication' => _T('itineraire:champ_longueur_explication'), 104 104 ), 105 105 'verifier' => array( … … 200 200 201 201 // Pour les trucs numériques, laisser vide si c'est 0 202 foreach (array(' distance', 'denivele', 'difficulte') as $champ_num){202 foreach (array('longueur', 'denivele', 'difficulte') as $champ_num){ 203 203 if ($valeurs[$champ_num] == 0){ 204 204 $valeurs[$champ_num] = ''; 205 205 } 206 206 } 207 208 // Enlever les 0 superflus 209 $valeurs['longueur'] = floatval($valeurs['longueur']); 207 210 208 211 // On ajoute l'identifiant dans l'envoi -
_plugins_/itineraires/trunk/lang/itineraire_fr.php
r76719 r76747 21 21 'champ_difficulte_explication' => 'Entre @min@ et @max@', 22 22 'champ_difficulte_label' => 'Difficulté', 23 'champ_distance_explication' => 'En kilomètres',24 'champ_distance_label' => 'Distance',25 23 'champ_handicap_label' => 'Handicap', 26 24 'champ_handicap_label_case' => 'L\'itinéraire est-il accessible aux handicapés ?', 25 'champ_longueur_explication' => 'En kilomètres', 26 'champ_longueur_label' => 'Longueur', 27 27 'champ_texte_label' => 'Texte', 28 28 'champ_titre_label' => 'Titre', -
_plugins_/itineraires/trunk/prive/objets/contenu/itineraire.html
r76719 r76747 7 7 8 8 [<div class="champ contenu_texte[ (#TEXTE*|strlen|?{'',vide})]"> 9 <label ><:itineraire:champ_texte_label:> : </label>9 <label class="label"><:itineraire:champ_texte_label:> : </label> 10 10 <span dir='#LANG_DIR' class='#EDIT{texte} texte'>(#TEXTE)</span> 11 11 </div>] 12 12 13 [<div class="champ contenu_ distance[ (#DISTANCE*|strlen|?{'',vide})]">14 <label><:itineraire:champ_ distance_label:> : </label>15 <span dir='#LANG_DIR' class='#EDIT{ distance} distance'>(#DISTANCE) km</span>13 [<div class="champ contenu_longueur[ (#LONGUEUR*|strlen|?{'',vide})]"> 14 <label><:itineraire:champ_longueur_label:> : </label> 15 <span dir='#LANG_DIR' class='#EDIT{longueur} longueur'>(#LONGUEUR|floatval) km</span> 16 16 </div>] 17 17
Note: See TracChangeset
for help on using the changeset viewer.