Suppression des PHP_SELF

This commit is contained in:
Rodolphe Quiedeville 2004-07-30 10:13:11 +00:00
parent 3a69c7b748
commit 8db7232c59
49 changed files with 200 additions and 195 deletions

View File

@ -69,7 +69,7 @@ if ($HTTP_POST_VARS["action"] == '2bank' && $HTTP_POST_VARS["rowid"] !=''){
$result = $db->query($sql);
if ($result)
{
//Header("Location: $PHP_SELF");
//Header("Location: cotisations.php");
}
else
{
@ -135,7 +135,7 @@ if ($result)
$num = $db->num_rows();
$i = 0;
print_barre_liste("Liste des cotisations", $page, $PHP_SELF, "&statut=$statut&sortorder=$sortorder&sortfield=$sortfield");
print_barre_liste("Liste des cotisations", $page, "cotisations.php", "&statut=$statut&sortorder=$sortorder&sortfield=$sortfield");
print "<TABLE border=\"0\" cellspacing=\"0\" cellpadding=\"4\">\n";
print '<TR class="liste_titre">';
@ -147,7 +147,7 @@ if ($result)
foreach ($Total as $key=>$value){
$var=!$var;
print "<TR $bc[$var]><TD><A HREF=\"$PHP_SELF?statut=$statut&date_select=$key\">$key</A></TD><TD align=\"right\">".price($value)."</TD><TD align=\"right\">".$Number[$key]."</TD><TD align=\"right\">".price($value/$Number[$key])."</TD></TR>\n";
print "<TR $bc[$var]><TD><A HREF=\"cotisations.php?statut=$statut&date_select=$key\">$key</A></TD><TD align=\"right\">".price($value)."</TD><TD align=\"right\">".$Number[$key]."</TD><TD align=\"right\">".price($value/$Number[$key])."</TD></TR>\n";
}
print "</table><BR>\n";
@ -156,24 +156,24 @@ if ($result)
print '<TR class="liste_titre">';
//print "<td>Date</td>";
print '<TD>';
print_liste_field_titre("Date<BR>",$PHP_SELF,"c.dateadh","&page=$page&statut=$statut");
print_liste_field_titre("Date<BR>","cotisations.php","c.dateadh","&page=$page&statut=$statut");
print "</TD>\n";
//print "<td align=\"right\">Montant</TD>";
print '<TD>';
print_liste_field_titre("Montant<BR>",$PHP_SELF,"c.cotisation","&page=$page&statut=$statut");
print_liste_field_titre("Montant<BR>","cotisations.php","c.cotisation","&page=$page&statut=$statut");
print "</TD>\n";
//print "<td>Prenom Nom / Société</td>";
print '<TD>';
// print_liste_field_titre("Prenom",$PHP_SELF,"d.prenom","&page=$page&statut=$statut");
print_liste_field_titre("Prenom Nom<BR>",$PHP_SELF,"d.nom","&page=$page&statut=$statut");
// print_liste_field_titre("Prenom","cotisations.php","d.prenom","&page=$page&statut=$statut");
print_liste_field_titre("Prenom Nom<BR>","cotisations.php","d.nom","&page=$page&statut=$statut");
// print " / Société";
print "</TD>\n";
if (defined("ADHERENT_BANK_USE") && ADHERENT_BANK_USE !=0){
print '<TD>';
// print_liste_field_titre("Bank",$PHP_SELF,"c.fk_bank","&page=$page&statut=$statut");
// print_liste_field_titre("Bank","cotisations.php","c.fk_bank","&page=$page&statut=$statut");
print 'Bank<BR>(Type,Numéro,Libelle)';
print "</TD>\n";
}
@ -203,7 +203,7 @@ if ($result)
print "<TD>Deposé</TD>";
}else{
print "<TD>";
print "<form method=\"post\" action=\"$PHP_SELF\">";
print "<form method=\"post\" action=\"cotisations.php\">";
print '<input type="hidden" name="action" value="2bank">';
print '<input type="hidden" name="rowid" value="'.$objp->crowid.'">';
print '<select name="operation">';
@ -232,7 +232,7 @@ if ($result)
print "<TD align=\"right\">".price($total)."</TD>\n";
// print "<TD>&nbsp;</TD>\n";
print "<TD align=\"right\" colspan=\"2\">";
print_fleche_navigation($page,$PHP_SELF,"&statut=$statut&sortorder=$sortorder&sortfield=$sortfield",1);
print_fleche_navigation($page,"cotisations.php","&statut=$statut&sortorder=$sortorder&sortfield=$sortfield",1);
print "</TD>\n";
print "</TR>\n";

View File

@ -1,5 +1,5 @@
<?PHP
/* Copyright (C) 2001-2002 Rodolphe Quiedeville <rodolphe@quiedeville.org>
/* Copyright (C) 2001-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2002 Jean-Louis Bergamo <jlb@j1b.org>
* Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
*
@ -75,7 +75,7 @@ if ($action == 'update')
}
else
{
Header("Location: $PHP_SELF?rowid=$adh->id");
Header("Location: edit.php?rowid=$adh->id");
}
}
@ -119,7 +119,7 @@ if ($rowid)
print_titre("Edition de la fiche adhérent");
print "<form action=\"$PHP_SELF\" method=\"post\">";
print "<form action=\"edit.php\" method=\"post\">";
print '<table cellspacing="0" border="1" width="100%" cellpadding="3">';
print "<input type=\"hidden\" name=\"action\" value=\"update\">";

View File

@ -1,5 +1,5 @@
<?PHP
/* Copyright (C) 2001-2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
/* Copyright (C) 2001-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2002-2003 Jean-Louis Bergamo <jlb@j1b.org>
* Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
*
@ -80,7 +80,7 @@ if ($_POST["action"] == 'cotisation')
$result = $db->query($sql);
if ($result)
{
//Header("Location: $PHP_SELF");
//Header("Location: fiche.php");
}
else
{
@ -202,7 +202,7 @@ if ($_POST["action"] == 'add')
$result = $db->query($sql);
if ($result)
{
//Header("Location: $PHP_SELF");
//Header("Location: fiche.php");
}
else
{
@ -342,7 +342,7 @@ $adho->fetch_optionals();
if ($action == 'create') {
print_titre("Nouvel adhérent");
print "<form action=\"$PHP_SELF\" method=\"post\">\n";
print "<form action=\"fiche.php\" method=\"post\">\n";
print '<table cellspacing="0" border="1" width="100%" cellpadding="3">';
print '<input type="hidden" name="action" value="add">';
@ -449,7 +449,7 @@ if ($rowid > 0)
*/
if ($action == 'delete')
{
$html->form_confirm("$PHP_SELF?rowid=$rowid","Supprimer un adhérent","Etes-vous sûr de vouloir supprimer cet adhérent (La suppression d'un adhérent entraine la suppression de toutes ses cotisations !)","confirm_delete");
$html->form_confirm("fiche.php?rowid=$rowid","Supprimer un adhérent","Etes-vous sûr de vouloir supprimer cet adhérent (La suppression d'un adhérent entraine la suppression de toutes ses cotisations !)","confirm_delete");
}
/*
@ -457,7 +457,7 @@ if ($rowid > 0)
*/
if ($action == 'valid')
{
$html->form_confirm("$PHP_SELF?rowid=$rowid","Valider un adhérent","Etes-vous sûr de vouloir valider cet adhérent ?","confirm_valid");
$html->form_confirm("fiche.php?rowid=$rowid","Valider un adhérent","Etes-vous sûr de vouloir valider cet adhérent ?","confirm_valid");
}
/*
@ -465,7 +465,7 @@ if ($rowid > 0)
*/
if ($action == 'resign')
{
$html->form_confirm("$PHP_SELF?rowid=$rowid","Résilier une adhésion","Etes-vous sûr de vouloir résilier cet adhérent ?","confirm_resign");
$html->form_confirm("fiche.php?rowid=$rowid","Résilier une adhésion","Etes-vous sûr de vouloir résilier cet adhérent ?","confirm_resign");
}
/*
@ -473,7 +473,7 @@ if ($rowid > 0)
*/
if ($action == 'add_glasnost')
{
$html->form_confirm("$PHP_SELF?rowid=$rowid","Ajouter dans glasnost","Etes-vous sur de vouloir ajouter cet adhérent dans glasnost ? (serveur : ".ADHERENT_GLASNOST_SERVEUR.")","confirm_add_glasnost");
$html->form_confirm("fiche.php?rowid=$rowid","Ajouter dans glasnost","Etes-vous sur de vouloir ajouter cet adhérent dans glasnost ? (serveur : ".ADHERENT_GLASNOST_SERVEUR.")","confirm_add_glasnost");
}
/*
@ -481,7 +481,7 @@ if ($rowid > 0)
*/
if ($action == 'del_glasnost')
{
$html->form_confirm("$PHP_SELF?rowid=$rowid","Supprimer dans glasnost","Etes-vous sur de vouloir effacer cet adhérent dans glasnost ? (serveur : ".ADHERENT_GLASNOST_SERVEUR.")","confirm_del_glasnost");
$html->form_confirm("fiche.php?rowid=$rowid","Supprimer dans glasnost","Etes-vous sur de vouloir effacer cet adhérent dans glasnost ? (serveur : ".ADHERENT_GLASNOST_SERVEUR.")","confirm_del_glasnost");
}
/*
@ -489,7 +489,7 @@ if ($rowid > 0)
*/
if ($action == 'add_spip')
{
$html->form_confirm("$PHP_SELF?rowid=$rowid","Ajouter dans spip","Etes-vous sur de vouloir ajouter cet adhérent dans spip ? (serveur : ".ADHERENT_SPIP_SERVEUR.")","confirm_add_spip");
$html->form_confirm("fiche.php?rowid=$rowid","Ajouter dans spip","Etes-vous sur de vouloir ajouter cet adhérent dans spip ? (serveur : ".ADHERENT_SPIP_SERVEUR.")","confirm_add_spip");
}
/*
@ -497,12 +497,12 @@ if ($rowid > 0)
*/
if ($action == 'del_spip')
{
$html->form_confirm("$PHP_SELF?rowid=$rowid","Supprimer dans spip","Etes-vous sur de vouloir effacer cet adhérent dans spip ? (serveur : ".ADHERENT_SPIP_SERVEUR.")","confirm_del_spip");
$html->form_confirm("$PHP_SELF?rowid=$rowid","Ajouter dans glasnost","Etes-vous sur de vouloir ajouter cet adhérent dans glasnost ? (serveur : ".ADHERENT_GLASNOST_SERVEUR.")","confirm_del_spip");
$html->form_confirm("fiche.php?rowid=$rowid","Supprimer dans spip","Etes-vous sur de vouloir effacer cet adhérent dans spip ? (serveur : ".ADHERENT_SPIP_SERVEUR.")","confirm_del_spip");
$html->form_confirm("fiche.php?rowid=$rowid","Ajouter dans glasnost","Etes-vous sur de vouloir ajouter cet adhérent dans glasnost ? (serveur : ".ADHERENT_GLASNOST_SERVEUR.")","confirm_del_spip");
}
print "<form action=\"$PHP_SELF\" method=\"post\">\n";
print "<form action=\"fiche.php\" method=\"post\">\n";
print '<table cellspacing="0" border="1" width="100%" cellpadding="3">';
print '<tr><td>Numero</td><td class="valeur">'.$adh->id.'&nbsp;</td>';
@ -556,36 +556,36 @@ if ($user->admin)
if ($adh->statut < 1)
{
print "<a class=\"tabAction\" href=\"$PHP_SELF?rowid=$rowid&action=valid\">Valider l'adhésion</a>\n";
print "<a class=\"tabAction\" href=\"fiche.php?rowid=$rowid&action=valid\">Valider l'adhésion</a>\n";
}
if ($adh->statut == 1)
{
print "<a class=\"tabAction\" href=\"$PHP_SELF?rowid=$rowid&action=resign\">Résilier l'adhésion</a>\n";
print "<a class=\"tabAction\" href=\"fiche.php?rowid=$rowid&action=resign\">Résilier l'adhésion</a>\n";
}
print "<a class=\"tabAction\" href=\"$PHP_SELF?rowid=$adh->id&action=delete\">Supprimer</a>\n";
print "<a class=\"tabAction\" href=\"fiche.php?rowid=$adh->id&action=delete\">Supprimer</a>\n";
/*
* bouton : "Envoie des informations"
*/
print "<a class=\"tabAction\" href=\"$PHP_SELF?rowid=$adh->id&action=sendinfo\">Envoyer sa fiche a l'adhérent</a>\n";
print "<a class=\"tabAction\" href=\"fiche.php?rowid=$adh->id&action=sendinfo\">Envoyer sa fiche a l'adhérent</a>\n";
if ($adht->vote == 'yes' && defined("ADHERENT_USE_GLASNOST") && ADHERENT_USE_GLASNOST ==1){
define("XMLRPC_DEBUG", 1);
if ($adh->is_in_glasnost() == 1){
print "<a class=\"tabAction\" href=\"$PHP_SELF?rowid=$adh->id&action=del_glasnost\">Suppression dans Glasnost</a>\n";
print "<a class=\"tabAction\" href=\"fiche.php?rowid=$adh->id&action=del_glasnost\">Suppression dans Glasnost</a>\n";
}
print "<a class=\"tabAction\" href=\"$PHP_SELF?rowid=$adh->id&action=add_glasnost\">Ajout dans Glasnost</a>\n";
print "<a class=\"tabAction\" href=\"$PHP_SELF?rowid=$adh->id&action=del_glasnost\">Suppression dans Glasnost</a>\n";
print "<a class=\"tabAction\" href=\"fiche.php?rowid=$adh->id&action=add_glasnost\">Ajout dans Glasnost</a>\n";
print "<a class=\"tabAction\" href=\"fiche.php?rowid=$adh->id&action=del_glasnost\">Suppression dans Glasnost</a>\n";
}
if (defined("ADHERENT_USE_SPIP") && ADHERENT_USE_SPIP ==1){
if ($adh->is_in_spip() == 1){
print "<a class=\"tabAction\" href=\"$PHP_SELF?rowid=$adh->id&action=del_spip\">Suppression dans Spip</a>\n";
print "<a class=\"tabAction\" href=\"fiche.php?rowid=$adh->id&action=del_spip\">Suppression dans Spip</a>\n";
}else{
print "<a class=\"tabAction\" href=\"$PHP_SELF?rowid=$adh->id&action=add_spip\">Ajout dans Spip</a>\n";
print "<a class=\"tabAction\" href=\"fiche.php?rowid=$adh->id&action=add_spip\">Ajout dans Spip</a>\n";
}
}

View File

@ -98,8 +98,8 @@ llxHeader();
print "<td>".$adho->attribute_label[$key]."&nbsp;</td>\n";
print "<td>$key</td>\n";
print "<td>$value</TD>\n";
print "<td align=\"center\"><a href=\"$PHP_SELF?action=edit&attrname=$key\">".img_edit()."</a>";
print "&nbsp; <a href=\"$PHP_SELF?action=delete&attrname=$key\">".img_delete()."</a></td>\n";
print "<td align=\"center\"><a href=\"options.php?action=edit&attrname=$key\">".img_edit()."</a>";
print "&nbsp; <a href=\"options.php?action=delete&attrname=$key\">".img_delete()."</a></td>\n";
print "</tr>";
// $i++;
}
@ -110,7 +110,7 @@ llxHeader();
*
*/
print '<div class="tabsAction">';
print "<a class=\"tabAction\" href=\"$PHP_SELF?action=create\">Nouvel attribut</a>";
print "<a class=\"tabAction\" href=\"options.php?action=create\">Nouvel attribut</a>";
print "</div>";
}
@ -127,7 +127,7 @@ if ($_GET["action"] == 'create') {
print_titre("Nouvel attribut");
print '<br>';
print "<form action=\"$PHP_SELF\" method=\"post\">";
print "<form action=\"options.php\" method=\"post\">";
print '<table class="border" cellspacing="0" width="100%" cellpadding="3">';
print '<input type="hidden" name="action" value="add">';
@ -164,7 +164,7 @@ if ($_GET["attrname"] && $_GET["action"] == 'edit')
/*
* formulaire d'edition
*/
print '<form method="post" action="'.$PHP_SELF.'?attrname='.$_GET["attrname"].'">';
print '<form method="post" action="options.php?attrname='.$_GET["attrname"].'">';
print '<input type="hidden" name="attrname" value="'.$_GET["attrname"].'">';
print '<input type="hidden" name="action" value="update">';
print '<table class="border" cellspacing="0" width="100%" cellpadding="3">';

View File

@ -1,5 +1,5 @@
<?PHP
/* Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
/* Copyright (C) 2003-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
*
* This program is free software; you can redistribute it and/or modify
@ -94,7 +94,7 @@ if ($handle)
else
{
print '<td>&nbsp;</td>';
print '<td align="center"><a href="'.$PHP_SELF.'?action=setmod&amp;value='.$file.'">activer</a></td>';
print '<td align="center"><a href="commande.php?action=setmod&amp;value='.$file.'">activer</a></td>';
}
print '</tr>';

View File

@ -1,5 +1,6 @@
<?PHP
/* Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
/* Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
*
* 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
@ -65,7 +66,7 @@ print "<br>";
print '<table class="noborder" cellpadding="3" cellspacing="0" width=\"100%\">';
print '<form action="'.$PHP_SELF.'" method="post">';
print '<form action="compta.php" method="post">';
print '<input type="hidden" name="action" value="setcomptamode">';
print '<tr class="liste_titre">';
print '<td>Option de tenue de comptabilité</td><td>Description</td>';
@ -102,7 +103,7 @@ if ($result)
$obj = $db->fetch_object( $i);
$var=!$var;
print '<form action="'.$PHP_SELF.'" method="POST">';
print '<form action="compta.php" method="POST">';
print '<input type="hidden" name="action" value="update">';
print '<input type="hidden" name="rowid" value="'.$rowid.'">';
print '<input type="hidden" name="constname" value="'.$obj->name.'">';
@ -135,7 +136,7 @@ if ($result)
print '<input type="text" size="15" name="constnote" value="'.stripslashes(nl2br($obj->note)).'">';
print '</td><td>';
print '<input type="Submit" value="Update" name="Button"> &nbsp; ';
print '<a href="'.$PHP_SELF.'?constname='.$obj->name.'&action=delete">'.img_delete().'</a>';
print '<a href="compta.php?constname='.$obj->name.'&action=delete">'.img_delete().'</a>';
print "</td></tr>\n";
print '</form>';

View File

@ -168,11 +168,11 @@ if ($_GET["id"])
print '<tr class="liste_titre">';
foreach ($fieldlist as $field => $value) {
print '<td>';
print_liste_field_titre(ucfirst($fieldlist[$field]),$PHP_SELF,$fieldlist[$field],"&id=".$_GET["id"]);
print_liste_field_titre(ucfirst($fieldlist[$field]),"dict.php",$fieldlist[$field],"&id=".$_GET["id"]);
print '</td>';
}
print '<td>';
print_liste_field_titre("Activer/Désactiver",$PHP_SELF,"active","&id=".$_GET["id"]);
print_liste_field_titre("Activer/Désactiver","dict.php","active","&id=".$_GET["id"]);
print '</td>';
print '</tr>';
@ -189,9 +189,9 @@ if ($_GET["id"])
}
print '<td>';
if ($obj->code) {
print '<a href="'.$PHP_SELF.'?sortfield='.$sortfield.'&sortorder='.$sortorder.'&rowid='.$obj->rowid.'&amp;code='.$obj->code.'&amp;id='.$_GET["id"].'&amp;action='.$acts[$obj->active].'">'.$actl[$obj->active].'</a>';
print '<a href="'."dict.php".'?sortfield='.$sortfield.'&sortorder='.$sortorder.'&rowid='.$obj->rowid.'&amp;code='.$obj->code.'&amp;id='.$_GET["id"].'&amp;action='.$acts[$obj->active].'">'.$actl[$obj->active].'</a>';
} else {
print '<a href="'.$PHP_SELF.'?sortfield='.$sortfield.'&sortorder='.$sortorder.'&rowid='.$obj->rowid.'&amp;code='.$obj->code.'&amp;id='.$_GET["id"].'&amp;action='.$acts[$obj->active].'">'.$actl[$obj->active].'</a>';
print '<a href="'."dict.php".'?sortfield='.$sortfield.'&sortorder='.$sortorder.'&rowid='.$obj->rowid.'&amp;code='.$obj->code.'&amp;id='.$_GET["id"].'&amp;action='.$acts[$obj->active].'">'.$actl[$obj->active].'</a>';
}
print "</td>";

View File

@ -38,6 +38,10 @@ if ($user->societe_id > 0)
llxHeader();
$begin=$_GET["begin"];
$sortorder=$_GET["sortorder"];
$sortfield=$_GET["sortfield"];
if ($sortfield == "")
{
$sortfield="c.rowid";
@ -80,20 +84,20 @@ $sql .= $db->plimit($limit + 1,$offset);
if ( $db->query($sql) )
{
$num = $db->num_rows();
print_barre_liste("Commandes", $_GET["page"], $PHP_SELF,"&amp;socidp=$socidp",$sortfield,$sortorder,'',$num);
print_barre_liste("Commandes", $_GET["page"], "liste.php","&amp;socidp=$socidp",$sortfield,$sortorder,'',$num);
$i = 0;
print '<table class="noborder" width="100%" cellspacing="0" cellpadding="4">';
print '<tr class="liste_titre">';
print_liste_field_titre_new ("Réf",$PHP_SELF,"c.ref","","&amp;socidp=$socidp",'width="15%"',$sortfield);
print_liste_field_titre_new ("Réf","liste.php","c.ref","","&amp;socidp=$socidp",'width="15%"',$sortfield);
print_liste_field_titre_new ("Société",$PHP_SELF,"s.nom","","&amp;socidp=$socidp",'width="30%"',$sortfield);
print_liste_field_titre_new ("Société","liste.php","s.nom","","&amp;socidp=$socidp",'width="30%"',$sortfield);
print_liste_field_titre_new ("Date",$PHP_SELF,"c.date_commande","","&amp;socidp=$socidp", 'width="25%" align="right" colspan="2"',$sortfield);
print_liste_field_titre_new ("Date","liste.php","c.date_commande","","&amp;socidp=$socidp", 'width="25%" align="right" colspan="2"',$sortfield);
print_liste_field_titre_new ("Statut",$PHP_SELF,"c.fk_statut","","&amp;socidp=$socidp",'width="10%" align="center"',$sortfield);
print_liste_field_titre_new ("Statut","liste.php","c.fk_statut","","&amp;socidp=$socidp",'width="10%" align="center"',$sortfield);
print "</tr>\n";
$var=True;

View File

@ -63,7 +63,7 @@ if ($action == 'add' && $account)
}
else
{
Header("Location: $PHP_SELF?account=" . $account);
Header("Location: account.php?account=" . $account);
}
}
if ($action == 'del' && $account && $user->rights->banque->modifier)
@ -183,7 +183,7 @@ if ($account > 0)
print_fiche_titre("Journal de trésorerie du compte : " .$acct->label,$mesg);
print '<br>';
print '<form method="post" action="'.$PHP_SELF.'">';
print '<form method="post" action="account.php">';
print '<input type="hidden" name="action" value="search">';
print '<input type="hidden" name="account" value="' . $acct->id . '">';
print '<table class="border" width="100%" cellspacing="0" cellpadding="2">';
@ -211,7 +211,7 @@ if ($account > 0)
*/
if ($user->rights->banque->modifier)
{
print '<form method="post" action="'.$PHP_SELF.'">';
print '<form method="post" action="account.php">';
print '<input type="hidden" name="action" value="add">';
print '<input type="hidden" name="vline" value="' . $vline . '">';
print '<input type="hidden" name="account" value="' . $acct->id . '">';
@ -402,7 +402,7 @@ Function _print_lines($db,$sql,$acct)
{
if ($user->rights->banque->modifier)
{
print "<td align=\"center\"><a href=\"$PHP_SELF?action=del&amp;rowid=$objp->rowid&amp;account=$acct->id&amp;page=$page\">";
print "<td align=\"center\"><a href=\"account.php?action=del&amp;rowid=$objp->rowid&amp;account=$acct->id&amp;page=$page\">";
print img_delete();
print "</a></td>";
}

View File

@ -61,7 +61,7 @@ if ($_GET["bid"] == 0)
$objp = $db->fetch_object( $i);
$var=!$var;
print "<tr $bc[$var]>";
print "<td><a href=\"$PHP_SELF?bid=$objp->rowid\">$objp->label</a></td>";
print "<td><a href=\"budget.php?bid=$objp->rowid\">$objp->label</a></td>";
print '<td align="center">'.$objp->nombre.'</td>';
print "<td align=\"right\">".price(abs($objp->somme))."</td>";
print "<td align=\"right\">".price(abs($objp->somme / $objp->nombre))."</td>";

View File

@ -78,7 +78,7 @@ if (! isset($_GET["num"]))
$numrows = $db->num_rows();
$i = 0;
print_barre_liste("Relevés bancaires, compte : <a href=\"account.php?account=".$acct->id."\">".$acct->label."</a>", $page, $PHP_SELF,"&amp;account=$account",$sortfield,$sortorder,'',$numrows);
print_barre_liste("Relevés bancaires, compte : <a href=\"account.php?account=".$acct->id."\">".$acct->label."</a>", $page, "releve.php","&amp;account=$account",$sortfield,$sortorder,'',$numrows);
print '<br>';
print '<table class="noborder" width="100%" cellspacing="0" cellpadding="2">';
@ -89,14 +89,17 @@ if (! isset($_GET["num"]))
{
$objp = $db->fetch_object( $i);
$var=!$var;
if (! $objp->numr) {
// print "<tr $bc[$var]><td><a href=\"$PHP_SELF?num=&amp;account=".$_GET["account"]."\">Ecritures rapprochées à aucun relevé</a></td></tr>\n";
} else {
print "<tr $bc[$var]><td><a href=\"$PHP_SELF?num=$objp->numr&amp;account=".$_GET["account"]."\">$objp->numr</a></td></tr>\n";
}
if (! $objp->numr)
{
//
}
else
{
print "<tr $bc[$var]><td><a href=\"releve.php?num=$objp->numr&amp;account=".$_GET["account"]."\">$objp->numr</a></td></tr>\n";
}
$i++;
}
print "</table>\n";
print "</table>\n";
}
@ -146,13 +149,13 @@ else
$num=$_GET["num"];
}
$mesprevnext ="<a href=\"$PHP_SELF?rel=prev&amp;num=$num&amp;ve=$ve&amp;account=$acct->id\">".img_previous()."</a>";
$mesprevnext ="<a href=\"releve.php?rel=prev&amp;num=$num&amp;ve=$ve&amp;account=$acct->id\">".img_previous()."</a>";
$mesprevnext.=" Relevé $num ";
$mesprevnext.="<a href=\"$PHP_SELF?rel=next&amp;num=$num&amp;ve=$ve&amp;account=$acct->id\">".img_next()."</a>";
$mesprevnext.="<a href=\"releve.php?rel=next&amp;num=$num&amp;ve=$ve&amp;account=$acct->id\">".img_next()."</a>";
print_fiche_titre('Relevé numéro '.$num.', compte : <a href="account.php?account='.$acct->id.'">'.$acct->label.'</a>',$mesprevnext);
print "<form method=\"post\" action=\"$PHP_SELF\">";
print "<form method=\"post\" action=\"releve.php\">";
print "<input type=\"hidden\" name=\"action\" value=\"add\">";
print '<table class="border" width="100%" cellspacing="0" cellpadding="2">';
print "<tr class=\"liste_titre\">";
@ -186,7 +189,7 @@ else
$var=True;
$numrows = $db->num_rows();
$i = 0;
print "<tr><td colspan=\"3\"><a href=\"$PHP_SELF?num=$num&amp;ve=1&amp;rel=$rel&amp;account=".$acct->id."\">Vue etendue</a></td>";
print "<tr><td colspan=\"3\"><a href=\"releve.php?num=$num&amp;ve=1&amp;rel=$rel&amp;account=".$acct->id."\">Vue etendue</a></td>";
print "<td align=\"right\" colspan=\"2\">&nbsp;</td><td align=\"right\"><b>".price($total)."</b></td><td>&nbsp;</td></tr>\n";
while ($i < $numrows)

View File

@ -200,10 +200,10 @@ if ($result)
$i = 0;
if ($action == 'facturer') {
print_barre_liste("Liste des clients facturables", $page, $PHP_SELF,"",$sortfield,$sortorder,'',$num);
print_barre_liste("Liste des clients facturables", $page, "clients.php","",$sortfield,$sortorder,'',$num);
}
else {
print_barre_liste("Liste des clients", $page, $PHP_SELF,"",$sortfield,$sortorder,'',$num);
print_barre_liste("Liste des clients", $page, "clients.php","",$sortfield,$sortorder,'',$num);
}
if ($sortorder == "DESC")
@ -216,7 +216,7 @@ if ($result)
}
print '<table class="noborder" width="100%" cellspacing="0" cellpadding="4">';
print '<tr class="liste_titre"><td valign="center">';
print_liste_field_titre("Société",$PHP_SELF,"s.nom");
print_liste_field_titre("Société","clients.php","s.nom");
print "</td><td>Ville</td>";
print "<td align=\"center\">Préfix</td><td colspan=\"2\">&nbsp;</td></tr>\n";

View File

@ -86,10 +86,9 @@ if ($result) {
print "</td><td valign=\"top\">";
print "<form action=\"$PHP_SELF\" method=\"post\">";
print '<form action="pmt.php" method="post">';
print "<input type=\"hidden\" name=\"action\" value=\"update\">";
$strmonth[1] = "Janvier";
$strmonth[2] = "F&eacute;vrier";
$strmonth[3] = "Mars";
@ -103,8 +102,6 @@ $strmonth[10] = "Octobre";
$strmonth[11] = "Novembre";
$strmonth[12] = "D&eacute;cembre";
print "Date :";
$cmonth = date("n", time());
print "<select name=\"pmonth\">";

View File

@ -183,7 +183,7 @@ if ($_GET["propalid"])
if ($action == 'statut')
{
print "<form action=\"$PHP_SELF?propalid=".$propal->id."\" method=\"post\">";
print "<form action=\"propal.php?propalid=".$propal->id."\" method=\"post\">";
print "<input type=\"hidden\" name=\"action\" value=\"setstatut\">";
print "<select name=\"statut\">";
print "<option value=\"2\">Signée";
@ -285,7 +285,7 @@ if ($_GET["propalid"])
if ($obj->statut == 2 && $num_fac_asso)
{
print "<td width=\"20%\">[<a href=\"$PHP_SELF?propalid=".$propal->id."&action=setstatut&statut=4\">Facturée</a>]</td>";
print "<td width=\"20%\">[<a href=\"propal.php?propalid=".$propal->id."&action=setstatut&statut=4\">Facturée</a>]</td>";
}
else
{
@ -373,7 +373,7 @@ if ($_GET["propalid"])
$cloturor = new User($db, $obj->fk_user_cloture);
$cloturor->fetch('');
print '<p><a href="'.$PHP_SELF.'?propalid='.$propal->id.'">Cacher le suivi des actions </a>';
print '<p><a href="propal.php?propalid='.$propal->id.'">Cacher le suivi des actions </a>';
print '<table cellspacing=0 border=1 cellpadding=3>';
print '<tr><td>&nbsp;</td><td>Nom</td><td>Date</td></tr>';
print '<tr><td>Création</td><td>'.$author->fullname.'</td>';
@ -388,7 +388,7 @@ if ($_GET["propalid"])
}
else
{
print '<p><a href="'.$PHP_SELF.'?propalid='.$propal->id.'&suivi=1">Voir le suivi des actions </a>';
print '<p><a href="propal.php?propalid='.$propal->id.'&suivi=1">Voir le suivi des actions </a>';
}
} else {
@ -459,16 +459,16 @@ if ($_GET["propalid"])
{
$num = $db->num_rows();
print_barre_liste("Propositions commerciales", $page, $PHP_SELF,"&socidp=$socidp",$sortfield,$sortorder,'',$num);
print_barre_liste("Propositions commerciales", $page, "propal.php","&socidp=$socidp",$sortfield,$sortorder,'',$num);
$i = 0;
print "<table class=\"noborder\" width=\"100%\" cellspacing=\"0\" cellpadding=\"4\">";
print '<tr class="liste_titre">';
print_liste_field_titre_new ("Réf",$PHP_SELF,"p.ref","","&year=$year&viewstatut=$viewstatut",'',$sortfield);
print_liste_field_titre_new ("Société",$PHP_SELF,"s.nom","&viewstatut=$viewstatut","",'',$sortfield);
print_liste_field_titre_new ("Date",$PHP_SELF,"p.datep","&viewstatut=$viewstatut","",'align="right" colspan="2"',$sortfield);
print_liste_field_titre_new ("Prix",$PHP_SELF,"p.price","&viewstatut=$viewstatut","",'align="right"',$sortfield);
print_liste_field_titre_new ("Statut",$PHP_SELF,"p.fk_statut","&viewstatut=$viewstatut","",'align="center"',$sortfield);
print_liste_field_titre_new ("Réf","propal.php","p.ref","","&year=$year&viewstatut=$viewstatut",'',$sortfield);
print_liste_field_titre_new ("Société","propal.php","s.nom","&viewstatut=$viewstatut","",'',$sortfield);
print_liste_field_titre_new ("Date","propal.php","p.datep","&viewstatut=$viewstatut","",'align="right" colspan="2"',$sortfield);
print_liste_field_titre_new ("Prix","propal.php","p.price","&viewstatut=$viewstatut","",'align="right"',$sortfield);
print_liste_field_titre_new ("Statut","propal.php","p.fk_statut","&viewstatut=$viewstatut","",'align="center"',$sortfield);
print "</tr>\n";
while ($i < min($num, $limit))
@ -477,7 +477,7 @@ if ($_GET["propalid"])
$var=!$var;
print "<tr $bc[$var]>";
print "<td><a href=\"$PHP_SELF?propalid=$objp->propalid\">$objp->ref</a></td>\n";
print "<td><a href=\"propal.php?propalid=$objp->propalid\">$objp->ref</a></td>\n";
print "<td><a href=\"fiche.php?socid=$objp->idp\">$objp->nom</a></td>\n";
$now = time();

View File

@ -107,13 +107,13 @@ if ($result)
$num = $db->num_rows();
$i = 0;
print_barre_liste($titre ,$page, $PHP_SELF, '&amp;begin='.$_GET["begin"].'&amp;view='.$_GET["view"].'&amp;userid='.$_GET["userid"], $sortfield, $sortorder,'',$num);
print_barre_liste($titre ,$page, "index.php", '&amp;begin='.$_GET["begin"].'&amp;view='.$_GET["view"].'&amp;userid='.$_GET["userid"], $sortfield, $sortorder,'',$num);
print "<div align=\"center\">";
print "| <A href=\"$PHP_SELF?page=$pageprev&stcomm=$stcomm&sortfield=$sortfield&sortorder=$sortorder&aclasser=$aclasser&coord=$coord\">*</A>\n| ";
print "| <A href=\"index.php?page=$pageprev&stcomm=$stcomm&sortfield=$sortfield&sortorder=$sortorder&aclasser=$aclasser&coord=$coord\">*</A>\n| ";
for ($ij = 65 ; $ij < 91; $ij++) {
print "<A href=\"$PHP_SELF?begin=" . chr($ij) . "&stcomm=$stcomm\" class=\"T3\">";
print "<A href=\"index.php?begin=" . chr($ij) . "&stcomm=$stcomm\" class=\"T3\">";
if ($_GET["begin"] == chr($ij) )
{
@ -137,11 +137,11 @@ if ($result)
}
print '<p><table class="noborder" width="100%" cellspacing="0" cellpadding="4">';
print '<tr class="liste_titre"><td>';
print_liste_field_titre("Nom",$PHP_SELF,"lower(p.name)", $begin);
print_liste_field_titre("Nom","index.php","lower(p.name)", $begin);
print "</td><td>";
print_liste_field_titre("Prénom",$PHP_SELF,"lower(p.firstname)", $begin);
print_liste_field_titre("Prénom","index.php","lower(p.firstname)", $begin);
print "</td><td>";
print_liste_field_titre("Société",$PHP_SELF,"lower(s.nom)", $begin);
print_liste_field_titre("Société","index.php","lower(s.nom)", $begin);
print '</td>';
print '<td>Téléphone</td>';

View File

@ -65,18 +65,18 @@ if ( $db->query($sql) )
$i = 0;
print_barre_liste("Liste des contrats en service", $page, $PHP_SELF, "&sref=$sref&snom=$snom", $sortfield, $sortorder,'',$num);
print_barre_liste("Liste des contrats en service", $page, "enservice.php", "&sref=$sref&snom=$snom", $sortfield, $sortorder,'',$num);
print '<table class="noborder" width="100%" cellspacing="0" cellpadding="3">';
print '<tr class="liste_titre"><td>';
print_liste_field_titre("Libellé",$PHP_SELF, "p.label");
print_liste_field_titre("Libellé","enservice.php", "p.label");
print "</td><td>";
print_liste_field_titre("Société",$PHP_SELF, "s.nom");
print_liste_field_titre("Société","enservice.php", "s.nom");
print "</td>";
print "<td align=\"center\">Statut</td>";
print "<td align=\"center\">";
print_liste_field_titre("Date fin",$PHP_SELF, "date_fin_validite");
print_liste_field_titre("Date fin","enservice.php", "date_fin_validite");
print '</td>';
print "</tr>\n";

View File

@ -73,22 +73,22 @@ if ( $db->query($sql) )
$i = 0;
print_barre_liste("Liste des contrats", $page, $PHP_SELF, "&sref=$sref&snom=$snom", $sortfield, $sortorder,'',$num);
print_barre_liste("Liste des contrats", $page, "index.php", "&sref=$sref&snom=$snom", $sortfield, $sortorder,'',$num);
print '<table class="noborder" width="100%" cellspacing="0" cellpadding="3">';
print '<tr class="liste_titre">';
print '<td>';
print_liste_field_titre("Numéro",$PHP_SELF, "c.rowid");
print_liste_field_titre("Numéro","index.php", "c.rowid");
print "</td><td>";
print_liste_field_titre("Libellé",$PHP_SELF, "p.label");
print_liste_field_titre("Libellé","index.php", "p.label");
print "</td><td>";
print_liste_field_titre("Société",$PHP_SELF, "s.nom");
print_liste_field_titre("Société","index.php", "s.nom");
print '</td><td align="center">';
print_liste_field_titre("Statut",$PHP_SELF, "c.enservice");
print_liste_field_titre("Statut","index.php", "c.enservice");
print '</td>';
print '</td><td align="center">';
print_liste_field_titre("Date Fin",$PHP_SELF, "c.fin_validite");
print_liste_field_titre("Date Fin","index.php", "c.fin_validite");
print '</td>';
print "</tr>\n";

View File

@ -79,7 +79,7 @@ if ($_GET["id"] > 0)
*/
if ($_GET["action"] == 'cloture')
{
$html->form_confirm("$PHP_SELF?id=$id","Cloturer la commande","Etes-vous sûr de cloturer cette commande ?","confirm_cloture");
$html->form_confirm("commande.php?id=$id","Cloturer la commande","Etes-vous sûr de cloturer cette commande ?","confirm_cloture");
}
/*
*

View File

@ -1,5 +1,5 @@
<?PHP
/* Copyright (C) 2001-2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
/* Copyright (C) 2001-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
*
* This program is free software; you can redistribute it and/or modify
@ -83,18 +83,18 @@ $sql .= $db->plimit($limit + 1,$offset);
if ( $db->query($sql) )
{
$num = $db->num_rows();
print_barre_liste("Expeditions", $_GET["page"], $PHP_SELF,"&amp;socidp=$socidp",$sortfield,$sortorder,'',$num);
print_barre_liste("Expeditions", $_GET["page"], "liste.php","&amp;socidp=$socidp",$sortfield,$sortorder,'',$num);
$i = 0;
print '<table class="noborder" width="100%" cellspacing="0" cellpadding="4">';
print '<tr class="liste_titre">';
print_liste_field_titre_new ("Réf",$PHP_SELF,"e.ref","","&amp;socidp=$socidp",'width="15%"',$sortfield);
print_liste_field_titre_new ("Réf","liste.php","e.ref","","&amp;socidp=$socidp",'width="15%"',$sortfield);
print_liste_field_titre_new ("Date",$PHP_SELF,"e.date_expedition","","&amp;socidp=$socidp", 'width="25%" align="right" colspan="2"',$sortfield);
print_liste_field_titre_new ("Date","liste.php","e.date_expedition","","&amp;socidp=$socidp", 'width="25%" align="right" colspan="2"',$sortfield);
print_liste_field_titre_new ("Statut",$PHP_SELF,"e.fk_statut","","&amp;socidp=$socidp",'width="10%" align="center"',$sortfield);
print_liste_field_titre_new ("Statut","liste.php","e.fk_statut","","&amp;socidp=$socidp",'width="10%" align="center"',$sortfield);
print "</tr>\n";
$var=True;

View File

@ -130,7 +130,7 @@ if ($action == 'create')
$fix = new Fichinter($db);
$numpr = $fix->get_new_num($objsoc->prefix_comm);
print "<form action=\"$PHP_SELF?socidp=$socidp\" method=\"post\">";
print "<form action=\"fiche.php?socidp=$socidp\" method=\"post\">";
$strmonth[1] = "Janvier";
$strmonth[2] = "F&eacute;vrier";
@ -260,7 +260,7 @@ if ($action == 'edit')
print_titre("Mettre à jour Fiche d'intervention");
print "<form action=\"$PHP_SELF?id=$id\" method=\"post\">";
print "<form action=\"fiche.php?id=$id\" method=\"post\">";
print '<table class="border" cellpadding="3" cellspacing="0" width="100%">';
print "<tr><td>Date</td><td>";

View File

@ -66,14 +66,14 @@ $sql .= " ORDER BY $sortfield $sortorder " . $db->plimit( $limit + 1 ,$offset);
if ( $db->query($sql) )
{
$num = $db->num_rows();
print_barre_liste("Liste des fiches d'intervention", $page, $PHP_SELF,"&amp;socid=$socid",$sortfield,$sortorder,'',$num);
print_barre_liste("Liste des fiches d'intervention", $page, "index.php","&amp;socid=$socid",$sortfield,$sortorder,'',$num);
$i = 0;
print '<table class="noborder" width="100%" cellspacing="0" cellpadding="4">';
print "<tr class=\"liste_titre\">";
print_liste_field_titre_new ("Num",$PHP_SELF,"f.ref","","&amp;socid=$socid",'width="15%"',$sortfield);
print_liste_field_titre_new ("Société",$PHP_SELF,"s.nom","","&amp;socid=$socid",'',$sortfield);
print_liste_field_titre_new ("Date",$PHP_SELF,"f.datei","","&amp;socid=$socid",'',$sortfield);
print_liste_field_titre_new ("Num","index.php","f.ref","","&amp;socid=$socid",'width="15%"',$sortfield);
print_liste_field_titre_new ("Société","index.php","s.nom","","&amp;socid=$socid",'',$sortfield);
print_liste_field_titre_new ("Date","index.php","f.datei","","&amp;socid=$socid",'',$sortfield);
print '<td align="center">Durée</td>';
print '<td align="center">Statut</td><td>&nbsp;</td>';
print "</tr>\n";

View File

@ -64,7 +64,7 @@ if (empty ($MM))
if (empty($YY))
$YY=strftime("%Y",time());;
echo "<div class='noprint'>";
echo "\n<form action='$PHP_SELF'>";
echo "\n<form action='rapport.php'>";
echo "<input type='hidden' name='socid' value='$socid'>";
echo "Mois <input name='MM' size='2' value='$MM'>";
echo " Ann&eacute;e <input size='4' name='YY' value='$YY'>";
@ -91,7 +91,7 @@ if ( $db->query($sql) )
{
$num = $db->num_rows();
$title = "Rapport d'activité de " . strftime("%B %Y",strtotime ($start));
print_barre_liste($title, $page, $PHP_SELF,"&socid=$socid",$sortfield,$sortorder,'',$num);
print_barre_liste($title, $page, "rapport.php","&socid=$socid",$sortfield,$sortorder,'',$num);
$i = 0;
print '<TABLE border="0" width="100%" cellspacing="0" cellpadding="4">';

View File

@ -81,13 +81,13 @@ $result = $db->query($sql);
if ($result) {
$num = $db->num_rows();
print_barre_liste("Liste des contacts fournisseurs",$page, $PHP_SELF, "",$sortfield,$sortorder,"",$num);
print_barre_liste("Liste des contacts fournisseurs",$page, "contact.php", "",$sortfield,$sortorder,"",$num);
print "<DIV align=\"center\">";
print "| <A href=\"$PHP_SELF?page=$pageprev&stcomm=$stcomm&sortfield=$sortfield&sortorder=$sortorder&aclasser=$aclasser&coord=$coord\">*</A>\n| ";
print "| <A href=\"contact.php?page=$pageprev&stcomm=$stcomm&sortfield=$sortfield&sortorder=$sortorder&aclasser=$aclasser&coord=$coord\">*</A>\n| ";
for ($i = 65 ; $i < 91; $i++) {
print "<A href=\"$PHP_SELF?begin=" . chr($i) . "&stcomm=$stcomm\" class=\"T3\">";
print "<A href=\"contact.php?begin=" . chr($i) . "&stcomm=$stcomm\" class=\"T3\">";
if ($begin == chr($i) ) {
print "<b>-&gt;" . chr($i) . "&lt;-</b>" ;
@ -106,11 +106,11 @@ if ($result) {
print '<p><table class="noborder" width="100%" cellspacing="0" cellpadding="4">';
print "<TR class=\"liste_titre\">";
print "<TD>";
print_liste_field_titre("Nom",$PHP_SELF,"lower(p.name)", $begin);
print_liste_field_titre("Nom","contact.php","lower(p.name)", $begin);
print "</td><td>";
print_liste_field_titre("Prénom",$PHP_SELF,"lower(p.firstname)", $begin);
print_liste_field_titre("Prénom","contact.php","lower(p.firstname)", $begin);
print "</td><td>";
print_liste_field_titre("Société",$PHP_SELF,"lower(s.nom)", $begin);
print_liste_field_titre("Société","contact.php","lower(s.nom)", $begin);
print '</td><td>email</td><td>Téléphone</td>';
print "</tr>\n";
$var=True;
@ -137,7 +137,7 @@ if ($result) {
print "</TABLE>";
$db->free();
} else {
print_barre_liste("Liste des contacts $label",$page, $PHP_SELF);
print_barre_liste("Liste des contacts $label",$page, "contact.php");
print $db->error();
}

View File

@ -188,7 +188,7 @@ if ($_GET["action"] == 'create' or $_GET["action"] == 'copy')
}
print_titre("Saisir une facture fournisseur");
print '<form action="'.$PHP_SELF.'" method="post">';
print '<form action="fiche.php" method="post">';
print '<input type="hidden" name="action" value="add">';
print '<table class="border" cellspacing="0" cellpadding="3" width="100%">';
print '<tr><td>Société</td>';
@ -288,7 +288,7 @@ else
print_titre('Facture : '.$fac->ref);
print "<form action=\"$PHP_SELF?facid=$fac->id\" method=\"post\">";
print '<form action="fiche.php?facid='.$fac->id.'" method="post">';
print '<input type="hidden" name="action" value="update">';
print '<table class="border" cellspacing="0" cellpadding="2" width="100%">';
@ -332,7 +332,7 @@ else
* Lignes
*
*/
print "<p><form action=\"$PHP_SELF?facid=$fac->id&amp;action=add_ligne\" method=\"post\">";
print "<p><form action=\"$fiche.php?facid=$fac->id&amp;action=add_ligne\" method=\"post\">";
print '<table class="noborder" cellspacing="0" cellpadding="2" width="100%">';
print '<tr class="liste_titre"><td>Libellé</td><td align="center">P.U. HT</td><td align="center">Quantité</td><td align="center">Total HT</td>';
print '<td align="center">Taux TVA</td>';
@ -379,7 +379,7 @@ else
*
*/
$head[0][0] = DOL_URL_ROOT."$PHP_SELF?facid=".$fac->id;
$head[0][0] = DOL_URL_ROOT."fiche.php?facid=".$fac->id;
$head[0][1] = 'Facture : '.$fac->ref;
$h = 1;
$a = 0;
@ -562,11 +562,11 @@ else
if ($fac->statut == 0)
{
if ($_GET["action"] <> "edit")
print "<a class=\"tabAction\" href=\"$PHP_SELF?facid=$fac->id&amp;action=valid\">Valider</a>";
print "<a class=\"tabAction\" href=\"fiche.php?facid=$fac->id&amp;action=valid\">Valider</a>";
}
else
{
print "<a class=\"tabAction\" href=\"$PHP_SELF?facid=$fac->id&amp;action=copy&amp;socid=$fac->socidp\">Copier</a>";
print "<a class=\"tabAction\" href=\"fiche.php?facid=$fac->id&amp;action=copy&amp;socid=$fac->socidp\">Copier</a>";
}
}

View File

@ -206,7 +206,7 @@ if ($action == '') {
$i = 0;
$var=True;
print_barre_liste("Paiements", $page, $PHP_SELF,"&amp;socidp=$socidp",$sortfield,$sortorder,'',$num);
print_barre_liste("Paiements", $page, "paiement.php","&amp;socidp=$socidp",$sortfield,$sortorder,'',$num);
print '<table class="noborder" width="100%" cellspacing="0" cellpadding="4">';
print '<TR class="liste_titre">';

View File

@ -144,7 +144,7 @@ if ($result)
$num = $db->num_rows();
$i = 0;
print_barre_liste("Liste des fournisseurs", $page, $PHP_SELF, "", $sortfield, $sortorder, '', $num);
print_barre_liste("Liste des fournisseurs", $page, "index.php", "", $sortfield, $sortorder, '', $num);
if ($sortorder == "DESC")
{
$sortorder="ASC";
@ -155,7 +155,7 @@ if ($result)
}
print '<table class="noborder" width="100%" cellspacing="0" cellpadding="4">';
print '<tr class="liste_titre"><td valign="center">';
print_liste_field_titre("Société",$PHP_SELF,"s.nom");
print_liste_field_titre("Société","index.php","s.nom");
print "</td><td>Ville</td>";
print "</tr>\n";
$var=True;

View File

@ -66,7 +66,7 @@ if ($id)
{
print_titre ("Edition de la fiche article");
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 articles", $page, $PHP_SELF, "", $sortfield, $sortorder, $form);
print_barre_liste("Liste des articles", $page, "index.php", "", $sortfield, $sortorder, $form);
$sql = "SELECT p.pn_sid, p.pn_title FROM " . PN_DB_NAME . "." . PN_TABLE_STORIES_NAME . " as p";
@ -50,7 +50,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("Titre.",$PHP_SELF, "p.pn_title");
print_liste_field_titre("Titre.","index.php", "p.pn_title");
print '<td colspan="3">&nbsp;</td>';
print "</TR>\n";
$var=True;

View File

@ -66,7 +66,7 @@ if ($action == 'updateosc') {
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 album</div><br>';
@ -126,7 +126,7 @@ else
{
print '<hr><div class="titre">Edition de la fiche Album : '.$album->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">';
@ -149,7 +149,7 @@ else
$htmls = new Form($db);
$ga = new Groupart($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\">";
foreach ($gas as $key => $value)

View File

@ -39,7 +39,7 @@ $limit = $conf->liste_limit;
$offset = $limit * $page ;
print_barre_liste("Liste des albums", $page, $PHP_SELF);
print_barre_liste("Liste des albums", $page, "index.php");
$sql = "SELECT a.rowid, a.title, a.osc_id FROM ".MAIN_DB_PREFIX."album as a";
@ -51,7 +51,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("Titre",$PHP_SELF, "a.title");
print_liste_field_titre("Titre","index.php", "a.title");
print "</td>";
print "<td></td>";
print "</TR>\n";

View File

@ -63,7 +63,7 @@ if ($action == 'updateosc') {
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 album</div><br>';
@ -116,7 +116,7 @@ else
{
print '<hr><div class="titre">Edition de la fiche Album : '.$album->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">';
@ -135,7 +135,7 @@ else
$htmls = new Form($db);
$ga = new Groupart($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\">";
foreach ($gas as $key => $value)

View File

@ -29,7 +29,7 @@ if ($id)
{
$title = title_url($id, $db);
print_barre_liste($title, $page, $PHP_SELF);
print_barre_liste($title, $page, "index.php");
$sql = "SELECT products_id FROM ".DB_NAME_OSC.".products_to_categories WHERE categories_id = $id";
@ -69,7 +69,7 @@ if ($id)
$i = 0;
print "<p><TABLE border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"4\">";
print "<TR class=\"liste_titre\"><td>Réf.</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";
@ -119,7 +119,7 @@ if ($id)
else
{
print_barre_liste("Liste des catégories", $page, $PHP_SELF);
print_barre_liste("Liste des catégories", $page, "index.php");
$sql = "SELECT c.categories_id, cd.categories_name ";
$sql .= " FROM ".DB_NAME_OSC.".categories as c,".DB_NAME_OSC.".categories_description as cd";
@ -133,7 +133,7 @@ else
$i = 0;
print "<p><TABLE border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"4\">";
print "<TR class=\"liste_titre\"><td>";
print_liste_field_titre("Titre",$PHP_SELF, "a.title");
print_liste_field_titre("Titre","index.php", "a.title");
print "</td>";
print "<td></td>";
print "</TR>\n";

View File

@ -60,7 +60,7 @@ if ($action == 'updateosc') {
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">Nouveau concert</div><br>';
@ -127,7 +127,7 @@ else
{
print '<hr><div class="titre">Edition de la fiche Concert : '.$concert->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

@ -58,7 +58,7 @@ if ($action == 'updateosc') {
if ($action == 'create')
{
print "<form action=\"$PHP_SELF?id=$id\" method=\"post\">\n";
print "<form action=\"fichelieu.php?id=$id\" method=\"post\">\n";
print "<input type=\"hidden\" name=\"action\" value=\"add\">";
print '<div class="titre">Nouveau lieu de concert</div><br>';
@ -101,7 +101,7 @@ else
{
print '<hr><div class="titre">Edition de la fiche lieu de concert : '.$lieuconcert->nom.'</div><br>';
print "<form action=\"$PHP_SELF?id=$id\" method=\"post\">\n";
print "<form action=\"fichelieu.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 concerts", $page, $PHP_SELF);
print_barre_liste("Liste des concerts", $page, "index.php");
//$sql = "SELECT c.rowid, c.date_concert as dc, ga.nom, lc.nom as lieu, lc.ville";
$sql = "SELECT c.rowid, c.date_concert as dc, c.fk_groupart, c.fk_lieu_concert, ga.nom, lc.nom as lieu, lc.ville";
@ -50,13 +50,13 @@ 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("Titre",$PHP_SELF, "a.title");
print_liste_field_titre("Titre","index.php", "a.title");
print "</td><td>";
print_liste_field_titre("Artiste/Groupe",$PHP_SELF, "ga.nom");
print_liste_field_titre("Artiste/Groupe","index.php", "ga.nom");
print "</td><td>";
print_liste_field_titre("Salle",$PHP_SELF, "lc.nom");
print_liste_field_titre("Salle","index.php", "lc.nom");
print "</td><td>";
print_liste_field_titre("Ville",$PHP_SELF, "lc.ville");
print_liste_field_titre("Ville","index.php", "lc.ville");
print "</td>";
print "</TR>\n";

View File

@ -36,7 +36,7 @@ if ($page == -1) { $page = 0 ; }
$limit = $conf->liste_limit;
$offset = $limit * $page ;
print_barre_liste("Liste des concerts", $page, $PHP_SELF);
print_barre_liste("Liste des concerts", $page, "salles.php");
$sql = "SELECT lc.rowid, lc.nom, lc.ville FROM ".MAIN_DB_PREFIX."lieu_concert as lc";
@ -48,9 +48,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("Nom",$PHP_SELF, "lc.nom");
print_liste_field_titre("Nom","salles.php", "lc.nom");
print "</td><td>";
print_liste_field_titre("Ville",$PHP_SELF, "lc.ville");
print_liste_field_titre("Ville","salles.php", "lc.ville");
print "</td>";
print "</TR>\n";

View File

@ -53,7 +53,7 @@ if ($action == 'updateosc') {
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 Artiste/Groupe</div><br>';
@ -113,7 +113,7 @@ else
}
print '<hr><div class="titre">Edition de la fiche produit : '.$groupart->ref.'</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

@ -38,7 +38,7 @@ $limit = $conf->liste_limit;
$offset = $limit * $page ;
print_barre_liste("Liste des Artistes/Groupes", $page, $PHP_SELF);
print_barre_liste("Liste des Artistes/Groupes", $page, "index.php");
$sql = "SELECT g.rowid, g.nom, groupart FROM ".MAIN_DB_PREFIX."groupart as g";
@ -50,7 +50,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("Réf",$PHP_SELF, "p.ref");
print_liste_field_titre("Réf","index.php", "p.ref");
print "</td>";
print "<td></td>";
print "</TR>\n";

View File

@ -37,7 +37,7 @@ $limit = $conf->liste_limit;
$offset = $limit * $page ;
print_barre_liste("Liste des produits oscommerce", $page, $PHP_SELF);
print_barre_liste("Liste des produits oscommerce", $page, "osc-liste.php");
$sql = "SELECT p.products_id, p.products_model, p.products_quantity, p.products_status, d.products_name, m.manufacturers_name, m.manufacturers_id";
$sql .= " FROM ".DB_NAME_OSC.".products as p, ".DB_NAME_OSC.".products_description as d, ".DB_NAME_OSC.".manufacturers as m";

View File

@ -37,7 +37,7 @@ $limit = $conf->liste_limit;
$offset = $limit * $page ;
print_barre_liste("Liste des produits oscommerce", $page, $PHP_SELF);
print_barre_liste("Liste des produits oscommerce", $page, "osc-reviews.php");
$sql = "SELECT r.reviews_rating FROM ".DB_NAME_OSC.".reviews as r";

View File

@ -48,7 +48,7 @@ if ($page == -1) { $page = 0 ; }
$limit = $conf->liste_limit;
$offset = $limit * $page ;
print_barre_liste("Liste des promotions", $page, $PHP_SELF, "",$sortfield, $sortorder);
print_barre_liste("Liste des promotions", $page, "index.php", "",$sortfield, $sortorder);
$urladd = "&sortorder=$sortorder&sortfield=$sortfield";
@ -65,9 +65,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, "p.products_model");
print_liste_field_titre("Réf","index.php", "p.products_model");
print "</td><td>";
print_liste_field_titre("Titre",$PHP_SELF, "pd.products_name");
print_liste_field_titre("Titre","index.php", "pd.products_name");
print "</td>";
print "</td><td></td><td></td><td>Fin</td>";
print '<td align="right">Prix initial</td>';

View File

@ -74,7 +74,7 @@ if ($_GET["id"])
$sortfield="f.datef";
}
print_barre_liste("Factures",$page,$PHP_SELF,"&amp;id=$product->id",$sortfield,$sortorder);
print_barre_liste("Factures",$page,"facture.php","&amp;id=$product->id",$sortfield,$sortorder);
$sql = "SELECT distinct(f.rowid), s.nom,s.idp,f.facnumber,f.amount,".$db->pdate("f.datef")." as df,f.paye,f.rowid as facid";
$sql .= " FROM ".MAIN_DB_PREFIX."societe as s,".MAIN_DB_PREFIX."facture as f, ".MAIN_DB_PREFIX."facturedet as d WHERE f.fk_soc = s.idp";
@ -95,9 +95,9 @@ if ($_GET["id"])
print '<TR class="liste_titre">';
print '<TD>Num&eacute;ro</TD>';
print '<td>';
print_liste_field_titre("Société",$PHP_SELF,"s.nom","","&amp;socidp=$socidp");
print_liste_field_titre("Société","facture.php","s.nom","","&amp;socidp=$socidp");
print '</td><TD align="right">';
print_liste_field_titre("Date",$PHP_SELF,"f.datef","","&amp;socidp=$socidp");
print_liste_field_titre("Date","facture.php","f.datef","","&amp;socidp=$socidp");
print '</td><TD align="right">Montant</TD>';
print '<td>&nbsp;</td>';
print "</TR>\n";

View File

@ -65,15 +65,15 @@ if ($result)
$texte = "Liste des mouvements";
llxHeader("","",$texte);
print_barre_liste($texte, $page, $PHP_SELF, "&sref=$sref&snom=$snom", $sortfield, $sortorder,'',$num);
print_barre_liste($texte, $page, "mouvement.php", "&sref=$sref&snom=$snom", $sortfield, $sortorder,'',$num);
print '<table border="0" 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","mouvement.php", "p.ref","");
print "</td><TD align=\"center\">Unités</TD><td>";
print_liste_field_titre("Date",$PHP_SELF, "m.datem","");
print_liste_field_titre("Date","mouvement.php", "m.datem","");
print "</td><td>";
print_liste_field_titre("Entrepôt",$PHP_SELF, "s.label","");
print_liste_field_titre("Entrepôt","mouvement.php", "s.label","");
print "</td></tr>\n";
$var=True;

View File

@ -166,7 +166,7 @@ if ($_GET["id"])
if ($_GET["action"] == "correction")
{
print_titre ("Correction du stock");
print "<form action=\"$PHP_SELF?id=$product->id\" method=\"post\">\n";
print "<form action=\"product.php?id=$product->id\" method=\"post\">\n";
print '<input type="hidden" name="action" value="correct_stock">';
print '<table class="border" width="100%" cellspacing="0" cellpadding="4"><tr>';
print '<td width="20%">Entrepôt</td><td width="20%"><select name="id_entrepot">';
@ -205,7 +205,7 @@ if ($_GET["id"])
if ($_GET["action"] == "definir")
{
print_titre ("Créer un stock");
print "<form action=\"$PHP_SELF?id=$product->id\" method=\"post\">\n";
print "<form action=\"product.php?id=$product->id\" method=\"post\">\n";
print '<input type="hidden" name="action" value="create_stock">';
print '<table class="border" width="100%" cellspacing="0" cellpadding="4"><tr>';
print '<td width="20%">Entrepôt</td><td width="40%"><select name="id_entrepot">';

View File

@ -65,9 +65,9 @@ $pagenext = $page + 1;
print '<br>';
print '<table class="noborder" width="100%" cellspacing="0" cellpadding="4">';
print '<tr class="liste_titre"><td>';
print_liste_field_titre("Titre",$PHP_SELF,"p.title");
print_liste_field_titre("Titre","index.php","p.title");
print "</td><td>Réf</td><td>";
print_liste_field_titre("Société",$PHP_SELF,"s.nom");
print_liste_field_titre("Société","index.php","s.nom");
print "</td></tr>\n";
$sql = "SELECT s.nom, s.idp, p.rowid as projectid, p.ref, p.title, s.client,".$db->pdate("p.dateo")." as do";

View File

@ -132,7 +132,7 @@ if ($result)
$params = "&amp;socname=$socname";
print_barre_liste($title, $page, $PHP_SELF,$params,$sortfield,$sortorder,'',$num);
print_barre_liste($title, $page, "societe.php",$params,$sortfield,$sortorder,'',$num);
if ($title_filtre)
{
@ -144,9 +144,9 @@ if ($result)
print '<table class="noborder" width="100%" cellspacing="0" cellpadding="3">';
print '<tr class="liste_titre">';
print '<td width="25%">';
print_liste_field_titre($langs->trans("Company"),$PHP_SELF,"s.nom", $params);
print_liste_field_titre($langs->trans("Company"),"societe.php","s.nom", $params);
print '</td><td width="25%">';
print_liste_field_titre($langs->trans("Town"),$PHP_SELF,"s.ville",$params);
print_liste_field_titre($langs->trans("Town"),"societe.php","s.ville",$params);
print '</td><td colspan="2" align="center">'.$langs->trans("Cards").'</td>';
print "</tr>\n";
$var=True;

View File

@ -150,8 +150,8 @@ if ( $soc->fetch($soc->id) )
print '<table width="100%" class="noborder" cellspacing="0" cellpadding="3">';
print '<tr class="liste_titre">';
print_liste_field_titre_new ("Contact",$PHP_SELF,"c.name","","&socid=$socid",'',$sortfield);
print_liste_field_titre_new ("Action",$PHP_SELF,"a.titre","","&socid=$socid",'',$sortfield);
print_liste_field_titre_new ("Contact","fiche.php","c.name","","&socid=$socid",'',$sortfield);
print_liste_field_titre_new ("Action","fiche.php","a.titre","","&socid=$socid",'',$sortfield);
print '<td>&nbsp;</td>';
print '</tr>';

View File

@ -53,7 +53,7 @@ $pagenext = $page + 1;
*
*
*/
print_barre_liste("Liste des societes", $page, $PHP_SELF);
print_barre_liste("Liste des societes", $page, "index.php");
$sql = "SELECT s.nom, s.idp, c.name, c.firstname, a.titre,n.rowid FROM ".MAIN_DB_PREFIX."socpeople as c, ".MAIN_DB_PREFIX."action_def as a, ".MAIN_DB_PREFIX."notify_def as n, ".MAIN_DB_PREFIX."societe as s";
$sql .= " WHERE n.fk_contact = c.idp AND a.rowid = n.fk_action";
@ -75,11 +75,11 @@ if ($result)
print "<TABLE border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"4\">";
print '<TR class="liste_titre">';
print "<TD valign=\"center\">";
print_liste_field_titre("Société",$PHP_SELF,"s.nom");
print_liste_field_titre("Société","index.php","s.nom");
print "</td><td>";
print_liste_field_titre("Contact",$PHP_SELF,"c.name");
print_liste_field_titre("Contact","index.php","c.name");
print "</td><td>";
print_liste_field_titre("Action",$PHP_SELF,"a.titre");
print_liste_field_titre("Action","index.php","a.titre");
print "</td></tr>\n";
$var=True;
while ($i < $num)

View File

@ -40,16 +40,16 @@ if ($result)
print "<p><TABLE border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"2\">";
print '<TR class="liste_titre">';
print "<TD>";
print_liste_field_titre("Nom",$PHP_SELF,"name");
print_liste_field_titre("Nom","index.php","name");
print "</TD>";
print "<TD>";
print_liste_field_titre("Prénom",$PHP_SELF,"firstname");
print_liste_field_titre("Prénom","index.php","firstname");
print "</TD>";
print "<TD>";
print_liste_field_titre("Login",$PHP_SELF,"login");
print_liste_field_titre("Login","index.php","login");
print "</TD>";
print "<TD>";
print_liste_field_titre("Code",$PHP_SELF,"code");
print_liste_field_titre("Code","index.php","code");
print "</TD>";
print "</TR>\n";
$var=True;