diff --git a/action/toggle_param.php b/action/toggle_param.php new file mode 100644 index 0000000..429e3ea --- /dev/null +++ b/action/toggle_param.php @@ -0,0 +1,35 @@ + ''); + } + else{ + $set = array($param => 'on'); + } + + sql_updateq($table, $set, $where); + include_spip('inc/invalideur'); + suivre_invalideur("id='$objet/$id_objet'"); + } + // redirection sur la page courante + include_spip('inc/headers'); + redirige_par_entete(_request('redirect')); +} + diff --git a/balint_fonctions.php b/balint_fonctions.php index 3f552f6..b047ce4 100644 --- a/balint_fonctions.php +++ b/balint_fonctions.php @@ -76,3 +76,8 @@ if (!function_exists('array_column')) { return $result; } } + +function info_param($arg){ + list($objet,$id_objet,$param)=explode('/',$arg); + return sql_getfetsel($param,'spip_' .$objet. 's',"id_$objet=$id_objet"); +} \ No newline at end of file diff --git a/content/gerer_auteurs.html b/content/gerer_auteurs.html index 473a5a9..5488d03 100644 --- a/content/gerer_auteurs.html +++ b/content/gerer_auteurs.html @@ -11,10 +11,10 @@ Nom Statut + Bureau Animateur Email Téléphone - Téléphone 2 Actions @@ -25,17 +25,19 @@ #NOM [(#STATUT|=={0minirezo}|oui) Administrateur] - [(#STATUT|=={1comite}|oui) Rédacteur] + [(#STATUT|=={1comite}|oui) Membre] [(#STATUT|=={6forum}|oui) Inscrit] - - [(#SURTITRE|unique)] + + + + + #SURTITRE #EMAIL - #TELEPHONE - #TELEPHONE2 + #TELEPHONE
#TELEPHONE2 diff --git a/inclure/toggle_param.html b/inclure/toggle_param.html new file mode 100644 index 0000000..8142b65 --- /dev/null +++ b/inclure/toggle_param.html @@ -0,0 +1,4 @@ + + + \ No newline at end of file