Suppression des PHP_SELF
This commit is contained in:
parent
8db7232c59
commit
dd850178a1
@ -82,34 +82,34 @@ if ($result)
|
||||
$titre.=" (".$objp->type.")";
|
||||
}
|
||||
|
||||
print_barre_liste($titre, $page, $PHP_SELF, "&statut=$statut&sortorder=$sortorder&sortfield=$sortfield",$sortfield,$sortorder,'',$num);
|
||||
print_barre_liste($titre, $page, "liste.php", "&statut=$statut&sortorder=$sortorder&sortfield=$sortfield",$sortfield,$sortorder,'',$num);
|
||||
|
||||
print "<table class=\"noborder\" width=\"100%\" cellspacing=\"0\" cellpadding=\"3\">";
|
||||
|
||||
print '<tr class="liste_titre">';
|
||||
|
||||
print '<td>';
|
||||
print_liste_field_titre("Prenom Nom / Société",$PHP_SELF,"d.nom","&page=$page&statut=$statut");
|
||||
print_liste_field_titre("Prenom Nom / Société","liste.php","d.nom","&page=$page&statut=$statut");
|
||||
print "</td>\n";
|
||||
|
||||
print "<td>";
|
||||
print_liste_field_titre("Date cotisation",$PHP_SELF,"t.cotisation","&page=$page&statut=$statut");
|
||||
print_liste_field_titre("Date cotisation","liste.php","t.cotisation","&page=$page&statut=$statut");
|
||||
print "</td>\n";
|
||||
|
||||
print "<td>";
|
||||
print_liste_field_titre("Email",$PHP_SELF,"d.email","&page=$page&statut=$statut");
|
||||
print_liste_field_titre("Email","liste.php","d.email","&page=$page&statut=$statut");
|
||||
print "</td>\n";
|
||||
|
||||
print "<td>";
|
||||
print_liste_field_titre("Type",$PHP_SELF,"t.libelle","&page=$page&statut=$statut");
|
||||
print_liste_field_titre("Type","liste.php","t.libelle","&page=$page&statut=$statut");
|
||||
print "</td>\n";
|
||||
|
||||
print "<td>";
|
||||
print_liste_field_titre("Personne",$PHP_SELF,"d.morphy","&page=$page&statut=$statut");
|
||||
print_liste_field_titre("Personne","liste.php","d.morphy","&page=$page&statut=$statut");
|
||||
print "</td>\n";
|
||||
|
||||
print "<td>";
|
||||
print_liste_field_titre("Statut",$PHP_SELF,"d.statut","&page=$page&statut=$statut");
|
||||
print_liste_field_titre("Statut","liste.php","d.statut","&page=$page&statut=$statut");
|
||||
print "</td>\n";
|
||||
|
||||
print "<td>Action</td>\n";
|
||||
@ -176,9 +176,9 @@ if ($result)
|
||||
print "</table><br>\n";
|
||||
print "<table class=\"noborder\" width=\"100%\" cellspacing=\"0\" cellpadding=\"3\">";
|
||||
|
||||
print_barre_liste("", $page, $PHP_SELF, "&statut=$statut&sortorder=$sortorder&sortfield=$sortfield",$sortfield,$sortorder,'',$num);
|
||||
print_barre_liste("", $page, "liste.php", "&statut=$statut&sortorder=$sortorder&sortfield=$sortfield",$sortfield,$sortorder,'',$num);
|
||||
|
||||
// print_fleche_navigation($page,$PHP_SELF,"&statut=$statut&sortorder=$sortorder&sortfield=$sortfield",1);
|
||||
// print_fleche_navigation($page,"liste.php","&statut=$statut&sortorder=$sortorder&sortfield=$sortfield",1);
|
||||
print "</table><br>\n";
|
||||
|
||||
}
|
||||
|
||||
@ -97,7 +97,7 @@ print "<br>";
|
||||
if (defined("ADHERENT_USE_MAILMAN") && ADHERENT_USE_MAILMAN == 1)
|
||||
{
|
||||
$lien='<img src="'.DOL_URL_ROOT.'/theme/'.$conf->theme.'/img/tick.png" border="0"></a>';
|
||||
$lien.='<a href="'.$PHP_SELF.'?action=unset&value=0&name=ADHERENT_USE_MAILMAN">désactiver</a>';
|
||||
$lien.='<a href="adherent.php?action=unset&value=0&name=ADHERENT_USE_MAILMAN">désactiver</a>';
|
||||
// Edition des varibales globales rattache au theme Mailman
|
||||
$constantes=array('ADHERENT_MAILMAN_LISTS',
|
||||
'ADHERENT_MAILMAN_LISTS_COTISANT',
|
||||
@ -111,7 +111,7 @@ if (defined("ADHERENT_USE_MAILMAN") && ADHERENT_USE_MAILMAN == 1)
|
||||
}
|
||||
else
|
||||
{
|
||||
$lien='<a href="'.$PHP_SELF.'?action=set&value=1&name=ADHERENT_USE_MAILMAN">activer</a>';
|
||||
$lien='<a href="adherent.php?action=set&value=1&name=ADHERENT_USE_MAILMAN">activer</a>';
|
||||
print_fiche_titre("Mailman - Système de mailing listes",$lien);
|
||||
}
|
||||
|
||||
@ -123,7 +123,7 @@ print "<hr>\n";
|
||||
if (defined("ADHERENT_BANK_USE") && ADHERENT_BANK_USE == 1)
|
||||
{
|
||||
$lien='<img src="'.DOL_URL_ROOT.'/theme/'.$conf->theme.'/img/tick.png" border="0"></a>';
|
||||
$lien.='<a href="'.$PHP_SELF.'?action=unset&value=0&name=ADHERENT_BANK_USE">désactiver</a>';
|
||||
$lien.='<a href="adherent.php?action=unset&value=0&name=ADHERENT_BANK_USE">désactiver</a>';
|
||||
// Edition des varibales globales rattache au theme Mailman
|
||||
$constantes=array('ADHERENT_BANK_USE_AUTO',
|
||||
'ADHERENT_BANK_ACCOUNT',
|
||||
@ -134,7 +134,7 @@ if (defined("ADHERENT_BANK_USE") && ADHERENT_BANK_USE == 1)
|
||||
}
|
||||
else
|
||||
{
|
||||
$lien='<a href="'.$PHP_SELF.'?action=set&value=1&name=ADHERENT_BANK_USE">activer</a>';
|
||||
$lien='<a href="adherent.php?action=set&value=1&name=ADHERENT_BANK_USE">activer</a>';
|
||||
print_fiche_titre("Gestion banquaire des adherents",$lien);
|
||||
}
|
||||
|
||||
@ -147,7 +147,7 @@ $var=!$var;
|
||||
if (defined("ADHERENT_USE_SPIP") && ADHERENT_USE_SPIP == 1)
|
||||
{
|
||||
$lien='<img src="'.DOL_URL_ROOT.'/theme/'.$conf->theme.'/img/tick.png" border="0"></a>';
|
||||
$lien.='<a href="'.$PHP_SELF.'?action=unset&value=0&name=ADHERENT_USE_SPIP">désactiver</a>';
|
||||
$lien.='<a href="adherent.php?action=unset&value=0&name=ADHERENT_USE_SPIP">désactiver</a>';
|
||||
// Edition des varibales globales rattache au theme Mailman
|
||||
$constantes=array('ADHERENT_USE_SPIP_AUTO',
|
||||
'ADHERENT_SPIP_SERVEUR',
|
||||
@ -160,7 +160,7 @@ if (defined("ADHERENT_USE_SPIP") && ADHERENT_USE_SPIP == 1)
|
||||
}
|
||||
else
|
||||
{
|
||||
$lien='<a href="'.$PHP_SELF.'?action=set&value=1&name=ADHERENT_USE_SPIP">activer</a>';
|
||||
$lien='<a href="adherent.php?action=set&value=1&name=ADHERENT_USE_SPIP">activer</a>';
|
||||
print_fiche_titre("SPIP - Système de publication en ligne",$lien);
|
||||
}
|
||||
|
||||
@ -173,7 +173,7 @@ $var=!$var;
|
||||
if (defined("ADHERENT_USE_GLASNOST") && ADHERENT_USE_GLASNOST == 1)
|
||||
{
|
||||
$lien='<img src="'.DOL_URL_ROOT.'/theme/'.$conf->theme.'/img/tick.png" border="0"></a>';
|
||||
$lien.='<a href="'.$PHP_SELF.'?action=unset&value=0&name=ADHERENT_USE_GLASNOST">désactiver</a>';
|
||||
$lien.='<a href="adherent.php?action=unset&value=0&name=ADHERENT_USE_GLASNOST">désactiver</a>';
|
||||
// Edition des varibales globales rattache au theme Mailman
|
||||
$constantes=array('ADHERENT_USE_GLASNOST_AUTO',
|
||||
'ADHERENT_GLASNOST_SERVEUR',
|
||||
@ -185,7 +185,7 @@ if (defined("ADHERENT_USE_GLASNOST") && ADHERENT_USE_GLASNOST == 1)
|
||||
}
|
||||
else
|
||||
{
|
||||
$lien='<a href="'.$PHP_SELF.'?action=set&value=1&name=ADHERENT_USE_GLASNOST">activer</a>';
|
||||
$lien='<a href="adherent.php?action=set&value=1&name=ADHERENT_USE_GLASNOST">activer</a>';
|
||||
print_fiche_titre("Glasnost - Système de vote en ligne",$lien);
|
||||
}
|
||||
|
||||
@ -240,7 +240,7 @@ function form_constantes($tableau){
|
||||
if ($result && ($db->num_rows() == 1)) {
|
||||
$obj = $db->fetch_object(0);
|
||||
$var=!$var;
|
||||
print '<form action="'.$PHP_SELF.'" method="POST">';
|
||||
print '<form action="adherent.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.'">';
|
||||
@ -274,7 +274,7 @@ function form_constantes($tableau){
|
||||
// print '<input type="text" size="15" name="constnote" value="'.stripslashes(nl2br($obj->note)).'">';
|
||||
// print '</td><td>';
|
||||
print '<input type="Submit" value="Update" name="Button"> ';
|
||||
print '<a href="'.$PHP_SELF.'?name='.$const.'&action=unset">'.img_delete().'</a>';
|
||||
print '<a href="adherent.php?name='.$const.'&action=unset">'.img_delete().'</a>';
|
||||
print "</td></tr>\n";
|
||||
|
||||
print '</form>';
|
||||
|
||||
@ -42,7 +42,7 @@ $limit = $conf->liste_limit;
|
||||
$offset = $limit * $page ;
|
||||
|
||||
|
||||
print_barre_liste("Liste des langues oscommerce", $page, $PHP_SELF);
|
||||
print_barre_liste("Liste des langues oscommerce", $page, "osc-languages.php");
|
||||
|
||||
$sql = "SELECT l.languages_id, l.name, l.code FROM ".DB_NAME_OSC.".languages as l";
|
||||
|
||||
|
||||
@ -24,7 +24,7 @@ require("./pre.inc.php");
|
||||
|
||||
llxHeader();
|
||||
|
||||
print_barre_liste("Liste des tables", $page, $PHP_SELF);
|
||||
print_barre_liste("Liste des tables", $page, "sqltables.php");
|
||||
|
||||
$sql = "SELECT name, loaded FROM ".MAIN_DB_PREFIX."sqltables";
|
||||
|
||||
|
||||
@ -78,8 +78,8 @@ if ($actionsave)
|
||||
* Affichage du formulaire de saisie
|
||||
*/
|
||||
|
||||
print "\n<form name=\"phpwebcalendarconfig\" action=\"" . $PHP_SELF . "\" method=\"post\">
|
||||
<table class=\"noborder\" cellpadding=\"3\" cellspacing=\"1\">
|
||||
print '<form name="phpwebcalendarconfig" action="webcalendar.php" method="post">';
|
||||
print "<table class=\"noborder\" cellpadding=\"3\" cellspacing=\"1\">
|
||||
<tr class=\"liste_titre\">
|
||||
<td>Paramètre</td>
|
||||
<td>Valeur</td>
|
||||
|
||||
@ -140,7 +140,7 @@ if ($result)
|
||||
|
||||
$var=!$var;
|
||||
print "<tr $bc[$var]>";
|
||||
print '<form method="post" action="'.$PHP_SELF.'?account='.$account.'">';
|
||||
print '<form method="post" action="rappro.php?account='.$account.'">';
|
||||
print "<input type=\"hidden\" name=\"action\" value=\"rappro\">";
|
||||
print "<input type=\"hidden\" name=\"rowid\" value=\"$objp->rowid\">";
|
||||
|
||||
@ -178,7 +178,7 @@ if ($result)
|
||||
{
|
||||
print "<td align=\"center\">";
|
||||
if ($objp->do <= mktime() ) {
|
||||
print "<a href=\"$PHP_SELF?action=del&rowid=$objp->rowid&account=$acct->id\">";
|
||||
print "<a href=\"rappro.php?action=del&rowid=$objp->rowid&account=$acct->id\">";
|
||||
print img_delete();
|
||||
print "</a>";
|
||||
}
|
||||
|
||||
@ -76,7 +76,7 @@ if ($mesg) {
|
||||
|
||||
print "En saisissant un virement d'un de vos comptes bancaire vers un autre, Dolibarr crée deux écritures comptables (une de débit dans un compte et l'autre de crédit, du même montant, dans l'autre compte. Le même libellé de transaction, et la même date, sont utilisés pour les 2 écritures)<br><br>";
|
||||
|
||||
print "<form method=\"post\" action=\"$PHP_SELF\">";
|
||||
print "<form method=\"post\" action=\"virement.php\">";
|
||||
|
||||
print '<input type="hidden" name="action" value="add">';
|
||||
|
||||
|
||||
@ -70,7 +70,7 @@ if ($action == 'update') {
|
||||
if ($action == 'create') {
|
||||
|
||||
print_titre("Nouveau service");
|
||||
print '<form action="'.$PHP_SELF.'" method="post">';
|
||||
print '<form action="fiche.php" method="post">';
|
||||
print '<input type="hidden" name="action" value="add">';
|
||||
print '<table border="1" cellpadding="3" cellspacing="0">';
|
||||
|
||||
@ -154,7 +154,7 @@ if ($action == 'create') {
|
||||
*/
|
||||
if ($action == 'datedeb') {
|
||||
print '<p><b>Affectation de la date de début de commercialisation</b></p>';
|
||||
print '<form action="'.$PHP_SELF.'?id='.$id.'" method="post">';
|
||||
print '<form action="fiche.php?id='.$id.'" method="post">';
|
||||
print '<input type="hidden" name="action" value="set_datedeb">';
|
||||
print '<table width="100%" border="1" cellpadding="3" cellspacing="0">';
|
||||
print '<tr><td>Date de debut de commercialisation</td>';
|
||||
@ -169,7 +169,7 @@ if ($action == 'create') {
|
||||
*/
|
||||
if ($action == 'datefin') {
|
||||
print '<p><b>Affectation de la date de fin de commercialisation</b></p>';
|
||||
print '<form action="'.$PHP_SELF.'?id='.$id.'" method="post">';
|
||||
print '<form action="fiche.php?id='.$id.'" method="post">';
|
||||
print '<input type="hidden" name="action" value="set_datefin">';
|
||||
print '<table width="100%" border="1" cellpadding="3" cellspacing="0">';
|
||||
print '<tr><td>Date de fin de commercialisation</td>';
|
||||
@ -185,7 +185,7 @@ if ($action == 'create') {
|
||||
|
||||
if ($action == 'edit') {
|
||||
print '<hr><div class="titre">Editer la fiche service</div><br>';
|
||||
print '<form action="'.$PHP_SELF.'?id='.$id.'" method="post">';
|
||||
print '<form action="fiche.php?id='.$id.'" method="post">';
|
||||
print '<input type="hidden" name="action" value="update">';
|
||||
print '<table border="1" cellpadding="3" cellspacing="0">';
|
||||
|
||||
|
||||
@ -46,7 +46,7 @@ if ($action == 'create') {
|
||||
*
|
||||
*
|
||||
*/
|
||||
print_barre_liste("Comptes comptable",$page,$PHP_SELF);
|
||||
print_barre_liste("Comptes comptable",$page,"config.php");
|
||||
|
||||
$sql = "SELECT number, label";
|
||||
$sql .= " FROM ".MAIN_DB_PREFIX."compta_account";
|
||||
@ -60,7 +60,7 @@ if ($action == 'create') {
|
||||
print "<TABLE border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"3\">";
|
||||
print '<TR class="liste_titre">';
|
||||
print "<TD>Numéro</TD><td>";
|
||||
print_liste_field_titre("Libellé",$PHP_SELF,"label");
|
||||
print_liste_field_titre("Libellé","config.php","label");
|
||||
print "</td></TR>\n";
|
||||
|
||||
if ($num > 0) {
|
||||
|
||||
@ -71,13 +71,13 @@ $sql .= " ORDER BY $sortfield $sortorder " . $db->plimit( $limit + 1 ,$offset);
|
||||
if ( $db->query($sql) )
|
||||
{
|
||||
$num = $db->num_rows();
|
||||
print_barre_liste("Liste des déplacements", $page, $PHP_SELF,"&socidp=$socidp",$sortfield,$sortorder,'',$num);
|
||||
print_barre_liste("Liste des déplacements", $page, "index.php","&socidp=$socidp",$sortfield,$sortorder,'',$num);
|
||||
|
||||
$i = 0;
|
||||
print '<table class="noborder" width="100%" cellspacing="0" cellpadding="3">';
|
||||
print "<tr class=\"liste_titre\">";
|
||||
print_liste_field_titre_new ("Date",$PHP_SELF,"d.dated","","&socidp=$socidp",'',$sortfield);
|
||||
print_liste_field_titre_new ("Société",$PHP_SELF,"s.nom","","&socidp=$socidp",'',$sortfield);
|
||||
print_liste_field_titre_new ("Date","index.php","d.dated","","&socidp=$socidp",'',$sortfield);
|
||||
print_liste_field_titre_new ("Société","index.php","s.nom","","&socidp=$socidp",'',$sortfield);
|
||||
print '<td align="center">Utilisateur</TD>';
|
||||
print "</tr>\n";
|
||||
|
||||
|
||||
@ -86,7 +86,7 @@ if ($rowid)
|
||||
}
|
||||
}
|
||||
print_titre("Saisir un don");
|
||||
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\">";
|
||||
|
||||
@ -50,26 +50,26 @@ if ($result)
|
||||
|
||||
if (strlen($statut))
|
||||
{
|
||||
print_barre_liste($libelle[$statut], $page, $PHP_SELF, "&statut=$statut&sortorder=$sortorder&sortfield=$sortfield");
|
||||
print_barre_liste($libelle[$statut], $page, "liste.php", "&statut=$statut&sortorder=$sortorder&sortfield=$sortfield");
|
||||
}
|
||||
else
|
||||
{
|
||||
print_barre_liste("Dons", $page, $PHP_SELF, "&statut=$statut&sortorder=$sortorder&sortfield=$sortfield");
|
||||
print_barre_liste("Dons", $page, "liste.php", "&statut=$statut&sortorder=$sortorder&sortfield=$sortfield");
|
||||
}
|
||||
print "<TABLE border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"4\">";
|
||||
|
||||
print '<TR class="liste_titre">';
|
||||
print "<td>";
|
||||
print_liste_field_titre("Prénom",$PHP_SELF,"d.prenom","&page=$page&statut=$statut");
|
||||
print_liste_field_titre("Prénom","liste.php","d.prenom","&page=$page&statut=$statut");
|
||||
print "</td><td>";
|
||||
print_liste_field_titre("Nom",$PHP_SELF,"d.nom","&page=$page&statut=$statut");
|
||||
print_liste_field_titre("Nom","liste.php","d.nom","&page=$page&statut=$statut");
|
||||
print "</td><td>";
|
||||
print_liste_field_titre("Société",$PHP_SELF,"d.societe","&page=$page&statut=$statut");
|
||||
print_liste_field_titre("Société","liste.php","d.societe","&page=$page&statut=$statut");
|
||||
print "</td><td>";
|
||||
print_liste_field_titre("Date",$PHP_SELF,"d.datedon","&page=$page&statut=$statut");
|
||||
print_liste_field_titre("Date","liste.php","d.datedon","&page=$page&statut=$statut");
|
||||
print "</td><td>Projet</td>";
|
||||
print "<td align=\"right\">";
|
||||
print_liste_field_titre("Montant",$PHP_SELF,"d.amount","&page=$page&statut=$statut");
|
||||
print_liste_field_titre("Montant","liste.php","d.amount","&page=$page&statut=$statut");
|
||||
print '</td><td> </td>';
|
||||
print "</TR>\n";
|
||||
|
||||
|
||||
@ -90,7 +90,7 @@ if ($_GET["action"] == 'create')
|
||||
if ($facture->fetch($_GET["facid"]) > 0)
|
||||
{
|
||||
|
||||
print '<form action="'.$PHP_SELF.'" method="post">';
|
||||
print '<form action="fiche-rec.php" method="post">';
|
||||
print '<input type="hidden" name="action" value="add">';
|
||||
print '<input type="hidden" name="facid" value="'.$facture->id.'">';
|
||||
|
||||
@ -342,7 +342,7 @@ else
|
||||
|
||||
if ($fac->statut == 0 && $user->rights->facture->supprimer)
|
||||
{
|
||||
print "<td align=\"center\" width=\"25%\">[<a href=\"$PHP_SELF?facid=$facid&action=delete\">Supprimer</a>]</td>";
|
||||
print "<td align=\"center\" width=\"25%\">[<a href=\"fiche-rec.php?facid=$facid&action=delete\">Supprimer</a>]</td>";
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -408,14 +408,14 @@ else
|
||||
if ($result)
|
||||
{
|
||||
$num = $db->num_rows();
|
||||
print_barre_liste("Factures",$page,$PHP_SELF,"&socidp=$socidp",$sortfield,$sortorder,'',$num);
|
||||
print_barre_liste("Factures",$page,"fiche-rec.php","&socidp=$socidp",$sortfield,$sortorder,'',$num);
|
||||
|
||||
$i = 0;
|
||||
print "<TABLE border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"4\">";
|
||||
print '<TR class="liste_titre">';
|
||||
print '<td>Titre</td>';
|
||||
print '<td>';
|
||||
print_liste_field_titre("Société",$PHP_SELF,"s.nom","","&socidp=$socidp");
|
||||
print_liste_field_titre("Société","fiche-rec.php","s.nom","","&socidp=$socidp");
|
||||
|
||||
print '</td><TD align="right">Montant</TD>';
|
||||
print '<td> </td>';
|
||||
|
||||
@ -67,18 +67,18 @@ if ($action == 'create') {
|
||||
*
|
||||
*
|
||||
*/
|
||||
print_barre_liste("Comptes comptable",$page,$PHP_SELF);
|
||||
print_barre_liste("Comptes comptable",$page,"ligne.php");
|
||||
|
||||
|
||||
print "<TABLE border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"3\">";
|
||||
print '<TR class="liste_titre">';
|
||||
print "<TD>Numéro</TD><td>";
|
||||
print_liste_field_titre("Libellé",$PHP_SELF,"label");
|
||||
print_liste_field_titre("Libellé","ligne.php","label");
|
||||
print "</td><td>Montant</TD>";
|
||||
print "</TR>\n";
|
||||
|
||||
|
||||
print '<form action="'.$PHP_SELF.'" method="post">';
|
||||
print '<form action="ligne.php" method="post">';
|
||||
print '<input type="hidden" name="action" value="add">';
|
||||
print '<tr><td><select name="number">'.$options.'</select></td>';
|
||||
print '<td><input type="text" name="label" size="30"></td>';
|
||||
|
||||
@ -63,12 +63,12 @@ if ($result)
|
||||
$i = 0;
|
||||
$var=True;
|
||||
|
||||
print_barre_liste("Paiements reçus", $page, $PHP_SELF,"",$sortfield,$sortorder,'',$num);
|
||||
print_barre_liste("Paiements reçus", $page, "liste.php","",$sortfield,$sortorder,'',$num);
|
||||
|
||||
print '<table border="0" width="100%" cellspacing="0" cellpadding="4">';
|
||||
print '<tr class="liste_titre">';
|
||||
print '<td>Date</td><td>';
|
||||
print_liste_field_titre("Type",$PHP_SELF,"c.libelle","","");
|
||||
print_liste_field_titre("Type","liste.php","c.libelle","","");
|
||||
print '</td><td align="right">Montant</TD>';
|
||||
print "<td> </td>";
|
||||
print "</TR>\n";
|
||||
|
||||
@ -149,7 +149,7 @@ if ($_GET["action"] == 'create')
|
||||
print_titre("Emettre un paiement d'une charge");
|
||||
print "<br>\n";
|
||||
|
||||
print "<form action=\"$PHP_SELF\" method=\"post\">\n";
|
||||
print '<form action="paiement_charge.php" method="post">';
|
||||
print "<input type=\"hidden\" name=\"id\" value=\"$charge->id\">";
|
||||
print '<input type="hidden" name="action" value="add_paiement">';
|
||||
print '<table cellspacing="0" class="border" width="100%" cellpadding="2">';
|
||||
|
||||
@ -38,7 +38,7 @@ $month=$_GET["month"];
|
||||
if (! $year) { $year = strftime("%Y", time()); }
|
||||
|
||||
|
||||
print_fiche_titre("Détail recettes-dépenses par client/fournisseur",($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("Détail recettes-dépenses par client/fournisseur",($year?" <a href='clientfourn.php?year=".($year-1)."'>".img_previous()."</a> Année $year <a href='clientfourn.php?year=".($year+1)."'>".img_next()."</a>":""));
|
||||
|
||||
print '<br>';
|
||||
|
||||
|
||||
@ -81,7 +81,7 @@ if ($chid > 0)
|
||||
$html->form_confirm("index.php?id=$cha->id&action=del","Supprimer la charge sociale","Etes-vous sûr de vouloir supprimer cette charge sociale ?","confirm_delete");
|
||||
}
|
||||
|
||||
print "<form action=\"$PHP_SELF?id=$cha->id&action=update\" method=\"post\">";
|
||||
print "<form action=\"charges.php?id=$cha->id&action=update\" method=\"post\">";
|
||||
|
||||
print '<table class="border" cellspacing="0" cellpadding="2" width="100%">';
|
||||
|
||||
@ -173,7 +173,7 @@ if ($chid > 0)
|
||||
// Supprimer
|
||||
if ($cha->paye == 0 && $totalpaye <=0 && $user->rights->compta->charges)
|
||||
{
|
||||
print "<a class=\"tabAction\" href=\"$PHP_SELF?id=$cha->id&action=delete\">Supprimer</a>";
|
||||
print "<a class=\"tabAction\" href=\"charges.php?id=$cha->id&action=delete\">Supprimer</a>";
|
||||
}
|
||||
|
||||
// Emettre paiement
|
||||
@ -185,7 +185,7 @@ if ($chid > 0)
|
||||
// Classer 'payé'
|
||||
if ($cha->paye == 0 && round($resteapayer) <=0 && $user->rights->compta->charges)
|
||||
{
|
||||
print "<a class=\"tabAction\" href=\"$PHP_SELF?id=$cha->id&action=payed\">Classer 'Payée'</a>";
|
||||
print "<a class=\"tabAction\" href=\"charges.php?id=$cha->id&action=payed\">Classer 'Payée'</a>";
|
||||
}
|
||||
|
||||
print "</div>";
|
||||
|
||||
@ -80,7 +80,7 @@ $year=$_GET["year"];
|
||||
$filtre=$_GET["filtre"];
|
||||
//if (! $year) { $year=date("Y", time()); }
|
||||
|
||||
print_fiche_titre("Charges sociales",($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 sociales",($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>\n";
|
||||
|
||||
if ($mesg) {
|
||||
@ -90,20 +90,20 @@ if ($mesg) {
|
||||
print "<table class=\"noborder\" width=\"100%\" cellspacing=\"0\" cellpadding=\"2\">";
|
||||
print "<tr class=\"liste_titre\">";
|
||||
print '<td>';
|
||||
print_liste_field_titre("Num",$PHP_SELF,"id");
|
||||
print_liste_field_titre("Num","index.php","id");
|
||||
print '</td>';
|
||||
print '<td>';
|
||||
print_liste_field_titre("Echéance",$PHP_SELF,"de");
|
||||
print_liste_field_titre("Echéance","index.php","de");
|
||||
print '</td><td>';
|
||||
print_liste_field_titre("Période",$PHP_SELF,"periode");
|
||||
print_liste_field_titre("Période","index.php","periode");
|
||||
print '</td><td align="left">';
|
||||
print_liste_field_titre("Type",$PHP_SELF,"type");
|
||||
print_liste_field_titre("Type","index.php","type");
|
||||
print '</td><td align="left">';
|
||||
print_liste_field_titre("Libellé",$PHP_SELF,"s.libelle");
|
||||
print_liste_field_titre("Libellé","index.php","s.libelle");
|
||||
print '</td><td align="right">';
|
||||
print_liste_field_titre("Montant",$PHP_SELF,"s.amount");
|
||||
print_liste_field_titre("Montant","index.php","s.amount");
|
||||
print '</td><td align="center">';
|
||||
print_liste_field_titre("Statut",$PHP_SELF,"s.paye");
|
||||
print_liste_field_titre("Statut","index.php","s.paye");
|
||||
print '</td><td> </td>';
|
||||
print "</tr>\n";
|
||||
|
||||
@ -164,16 +164,16 @@ if ( $db->query($sql) )
|
||||
|
||||
if ($obj->paye)
|
||||
{
|
||||
print '<td align="center" class="normal" width="100"><a class="payee" href="'.$PHP_SELF.'?filtre=paye:1">Payé</a></td>';
|
||||
print '<td align="center" class="normal" width="100"><a class="payee" href="index.php?filtre=paye:1">Payé</a></td>';
|
||||
print '<td> </td>';
|
||||
} else {
|
||||
print '<td align="center"><a class="impayee" href="'.$PHP_SELF.'?filtre=paye:0">Impayé</a></td>';
|
||||
print '<td align="center"><a class="impayee" href="index.php?filtre=paye:0">Impayé</a></td>';
|
||||
print '<td align="center" nowrap>';
|
||||
if ($user->rights->compta->charges->creer) {
|
||||
print '<a href="charges.php?id='.$obj->id.'">'.img_edit().'</a>';
|
||||
}
|
||||
if ($user->rights->compta->charges->supprimer) {
|
||||
print ' <a href="'.$PHP_SELF.'?action=del&id='.$obj->id.'">'.img_delete().'</a>';
|
||||
print ' <a href="index.php?action=del&id='.$obj->id.'">'.img_delete().'</a>';
|
||||
}
|
||||
print '</td>';
|
||||
}
|
||||
|
||||
@ -330,7 +330,7 @@ if ($user->societe_id > 0)
|
||||
$cyear = isset($_GET["year"])?$_GET["year"]:0;
|
||||
if (! $cyear) { $cyear = strftime ("%Y", time()); }
|
||||
|
||||
print_fiche_titre("Chiffre d'Affaire transformé (prévu-réalisé)",($cyear?"<a href='$PHP_SELF?year=".($cyear-1)."'>".img_previous()."</a> Année $cyear <a href='$PHP_SELF?year=".($cyear+1)."'>".img_next()."</a>":""));
|
||||
print_fiche_titre("Chiffre d'Affaire transformé (prévu-réalisé)",($cyear?"<a href='comp.php?year=".($cyear-1)."'>".img_previous()."</a> Année $cyear <a href='comp.php?year=".($cyear+1)."'>".img_next()."</a>":""));
|
||||
|
||||
ppt($db, $cyear, $socidp);
|
||||
|
||||
|
||||
@ -112,10 +112,10 @@ if ($year == 0 ) {
|
||||
$year_start = $year;
|
||||
}
|
||||
|
||||
$textprevyear="<a href=\"$PHP_SELF?year=" . ($year_current-1) . "\">".img_previous()."</a>";
|
||||
$textprevyear="<a href=\"index.php?year=" . ($year_current-1) . "\">".img_previous()."</a>";
|
||||
// On n'affiche pas "Année suivante" si c'est dans le futur !
|
||||
if(($year < strftime("%Y",time())) && ($year != 0)) {
|
||||
$textnextyear=" <a href=\"$PHP_SELF?year=" . ($year_current+1) . "\">".img_next()."</a>";
|
||||
$textnextyear=" <a href=\"index.php?year=" . ($year_current+1) . "\">".img_next()."</a>";
|
||||
}
|
||||
|
||||
print_fiche_titre("TVA Solde : ".price($tva->solde($year_start)),"$textprevyear Année $year_start $textnextyear");
|
||||
|
||||
@ -38,7 +38,7 @@ $limit = $conf->liste_limit;
|
||||
$offset = $limit * $page ;
|
||||
|
||||
|
||||
print_barre_liste("Liste des produits classés pas critiques", $page, $PHP_SELF);
|
||||
print_barre_liste("Liste des produits classés pas critiques", $page, "bestproduct.php");
|
||||
|
||||
$sql = "SELECT sum(r.reviews_rating)/count(r.reviews_rating) as rat, r.products_id, p.products_model, p.products_quantity, p.products_status";
|
||||
$sql .= " FROM ".DB_NAME_OSC.".reviews as r,".DB_NAME_OSC.".products as p ";
|
||||
|
||||
@ -36,7 +36,7 @@ if ($page == -1) { $page = 0 ; }
|
||||
$limit = $conf->liste_limit;
|
||||
$offset = $limit * $page ;
|
||||
|
||||
print_barre_liste("Critiques", $page, $PHP_SELF);
|
||||
print_barre_liste("Critiques", $page, "index.php");
|
||||
|
||||
$sql = "SELECT r.reviews_id, r.reviews_rating, d.reviews_text, p.products_name FROM ".DB_NAME_OSC.".reviews as r, ".DB_NAME_OSC.".reviews_description as d, ".DB_NAME_OSC.".products_description as p";
|
||||
$sql .= " WHERE r.reviews_id = d.reviews_id AND r.products_id=p.products_id";
|
||||
|
||||
@ -37,7 +37,7 @@ $limit = $conf->liste_limit;
|
||||
$offset = $limit * $page ;
|
||||
|
||||
|
||||
print_barre_liste("Liste des produits classés pas critiques", $page, $PHP_SELF);
|
||||
print_barre_liste("Liste des produits classés pas critiques", $page, "osc-productsbyreviews.php");
|
||||
|
||||
$sql = "SELECT sum(r.reviews_rating)/count(r.reviews_rating) as rat, r.products_id, p.products_model, p.products_quantity, p.products_status";
|
||||
$sql .= " FROM ".DB_NAME_OSC.".reviews as r,".DB_NAME_OSC.".products as p ";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user