From 6936201c588d15399f5a6f3a847b156ebdc69c07 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 23 Aug 2011 20:48:20 +0000 Subject: [PATCH] Removed dead code --- htdocs/comm/fiche.php | 44 ++----------------------------------------- 1 file changed, 2 insertions(+), 42 deletions(-) diff --git a/htdocs/comm/fiche.php b/htdocs/comm/fiche.php index 3a0caad822d..157954c570b 100644 --- a/htdocs/comm/fiche.php +++ b/htdocs/comm/fiche.php @@ -25,7 +25,7 @@ * \file htdocs/comm/fiche.php * \ingroup commercial compta * \brief Page to show customer card of a third party - * \version $Id: fiche.php,v 1.284 2011/08/21 13:01:34 eldy Exp $ + * \version $Id: fiche.php,v 1.285 2011/08/23 20:48:20 eldy Exp $ */ require("../main.inc.php"); @@ -747,46 +747,6 @@ if ($socid > 0) print ""; } - /* - * Last linked chronodocs - */ - // TODO add function to add an external module - if(!empty($conf->global->MAIN_MODULE_CHRONODOCS) && $user->rights->chronodocs->entries->read) - { - print ''; - $chronodocs_static=new Chronodocs_entries($db); - $result=$chronodocs_static->get_list($MAXLIST,0,"f.date_c","DESC",$objsoc->id); - if (is_array($result)) - { - $var=true; - $i = 0 ; - //$num = sizeOf($result); - $num=$chronodocs_static->get_nb_chronodocs($objsoc->id); - - if ($num > 0) - { - print ''; - print ''; - print ''; - } - while ($i < $num && $i < $MAXLIST) - { - $obj = array_shift($result); - $var = !$var; - print ""; - print ''; - - print ""; - print "\n"; - print ""; - - $i++; - } - } - - print "
'.$langs->trans("LastChronodocs",($num<=$MAXLIST?"":$MAXLIST)).''.$langs->trans("AllChronodocs").' ('.$num.')
'.img_object($langs->trans("ShowChronodocs"),"generic")." ".$obj->ref.'".dol_trunc($obj->title,30) ."".dol_print_date($db->jdate($obj->dp),'day')."
"; - } - print ""; print ""; @@ -891,5 +851,5 @@ else $db->close(); -llxFooter('$Date: 2011/08/21 13:01:34 $ - $Revision: 1.284 $'); +llxFooter('$Date: 2011/08/23 20:48:20 $ - $Revision: 1.285 $'); ?>