*** empty log message ***
This commit is contained in:
parent
5f5719d768
commit
cf825325ea
@ -66,44 +66,53 @@ $sql = "SELECT c.amount, cc.libelle";
|
|||||||
$sql .= " FROM llx_chargesociales as c, c_chargesociales as cc";
|
$sql .= " FROM llx_chargesociales as c, c_chargesociales as cc";
|
||||||
$sql .= " WHERE c.fk_type = cc.id AND c.paye=0";
|
$sql .= " WHERE c.fk_type = cc.id AND c.paye=0";
|
||||||
|
|
||||||
if ( $db->query($sql) ) {
|
if ( $db->query($sql) )
|
||||||
|
{
|
||||||
$num = $db->num_rows();
|
$num = $db->num_rows();
|
||||||
if ($num) {
|
if ($num)
|
||||||
print "<TABLE border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"4\">";
|
{
|
||||||
print "<TR class=\"liste_titre\">";
|
print "<TABLE border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"4\">";
|
||||||
print "<TD colspan=\"2\">Charges à payer</td>";
|
print "<TR class=\"liste_titre\">";
|
||||||
print "</TR>\n";
|
print "<TD colspan=\"2\">Charges à payer</td>";
|
||||||
$i = 0;
|
print "</TR>\n";
|
||||||
|
$i = 0;
|
||||||
while ($i < $num) {
|
|
||||||
$obj = $db->fetch_object( $i);
|
while ($i < $num)
|
||||||
$var = !$var;
|
{
|
||||||
print "<tr $bc[$var]>";
|
$obj = $db->fetch_object( $i);
|
||||||
print '<td>'.$obj->libelle.'</td>';
|
$var = !$var;
|
||||||
print '<td align="right">'.price($obj->amount).'</td>';
|
print "<tr $bc[$var]>";
|
||||||
print '</tr>';
|
print '<td>'.$obj->libelle.'</td>';
|
||||||
$i++;
|
print '<td align="right">'.price($obj->amount).'</td>';
|
||||||
|
print '</tr>';
|
||||||
|
$i++;
|
||||||
|
}
|
||||||
|
print '</table><br>';
|
||||||
}
|
}
|
||||||
print '</table><br>';
|
}
|
||||||
}
|
else
|
||||||
} else {
|
{
|
||||||
print $db->error();
|
print $db->error();
|
||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
* Propales
|
* Propales
|
||||||
*/
|
*/
|
||||||
print '<TABLE border="0" cellspacing="0" cellpadding="3" width="100%">';
|
if ($user->comm > 0 && $conf->commercial )
|
||||||
print "<TR class=\"liste_titre\">";
|
{
|
||||||
print '<td colspan="2">'.translate("Propositions commerciales").'</td>';
|
print '<TABLE border="0" cellspacing="0" cellpadding="3" width="100%">';
|
||||||
print "</TR>\n";
|
print "<TR class=\"liste_titre\">";
|
||||||
|
print '<td colspan="2">'.translate("Propositions commerciales").'</td>';
|
||||||
$sql = "SELECT count(*) FROM llx_propal WHERE fk_statut = 2";
|
print "</TR>\n";
|
||||||
if (valeur($sql)) {
|
|
||||||
$var=!$var;
|
$sql = "SELECT count(*) FROM llx_propal WHERE fk_statut = 2";
|
||||||
print "<tr $bc[$var]><td><a href=\"propal.php3?viewstatut=2\">A facturer</a></td><td align=\"right\">".valeur($sql)."</td></tr>";
|
if (valeur($sql))
|
||||||
|
{
|
||||||
|
$var=!$var;
|
||||||
|
print "<tr $bc[$var]><td><a href=\"propal.php3?viewstatut=2\">A facturer</a></td><td align=\"right\">".valeur($sql)."</td></tr>";
|
||||||
|
}
|
||||||
|
|
||||||
|
print "</table><br>";
|
||||||
}
|
}
|
||||||
|
|
||||||
print "</table><br>";
|
|
||||||
/*
|
/*
|
||||||
* Factures
|
* Factures
|
||||||
*/
|
*/
|
||||||
|
|||||||
@ -49,7 +49,10 @@ function llxHeader($head = "") {
|
|||||||
$menu->add("/compta/facture.php3","Factures");
|
$menu->add("/compta/facture.php3","Factures");
|
||||||
$menu->add_submenu("paiement.php3","Paiements");
|
$menu->add_submenu("paiement.php3","Paiements");
|
||||||
|
|
||||||
$menu->add("/compta/propal.php3","Propales");
|
if ($user->comm > 0 && $conf->commercial )
|
||||||
|
{
|
||||||
|
$menu->add("/compta/propal.php3","Propales");
|
||||||
|
}
|
||||||
|
|
||||||
$menu->add("charges/index.php3","Charges");
|
$menu->add("charges/index.php3","Charges");
|
||||||
$menu->add_submenu("sociales/","Prest. Sociales");
|
$menu->add_submenu("sociales/","Prest. Sociales");
|
||||||
|
|||||||
@ -107,8 +107,15 @@ function top_menu($head) {
|
|||||||
|
|
||||||
|
|
||||||
print '<TD width="15%" class="menu" align="center">';
|
print '<TD width="15%" class="menu" align="center">';
|
||||||
print '<A class="menu" href="/product/">Produits</A></TD>';
|
if ($conf->produit->enabled )
|
||||||
print '<td width="15%" class="menu" align="center">';
|
{
|
||||||
|
print '<A class="menu" href="/product/">Produits</a>';
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
print '-';
|
||||||
|
}
|
||||||
|
print '</td><td width="15%" class="menu" align="center">';
|
||||||
if ($conf->webcal->enabled) {
|
if ($conf->webcal->enabled) {
|
||||||
print '<a class="menu" href="'.$conf->webcal->url.'">Calendrier</a>';
|
print '<a class="menu" href="'.$conf->webcal->url.'">Calendrier</a>';
|
||||||
};
|
};
|
||||||
|
|||||||
@ -33,18 +33,21 @@ function llxHeader($head = "") {
|
|||||||
|
|
||||||
$menu = new Menu();
|
$menu = new Menu();
|
||||||
|
|
||||||
$menu->add("/societe.php", "Sociétés","company");
|
if ($conf->societe )
|
||||||
$menu->add_submenu("../soc.php3?&action=create", "Nouvelle société");
|
{
|
||||||
|
$menu->add("/societe.php", "Sociétés","company");
|
||||||
|
$menu->add_submenu("../soc.php3?&action=create", "Nouvelle société");
|
||||||
|
}
|
||||||
|
|
||||||
if ($conf->commercial )
|
if ($conf->commercial )
|
||||||
{
|
{
|
||||||
$menu->add("/comm/index.php3", "Commercial");
|
$menu->add("/comm/index.php3", "Commercial");
|
||||||
|
|
||||||
|
$menu->add_submenu("/comm/clients.php3", "Clients");
|
||||||
|
|
||||||
|
$menu->add_submenu("/comm/propal.php3", "Propales");
|
||||||
}
|
}
|
||||||
|
|
||||||
$menu->add_submenu("/comm/clients.php3", "Clients");
|
|
||||||
|
|
||||||
$menu->add_submenu("/comm/propal.php3", "Propales");
|
|
||||||
|
|
||||||
if ($user->compta > 0)
|
if ($user->compta > 0)
|
||||||
{
|
{
|
||||||
$menu->add("/compta/", "Comptabilité");
|
$menu->add("/compta/", "Comptabilité");
|
||||||
@ -57,8 +60,6 @@ function llxHeader($head = "") {
|
|||||||
$menu->add("/fichinter/", "Fiches d'intervention");
|
$menu->add("/fichinter/", "Fiches d'intervention");
|
||||||
}
|
}
|
||||||
|
|
||||||
$menu->add("/fourn/index.php3", "Fournisseurs");
|
|
||||||
|
|
||||||
if ($conf->produit->enabled )
|
if ($conf->produit->enabled )
|
||||||
{
|
{
|
||||||
$menu->add("/product/", "Produits");
|
$menu->add("/product/", "Produits");
|
||||||
@ -76,6 +77,8 @@ function llxHeader($head = "") {
|
|||||||
|
|
||||||
$menu->add("/compta/dons/", "Dons");
|
$menu->add("/compta/dons/", "Dons");
|
||||||
|
|
||||||
|
$menu->add("/fourn/index.php3", "Fournisseurs");
|
||||||
|
|
||||||
$menu->add("/user/", "Utilisateurs");
|
$menu->add("/user/", "Utilisateurs");
|
||||||
|
|
||||||
$menu->add("/info.php3", "Configuration");
|
$menu->add("/info.php3", "Configuration");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user