Browse Source

tee

git-svn-id: svn://svn.spip.net/spip-zone/_galaxie_/spip-party@49032 ac52e18a-acf5-0310-9fe8-c4428f23b10a
old_history/pre_trunk
ben.spip@gmail.com 9 years ago
parent
commit
e3f0bba40f
2 changed files with 16 additions and 0 deletions
  1. +11
    -0
      squelettes/formulaires/troglo.html
  2. +5
    -0
      squelettes/formulaires/troglo.php

+ 11
- 0
squelettes/formulaires/troglo.html View File

@@ -12,6 +12,7 @@
<th scope='col'>Vendredi</th>
<th scope='col'>Samedi</th>
<th scope='col'>Dimanche</th>
<th scope='col'>Tee</th>
</thead>
<tbody>

@@ -116,6 +117,16 @@
</div>
</li>



#SET{name,tee}#SET{obli,''}#SET{erreurs,#ENV**{erreurs}|table_valeur{#GET{name}}}
<li class="editer_[(#GET{name})][ (#GET{obli})][ (#GET{erreurs}|oui)erreur]">
<label for="#GET{name}">[(#GET{fl}|concat{':label_',#GET{name}}|_T)]</label>[
<span class='erreur_message'>(#GET{erreurs})</span>
]<input type="text" class="text" name="#GET{name}" value="#ENV*{#GET{name}}" id="#GET{name}"/>
</li>


</ul>
</fieldset>
[(#REM) ajouter les saisies supplementaires : extra et autre, a cet endroit ]


+ 5
- 0
squelettes/formulaires/troglo.php View File

@@ -2,6 +2,7 @@

function formulaires_troglo_charger_dist() {
$contexte = array(
'tee' => '',
'pseudo' => '',
'email' => '',
'nbenfants' => '',
@@ -28,6 +29,7 @@ function formulaires_troglo_verifier_dist()
{
if ( !_request('pseudo')) {
$row= sql_fetsel('*', 'spip_troglo', 'email="'._request ('email').'"');
set_request('tee', $row['tee']) ;
set_request('pseudo', $row['pseudo']) ;
set_request('nbenfants', $row['nbenfants']);
set_request('nbadultes', $row['nbadultes']);
@@ -64,6 +66,7 @@ include_spip('base/abstract_sql');
'spip_troglo',
array(
'pseudo' => _request('pseudo') ,
'tee' => _request ('tee'),
'email' => _request ('email'),
'nbadultes' => _request ('nbadultes'),
'nbenfants' => _request ('nbenfants'),
@@ -82,6 +85,7 @@ include_spip('base/abstract_sql');
$res_lien = sql_insertq('spip_troglo',array(
'pseudo' => _request('pseudo') ,
'email' => _request ('email'),
'tee' => _request ('tee'),
'nbadultes' => _request ('nbadultes'),
'nbenfants' => _request ('nbenfants'),
'date' => date('Y-m-d H:i:s'),
@@ -124,6 +128,7 @@ include_spip('base/serial');
$spip_troglo = array(
"id_troglo" => "bigint(21) NOT NULL",
"tee" => "text DEFAULT '' NOT NULL",
"pseudo" => "text DEFAULT '' NOT NULL",
"email" => "text DEFAULT '' NOT NULL",
"vendredi" => "integer DEFAULT '0' NOT NULL",


Loading…
Cancel
Save