nettoyage de code

This commit is contained in:
Rodolphe Quiedeville 2003-08-25 10:09:27 +00:00
parent 1561a0743b
commit 8df2541b5f
4 changed files with 8 additions and 11 deletions

View File

@ -25,8 +25,6 @@ require("../contact.class.php3");
llxHeader();
$db = new Db();
/*
* Sécurité accés client
*/
@ -219,7 +217,7 @@ if ($socid > 0) {
$num = $db->num_rows();
if ($num > 0) {
$tag = !$tag; print "<tr $bc[$tag]>";
print "<td colspan=\"2\"><a href=\"projet/index.php3?socidp=$objsoc->idp\">liste des projets ($num)</td></tr>";
print "<td colspan=\"2\"><a href=\"projet/index.php?socidp=$objsoc->idp\">liste des projets ($num)</td></tr>";
}
while ($i < $num && $i < 5) {
$obj = $db->fetch_object( $i);
@ -322,7 +320,7 @@ if ($socid > 0) {
if ( $db->query($sql) )
{
print "<table width=\"100%\" cellspacing=0 border=0 cellpadding=2>\n";
print '<tr><td><a href="'.DOL_URL_ROOT.'/comm/action/index.php3?socid='.$objsoc->idp.'">Actions</a></td></tr>';
print '<tr><td><a href="'.DOL_URL_ROOT.'/comm/action/index.php?socid='.$objsoc->idp.'">Actions</a></td></tr>';
$i = 0 ; $num = $db->num_rows(); $tag = True;
while ($i < $num)

View File

@ -33,7 +33,6 @@ if ($user->societe_id > 0)
llxHeader();
$db = new Db();
if ($action == 'note')
{

View File

@ -47,7 +47,7 @@ function llxHeader($head = "") {
if ($conf->commercial->enabled )
{
$menu->add(DOL_URL_ROOT."/comm/index.php3", "Commercial");
$menu->add(DOL_URL_ROOT."/comm/index.php", "Commercial");
$menu->add_submenu(DOL_URL_ROOT."/comm/clients.php3", "Clients");
@ -108,15 +108,15 @@ function llxHeader($head = "") {
if ($conf->fournisseur->enabled)
{
$menu->add(DOL_URL_ROOT."/fourn/index.php3", "Fournisseurs");
$menu->add(DOL_URL_ROOT."/fourn/index.php", "Fournisseurs");
}
if ($conf->voyage && $user->societe_id == 0)
{
$menu->add(DOL_URL_ROOT."/compta/voyage/index.php3","Voyages");
$menu->add(DOL_URL_ROOT."/compta/voyage/index.php","Voyages");
$menu->add_submenu(DOL_URL_ROOT."/compta/voyage/index.php3","Voyages");
$menu->add_submenu(DOL_URL_ROOT."/compta/voyage/index.php","Voyages");
$menu->add_submenu(DOL_URL_ROOT."/compta/voyage/reduc.php3","Reduc");
}

View File

@ -33,9 +33,9 @@ function llxHeader($head = "", $urlp = "")
$menu = new Menu();
$menu->add(DOL_URL_ROOT."/product/index.php3", "Produits");
$menu->add(DOL_URL_ROOT."/product/index.php", "Produits");
$menu->add(DOL_URL_ROOT."/service/index.php3", "Services");
$menu->add(DOL_URL_ROOT."/service/index.php", "Services");
$menu->add_submenu(DOL_URL_ROOT."/service/fiche.php3?action=create", "Nouveau");