Skip to content
Snippets Groups Projects
Commit a87a303d authored by Eric Seigne's avatar Eric Seigne
Browse files

petites modifs eric: test si repertoire existe, et modif soc_url

parent 4f81d4f8
No related branches found
No related tags found
No related merge requests found
......@@ -31,7 +31,6 @@ if ($_POST["action"] == 'confirm_delete' && $_POST["confirm"] == "yes")
Header("Location: index.php");
}
if ($_POST["action"] == 'add' && $_POST["cancel"] <> $langs->trans("Cancel"))
{
$deplacement = new Deplacement($db);
......
<?php
/* Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2004 Eric Seigne <eric.seigne@ryxeo.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
......@@ -76,11 +77,13 @@ if ( $db->query($sql) )
$var=True;
while ($i < $num)
{
$objp = $db->fetch_object();
$objp = $db->fetch_object($i);
$soc = new Societe($db);
$soc->fetch($objp->idp);
$var=!$var;
print "<tr $bc[$var]>";
print '<td><a href="fiche.php?id='.$objp->rowid.'">'.dolibarr_print_date($objp->dd).'</a></td>';
print '<td><a href="/comm/fiche.php?socid='.$objp->idp.'">'.$objp->nom."</a></td>\n";
print '<td>' . $soc->nom_url . '</a></td>';
print '<td align="center">'.$objp->firstname.' '.$objp->name.'</td>';
......
......@@ -45,7 +45,8 @@ function llxHeader($head = "") {
{
$menu->add_submenu(DOL_URL_ROOT."/soc.php?action=create", $langs->trans("MenuNewCompany"));
}
$menu->add_submenu(DOL_URL_ROOT."/societe/groupe/index.php", $langs->trans("MenuSocGroup"));
if(is_dir("societe/groupe"))
$menu->add_submenu(DOL_URL_ROOT."/societe/groupe/index.php", $langs->trans("MenuSocGroup"));
$menu->add_submenu(DOL_URL_ROOT."/contact/index.php",$langs->trans("Contacts"));
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment