Suppression des PHP_SELF

This commit is contained in:
Rodolphe Quiedeville 2004-07-30 13:13:05 +00:00
parent dd850178a1
commit 093605f0d3
32 changed files with 72 additions and 71 deletions

View File

@ -52,7 +52,7 @@ if ($result)
$i = 0;
print "<BR><DIV class=\"titre\">Export au format htpasswd des login des adhérents</DIV><BR>\n";
//print_barre_liste("Export au format htpasswd des login des adhérents", $page, $PHP_SELF, "");
//print_barre_liste("Export au format htpasswd des login des adhérents", $page, "htpasswd.php", "");
print "<HR>\n";
while ($i < $num)
{

View File

@ -145,7 +145,7 @@ if ($_GET["action"] == 'create') {
print_titre("Nouveau type");
print '<br>';
print "<form action=\"$PHP_SELF\" method=\"post\">";
print "<form action=\"type.php\" method=\"post\">";
print '<table cellspacing="0" class="border" width="100%" cellpadding="3">';
print '<input type="hidden" name="action" value="add">';

View File

@ -28,7 +28,7 @@ require("../product/promotion/promotion.class.php");
llxHeader();
print_barre_liste("Mise a jour de tous les livres", $page, $PHP_SELF);
print_barre_liste("Mise a jour de tous les livres", $page, "boutique-special-all.php");
$sql = "SELECT l.rowid FROM ".MAIN_DB_PREFIX."livre as l";

View File

@ -27,7 +27,7 @@ require("../boutique/auteur/auteur.class.php");
llxHeader();
print_barre_liste("Mise a jour de tous les livres", $page, $PHP_SELF);
print_barre_liste("Mise a jour de tous les livres", $page, "boutique-update-all.php");
$sql = "SELECT l.rowid FROM ".MAIN_DB_PREFIX."livre as l";

View File

@ -64,7 +64,7 @@ llxHeader();
if ($action == 'create')
{
print "<form action=\"$PHP_SELF?id=$id\" method=\"post\">\n";
print "<form action=\"fiche.php?id=$id\" method=\"post\">\n";
print '<input type="hidden" name="action" value="add">';
print '<div class="titre">Nouvel Auteur</div><br>';
@ -99,7 +99,7 @@ else
if ($action == 'delete')
{
print '<form method="post" action="'.$PHP_SELF.'?id='.$id.'">';
print '<form method="post" action="fiche.php?id='.$id.'">';
print '<input type="hidden" name="action" value="confirm_delete">';
print '<table cellspacing="0" border="1" width="100%" cellpadding="3">';
@ -126,7 +126,7 @@ else
{
print '<div class="titre">Edition de la fiche Auteur : '.$auteur->nom.'</div><br>';
print "<form action=\"$PHP_SELF?id=$id\" method=\"post\">\n";
print "<form action=\"fiche.php?id=$id\" method=\"post\">\n";
print '<input type="hidden" name="action" value="update">';
print '<table border="1" width="100%" cellspacing="0" cellpadding="4">';

View File

@ -36,7 +36,7 @@ if ($page == -1) { $page = 0 ; }
$limit = $conf->liste_limit;
$offset = $limit * $page ;
print_barre_liste("Liste des Auteurs", $page, $PHP_SELF);
print_barre_liste("Liste des Auteurs", $page, "index.php");
$sql = "SELECT e.rowid, e.nom FROM ".MAIN_DB_PREFIX."auteur as e";
@ -48,7 +48,7 @@ if ( $db->query($sql) ) {
$i = 0;
print "<p><TABLE border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"4\">";
print "<TR class=\"liste_titre\"><td>";
print_liste_field_titre("Nom",$PHP_SELF, "e.nom");
print_liste_field_titre("Nom","index.php", "e.nom");
print "</td>";
print "</TR>\n";
$var=True;

View File

@ -36,7 +36,7 @@ if ($page == -1) { $page = 0 ; }
$limit = $conf->liste_limit;
$offset = $limit * $page ;
print_barre_liste("Liste des clients", $page, $PHP_SELF);
print_barre_liste("Liste des clients", $page, "index.php");
$sql = "SELECT c.customers_id, c.customers_lastname, c.customers_firstname, c.customers_email_address, c.customers_newsletter";
$sql .= " FROM ".DB_NAME_OSC.".customers as c";
@ -49,9 +49,9 @@ if ( $db->query($sql) )
$i = 0;
print "<p><TABLE border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"4\">";
print "<TR class=\"liste_titre\"><td>";
print_liste_field_titre("Prénom",$PHP_SELF, "c.customers_firstname");
print_liste_field_titre("Prénom","index.php", "c.customers_firstname");
print "</td><td>";
print_liste_field_titre("Nom",$PHP_SELF, "c.customers_lastname");
print_liste_field_titre("Nom","index.php", "c.customers_lastname");
print '</td><td>Email</td><td align="center">Newsletter</td>';
print "</TR>\n";
$var=True;

View File

@ -37,7 +37,7 @@ if ($page == -1) { $page = 0 ; }
$limit = $conf->liste_limit;
$offset = $limit * $page ;
print_barre_liste("Liste des commandes", $page, $PHP_SELF);
print_barre_liste("Liste des commandes", $page, "ca.php");
print '<p><TABLE border="0" cellspacing="0" cellpadding="4">';
print '<tr class="liste_titre"><td>Description</td>';

View File

@ -37,7 +37,7 @@ if ($page == -1) { $page = 0 ; }
$limit = $conf->liste_limit;
$offset = $limit * $page ;
print_barre_liste("Liste des commandes", $page, $PHP_SELF);
print_barre_liste("Liste des commandes", $page, "commande.php");
$sql = "SELECT o.orders_id, customers_id, customers_name, customers_company, customers_street_address, customers_suburb, customers_city, customers_postcode, customers_state, customers_country, customers_telephone, customers_email_address, customers_address_format_id, delivery_name, delivery_company, delivery_street_address, delivery_suburb, delivery_city, delivery_postcode, delivery_state, delivery_country, delivery_address_format_id, billing_name, billing_company, billing_street_address, billing_suburb, billing_city, billing_postcode, billing_state, billing_country, billing_address_format_id, payment_method, cc_type, cc_owner, cc_number, cc_expires, last_modified,".$db->pdate("date_purchased")." as date_purchased, orders_status, orders_date_finished, currency, currency_value, t.value";
@ -52,7 +52,7 @@ if ( $db->query($sql) )
$i = 0;
print "<p><TABLE border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"4\">";
print "<TR class=\"liste_titre\"><td>Numéro</td><td>Date</td><td>";
print_liste_field_titre("Client",$PHP_SELF, "customers_name");
print_liste_field_titre("Client","commande.php", "customers_name");
print '</td><td align="right">Total</td>';
// print '<td align="center">Statut</td>';
// print '<td></td>';

View File

@ -62,7 +62,7 @@ llxHeader();
if ($action == 'create')
{
print "<form action=\"$PHP_SELF?id=$id\" method=\"post\">\n";
print "<form action=\"fiche.php?id=$id\" method=\"post\">\n";
print '<input type="hidden" name="action" value="add">';
print '<div class="titre">Nouvel Editeur</div><br>';
@ -96,7 +96,7 @@ else
if ($action == 'delete')
{
print '<form method="post" action="'.$PHP_SELF.'?id='.$id.'">';
print '<form method="post" action="fiche.php?id='.$id.'">';
print '<input type="hidden" name="action" value="confirm_delete">';
print '<table cellspacing="0" border="1" width="100%" cellpadding="3">';
@ -123,7 +123,7 @@ else
{
print '<div class="titre">Edition de la fiche Editeur : '.$editeur->titre.'</div><br>';
print "<form action=\"$PHP_SELF?id=$id\" method=\"post\">\n";
print "<form action=\"fiche.php?id=$id\" method=\"post\">\n";
print '<input type="hidden" name="action" value="update">';
print '<table border="1" width="100%" cellspacing="0" cellpadding="4">';

View File

@ -36,7 +36,7 @@ if ($page == -1) { $page = 0 ; }
$limit = $conf->liste_limit;
$offset = $limit * $page ;
print_barre_liste("Liste des Editeurs", $page, $PHP_SELF);
print_barre_liste("Liste des Editeurs", $page, "index.php");
$sql = "SELECT e.rowid, e.nom FROM ".MAIN_DB_PREFIX."editeur as e";
@ -48,7 +48,7 @@ if ( $db->query($sql) ) {
$i = 0;
print "<p><TABLE border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"4\">";
print "<TR class=\"liste_titre\"><td>";
print_liste_field_titre("Nom",$PHP_SELF, "e.nom");
print_liste_field_titre("Nom","index.php", "e.nom");
print "</td>";
print "</TR>\n";
$var=True;

View File

@ -161,7 +161,7 @@ llxHeader();
if ($action == 'create')
{
print "<form action=\"$PHP_SELF?id=$id\" method=\"post\">\n";
print "<form action=\"fiche.php?id=$id\" method=\"post\">\n";
print "<input type=\"hidden\" name=\"action\" value=\"add\">";
print '<div class="titre">Nouvel ouvrage</div><br>';
@ -222,7 +222,7 @@ else
if ($action == 'delete')
{
print '<form method="post" action="'.$PHP_SELF.'?id='.$id.'">';
print '<form method="post" action="fiche.php?id='.$id.'">';
print '<input type="hidden" name="action" value="confirm_delete">';
print '<table cellspacing="0" border="1" width="100%" cellpadding="3">';
@ -244,7 +244,7 @@ else
{
print '<div class="titre">Edition de la fiche Livre : '.$livre->titre.'</div><br>';
print "<form action=\"$PHP_SELF?id=$id\" method=\"post\">\n";
print "<form action=\"fiche.php?id=$id\" method=\"post\">\n";
print "<input type=\"hidden\" name=\"action\" value=\"update\">";
print '<table border="1" width="100%" cellspacing="0" cellpadding="4">';
@ -309,7 +309,7 @@ else
$auteur = new Auteur($db);
print "<form action=\"$PHP_SELF?id=$id\" method=\"post\">\n";
print "<form action=\"fiche.php?id=$id\" method=\"post\">\n";
print "<input type=\"hidden\" name=\"action\" value=\"addga\">";
print '<tr><td>Auteur(s)</td><td colspan="2">';
@ -317,7 +317,7 @@ else
print '&nbsp;<input type="submit" value="Ajouter"></td></tr>';
print "</form>";
print "<form action=\"$PHP_SELF?id=$id\" method=\"post\">\n";
print "<form action=\"fiche.php?id=$id\" method=\"post\">\n";
print '<input type="hidden" name="action" value="linkcat">';
$listecat = new Categorie($db);

View File

@ -44,7 +44,7 @@ $form = '<form action="index.php">'.
'<input type="submit" class="flat" value="go"></form>';
print_barre_liste("Liste des Livres", $page, $PHP_SELF, "", $sortfield, $sortorder, $form);
print_barre_liste("Liste des Livres", $page, "index.php", "", $sortfield, $sortorder, $form);
$sql = "SELECT l.rowid, l.title, l.oscid, l.ref, l.status FROM ".MAIN_DB_PREFIX."livre as l";
@ -62,9 +62,9 @@ if ( $db->query($sql) )
$i = 0;
print "<p><TABLE border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"4\">";
print "<TR class=\"liste_titre\"><td>";
print_liste_field_titre("Réf.",$PHP_SELF, "l.ref");
print_liste_field_titre("Réf.","index.php", "l.ref");
print "</td><td>";
print_liste_field_titre("Titre",$PHP_SELF, "l.title");
print_liste_field_titre("Titre","index.php", "l.title");
print "</td>";
print '<td colspan="3">&nbsp;</td>';
print "</TR>\n";

View File

@ -44,7 +44,7 @@ $form = '<form action="index.php">'.
'<input type="submit" class="flat" value="go"></form>';
print_barre_liste("Liste des vignettes manquantes", $page, $PHP_SELF, "", $sortfield, $sortorder, $form);
print_barre_liste("Liste des vignettes manquantes", $page, "vignettes.php", "", $sortfield, $sortorder, $form);
$sql = "SELECT l.rowid, l.title, l.oscid, l.ref, l.status FROM ".MAIN_DB_PREFIX."livre as l";
@ -62,9 +62,9 @@ if ( $db->query($sql) )
$i = 0;
print "<p><TABLE border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"4\">";
print "<TR class=\"liste_titre\"><td>";
print_liste_field_titre("Réf.",$PHP_SELF, "l.ref");
print_liste_field_titre("Réf.","vignettes.php", "l.ref");
print "</td><td>";
print_liste_field_titre("Titre",$PHP_SELF, "l.title");
print_liste_field_titre("Titre","vignettes.php", "l.title");
print "</td>";
print '<td colspan="3">&nbsp;</td>';
print "</TR>\n";

View File

@ -85,7 +85,7 @@ llxHeader();
if ($action == 'create')
{
print "<form action=\"$PHP_SELF?id=$id\" method=\"post\">\n";
print "<form action=\"fiche.php?id=$id\" method=\"post\">\n";
print '<input type="hidden" name="action" value="add">';
print '<div class="titre">Nouvelle Newsletter</div><br>';
@ -121,7 +121,7 @@ else
if ($action == 'delete')
{
print '<form method="post" action="'.$PHP_SELF.'?id='.$id.'">';
print '<form method="post" action="fiche.php?id='.$id.'">';
print '<input type="hidden" name="action" value="confirm_delete">';
print '<table cellspacing="0" border="1" width="100%" cellpadding="3">';
@ -145,7 +145,7 @@ else
if ($action == 'valid')
{
$htmls = new Form($db);
$htmls->form_confirm($PHP_SELF.'?id='.$id,
$htmls->form_confirm('fiche.php?id='.$id,
"Valider une newsletter",
"Etes-vous sûr de vouloir valider cette newsletter ?");
}
@ -156,7 +156,7 @@ else
if ($action == 'send')
{
print '<form method="post" action="'.$PHP_SELF.'?id='.$id.'">';
print '<form method="post" action="fiche.php?id='.$id.'">';
print '<input type="hidden" name="action" value="confirm_send">';
print '<table cellspacing="0" border="1" width="100%" cellpadding="3">';
@ -183,7 +183,7 @@ else
{
print '<div class="titre">Edition de la fiche Newsletter : '.$newsletter->titre.'</div><br>';
print "<form action=\"$PHP_SELF?id=$id\" method=\"post\">\n";
print "<form action=\"fiche.php?id=$id\" method=\"post\">\n";
print '<input type="hidden" name="action" value="update">';
print '<table border="1" width="100%" cellspacing="0" cellpadding="4">';

View File

@ -36,7 +36,7 @@ if ($page == -1) { $page = 0 ; }
$limit = $conf->liste_limit;
$offset = $limit * $page ;
print_barre_liste("Liste des Newsletter", $page, $PHP_SELF);
print_barre_liste("Liste des Newsletter", $page, "index.php");
$sql = "SELECT rowid, email_subject, email_from_name, email_from_email, email_replyto, email_body, target, sql_target, status, date_send_request, date_send_begin, date_send_end, nbsent";
$sql .= " FROM ".MAIN_DB_PREFIX."newsletter";
@ -49,7 +49,7 @@ if ( $db->query($sql) )
$i = 0;
print "<p><TABLE border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"4\">";
print "<TR class=\"liste_titre\"><td>";
print_liste_field_titre("Sujet",$PHP_SELF, "email_subject");
print_liste_field_titre("Sujet","index.php", "email_subject");
print "</td>";
print '<td align="center">Statut</td>';
print '<td align="center">Nb envois</td>';

View File

@ -54,7 +54,7 @@ if ($action == 'update' && !$cancel) {
if ($action == 'create')
{
print "<form action=\"$PHP_SELF?id=$id\" method=\"post\">\n";
print "<form action=\"fiche.php?id=$id\" method=\"post\">\n";
print '<input type="hidden" name="action" value="add">';
print '<div class="titre">Nouvel Editeur</div><br>';
@ -82,7 +82,7 @@ else
{
print '<div class="titre">Edition de la fiche Editeur : '.$editeur->titre.'</div><br>';
print "<form action=\"$PHP_SELF?id=$id\" method=\"post\">\n";
print "<form action=\"fiche.php?id=$id\" method=\"post\">\n";
print '<input type="hidden" name="action" value="update">';
print '<table border="1" width="100%" cellspacing="0" cellpadding="4">';

View File

@ -37,7 +37,7 @@ if ($page == -1) { $page = 0 ; }
$limit = $conf->liste_limit;
$offset = $limit * $page ;
print_barre_liste("Liste des notifications", $page, $PHP_SELF);
print_barre_liste("Liste des notifications", $page, "index.php");
$sql = "SELECT c.customers_id, c.customers_lastname, c.customers_firstname, p.products_name, p.products_id";
$sql .= " FROM ".DB_NAME_OSC.".products_notifications as n,".DB_NAME_OSC.".products_description as p";
@ -53,7 +53,7 @@ if ( $db->query($sql) )
$i = 0;
print "<p><TABLE border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"4\">";
print "<TR class=\"liste_titre\"><td>";
print_liste_field_titre("Client",$PHP_SELF, "c.customers_lastname");
print_liste_field_titre("Client","index.php", "c.customers_lastname");
print "</td>";
print "<td>Produit</td>";
print "</TR>\n";

View File

@ -37,7 +37,7 @@ if ($page == -1) { $page = 0 ; }
$limit = $conf->liste_limit;
$offset = $limit * $page ;
print_barre_liste("Liste des produits suivis", $page, $PHP_SELF);
print_barre_liste("Liste des produits suivis", $page, "produits.php");
$sql = "SELECT p.products_name, p.products_id, count(p.products_id) as nb";
$sql .= " FROM ".DB_NAME_OSC.".products_notifications as n,".DB_NAME_OSC.".products_description as p";

View File

@ -37,7 +37,7 @@ $pageprev = $page - 1;
$pagenext = $page + 1;
print_barre_liste("Transactions BPLC", $page, $PHP_SELF);
print_barre_liste("Transactions BPLC", $page, "bplc.php");
print "<table class=\"noborder\" width=\"100%\" cellspacing=\"0\" cellpadding=\"2\">";
print "<tr class=\"liste_titre\">";

View File

@ -51,7 +51,7 @@ if ($action == 'add')
}
print_titre("Catégories");
print "<form method=\"post\" action=\"$PHP_SELF\">";
print '<form method="post" action="categ.php">';
print "<input type=\"hidden\" name=\"action\" value=\"add\">";
print '<table class="noborder" width="100%" cellspacing="0" cellpadding="2">';
print '<tr class="liste_titre">';

View File

@ -32,7 +32,7 @@ $year=$_GET["year"];
$filtre=$_GET["filtre"];
if (! $year) { $year=date("Y", time()); }
print_fiche_titre("Charges",($year?"<a href='$PHP_SELF?year=".($year-1)."'>".img_previous()."</a> Année $year <a href='$PHP_SELF?year=".($year+1)."'>".img_next()."</a>":""));
print_fiche_titre("Charges",($year?"<a href='index.php?year=".($year-1)."'>".img_previous()."</a> Année $year <a href='index.php?year=".($year+1)."'>".img_next()."</a>":""));
print "<br>";
print '<table class="noborder" cellspacing="0" cellpadding="4" width="100%">';

View File

@ -123,7 +123,7 @@ if ($action == 'create') {
}
}
print_titre("Saisir un don");
print "<form action=\"$PHP_SELF\" method=\"post\">";
print "<form action=\"fiche.php\" method=\"post\">";
print '<table cellspacing="0" border="1" width="100%" cellpadding="3">';
print "<input type=\"hidden\" name=\"action\" value=\"add\">";
@ -200,7 +200,7 @@ if ($rowid > 0 && $action == 'edit')
$don->fetch($rowid);
print_titre("Traitement du don");
print "<form action=\"$PHP_SELF\" method=\"post\">";
print "<form action=\"fiche.php\" method=\"post\">";
print '<table cellspacing="0" border="1" width="100%" cellpadding="3">';
print "<tr $bc[1]><td>Date du don</td><td>";
@ -263,7 +263,7 @@ if ($rowid > 0 && $action == 'edit')
}
elseif ($don->statut == 0)
{
print "<td align=\"center\" width=\"25%\">[<a href=\"$PHP_SELF?rowid=$don->id&action=valid_promesse\">Valider la promesse</a>]</td>";
print "<td align=\"center\" width=\"25%\">[<a href=\"fiche.php?rowid=$don->id&action=valid_promesse\">Valider la promesse</a>]</td>";
}
elseif ($don->statut == 3)
{
@ -296,11 +296,11 @@ if ($rowid > 0 && $action == 'edit')
*/
if ($don->statut == 0)
{
print "<td align=\"center\" width=\"25%\">[<a href=\"$PHP_SELF?rowid=$don->id&action=delete\">Supprimer</a>]</td>";
print "<td align=\"center\" width=\"25%\">[<a href=\"fiche.php?rowid=$don->id&action=delete\">Supprimer</a>]</td>";
}
elseif ($don->statut == 2)
{
print "<td align=\"center\" width=\"25%\">[<a href=\"$PHP_SELF?rowid=$don->id&action=set_encaisse\">Encaisser</a>]</td>";
print "<td align=\"center\" width=\"25%\">[<a href=\"fiche.php?rowid=$don->id&action=set_encaisse\">Encaisser</a>]</td>";
}
else
{
@ -314,7 +314,7 @@ if ($rowid > 0 && $action == 'edit')
/* */
/* ************************************************************************** */
print "<form action=\"$PHP_SELF\" method=\"post\">";
print "<form action=\"fiche.php\" method=\"post\">";
print '<input type="hidden" name="action" value="commentaire">';
print '<input type="hidden" name="rowid" value="'.$don->id.'">';
print '<table cellspacing="0" border="1" width="100%" cellpadding="3">';

View File

@ -75,7 +75,7 @@ $sql .= " FROM ".MAIN_DB_PREFIX."voyage as b ORDER BY b.date_depart ASC";
$result = $db->query($sql);
if ($result) {
print "<form method=\"post\" action=\"$PHP_SELF?viewall=$viewall&vline=$vline&account=$account\">";
print "<form method=\"post\" action=\"index.php?viewall=$viewall&vline=$vline&account=$account\">";
print "<input type=\"hidden\" name=\"action\" value=\"add\">";
print "<TABLE border=\"1\" width=\"100%\" cellspacing=\"0\" cellpadding=\"2\">";
print "<TR class=\"liste_titre\">";
@ -106,7 +106,7 @@ if ($result) {
print "<td align=\"right\">".price($objp->amount)."</TD>\n";
print "<td align=\"right\">".price($objp->reduction)."</TD>\n";
print "<td align=\"center\"><a href=\"$PHP_SELF?action=del&rowid=$objp->rowid\">[Del]</a></td>";
print "<td align=\"center\"><a href=\"index.php?action=del&rowid=$objp->rowid\">[Del]</a></td>";
print "</tr>";

View File

@ -29,7 +29,7 @@ print_titre ("Abonnement de r
print "<TABLE border=\"1\" width=\"100%\" cellspacing=\"0\" cellpadding=\"2\">";
print "<TR class=\"liste_titre\">";
print "<td>Date</td><td>Description</TD>";
print "<td align=\"right\"><a href=\"$PHP_SELF?vue=credit\">Montant</a></TD>";
print "<td align=\"right\"><a href=\"reduc.php?vue=credit\">Montant</a></TD>";
print "</TR>\n";

View File

@ -169,7 +169,7 @@ if ($socid > 0)
print '<td align="right">'.strftime("%d %b %Y %H:%M:%S",filemtime($upload_dir."/".$file)).'</td>';
print '<td>';
echo '<a href="'.$PHP_SELF.'?socid='.$socid.'&action=delete&urlfile='.urlencode($file).'">Delete</a>';
echo '<a href="docsoc.php?socid='.$socid.'&action=delete&urlfile='.urlencode($file).'">Delete</a>';
print "</td></tr>\n";
}
}

View File

@ -61,7 +61,7 @@ $sql .= " FROM ".MAIN_DB_PREFIX."domain ORDER BY label ASC";
$result = $db->query($sql);
if ($result) {
print "<form method=\"post\" action=\"$PHP_SELF?viewall=$viewall&vline=$vline&account=$account\">";
print "<form method=\"post\" action=\"index.php?viewall=$viewall&vline=$vline&account=$account\">";
print "<input type=\"hidden\" name=\"action\" value=\"add\">";
print "<TABLE border=\"1\" width=\"100%\" cellspacing=\"0\" cellpadding=\"2\">";
print "<TR class=\"liste_titre\">";

View File

@ -707,6 +707,7 @@ class Facture
$this->total_tva = $calculs[1];
$this->total_ttc = $calculs[2];
$tvas = $calculs[5];
/*
*
*/

View File

@ -37,16 +37,16 @@ $offset = $limit * $page ;
llxHeader();
print_barre_liste("Liste des produits par popularité dans les propositions commerciales", $page, $PHP_SELF);
print_barre_liste("Liste des produits par popularité dans les propositions commerciales", $page, "popurop.php");
print '<table class="noborder" width="100%" cellspacing="0" cellpadding="4">';
print "<TR class=\"liste_titre\"><td>";
print_liste_field_titre("Réf",$PHP_SELF, "p.ref");
print_liste_field_titre("Réf","popurop.php", "p.ref");
print "</td><td>";
print_liste_field_titre("Libellé",$PHP_SELF, "p.label");
print_liste_field_titre("Libellé","popurop.php", "p.label");
print "</td><TD align=\"center\">";
print_liste_field_titre("Nb. de proposition",$PHP_SELF, "c");
print_liste_field_titre("Nb. de proposition","popurop.php", "c");
print "</td></TR>\n";
$sql = "select p.rowid, p.label, p.ref, count(*) as c from ".MAIN_DB_PREFIX."propaldet as pd, ".MAIN_DB_PREFIX."product as p where p.rowid = pd.fk_product group by (p.rowid)";

View File

@ -147,7 +147,7 @@ print '<li> Les champs Commencant par un <FONT COLOR="red">*</FONT> sont obligat
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 "<form action=\"$PHP_SELF\" method=\"POST\">\n";
print "<form action=\"new.php\" method=\"POST\">\n";
print '<table cellspacing="0" border="1" width="100%" cellpadding="3">';
print '<input type="hidden" name="action" value="add">';

View File

@ -112,18 +112,18 @@ if ($action == 'update')
{
$adh->send_an_email($email,$conf->adherent->email_edit,$conf->adherent->email_edit_subject);
//Header("Location: fiche.php?rowid=$adh->id&action=edit");
Header("Location: $PHP_SELF");
Header("Location: priv_edit.php");
}
}
}else{
Header("Location: $PHP_SELF");
Header("Location: priv_edit.php");
}
}
}
else
{
//Header("Location: fiche.php?rowid=$rowid&action=edit");
Header("Location: $PHP_SELF");
Header("Location: priv_edit.php");
}
}
@ -201,7 +201,7 @@ if (isset($user->login)){
print "<hr>";
print "<form action=\"$PHP_SELF\" method=\"post\">";
print "<form action=\"priv_edit.php\" method=\"post\">";
print '<table cellspacing="0" border="1" width="100%" cellpadding="3">';
print "<input type=\"hidden\" name=\"action\" value=\"update\">";

View File

@ -46,7 +46,7 @@ if ($result)
$num = $db->num_rows();
$i = 0;
print_barre_liste("Liste des adhérents", $page, $PHP_SELF, "&statut=$statut&sortorder=$sortorder&sortfield=$sortfield");
print_barre_liste("Liste des adhérents", $page, "priv_liste.php", "&statut=$statut&sortorder=$sortorder&sortfield=$sortfield");
print "<TABLE border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"4\">";
print '<TR class="liste_titre">';
@ -55,19 +55,19 @@ if ($result)
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>";
print_liste_field_titre("Date naissance",$PHP_SELF,"naiss","&page=$page");
print_liste_field_titre("Date naissance","priv_liste.php","naiss","&page=$page");
print "</td>\n";
print "<td>";
print_liste_field_titre("Email",$PHP_SELF,"email","&page=$page");
print_liste_field_titre("Email","priv_liste.php","email","&page=$page");
print "</td>\n";
print "<td>";
print_liste_field_titre("CP",$PHP_SELF,"cp","&page=$page");
print_liste_field_titre("CP","priv_liste.php","cp","&page=$page");
print "</td>\n";
print "<td>";
print_liste_field_titre("Vile",$PHP_SELF,"ville","&page=$page");
print_liste_field_titre("Vile","priv_liste.php","ville","&page=$page");
print "</td>\n";
print "<td>Photo</td>\n";