Nettoyage et homogéinisation du code
This commit is contained in:
parent
d251b48cac
commit
1fb9e08145
@ -29,14 +29,12 @@
|
|||||||
|
|
||||||
require("./pre.inc.php");
|
require("./pre.inc.php");
|
||||||
|
|
||||||
if ($_GET["socidp"]) { $socidp=$_GET["socidp"]; }
|
|
||||||
/*
|
/*
|
||||||
* Sécurité accés client
|
* Sécurité accés client
|
||||||
*/
|
*/
|
||||||
if ($user->societe_id > 0)
|
if ($user->societe_id > 0)
|
||||||
{
|
{
|
||||||
$action = '';
|
accessforbidden();
|
||||||
$socidp = $user->societe_id;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
llxHeader('');
|
llxHeader('');
|
||||||
@ -80,16 +78,16 @@ if ($result)
|
|||||||
print '<form method="GET" action="lignes.php">';
|
print '<form method="GET" action="lignes.php">';
|
||||||
print '<table class="noborder" width="100%">';
|
print '<table class="noborder" width="100%">';
|
||||||
print "<tr class=\"liste_titre\"><td>Facture</td>";
|
print "<tr class=\"liste_titre\"><td>Facture</td>";
|
||||||
print '<td width="54%">'.$langs->trans("Description").'</td>';
|
print '<td>'.$langs->trans("Description").'</td>';
|
||||||
print '<td>'.$langs->trans("Montant").'</td>';
|
print '<td align="right">'.$langs->trans("Montant").'</td>';
|
||||||
print '<td colspan="2" align="center">'.$langs->trans("Compte").'</td>';
|
print '<td colspan="2" align="center">'.$langs->trans("Compte").'</td>';
|
||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
|
|
||||||
print '<tr class="liste_titre"><td><input name="search_facture" value="'.$_GET["search_facture"].'"></td>';
|
print '<tr class="liste_titre"><td><input name="search_facture" size="8" value="'.$_GET["search_facture"].'"></td>';
|
||||||
print '<td width="54%"> </td>';
|
print '<td><input type="submit"></td>';
|
||||||
print '<td align="right"> </td>';
|
print '<td align="right"> </td>';
|
||||||
print '<td align="center"> </td>';
|
print '<td align="center"> </td>';
|
||||||
print '<td align="center"><input type="submit"></td>';
|
print '<td align="center"> </td>';
|
||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
|
|
||||||
$var=True;
|
$var=True;
|
||||||
@ -102,23 +100,13 @@ if ($result)
|
|||||||
print '<td><a href="'.DOL_URL_ROOT.'/compta/facture.php?facid='.$objp->facid.'">'.$objp->facnumber.'</a></td>';
|
print '<td><a href="'.DOL_URL_ROOT.'/compta/facture.php?facid='.$objp->facid.'">'.$objp->facnumber.'</a></td>';
|
||||||
|
|
||||||
print '<td>'.stripslashes(nl2br($objp->description)).'</td>';
|
print '<td>'.stripslashes(nl2br($objp->description)).'</td>';
|
||||||
|
print '<td align="right">'.price($objp->price).'</td>';
|
||||||
print '<td align="right">';
|
print '<td align="right">'.$objp->numero.'</td>';
|
||||||
print price($objp->price);
|
print '<td align="left">'.stripslashes($objp->intitule).'</td>';
|
||||||
print '</td>';
|
|
||||||
|
|
||||||
print '<td>';
|
|
||||||
print $objp->numero;
|
|
||||||
print '</td>';
|
|
||||||
|
|
||||||
print '<td>';
|
|
||||||
print $objp->intitule;
|
|
||||||
print '</td>';
|
|
||||||
|
|
||||||
print "</tr>";
|
print "</tr>";
|
||||||
$i++;
|
$i++;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user