';
+ print '';
+ print '| '.$langs->trans("Ref").' | ';
+ print ''.$langs->trans("Label").' | ';
+ print ''.$langs->trans("DateStart").' | ';
+ print ''.$langs->trans("DateEnd").' | ';
+ print ''.$langs->trans("Statut").' | ';
+ print '
';
+
+ if ($num)
+ {
+ $fiscalyearstatic=new Fiscalyear($db);
+
+ while ($i < $num && $i < $max)
+ {
+ $obj = $db->fetch_object($result);
+ $fiscalyearstatic->ref=$obj->rowid;
+ $fiscalyearstatic->id=$obj->rowid;
+ print '';
+ print '| '.img_object($langs->trans("ShowFiscalYear"),"technic").' '.$obj->rowid.' | ';
+ print ''.$obj->label.' | ';
+ print ''.dol_print_date($db->jdate($obj->date_start),'day').' | ';
+ print ''.dol_print_date($db->jdate($obj->date_end),'day').' | ';
+ print ''.$fiscalyearstatic->LibStatut($obj->statut,5).' | ';
+ print '
';
+ $var=!$var;
+ $i++;
+ }
+
+ }
+ else
+ {
+ print '| '.$langs->trans("None").' |
';
+ }
+
+ print '
';
+ print '';
+}
+else
+{
+ dol_print_error($db);
+}
+
+dol_fiche_end();
+
+// Buttons
+print '';
+
+ $linkback = ''.$langs->trans("BackToList").'';
+
+ // Ref
+ print '| '.$langs->trans("Ref").' | ';
+ print $object->ref;
+ print ' | ';
+ print $linkback;
+ print ' |
';
+
+ // Label
+ print '| ';
+ print $form->editfieldkey("Label",'label',$object->label,$object,$conf->global->MAIN_EDIT_ALSO_INLINE,'alpha:32');
+ print ' | ';
+ print $form->editfieldval("Label",'label',$object->label,$object,$conf->global->MAIN_EDIT_ALSO_INLINE,'alpha:32');
+ print " |
";
+
+ // Date start
+ print '| ';
+ print $form->editfieldkey("Date",'date_start',$object->date_start,$object,$conf->global->MAIN_EDIT_ALSO_INLINE,'datepicker');
+ print ' | ';
+ print $form->editfieldval("Date",'date_start',$object->date_start,$object,$conf->global->MAIN_EDIT_ALSO_INLINE,'datepicker');
+ print ' |
';
+
+ // Date end
+ print '| ';
+ print $form->editfieldkey("Date",'date_end',$object->date_end,$object,$conf->global->MAIN_EDIT_ALSO_INLINE,'datepicker');
+ print ' | ';
+ print $form->editfieldval("Date",'date_end',$object->date_end,$object,$conf->global->MAIN_EDIT_ALSO_INLINE,'datepicker');
+ print ' |
';
+
+ // Statut
+ print '| '.$langs->trans("Status").' | '.$object->getLibStatut(4).' |
';
+
+ print "