Lines Matching refs:histo

283 	$histo = array();
470 $histo[$numaction] = array(
499 $histo[$numaction] = array(
617 foreach ($histo as $key=>$value)
619 …$actionstatic->fetch($histo[$key]['id']); // TODO Do we need this, we already have a lot of data o…
621 $actionstatic->type_picto = $histo[$key]['apicto'];
622 $actionstatic->type_code = $histo[$key]['acode'];
624 $url = DOL_URL_ROOT.'/comm/action/card.php?id='.$histo[$key]['id'];
626 $tmpa = dol_getdate($histo[$key]['datestart'], false);
632 $out .= dol_print_date($histo[$key]['datestart'], 'daytext', 'tzuserrel', $langs);
642 $out .= getTicketTimelineIcon($actionstatic, $histo, $key);
648 if (isset($histo[$key]['type']) && $histo[$key]['type'] == 'mailing') {
649 …$out .= '<a class="timeline-btn" href="'.DOL_URL_ROOT.'/comm/mailing/card.php?id='.$histo[$key]['i…
650 $out .= $histo[$key]['id'];
670 $out .= dol_print_date($histo[$key]['datestart'], 'dayhour', 'tzuserrel');
671 if ($histo[$key]['dateend'] && $histo[$key]['dateend'] != $histo[$key]['datestart']) {
672 $tmpa = dol_getdate($histo[$key]['datestart'], true);
673 $tmpb = dol_getdate($histo[$key]['dateend'], true);
675 $out .= '-'.dol_print_date($histo[$key]['dateend'], 'hour', 'tzuserrel');
677 $out .= '-'.dol_print_date($histo[$key]['dateend'], 'dayhour', 'tzuserrel');
681 …if ($histo[$key]['percent'] == 0 && $histo[$key]['datestart'] && $histo[$key]['datestart'] < ($now…
682 …if ($histo[$key]['percent'] == 0 && !$histo[$key]['datestart'] && $histo[$key]['dateend'] && $hist…
683 …if ($histo[$key]['percent'] > 0 && $histo[$key]['percent'] < 100 && $histo[$key]['dateend'] && $hi…
684 …if ($histo[$key]['percent'] > 0 && $histo[$key]['percent'] < 100 && !$histo[$key]['dateend'] && $h…
693 if ($histo[$key]['userid'] > 0)
695 if (!isset($userGetNomUrlCache[$histo[$key]['userid']])) { // is in cache ?
696 $userstatic->fetch($histo[$key]['userid']);
697 …$userGetNomUrlCache[$histo[$key]['userid']] = $userstatic->getNomUrl(-1, '', 0, 0, 16, 0, 'firstel…
699 $out .= $userGetNomUrlCache[$histo[$key]['userid']];
711 if (isset($histo[$key]['type']) && $histo[$key]['type'] == 'action') {
712 $transcode = $langs->trans("Action".$histo[$key]['acode']);
713 … $libelle = ($transcode != "Action".$histo[$key]['acode'] ? $transcode : $histo[$key]['alabel']);
714 $libelle = $histo[$key]['note'];
715 $actionstatic->id = $histo[$key]['id'];
718 if (isset($histo[$key]['type']) && $histo[$key]['type'] == 'mailing') {
719 …$out .= '<a href="'.DOL_URL_ROOT.'/comm/mailing/card.php?id='.$histo[$key]['id'].'">'.img_object($…
720 $transcode = $langs->trans("Action".$histo[$key]['acode']);
721 $libelle = ($transcode != "Action".$histo[$key]['acode'] ? $transcode : 'Send mass mailing');
730 if (!empty($histo[$key]['message'])
736 $out .= $histo[$key]['message'];
744 …if (isset($histo[$key]['socpeopleassigned']) && is_array($histo[$key]['socpeopleassigned']) && cou…
746 foreach ($histo[$key]['socpeopleassigned'] as $cid => $Tab) {
757 if (isset($histo[$key]['acode']) && $histo[$key]['acode'] == 'AC_TEL') {
765 …} elseif (empty($objcon->id) && isset($histo[$key]['contact_id']) && $histo[$key]['contact_id'] > …
767 $result = $contact->fetch($histo[$key]['contact_id']);
774 if (isset($histo[$key]['acode']) && $histo[$key]['acode'] == 'AC_TEL') {
836 * @param array $histo histo
840 function getTicketTimelineIcon($actionstatic, &$histo, $key) argument
849 if ($histo[$key]['percent'] == -1) {
852 } elseif ($histo[$key]['percent'] == 0) {
855 } elseif ($histo[$key]['percent'] > 0 && $histo[$key]['percent'] < 100) {
857 $pictoTitle = $langs->trans('StatusActionInProcess').' ('.$histo[$key]['percent'].'%)';
858 } elseif ($histo[$key]['percent'] >= 100) {