Modif titre des pages
This commit is contained in:
parent
2d825aaca2
commit
ed26392257
@ -30,7 +30,7 @@ if ($user->societe_id > 0)
|
|||||||
$socidp = $user->societe_id;
|
$socidp = $user->societe_id;
|
||||||
}
|
}
|
||||||
|
|
||||||
llxHeader();
|
llxHeader("","Accueil Compta");
|
||||||
|
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
@ -111,6 +111,39 @@ if ($user->comm > 0 && $conf->commercial )
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
/*
|
||||||
|
* Factures brouillons
|
||||||
|
*/
|
||||||
|
|
||||||
|
$sql = "SELECT f.facnumber, f.rowid, s.nom, s.idp FROM llx_facture as f, llx_societe as s WHERE s.idp = f.fk_soc AND f.fk_statut = 0";
|
||||||
|
|
||||||
|
if ( $db->query($sql) )
|
||||||
|
{
|
||||||
|
$num = $db->num_rows();
|
||||||
|
$i = 0;
|
||||||
|
|
||||||
|
if ($num)
|
||||||
|
{
|
||||||
|
print '<TABLE border="0" cellspacing="0" cellpadding="3" width="100%">';
|
||||||
|
print '<TR class="liste_titre">';
|
||||||
|
print '<td colspan="2">Factures brouillons</td></tr>';
|
||||||
|
|
||||||
|
while ($i < $num)
|
||||||
|
{
|
||||||
|
$obj = $db->fetch_object( $i);
|
||||||
|
$var=!$var;
|
||||||
|
print '<tr '.$bc[$var].'><td><a href="facture.php3?facid='.$obj->rowid.'">'.$obj->facnumber.'</td>';
|
||||||
|
print '<td><a href="fiche.php3?socid='.$obj->idp.'">'.$obj->nom.'</a></td></tr>';
|
||||||
|
$i++;
|
||||||
|
}
|
||||||
|
|
||||||
|
print "</table><br>";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
print $sql;
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Charges a payer
|
* Charges a payer
|
||||||
@ -152,43 +185,6 @@ if ($user->societe_id == 0)
|
|||||||
print $db->error();
|
print $db->error();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/*
|
|
||||||
* Factures impayées
|
|
||||||
*/
|
|
||||||
|
|
||||||
$sql = "SELECT f.facnumber, f.rowid, s.nom, s.idp FROM llx_facture as f, llx_societe as s WHERE s.idp = f.fk_soc AND f.paye = 0 AND f.fk_statut > 0";
|
|
||||||
if ($socidp)
|
|
||||||
{
|
|
||||||
$sql .= " AND f.fk_soc = $socidp";
|
|
||||||
}
|
|
||||||
|
|
||||||
if ( $db->query($sql) )
|
|
||||||
{
|
|
||||||
$num = $db->num_rows();
|
|
||||||
$i = 0;
|
|
||||||
|
|
||||||
if ($num)
|
|
||||||
{
|
|
||||||
print '<TABLE border="0" cellspacing="0" cellpadding="3" width="100%">';
|
|
||||||
print "<TR class=\"liste_titre\">";
|
|
||||||
print '<td colspan="2">Factures impayées</td></tr>';
|
|
||||||
|
|
||||||
while ($i < $num)
|
|
||||||
{
|
|
||||||
$obj = $db->fetch_object( $i);
|
|
||||||
$var=!$var;
|
|
||||||
print '<tr '.$bc[$var].'><td><a href="facture.php3?facid='.$obj->rowid.'">'.$obj->facnumber.'</td>';
|
|
||||||
print '<td><a href="fiche.php3?socid='.$obj->idp.'">'.$obj->nom.'</a></td></tr>';
|
|
||||||
$i++;
|
|
||||||
}
|
|
||||||
print "</table><br>";
|
|
||||||
}
|
|
||||||
$db->free();
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
print $sql;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Bookmark
|
* Bookmark
|
||||||
@ -241,6 +237,44 @@ if ($user->societe_id == 0)
|
|||||||
print '</ul></div><br>';
|
print '</ul></div><br>';
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Factures impayées
|
||||||
|
*/
|
||||||
|
|
||||||
|
$sql = "SELECT f.facnumber, f.rowid, s.nom, s.idp FROM llx_facture as f, llx_societe as s WHERE s.idp = f.fk_soc AND f.paye = 0 AND f.fk_statut > 0";
|
||||||
|
if ($socidp)
|
||||||
|
{
|
||||||
|
$sql .= " AND f.fk_soc = $socidp";
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( $db->query($sql) )
|
||||||
|
{
|
||||||
|
$num = $db->num_rows();
|
||||||
|
$i = 0;
|
||||||
|
|
||||||
|
if ($num)
|
||||||
|
{
|
||||||
|
print '<TABLE border="0" cellspacing="0" cellpadding="3" width="100%">';
|
||||||
|
print "<TR class=\"liste_titre\">";
|
||||||
|
print '<td colspan="2">Factures impayées</td></tr>';
|
||||||
|
|
||||||
|
while ($i < $num)
|
||||||
|
{
|
||||||
|
$obj = $db->fetch_object( $i);
|
||||||
|
$var=!$var;
|
||||||
|
print '<tr '.$bc[$var].'><td><a href="facture.php3?facid='.$obj->rowid.'">'.$obj->facnumber.'</td>';
|
||||||
|
print '<td><a href="fiche.php3?socid='.$obj->idp.'">'.$obj->nom.'</a></td></tr>';
|
||||||
|
$i++;
|
||||||
|
}
|
||||||
|
print "</table><br>";
|
||||||
|
}
|
||||||
|
$db->free();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
print $sql;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
$result = 0;
|
$result = 0;
|
||||||
if ( $result ) {
|
if ( $result ) {
|
||||||
@ -268,39 +302,6 @@ if ( $result ) {
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
|
||||||
* Factures brouillons
|
|
||||||
*/
|
|
||||||
|
|
||||||
$sql = "SELECT f.facnumber, f.rowid, s.nom, s.idp FROM llx_facture as f, llx_societe as s WHERE s.idp = f.fk_soc AND f.fk_statut = 0";
|
|
||||||
|
|
||||||
if ( $db->query($sql) )
|
|
||||||
{
|
|
||||||
$num = $db->num_rows();
|
|
||||||
$i = 0;
|
|
||||||
|
|
||||||
if ($num)
|
|
||||||
{
|
|
||||||
print '<TABLE border="0" cellspacing="0" cellpadding="3" width="100%">';
|
|
||||||
print '<TR class="liste_titre">';
|
|
||||||
print '<td colspan="2">Factures brouillons</td></tr>';
|
|
||||||
|
|
||||||
while ($i < $num)
|
|
||||||
{
|
|
||||||
$obj = $db->fetch_object( $i);
|
|
||||||
$var=!$var;
|
|
||||||
print '<tr '.$bc[$var].'><td><a href="facture.php3?facid='.$obj->rowid.'">'.$obj->facnumber.'</td>';
|
|
||||||
print '<td><a href="fiche.php3?socid='.$obj->idp.'">'.$obj->nom.'</a></td></tr>';
|
|
||||||
$i++;
|
|
||||||
}
|
|
||||||
|
|
||||||
print "</table><br>";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
print $sql;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Factures a payer
|
* Factures a payer
|
||||||
|
|||||||
@ -21,15 +21,14 @@
|
|||||||
*/
|
*/
|
||||||
require("../main.inc.php3");
|
require("../main.inc.php3");
|
||||||
|
|
||||||
function llxHeader($head = "") {
|
function llxHeader($head = "", $title="") {
|
||||||
global $user, $conf;
|
global $user, $conf;
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
top_menu($head);
|
top_menu($head, $title);
|
||||||
|
|
||||||
$menu = new Menu();
|
$menu = new Menu();
|
||||||
|
|
||||||
|
|||||||
@ -34,7 +34,7 @@ if (!$user->rights->produit->lire)
|
|||||||
accessforbidden();
|
accessforbidden();
|
||||||
}
|
}
|
||||||
|
|
||||||
llxHeader("","","Dolibarr - fiche produit");
|
llxHeader("","","Fiche produit");
|
||||||
|
|
||||||
if ($action == 'add')
|
if ($action == 'add')
|
||||||
{
|
{
|
||||||
|
|||||||
@ -36,7 +36,7 @@ if ($action == 'update')
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
llxHeader();
|
llxHeader("","","Accueil Produits et services");
|
||||||
|
|
||||||
print_titre("Produits et services");
|
print_titre("Produits et services");
|
||||||
|
|
||||||
|
|||||||
@ -101,14 +101,14 @@ if ($result)
|
|||||||
|
|
||||||
if ($ref || $snom || $sall)
|
if ($ref || $snom || $sall)
|
||||||
{
|
{
|
||||||
llxHeader("","","Dolibarr - Recherche Produit/Service");
|
llxHeader("","","Recherche Produit/Service");
|
||||||
|
|
||||||
print_barre_liste("Recherche d'un produit ou service", $page, $PHP_SELF, "&sref=$sref&snom=$snom&envente=$envente", $sortfield, $sortorder,'',$num);
|
print_barre_liste("Recherche d'un produit ou service", $page, $PHP_SELF, "&sref=$sref&snom=$snom&envente=$envente", $sortfield, $sortorder,'',$num);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$texte = "Liste des ".$types[$type]."s";
|
$texte = "Liste des ".$types[$type]."s";
|
||||||
llxHeader("","","Dolibarr - ".$texte);
|
llxHeader("","",$texte);
|
||||||
if (isset($envente) && $envente == 0)
|
if (isset($envente) && $envente == 0)
|
||||||
{
|
{
|
||||||
$texte .= " hors vente";
|
$texte .= " hors vente";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user