.
This commit is contained in:
parent
40aeef6788
commit
0079edb4fc
@ -51,6 +51,7 @@ if ($action == 'update')
|
||||
$adh->pays = $HTTP_POST_VARS["pays"];
|
||||
$adh->typeid = $HTTP_POST_VARS["type"];
|
||||
$adh->commentaire = $HTTP_POST_VARS["comment"];
|
||||
$adh->morphy = $HTTP_POST_VARS["morphy"];
|
||||
|
||||
if ($adh->update($user->id) )
|
||||
{
|
||||
@ -87,21 +88,25 @@ if ($rowid)
|
||||
$total = $obj->total;
|
||||
}
|
||||
}
|
||||
|
||||
$adht = new AdherentType($db);
|
||||
|
||||
print_titre("Edition de la fiche adhérent");
|
||||
|
||||
|
||||
print '<table cellspacing="0" border="1" width="100%" cellpadding="3">';
|
||||
|
||||
print '<tr><td width="15%">Prénom</td><td class="valeur" width="35%">'.$adh->prenom.' </td>';
|
||||
|
||||
print "<tr><td>Type</td><td class=\"valeur\">$adh->type</td>";
|
||||
print '<td valign="top" width="50%">Commentaires</td></tr>';
|
||||
|
||||
print '<tr><td>Nom</td><td class="valeur">'.$adh->nom.' </td>';
|
||||
|
||||
print '<tr><td>Personne</td><td class="valeur">'.$adh->morphy.' </td>';
|
||||
print '<td rowspan="10" valign="top" width="50%">';
|
||||
print nl2br($adh->commentaire).' </td></tr>';
|
||||
|
||||
print '<tr><td width="15%">Prénom</td><td class="valeur" width="35%">'.$adh->prenom.' </td></tr>';
|
||||
|
||||
print '<tr><td>Nom</td><td class="valeur">'.$adh->nom.' </td></tr>';
|
||||
|
||||
print '<tr><td>Société</td><td class="valeur">'.$adh->societe.' </td></tr>';
|
||||
print '<tr><td>Adresse</td><td class="valeur">'.nl2br($adh->adresse).' </td></tr>';
|
||||
print '<tr><td>CP Ville</td><td class="valeur">'.$adh->cp.' '.$adh->ville.' </td></tr>';
|
||||
@ -119,21 +124,28 @@ if ($rowid)
|
||||
print "<input type=\"hidden\" name=\"rowid\" value=\"$rowid\">";
|
||||
|
||||
$htmls = new Form($db);
|
||||
$adht = new AdherentType($db);
|
||||
|
||||
|
||||
print "<tr><td>Type</td><td>";
|
||||
$htmls->select_array("type", $adht->liste_array(), $adh->typeid);
|
||||
print "</td></tr>";
|
||||
print "</td>";
|
||||
|
||||
|
||||
print '<tr><td width="15%">Prénom</td><td width="35%"><input type="text" name="prenom" size="40" value="'.$adh->prenom.'"></td>';
|
||||
|
||||
print '<td valign="top" width="50%">Commentaires</td></tr>';
|
||||
|
||||
print '<tr><td>Nom</td><td><input type="text" name="nom" size="40" value="'.$adh->nom.'"></td>';
|
||||
$morphys["phy"] = "Physique";
|
||||
$morphys["mor"] = "Morale";
|
||||
|
||||
print "<tr><td>Personne</td><td>";
|
||||
$htmls->select_array("morphy", $morphys, $adh->morphy);
|
||||
print "</td>";
|
||||
|
||||
print '<td rowspan="13" valign="top">';
|
||||
print '<textarea name="comment" wrap="soft" cols="40" rows="15">'.$adh->commentaire.'</textarea></td></tr>';
|
||||
|
||||
print '<tr><td width="15%">Prénom</td><td width="35%"><input type="text" name="prenom" size="40" value="'.$adh->prenom.'"></td></tr>';
|
||||
|
||||
print '<tr><td>Nom</td><td><input type="text" name="nom" size="40" value="'.$adh->nom.'"></td></tr>';
|
||||
|
||||
|
||||
print '<tr><td>Societe</td><td><input type="text" name="societe" size="40" value="'.$adh->societe.'"></td></tr>';
|
||||
print '<tr><td>Adresse</td><td>';
|
||||
|
||||
@ -36,7 +36,7 @@ $pagenext = $page + 1;
|
||||
|
||||
|
||||
$sql = "SELECT d.rowid, d.prenom, d.nom, d.societe, ".$db->pdate("d.datefin")." as datefin";
|
||||
$sql .= " , d.email, t.libelle as type, d.morphy";
|
||||
$sql .= " , d.email, t.libelle as type, d.morphy, d.statut";
|
||||
$sql .= " FROM llx_adherent as d, llx_adherent_type as t";
|
||||
$sql .= " WHERE d.fk_adherent_type = t.rowid";
|
||||
$sql .= " ORDER BY $sortfield $sortorder " . $db->plimit($conf->liste_limit, $offset);
|
||||
@ -56,6 +56,7 @@ if ($result)
|
||||
print "<td>Email</td>";
|
||||
print "<td>Type</td>";
|
||||
print "<td>Personne</td>";
|
||||
print "<td>Statut</td>";
|
||||
print "</TR>\n";
|
||||
|
||||
$var=True;
|
||||
@ -69,6 +70,12 @@ if ($result)
|
||||
print "<TD>$objp->email</TD>\n";
|
||||
print "<TD>$objp->type</TD>\n";
|
||||
print "<TD>$objp->morphy</TD>\n";
|
||||
print "<td>";
|
||||
if ($objp->statut == -1)
|
||||
{
|
||||
print '<a href="fiche.php?rowid='.$objp->rowid.'">A valider</a>';
|
||||
}
|
||||
print "</td>";
|
||||
print "</tr>";
|
||||
$i++;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user