Qual: Files are stored in correct directory.

This commit is contained in:
Laurent Destailleur 2008-12-03 18:47:00 +00:00
parent 633cdfbe28
commit b063efb91e
16 changed files with 98 additions and 126 deletions

View File

@ -15,15 +15,12 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
* $Id$
* $Source$
*/ */
/** \file htdocs/adherents/pre.inc.php /** \file htdocs/adherents/pre.inc.php
\ingroup adherent \ingroup adherent
\brief Fichier de gestion du menu gauche du module adherent \brief Fichier de gestion du menu gauche du module adherent
\version $Revision$ \version $Id$
*/ */
require("../main.inc.php"); require("../main.inc.php");
@ -48,7 +45,7 @@ function llxHeader($head = "")
$menu->add_submenu(DOL_URL_ROOT."/adherents/liste.php?statut=1&filter=uptodate",$langs->trans("MenuMembersUpToDate")); $menu->add_submenu(DOL_URL_ROOT."/adherents/liste.php?statut=1&filter=uptodate",$langs->trans("MenuMembersUpToDate"));
$menu->add_submenu(DOL_URL_ROOT."/adherents/liste.php?statut=0",$langs->trans("MenuMembersResiliated")); $menu->add_submenu(DOL_URL_ROOT."/adherents/liste.php?statut=0",$langs->trans("MenuMembersResiliated"));
$menu->add(DOL_URL_ROOT."/public/adherents/index.php?leftmenu=member_public",$langs->trans("MemberPublicLinks")); $menu->add(DOL_URL_ROOT."/adherents/public.php?leftmenu=member_public",$langs->trans("MemberPublicLinks"));
$menu->add(DOL_URL_ROOT."/adherents/index.php",$langs->trans("Exports")); $menu->add(DOL_URL_ROOT."/adherents/index.php",$langs->trans("Exports"));
$menu->add_submenu(DOL_URL_ROOT."/exports/index.php?leftmenu=export",$langs->trans("Datas")); $menu->add_submenu(DOL_URL_ROOT."/exports/index.php?leftmenu=export",$langs->trans("Datas"));

View File

@ -870,7 +870,7 @@ class MenuLeft {
if ($leftmenu=="export") $newmenu->add_submenu(DOL_URL_ROOT."/adherents/cartes/carte.php?leftmenu=export",$langs->trans("MembersCards"),1,$user->rights->adherent->export,'_blank'); if ($leftmenu=="export") $newmenu->add_submenu(DOL_URL_ROOT."/adherents/cartes/carte.php?leftmenu=export",$langs->trans("MembersCards"),1,$user->rights->adherent->export,'_blank');
if ($leftmenu=="export") $newmenu->add_submenu(DOL_URL_ROOT."/adherents/cartes/etiquette.php?leftmenu=export",$langs->trans("MembersTickets"),1,$user->rights->adherent->export,'_blank'); if ($leftmenu=="export") $newmenu->add_submenu(DOL_URL_ROOT."/adherents/cartes/etiquette.php?leftmenu=export",$langs->trans("MembersTickets"),1,$user->rights->adherent->export,'_blank');
$newmenu->add(DOL_URL_ROOT."/public/adherents/index.php?leftmenu=member_public",$langs->trans("MemberPublicLinks")); $newmenu->add(DOL_URL_ROOT."/adherents/public.php?leftmenu=member_public",$langs->trans("MemberPublicLinks"));
/* /*
if ($leftmenu=="member_public") $newmenu->add(DOL_URL_ROOT."/public/adherents/","Non adherent"); if ($leftmenu=="member_public") $newmenu->add(DOL_URL_ROOT."/public/adherents/","Non adherent");
if ($leftmenu=="member_public") $newmenu->add_submenu("new.php","Inscription"); if ($leftmenu=="member_public") $newmenu->add_submenu("new.php","Inscription");

View File

@ -829,7 +829,7 @@ class MenuLeft {
if ($leftmenu=="export") $newmenu->add_submenu(DOL_URL_ROOT."/adherents/cartes/carte.php?leftmenu=export",$langs->trans("MembersCards"),1,$user->rights->adherent->export,'_blank'); if ($leftmenu=="export") $newmenu->add_submenu(DOL_URL_ROOT."/adherents/cartes/carte.php?leftmenu=export",$langs->trans("MembersCards"),1,$user->rights->adherent->export,'_blank');
if ($leftmenu=="export") $newmenu->add_submenu(DOL_URL_ROOT."/adherents/cartes/etiquette.php?leftmenu=export",$langs->trans("MembersTickets"),1,$user->rights->adherent->export,'_blank'); if ($leftmenu=="export") $newmenu->add_submenu(DOL_URL_ROOT."/adherents/cartes/etiquette.php?leftmenu=export",$langs->trans("MembersTickets"),1,$user->rights->adherent->export,'_blank');
$newmenu->add(DOL_URL_ROOT."/public/adherents/index.php?leftmenu=member_public",$langs->trans("MemberPublicLinks")); $newmenu->add(DOL_URL_ROOT."/adherents/public.php?leftmenu=member_public",$langs->trans("MemberPublicLinks"));
/* /*
if ($leftmenu=="member_public") $newmenu->add(DOL_URL_ROOT."/public/adherents/","Non adherent"); if ($leftmenu=="member_public") $newmenu->add(DOL_URL_ROOT."/public/adherents/","Non adherent");
if ($leftmenu=="member_public") $newmenu->add_submenu("new.php","Inscription"); if ($leftmenu=="member_public") $newmenu->add_submenu("new.php","Inscription");

View File

@ -277,7 +277,7 @@ insert into `llx_menu` (`menu_handler`, `type`, `rowid`, `mainmenu`, `leftmenu`,
insert into `llx_menu` (`menu_handler`, `type`, `rowid`, `mainmenu`, `leftmenu`, `fk_menu`, `url`, `titre`, `level`, `langs`, perms, `target`, `user`, position) values ('auguria', 'left', 4502__+MAX_llx_menu__, 'members', '', 4500__+MAX_llx_menu__, '/adherents/htpasswd.php?leftmenu=export', 'Filehtpasswd', 1, 'members', '$user->rights->adherent->export', '', 2, 1); insert into `llx_menu` (`menu_handler`, `type`, `rowid`, `mainmenu`, `leftmenu`, `fk_menu`, `url`, `titre`, `level`, `langs`, perms, `target`, `user`, position) values ('auguria', 'left', 4502__+MAX_llx_menu__, 'members', '', 4500__+MAX_llx_menu__, '/adherents/htpasswd.php?leftmenu=export', 'Filehtpasswd', 1, 'members', '$user->rights->adherent->export', '', 2, 1);
insert into `llx_menu` (`menu_handler`, `type`, `rowid`, `mainmenu`, `leftmenu`, `fk_menu`, `url`, `titre`, `level`, `langs`, perms, `target`, `user`, position) values ('auguria', 'left', 4503__+MAX_llx_menu__, 'members', '', 4500__+MAX_llx_menu__, '/adherents/cartes/carte.php?leftmenu=export', 'MembersCards', 1, 'members', '$user->rights->adherent->export', '_blank', 2, 2); insert into `llx_menu` (`menu_handler`, `type`, `rowid`, `mainmenu`, `leftmenu`, `fk_menu`, `url`, `titre`, `level`, `langs`, perms, `target`, `user`, position) values ('auguria', 'left', 4503__+MAX_llx_menu__, 'members', '', 4500__+MAX_llx_menu__, '/adherents/cartes/carte.php?leftmenu=export', 'MembersCards', 1, 'members', '$user->rights->adherent->export', '_blank', 2, 2);
insert into `llx_menu` (`menu_handler`, `type`, `rowid`, `mainmenu`, `leftmenu`, `fk_menu`, `url`, `titre`, `level`, `langs`, perms, `target`, `user`, position) values ('auguria', 'left', 4504__+MAX_llx_menu__, 'members', '', 4500__+MAX_llx_menu__, '/adherents/cartes/etiquette.php?leftmenu=export', 'Etiquettes d''adhérents', 1, 'members', '$user->rights->adherent->export', '_blank', 2, 3); insert into `llx_menu` (`menu_handler`, `type`, `rowid`, `mainmenu`, `leftmenu`, `fk_menu`, `url`, `titre`, `level`, `langs`, perms, `target`, `user`, position) values ('auguria', 'left', 4504__+MAX_llx_menu__, 'members', '', 4500__+MAX_llx_menu__, '/adherents/cartes/etiquette.php?leftmenu=export', 'Etiquettes d''adhérents', 1, 'members', '$user->rights->adherent->export', '_blank', 2, 3);
insert into `llx_menu` (`menu_handler`, `type`, `rowid`, `mainmenu`, `leftmenu`, `fk_menu`, `url`, `titre`, `level`, `langs`, perms, `target`, `user`, position) values ('auguria', 'left', 4600__+MAX_llx_menu__, 'members', '', 13__+MAX_llx_menu__, '/public/adherents/index.php?leftmenu=member_public', 'MemberPublicLinks', 0, 'members', '$user->rights->adherent->export', '', 2, 4); insert into `llx_menu` (`menu_handler`, `type`, `rowid`, `mainmenu`, `leftmenu`, `fk_menu`, `url`, `titre`, `level`, `langs`, perms, `target`, `user`, position) values ('auguria', 'left', 4600__+MAX_llx_menu__, 'members', '', 13__+MAX_llx_menu__, '/adherents/public.php?leftmenu=member_public', 'MemberPublicLinks', 0, 'members', '$user->rights->adherent->export', '', 2, 4);
insert into `llx_menu` (`menu_handler`, `type`, `rowid`, `mainmenu`, `leftmenu`, `fk_menu`, `url`, `titre`, `level`, `langs`, perms, `target`, `user`, position) values ('auguria', 'left', 4700__+MAX_llx_menu__, 'members', '', 13__+MAX_llx_menu__, '/adherents/index.php?leftmenu=setup&mainmenu=members', 'Setup', 0, 'members', '$user->rights->adherent->configurer', '', 2, 5); insert into `llx_menu` (`menu_handler`, `type`, `rowid`, `mainmenu`, `leftmenu`, `fk_menu`, `url`, `titre`, `level`, `langs`, perms, `target`, `user`, position) values ('auguria', 'left', 4700__+MAX_llx_menu__, 'members', '', 13__+MAX_llx_menu__, '/adherents/index.php?leftmenu=setup&mainmenu=members', 'Setup', 0, 'members', '$user->rights->adherent->configurer', '', 2, 5);
insert into `llx_menu` (`menu_handler`, `type`, `rowid`, `mainmenu`, `leftmenu`, `fk_menu`, `url`, `titre`, `level`, `langs`, perms, `target`, `user`, position) values ('auguria', 'left', 4701__+MAX_llx_menu__, 'members', '', 4700__+MAX_llx_menu__, '/adherents/type.php?leftmenu=setup', 'MembersTypes', 1, 'members', '$user->rights->adherent->configurer', '', 2, 0); insert into `llx_menu` (`menu_handler`, `type`, `rowid`, `mainmenu`, `leftmenu`, `fk_menu`, `url`, `titre`, `level`, `langs`, perms, `target`, `user`, position) values ('auguria', 'left', 4701__+MAX_llx_menu__, 'members', '', 4700__+MAX_llx_menu__, '/adherents/type.php?leftmenu=setup', 'MembersTypes', 1, 'members', '$user->rights->adherent->configurer', '', 2, 0);
insert into `llx_menu` (`menu_handler`, `type`, `rowid`, `mainmenu`, `leftmenu`, `fk_menu`, `url`, `titre`, `level`, `langs`, perms, `target`, `user`, position) values ('auguria', 'left', 4702__+MAX_llx_menu__, 'members', '', 4700__+MAX_llx_menu__, '/adherents/options.php?leftmenu=setup', 'MembersAttributes', 1, 'members', '$user->rights->adherent->configurer', '', 2, 1); insert into `llx_menu` (`menu_handler`, `type`, `rowid`, `mainmenu`, `leftmenu`, `fk_menu`, `url`, `titre`, `level`, `langs`, perms, `target`, `user`, position) values ('auguria', 'left', 4702__+MAX_llx_menu__, 'members', '', 4700__+MAX_llx_menu__, '/adherents/options.php?leftmenu=setup', 'MembersAttributes', 1, 'members', '$user->rights->adherent->configurer', '', 2, 1);

View File

@ -19,11 +19,11 @@
*/ */
/** /**
\file htdocs/public/adherents/new.php \file htdocs/public/adherents/new.php
\ingroup adherent \ingroup adherent
\brief Form example to add a new member \brief Form example to add a new member
\version $Id$ \version $Id$
*/ */
require("../../master.inc.php"); require("../../master.inc.php");
require_once(DOL_DOCUMENT_ROOT."/adherents/adherent.class.php"); require_once(DOL_DOCUMENT_ROOT."/adherents/adherent.class.php");
@ -31,15 +31,22 @@ require_once(DOL_DOCUMENT_ROOT."/adherents/adherent_type.class.php");
require_once(DOL_DOCUMENT_ROOT."/adherents/adherent_options.class.php"); require_once(DOL_DOCUMENT_ROOT."/adherents/adherent_options.class.php");
require_once(DOL_DOCUMENT_ROOT."/html.form.class.php"); require_once(DOL_DOCUMENT_ROOT."/html.form.class.php");
$langs->setDefaultLang('auto');
$langs->load("main");
$langs->load("members");
$langs->load("companies");
function llxHeaderVierge($title, $head = "") function llxHeaderVierge($title, $head = "")
{ {
global $user, $conf, $langs; global $user, $conf, $langs;
print "<html>\n"; print "<html>\n";
print "<head>\n"; print "<head>\n";
print "<title>".$title."</title>\n"; print "<title>".$title."</title>\n";
if ($head) print $head."\n"; if ($head) print $head."\n";
print "</head>\n"; print "</head>\n";
print "<body>\n"; print "<body>\n";
} }
@ -58,13 +65,14 @@ $error=0;
/* /*
* Actions * Actions
*/ */
if ($_POST["action"] == 'add') if ($_POST["action"] == 'add')
{ {
// test si le login existe deja // test si le login existe deja
$login=$_POST["login"]; $login=$_POST["login"];
if(!isset($_POST["login"]) || $_POST["login"]=''){ if(!isset($_POST["login"]) || $_POST["login"]='')
{
$error+=1; $error+=1;
$errmsg .="Login $login vide. Veuillez en positionner un<BR>\n"; $errmsg .="Login $login vide. Veuillez en positionner un<BR>\n";
} }
@ -159,13 +167,13 @@ if (isset($_GET["action"]) && $_GET["action"] == 'added' && $conf->global->MEMBE
llxHeaderVierge("New member form"); llxHeaderVierge("New member form");
$html = new Form($db); $html = new Form($db);
print_titre("Nouvel adhérent"); print_titre($langs->trans("NewMember"));
/* ************************************************************************** */ /* ************************************************************************** */
/* */ /* */
/* Création d'une fiche */ /* Creation d'une fiche
/* */ /* */
/* ************************************************************************** */ /* ************************************************************************** */
$adht = new AdherentType($db); $adht = new AdherentType($db);
@ -175,10 +183,10 @@ $adho->fetch_optionals();
if (isset($_GET["action"]) && $_GET["action"] == 'added') if (isset($_GET["action"]) && $_GET["action"] == 'added')
{ {
// Si on a pas été redirigé // Si on a pas ete redirige
print '<br>'; print '<br>';
print '<table cellspacing="0" border="1" width="100%" cellpadding="3">'; print '<table cellspacing="0" border="1" width="100%" cellpadding="3">';
print "<tr><td><FONT COLOR=\"blue\">Nouvel Adhérent ajouté. En attente de validation</FONT></td></tr>\n"; print "<tr><td><FONT COLOR=\"blue\">Nouvel Adherent ajoute. En attente de validation</FONT></td></tr>\n";
print '</table>'; print '</table>';
} }
@ -187,7 +195,7 @@ if ($errmsg != '')
print '<br>'; print '<br>';
print '<table cellspacing="0" border="1" width="100%" cellpadding="3">'; print '<table cellspacing="0" border="1" width="100%" cellpadding="3">';
print '<th>Erreur dans le formulaire</th>'; print '<th>Erreur dans le formulaire</th>';
print "<tr><td class=\"delete\"><b>$errmsg</b></td></tr>\n"; print "<tr><td class=\"delete\"><b>'.$errmsg.'</b></td></tr>\n";
// print "<FONT COLOR=\"red\">$errmsg</FONT>\n"; // print "<FONT COLOR=\"red\">$errmsg</FONT>\n";
print '</table>'; print '</table>';
} }
@ -200,7 +208,6 @@ if (defined("ADH_TEXT_NEW_ADH") && ADH_TEXT_NEW_ADH !='')
print '<ul>'; print '<ul>';
print '<li> Les champs Commencant par un <FONT COLOR="red">*</FONT> sont obligatoire'; print '<li> Les champs Commencant par un <FONT COLOR="red">*</FONT> sont obligatoire';
print '<li> Les champs Commencant par un <FONT COLOR="blue">*</FONT> seront affiche sur la liste publique des membres. Si vous ne souhaite pas cela <b>DECOCHEZ</b> la case public ci dessous'; print '<li> Les champs Commencant par un <FONT COLOR="blue">*</FONT> seront affiche sur la liste publique des membres. Si vous ne souhaite pas cela <b>DECOCHEZ</b> la case public ci dessous';
print "<li> Les login et password vous serviront a editer vos coordonnees ulterieurement<BR>\n";
print "</ul><BR>\n"; print "</ul><BR>\n";
print "<form action=\"new.php\" method=\"POST\">\n"; print "<form action=\"new.php\" method=\"POST\">\n";
@ -216,29 +223,28 @@ print '<td width="50%" valign="top">'.$langs->trans("Comments").' :</td></tr>';
$morphys["phy"] = "Physique"; $morphys["phy"] = "Physique";
$morphys["mor"] = "Morale"; $morphys["mor"] = "Morale";
print '<tr><td>'.$langs->trans("MorPhy")."</td><td>\n";
print "<tr><td>Personne</td><td>\n";
$html->select_array("morphy", $morphys); $html->select_array("morphy", $morphys);
print "</td>\n"; print "</td>\n";
print '<td valign="top" rowspan="14"><textarea name="comment" wrap="soft" cols="40" rows="25">'.$comment.'</textarea></td></tr>'; print '<td valign="top" rowspan="14"><textarea name="comment" wrap="soft" cols="40" rows="25">'.$comment.'</textarea></td></tr>';
print '<tr><td><FONT COLOR="red">*</FONT> <FONT COLOR="blue">*</FONT> Prénom</td><td><input type="text" name="prenom" size="40" value="'.$prenom.'"></td></tr>'; print '<tr><td><FONT COLOR="red">*</FONT> <FONT COLOR="blue">*</FONT> '.$langs->trans("Surname").'</td><td><input type="text" name="prenom" size="40" value="'.$prenom.'"></td></tr>';
print '<tr><td><FONT COLOR="red">*</FONT> <FONT COLOR="blue">*</FONT> Nom</td><td><input type="text" name="nom" size="40" value="'.$nom.'"></td></tr>'; print '<tr><td><FONT COLOR="red">*</FONT> <FONT COLOR="blue">*</FONT> '.$langs->trans("Name").'</td><td><input type="text" name="nom" size="40" value="'.$nom.'"></td></tr>';
print '<tr><td>Societe</td><td><input type="text" name="societe" size="40" value="'.$societe.'"></td></tr>'; print '<tr><td>'.$langs->trans("ThirdParty").'</td><td><input type="text" name="societe" size="40" value="'.$societe.'"></td></tr>';
print '<tr><td>Adresse</td><td>'; print '<tr><td>'.$langs->trans("Address").'</td><td>';
print '<textarea name="adresse" wrap="soft" cols="40" rows="3">'.$adresse.'</textarea></td></tr>'; print '<textarea name="adresse" wrap="soft" cols="40" rows="3">'.$adresse.'</textarea></td></tr>';
print '<tr><td>CP Ville</td><td><input type="text" name="cp" size="8" value="'.$cp.'"> <input type="text" name="ville" size="40" value="'.$ville.'"></td></tr>'; print '<tr><td>'.$langs->trans("Zip").'/'.$langs->trans("Town").'</td><td><input type="text" name="cp" size="8" value="'.$cp.'"> <input type="text" name="ville" size="40" value="'.$ville.'"></td></tr>';
print '<tr><td>Pays</td><td><input type="text" name="pays" size="40" value="'.$pays.'"></td></tr>'; print '<tr><td>'.$langs->trans("Country").'</td><td><input type="text" name="pays" size="40" value="'.$pays.'"></td></tr>';
print '<tr><td><FONT COLOR="red">*</FONT> <FONT COLOR="blue">*</FONT> Email</td><td><input type="text" name="email" size="40" value="'.$email.'"></td></tr>'; print '<tr><td><FONT COLOR="red">*</FONT> <FONT COLOR="blue">*</FONT> Email</td><td><input type="text" name="email" size="40" value="'.$email.'"></td></tr>';
print '<tr><td><FONT COLOR="red">*</FONT> Login</td><td><input type="text" name="login" size="40" value="'.$login.'"></td></tr>'; print '<tr><td><FONT COLOR="red">*</FONT> '.$langs->trans("Login").'</td><td><input type="text" name="login" size="40" value="'.$login.'"></td></tr>';
print '<tr><td><FONT COLOR="red">*</FONT> Password (a entrer 2 fois)</td><td><input type="password" name="pass1" size="40"><BR><input type="password" name="pass2" size="40"></td></tr>'; print '<tr><td><FONT COLOR="red">*</FONT> '.$langs->trans("Password").'</td><td><input type="password" name="pass1" size="40"><BR><input type="password" name="pass2" size="40"></td></tr>';
print '<tr><td>Date de naissance<BR>Format AAAA-MM-JJ</td><td><input type="text" name="naiss" size="40" value="'.$naiss.'"></td></tr>'; print '<tr><td>Date de naissance<BR>Format AAAA-MM-JJ</td><td><input type="text" name="naiss" size="40" value="'.$naiss.'"></td></tr>';
print '<tr><td><FONT COLOR="blue">*</FONT> URL Photo</td><td><input type="text" name="photo" size="40" value="'.$photo.'"></td></tr>'; print '<tr><td><FONT COLOR="blue">*</FONT> URL Photo</td><td><input type="text" name="photo" size="40" value="'.$photo.'"></td></tr>';
print '<tr><td>Profil public ?</td><td><input type="checkbox" name="public" checked></td></tr>'; print '<tr><td>Profil public ?</td><td><input type="checkbox" name="public" checked></td></tr>';
foreach($adho->attribute_label as $key=>$value){ foreach($adho->attribute_label as $key=>$value){
print "<tr><td>$value</td><td><input type=\"text\" name=\"options_$key\" size=\"40\"></td></tr>\n"; print "<tr><td>$value</td><td><input type=\"text\" name=\"options_$key\" size=\"40\"></td></tr>\n";
} }
print '<tr><td colspan="2" align="center"><input type="submit" value="'.$langs->trans("Save").'"></td></tr>'; print '<tr><td colspan="2" align="center"><input type="submit" value="'.$langs->trans("Save").'"></td></tr>';
print "</table>\n"; print "</table>\n";

View File

@ -1,45 +0,0 @@
<?php
/* Copyright (C) 2001-2002 Rodolphe Quiedeville <rodolphe@quiedeville.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
/**
\file htdocs/lib/datepicker.php
\brief Fichier de gestion de la popup de selection de date eldy
\version $Id$
*/
require("../../main.inc.php");
function llxHeader($head = "")
{
global $user, $conf, $langs;
top_menu($head);
$menu = new Menu();
$menu->add(DOL_URL_ROOT."/public/adherents/","Non adherent");
$menu->add_submenu("new.php","Inscription");
$menu->add(DOL_URL_ROOT."/public/adherents/","Adherents");
$menu->add_submenu("priv_edit.php","Edition de sa fiche");
$menu->add_submenu("priv_liste.php","Liste des adherents");
left_menu($menu->liste);
}
?>

View File

@ -31,6 +31,8 @@ require_once(DOL_DOCUMENT_ROOT."/adherents/cotisation.class.php");
require_once(DOL_DOCUMENT_ROOT."/paiement.class.php"); require_once(DOL_DOCUMENT_ROOT."/paiement.class.php");
require_once(DOL_DOCUMENT_ROOT."/adherents/adherent_options.class.php"); require_once(DOL_DOCUMENT_ROOT."/adherents/adherent_options.class.php");
$langs->setDefaultLang('auto');
$langs->load("main"); $langs->load("main");
$langs->load("members"); $langs->load("members");
$langs->load("companies"); $langs->load("companies");

View File

@ -26,6 +26,8 @@
require("../../master.inc.php"); require("../../master.inc.php");
$langs->setDefaultLang('auto');
$langs->load("main"); $langs->load("main");
$langs->load("members"); $langs->load("members");
$langs->load("companies"); $langs->load("companies");
@ -92,7 +94,7 @@ if ($result)
print "<table class=\"noborder\" width=\"100%\">"; print "<table class=\"noborder\" width=\"100%\">";
print '<tr class="liste_titre">'; print '<tr class="liste_titre">';
print "<td><a href=\"".$_SERVER['SCRIPT_NAME'] . "?page=$page&sortorder=ASC&sortfield=d.prenom\">Prenom</a> <a href=\"".$_SERVER['SCRIPT_NAME'] . "?page=$page&sortorder=ASC&sortfield=d.nom\">Nom</a> / <a href=\"".$_SERVER['SCRIPT_NAME'] . "?page=$page&sortorder=ASC&sortfield=d.societe\">Société</a></td>\n"; print "<td><a href=\"".$_SERVER['SCRIPT_NAME'] . "?page=$page&sortorder=ASC&sortfield=d.prenom\">Prenom</a> <a href=\"".$_SERVER['SCRIPT_NAME'] . "?page=$page&sortorder=ASC&sortfield=d.nom\">Nom</a> / <a href=\"".$_SERVER['SCRIPT_NAME'] . "?page=$page&sortorder=ASC&sortfield=d.societe\">Soci<EFBFBD>t<EFBFBD></a></td>\n";
print_liste_field_titre($langs->trans("Birthdate"),"priv_liste.php","naiss","",$param,$sortfield,$sortorder); print_liste_field_titre($langs->trans("Birthdate"),"priv_liste.php","naiss","",$param,$sortfield,$sortorder);
print_liste_field_titre($langs->trans("EMail"),"priv_liste.php","email","",$param,$sortfield,$sortorder); print_liste_field_titre($langs->trans("EMail"),"priv_liste.php","email","",$param,$sortfield,$sortorder);
print_liste_field_titre($langs->trans("Zip"),"priv_liste.php","cp","",$param,$sortfield,$sortorder); print_liste_field_titre($langs->trans("Zip"),"priv_liste.php","cp","",$param,$sortfield,$sortorder);

View File

@ -14,15 +14,15 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
* $Id$
* $Source$
*/ */
/* Classe de gestion du système de paiement de la banque Populaire /**
* \version $Id$
*/
/* Classe de gestion du systeme de paiement de la banque Populaire
* de Lorraine et Champagne * de Lorraine et Champagne
* http://www.cyberpaiement.tm.fr/ * http://www.cyberpaiement.tm.fr/
*
*/ */
class Cyberpaiement class Cyberpaiement
@ -30,19 +30,19 @@ class Cyberpaiement
function Cyberpaiement($conf) function Cyberpaiement($conf)
/* /*
* Initialisation des valeurs par défaut * Initialisation des valeurs par d<EFBFBD>faut
*/ */
{ {
/* Numéro abonné Internet : 6 chiffres */ /* Num<EFBFBD>ro abonn<6E> Internet : 6 chiffres */
$this->champ000 = $conf->bplc->numabonne; $this->champ000 = $conf->bplc->numabonne;
/* Code activité commercant : 4 chiffres */ /* Code activit<EFBFBD> commercant : 4 chiffres */
$this->champ001 = $conf->bplc->code_activite; $this->champ001 = $conf->bplc->code_activite;
/* Numéro de contrat : 10 chiffres */ /* Num<EFBFBD>ro de contrat : 10 chiffres */
$this->champ002 = $conf->bplc->num_contrat; $this->champ002 = $conf->bplc->num_contrat;
@ -74,13 +74,13 @@ class Cyberpaiement
$this->champ202 = $conf->bplc->devise; $this->champ202 = $conf->bplc->devise;
/* Adhérent : 01 */ /* Adh<EFBFBD>rent : 01 */
$this->champ900 = $conf->bplc->adherent; $this->champ900 = $conf->bplc->adherent;
/* *********************************************** */ /* *********************************************** */
/* Initialisation à vide des valeurs qui ne seront */ /* Initialisation <EFBFBD> vide des valeurs qui ne seront */
/* pas transmises */ /* pas transmises */
/* *********************************************** */ /* *********************************************** */
@ -114,12 +114,12 @@ class Cyberpaiement
$this->champ101 = $prenom; $this->champ101 = $prenom;
/* Société */ /* Soci<EFBFBD>t<EFBFBD> */
if (strlen(trim($societe))) if (strlen(trim($societe)))
{ {
$this->champ102 = $societe; $this->champ102 = $societe;
} }
/* Téléphone */ /* T<EFBFBD>l<EFBFBD>phone */
if (strlen(trim($telephone))) if (strlen(trim($telephone)))
{ {
$this->champ103 = $telephone; $this->champ103 = $telephone;
@ -135,7 +135,7 @@ class Cyberpaiement
$this->champ106 = $fax; $this->champ106 = $fax;
} }
/* Adresse numéro et rue */ /* Adresse num<EFBFBD>ro et rue */
if (strlen(trim($adresse))) if (strlen(trim($adresse)))
{ {
$this->champ107 = $adresse; $this->champ107 = $adresse;
@ -167,7 +167,7 @@ class Cyberpaiement
function set_commande($ref, $montant) function set_commande($ref, $montant)
{ {
/* Référence */ /* R<EFBFBD>f<EFBFBD>rence */
$this->champ200 = $ref; $this->champ200 = $ref;

View File

@ -14,10 +14,10 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
* */
* $Id$
* $Source$ /**
* * \version $Id$
*/ */
if ($conf->don->onlinepayment) if ($conf->don->onlinepayment)

View File

@ -15,13 +15,15 @@
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
* *
* $Id$
*
* Classe de gestion du retour RSTS du systeme de paiement en ligne * Classe de gestion du retour RSTS du systeme de paiement en ligne
* CyberPaiement (TM) de la Banque Populaire de Lorraine * CyberPaiement (TM) de la Banque Populaire de Lorraine
* *
* Certaine fonction de cette classe existe de base dans PHP4 mais ont <EFBFBD>t<EFBFBD> * Certaine fonction de cette classe existe de base dans PHP4 mais ont ete
* r<EFBFBD>-<EFBFBD>crites ici pour le support de PHP3 * re-ecrites ici pour le support de PHP3
*/
/**
* \version $Id$
*/ */
class Retourbplc class Retourbplc

View File

@ -14,11 +14,12 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
* $Id$
* $Source$
*
*/ */
/**
* \version $Id$
*/
?> ?>
<form action="bplc.php" method="post"> <form action="bplc.php" method="post">

View File

@ -26,6 +26,7 @@
*/ */
require("../../master.inc.php"); require("../../master.inc.php");
$langs->setDefaultLang('auto'); $langs->setDefaultLang('auto');
$langs->load("main"); $langs->load("main");

View File

@ -14,13 +14,17 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
* */
* $Id$
/**
* \version $Id$
*/ */
require("../../master.inc.php"); require("../../master.inc.php");
require_once(DOL_DOCUMENT_ROOT ."/don.class.php"); require_once(DOL_DOCUMENT_ROOT ."/don.class.php");
$langs->setDefaultLang('auto');
$langs->load("donations"); $langs->load("donations");
$sql = "SELECT ".$db->pdate("d.datedon")." as datedon, d.nom, d.prenom, d.amount, d.public, d.societe"; $sql = "SELECT ".$db->pdate("d.datedon")." as datedon, d.nom, d.prenom, d.amount, d.public, d.societe";

View File

@ -28,9 +28,11 @@ require("../../master.inc.php");
require_once(DOL_DOCUMENT_ROOT."/lib/images.lib.php"); require_once(DOL_DOCUMENT_ROOT."/lib/images.lib.php");
require_once(DOL_DOCUMENT_ROOT."/don.class.php"); require_once(DOL_DOCUMENT_ROOT."/don.class.php");
$langs->setDefaultLang('auto');
/* /*
* Read Values * View
*/ */
$dontherm = new Don($db); $dontherm = new Don($db);