petites modifs eric: test si repertoire existe, et modif soc_url
This commit is contained in:
parent
4f81d4f8de
commit
a87a303d72
@ -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);
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
<?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"));
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user