Joyeux anniversaire Bibi ;-)
This commit is contained in:
parent
cbbb704370
commit
458ff471f3
@ -24,11 +24,28 @@ $info_box_head = array();
|
|||||||
$info_box_head[] = array('text' => "Factures");
|
$info_box_head[] = array('text' => "Factures");
|
||||||
|
|
||||||
$info_box_contents = array();
|
$info_box_contents = array();
|
||||||
$info_box_contents[0] = array('align' => 'center',
|
|
||||||
'text' => "factures0");
|
|
||||||
|
|
||||||
$info_box_contents[1] = array('align' => 'center',
|
|
||||||
'text' => "factures1");
|
$sql = "SELECT s.nom,s.idp,f.facnumber,f.amount,".$db->pdate("f.datef")." as df,f.paye,f.rowid as facid";
|
||||||
|
$sql .= " FROM societe as s,llx_facture as f WHERE f.fk_soc = s.idp";
|
||||||
|
$sql .= " ORDER BY f.datef DESC, f.facnumber DESC ";
|
||||||
|
$sql .= $db->plimit(5, 0);
|
||||||
|
|
||||||
|
$result = $db->query($sql);
|
||||||
|
if ($result) {
|
||||||
|
$num = $db->num_rows();
|
||||||
|
|
||||||
|
$i = 0;
|
||||||
|
|
||||||
|
while ($i < $num) {
|
||||||
|
$objp = $db->fetch_object( $i);
|
||||||
|
|
||||||
|
$info_box_contents[$i] = array('align' => 'center',
|
||||||
|
'text' => $objp->facnumber . " " . $objp->nom,
|
||||||
|
'url' => "/compta/facture.php3?facid=".$objp->facid);
|
||||||
|
$i++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
new infoBox($info_box_head, $info_box_contents);
|
new infoBox($info_box_head, $info_box_contents);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user