$interventionstatic->ref = $objp->ref; print $interventionstatic->getNomUrl(1); print "</td>\n"; print '<td>'; $companystatic->name = $objp->name; $companystatic->id = $objp->socid; $companystatic->client = $objp->client; print $companystatic->getNomUrl(1, '', 44); print '</td>'; print '<td>' . dol_htmlentitiesbr(dol_trunc($objp->description, 20)) . '</td>'; if (empty($conf->global->FICHINTER_DISABLE_DETAILS)) { print '<td>' . dol_htmlentitiesbr(dol_trunc($objp->descriptiondetail, 20)) . '</td>'; print '<td align="center">' . dol_print_date($db->jdate($objp->dp), 'dayhour') . "</td>\n"; print '<td align="right">' . convertSecondToTime($objp->duree) . '</td>'; } print '<td align="right">' . $interventionstatic->LibStatut($objp->fk_statut, 5) . '</td>'; print '<td> </td>'; print "</tr>\n"; $total += $objp->duree; $i++; } $rowspan = 3; if (empty($conf->global->FICHINTER_DISABLE_DETAILS)) { print '<tr class="liste_total"><td colspan="5" class="liste_total">' . $langs->trans("Total") . '</td>'; print '<td align="right" class="nowrap liste_total">' . convertSecondToTime($total) . '</td><td> </td><td> </td>'; print '</tr>'; } print '</table>'; print "</form>\n"; $db->free($result); } else {
if (!isset($vals[$row[1] . $bool])) { $vals[$row[1] . $bool] = 0; } $vals[$row[1] . $bool] += $row[0]; $totalinprocess += $row[0]; $total += $row[0]; } $i++; } $db->free($resql); print '<table class="noborder nohover" width="100%">'; print '<tr class="liste_titre"><td colspan="2">' . $langs->trans("Statistics") . ' - ' . $langs->trans("Interventions") . '</td></tr>' . "\n"; $listofstatus = array(0, 1, 2); $bool = false; foreach ($listofstatus as $status) { $dataseries[] = array('label' => $fichinterstatic->LibStatut($status, $bool, 1), 'data' => isset($vals[$status . $bool]) ? (int) $vals[$status . $bool] : 0); if ($status == 3 && $bool == false) { $bool = true; } else { $bool = false; } } if ($conf->use_javascript_ajax) { print '<tr class="impair"><td align="center" colspan="2">'; $data = array('series' => $dataseries); dol_print_graph('stats', 300, 180, $data, 1, 'pie', 1); print '</td></tr>'; } $var = true; $bool = false; foreach ($listofstatus as $status) {