Tu peux déjà faire une approche simple avec SPIP
Pour ça tu crées une table sup spip_adherants (y'a une faute, mais c'est pas
grave) 'ents'
tu l'a crée comme tu la déclares dans mes_fonctions:
J'ai fais ainsi:
$tables_principales['adherants']= array(
'field' => array(
"id_ad" => "bigint(21) NOT NULL",
"nom_ad" => "text NOT NULL",
"email_ad" => "tinytext NOT NULL",
"date_inscrip" => "date DEFAULT '0000-00-00' NOT NULL",
"adresse_ad" => "text NOT NULL",
"portable_ad" => "tinytext",
"telephone_ad" => "tinytext",
"paye" => "text NOT NULL",
"date_jour" =>"date DEFAULT '0000-00-00' NOT NULL",
"divers"=>"text", // utile pour la relance
"rem_ad" => "text"
),
'key' => array("PRIMARY KEY" => "id_ad")
);
id_ad en auto incrémentation !
//
// <BOUCLE(ADHERANTS)>
//
function boucle_ADHERANTS($id_boucle, &$boucles) {
$boucle = &$boucles[$id_boucle];
$id_table = $boucle->id_table;
$boucle->from = "spip_adherants AS $id_table";
return calculer_boucle($id_boucle, $boucles);
}
Ensuite un couple php ->html
et dans le html ceci (attention c'est du brut y'a pas de feuille de style
etc.. A revoir donc:
<p><strong>.:: GESTION DES ADHERENTS ::.</strong></p>
<p><a href="gestion.php3">Gestion des adhérents</a> | <a
href="ajout.php3">Ajout d'un membre</a>
| <a href="essai.php3">Relance de cotisations</a> | <a
href="gestion_bienfaiteurs.php3">Gestion des bienfaiteurs</a>
| <a href="test.php3">Envoi de mail en masse</a> | <a href="#">Vente de
livres aux auteurs</a>
|<a href="#">Gestion des dépôts livres</a> | <a
href="index.php3">Accueil</a></p>
<form method="post" action="delete_membre.php3">
<table width="100%" border="1">
<tr bgcolor="#D9D7AA">
<td width="4%"><strong>ID</strong></td>
<td width="5%"><strong>NOM:</strong></td>
<td width="5%"><strong>Email</strong></td>
<td width="9%"><strong>Date d'inscription</strong></td>
<td width="20%"><strong>Adresse</strong></td>
<td width="12%"><strong>Portable</strong></td>
<td width="12%"><strong>Téléphone</strong></td>
<td width="3%"><strong>Réglement</strong></td>
<td width="3%"><strong>Relance</strong></td>
<td width="12%"><strong>Remarques</strong></td>
<td width="6%"><strong>Sup</strong></td>
</tr>
<BOUCLE_essai(ADHERANTS){tout}{par date_inscrip}>
<tr>
<td>#ID_AD</td>
<td>#NOM_AD</td>
<td><a href="mailto:#EMAIL_AD">#EMAIL_AD</a></td>
<td>[(#DATE_INSCRIP|affdate{'d/m/Y'})]</td>
<td>#ADRESSE_AD</td>
<td>#PORTABLE_AD</td>
<td>#TELEPHONE_AD</td>
<td>#PAYE €</td>
<td>#DIVERS</td>
<td>#REM_AD</td>
<td><input name='delete[#ID_AD]' type="checkbox" value="#ID_AD"></td>
</tr>
</BOUCLE_essai>
</table>
<div align="center"><BR />
<input type="submit" name="Submit" value="Effacement adherent">
</div>
</form>
<p></p>
<BR/>
<BOUCLE_total(ADHERANTS)>
<p> [
<?php $total =(#TOTAL_BOUCLE); $prix="15"; ?>
]
</BOUCLE_total>
<font color="#9F1C30"><strong><?echo "Total des cotisations : ",
$total*$prix, " €";?></strong></font><BR/>
<font color="#4F8437"><strong><?echo "Nombre d'adhérents : ", $total;?>
</strong></font><BR/>
</p>
<div align="center"><a href="http://www.la-plume-et-lencrier.info"
target="_parent">Retour
au site</a> </div>
Le delete_membre.php3
<?php
if (sizeof($delete)==0)
{
header('Location:gestion.php3');
exit;
}
else
{
foreach ($delete as $valeur){
$sql="DELETE FROM spip_adherants where id_ad='$valeur'";
$req= mysql_query($sql);
}
mysql_close();
header('Location:gestion.php3');
exit;
}
?>
Le rajout d'un membre:
<?
if (!$auteur_session){
//Si pas logué, on affiche le formulaire de loguin'
?>
<INCLURE(connexion.php3){id_rubrique}>
<?php
exit;
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Document sans titre</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style>
body {
background: white;
font: 14px serif;
margin: 1em;
}
p, li {
text-align: center;
}
a {
font-family: Verdana;
font-size: 8pt;
color: #000066;
text-decoration: none;
}
a:hover { color: #990000; text-decoration: underline; }
table {
border-style:solid;
border-width:1px;
border-color:black;
width:100%;
}
td {
border-style:solid;
border-width:1px;
border-color:silver;
font: 12px serif;
}
</style>
</head>
<body><p><strong>.:: AJOUTER UN MEMBRE ACTIF ::.</strong></p>
<p><a href="gestion.php3">Gestion des adhérents</a> | <a
href="ajout.php3">Ajout d'un membre</a>
| <a href="essai.php3">Relance de cotisations</a> | <a
href="gestion_bienfaiteurs.php3">Gestion des bienfaiteurs</a>
| <a href="test.php3">Envoi de mail en masse</a> | <a href="#">Vente de
livres aux auteurs</a>
|<a href="#">Gestion des dépôts livres</a> | <a
href="index.php3">Accueil</a></p>
<p><form action="inscriptions.php3" method="POST">
<fieldset><legend>Ajouter un membre actif </legend>
<table width="25%" class="noclass">
<tr>
<td width="7%">NOM</td>
<td > <input name="nom_ad" type="text"></td>
</tr>
<tr>
<td>EMAIL</td>
<td><input name="email_ad" type="text" width="250"> </td>
</tr>
<tr>
<td>Adresse</td>
<td><input name="adresse_ad" type="text" width="350"> </td>
</tr>
<tr>
<td>Portable</td>
<td><input name="portable_ad" type="text"></td>
</tr>
<tr>
<td>Téléphone</td>
<td><input name="telephone_ad" type="text"> </td>
</tr>
<tr>
<td>Réglé (en €)</td>
<td><input name="paye" type="text"> </td>
</tr>
<tr>
<td>Remarques </td>
<td><textarea name="rem_ad" cols="18" rows="5"></textarea> </td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td><input name="" type="submit" value="Envoyer"></td>
</tr>
</table>
</fieldset></form>
<div align="center"><a href="http://lesite.com target="_parent">Retour
au site</a> </div>
</body>
</html>
Voilà un peu si tu veux d'autres choses dis le moi ..Tu pex faire la même
chose avec les bienfaiteurs et rajouter des champs dans la base style
"Membres bureaux etc..."
Bernard
---- Original Message ----
From: "GARNIER Jean-Luc" <Jean-Luc.GARNIER@gemalto.com>
To: "Maïeul Rouquette" <maieulrouquette2@tele2.fr>
Cc: "SPIP" <spip@rezo.net>
Sent: Thursday, June 15, 2006 9:01 AM
Subject: RE: [Spip] Gestion d'une liste d'adhérents
Merci ! As tu une idée de l'endroit où trouver ceci ? Google ne
ramène rien de pertinent..
Jean-Luc GARNIER
-----Message d'origine-----
De : Maïeul Rouquette [mailto:maieulrouquette2@tele2.fr]
Envoyé : mercredi 14 juin 2006 17:05
À : GARNIER Jean-Luc
Cc : SPIP
Objet : Re: [Spip] Gestion d'une liste d'adhérents
avec ou sans intégration à spip?
si sans, je crois qu'il existe un truc appelé l'asso , mais qui n'est
documenté qu'en anglais.
Maïeul
GARNIER Jean-Luc a écrit :
Bonjour!
Est-ce que quelqu'un connait un script PHP pour gérer une liste
d'adhérents (adhésion, radiation, échéances des cotisations, etc.) ?
J'étais un jour tombé sur Galette 0.62, mais celui-ci ne marchait
pas vraiment bien et il semble qu'il soit mort-né..
Merci d'avance pour toute aide,
Jean-Luc GARNIER
_______________________________________________
liste spip
spip@rezo.net - désabonnement : spip-off@rezo.net
Infos et archives : http://listes.rezo.net/mailman/listinfo/spip
Documentation de SPIP : http://www.spip.net/
irc://irc.freenode.net/spip
FAQ : http://www.spip-contrib.net/spikini/FaQ
_______________________________________________
liste spip
spip@rezo.net - désabonnement : spip-off@rezo.net
Infos et archives : http://listes.rezo.net/mailman/listinfo/spip
Documentation de SPIP : http://www.spip.net/
irc://irc.freenode.net/spip
FAQ : http://www.spip-contrib.net/spikini/FaQ
.....................::::::IIIII:::::::...................
http://www.la-plume-et-lencrier.com
http://palabres.la-plume-et-lencrier.com
http://www.la-plume-et-lencrier.info
http://editions.la-plume-et-lencrier.info
http://www2.la-plume-et-lencrier.com
............................................................
LA PLUME ET L'ENCRIER
Association Loi 1901
.....................::::::IIIII:::::...........................