Removed dead code
This commit is contained in:
parent
73d03f104b
commit
6936201c58
@ -25,7 +25,7 @@
|
|||||||
* \file htdocs/comm/fiche.php
|
* \file htdocs/comm/fiche.php
|
||||||
* \ingroup commercial compta
|
* \ingroup commercial compta
|
||||||
* \brief Page to show customer card of a third party
|
* \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");
|
require("../main.inc.php");
|
||||||
@ -747,46 +747,6 @@ if ($socid > 0)
|
|||||||
print "</table>";
|
print "</table>";
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* Last linked chronodocs
|
|
||||||
*/
|
|
||||||
// TODO add function to add an external module
|
|
||||||
if(!empty($conf->global->MAIN_MODULE_CHRONODOCS) && $user->rights->chronodocs->entries->read)
|
|
||||||
{
|
|
||||||
print '<table class="noborder" width=100%>';
|
|
||||||
$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 '<tr class="liste_titre">';
|
|
||||||
print '<td colspan="3"><table width="100%" class="nobordernopadding"><tr><td>'.$langs->trans("LastChronodocs",($num<=$MAXLIST?"":$MAXLIST)).'</td><td align="right"><a href="'.DOL_URL_ROOT.'/chronodocs/index.php?socid='.$objsoc->id.'">'.$langs->trans("AllChronodocs").' ('.$num.')</td></tr></table></td>';
|
|
||||||
print '</tr>';
|
|
||||||
}
|
|
||||||
while ($i < $num && $i < $MAXLIST)
|
|
||||||
{
|
|
||||||
$obj = array_shift($result);
|
|
||||||
$var = !$var;
|
|
||||||
print "<tr $bc[$var]>";
|
|
||||||
print '<td><a href="'.DOL_URL_ROOT.'/chronodocs/fiche.php?id='.$obj->fichid.'">'.img_object($langs->trans("ShowChronodocs"),"generic")." ".$obj->ref.'</a></td>';
|
|
||||||
|
|
||||||
print "<td align=\"left\">".dol_trunc($obj->title,30) ."</td>";
|
|
||||||
print "<td align=\"right\">".dol_print_date($db->jdate($obj->dp),'day')."</td>\n";
|
|
||||||
print "</tr>";
|
|
||||||
|
|
||||||
$i++;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
print "</table>";
|
|
||||||
}
|
|
||||||
|
|
||||||
print "</td></tr>";
|
print "</td></tr>";
|
||||||
print "</table>";
|
print "</table>";
|
||||||
|
|
||||||
@ -891,5 +851,5 @@ else
|
|||||||
$db->close();
|
$db->close();
|
||||||
|
|
||||||
|
|
||||||
llxFooter('$Date: 2011/08/21 13:01:34 $ - $Revision: 1.284 $');
|
llxFooter('$Date: 2011/08/23 20:48:20 $ - $Revision: 1.285 $');
|
||||||
?>
|
?>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user