Lines Matching refs:histo

295 	$histo = array();
504 $histo[$numaction] = array(
533 $histo[$numaction] = array(
657 foreach ($histo as $key => $value) {
658 …$actionstatic->fetch($histo[$key]['id']); // TODO Do we need this, we already have a lot of data o…
660 $actionstatic->type_picto = $histo[$key]['apicto'];
661 $actionstatic->type_code = $histo[$key]['acode'];
663 $url = DOL_URL_ROOT.'/comm/action/card.php?id='.$histo[$key]['id'];
665 $tmpa = dol_getdate($histo[$key]['datestart'], false);
671 $out .= dol_print_date($histo[$key]['datestart'], 'daytext', 'tzuserrel', $langs);
681 $out .= getTicketTimelineIcon($actionstatic, $histo, $key);
687 if (isset($histo[$key]['type']) && $histo[$key]['type'] == 'mailing') {
688 …$out .= '<a class="timeline-btn" href="'.DOL_URL_ROOT.'/comm/mailing/card.php?id='.$histo[$key]['i…
689 $out .= $histo[$key]['id'];
708 $out .= dol_print_date($histo[$key]['datestart'], 'dayhour', 'tzuserrel');
709 if ($histo[$key]['dateend'] && $histo[$key]['dateend'] != $histo[$key]['datestart']) {
710 $tmpa = dol_getdate($histo[$key]['datestart'], true);
711 $tmpb = dol_getdate($histo[$key]['dateend'], true);
713 $out .= '-'.dol_print_date($histo[$key]['dateend'], 'hour', 'tzuserrel');
715 $out .= '-'.dol_print_date($histo[$key]['dateend'], 'dayhour', 'tzuserrel');
719 …if ($histo[$key]['percent'] == 0 && $histo[$key]['datestart'] && $histo[$key]['datestart'] < ($now…
722 …if ($histo[$key]['percent'] == 0 && !$histo[$key]['datestart'] && $histo[$key]['dateend'] && $hist…
725 …if ($histo[$key]['percent'] > 0 && $histo[$key]['percent'] < 100 && $histo[$key]['dateend'] && $hi…
728 …if ($histo[$key]['percent'] > 0 && $histo[$key]['percent'] < 100 && !$histo[$key]['dateend'] && $h…
741 if ($histo[$key]['userid'] > 0) {
742 if (!isset($userGetNomUrlCache[$histo[$key]['userid']])) { // is in cache ?
743 $userstatic->fetch($histo[$key]['userid']);
744 …$userGetNomUrlCache[$histo[$key]['userid']] = $userstatic->getNomUrl(-1, '', 0, 0, 16, 0, 'firstel…
746 $out .= $userGetNomUrlCache[$histo[$key]['userid']];
758 if (isset($histo[$key]['type']) && $histo[$key]['type'] == 'action') {
759 $transcode = $langs->trans("Action".$histo[$key]['acode']);
760 … $libelle = ($transcode != "Action".$histo[$key]['acode'] ? $transcode : $histo[$key]['alabel']);
761 $libelle = $histo[$key]['note'];
762 $actionstatic->id = $histo[$key]['id'];
765 if (isset($histo[$key]['type']) && $histo[$key]['type'] == 'mailing') {
766 …$out .= '<a href="'.DOL_URL_ROOT.'/comm/mailing/card.php?id='.$histo[$key]['id'].'">'.img_object($…
767 $transcode = $langs->trans("Action".$histo[$key]['acode']);
768 $libelle = ($transcode != "Action".$histo[$key]['acode'] ? $transcode : 'Send mass mailing');
777 if (!empty($histo[$key]['message'])
782 $out .= $histo[$key]['message'];
790 …if (isset($histo[$key]['socpeopleassigned']) && is_array($histo[$key]['socpeopleassigned']) && cou…
792 foreach ($histo[$key]['socpeopleassigned'] as $cid => $Tab) {
803 if (isset($histo[$key]['acode']) && $histo[$key]['acode'] == 'AC_TEL') {
812 …} elseif (empty($objcon->id) && isset($histo[$key]['contact_id']) && $histo[$key]['contact_id'] > …
814 $result = $contact->fetch($histo[$key]['contact_id']);
822 if (isset($histo[$key]['acode']) && $histo[$key]['acode'] == 'AC_TEL') {
886 * @param array $histo histo
890 function getTicketTimelineIcon($actionstatic, &$histo, $key) argument
899 if ($histo[$key]['percent'] == -1) {
902 } elseif ($histo[$key]['percent'] == 0) {
905 } elseif ($histo[$key]['percent'] > 0 && $histo[$key]['percent'] < 100) {
907 $pictoTitle = $langs->trans('StatusActionInProcess').' ('.$histo[$key]['percent'].'%)';
908 } elseif ($histo[$key]['percent'] >= 100) {