$data .= '<span class="photo">'; if ($value['imagen'] == null) { $data .= '<img src="' . FunctionsController::GetUrl("img", false) . '/users/avatar.png" class="img-circle" alt="">'; } else { $data .= '<img src="' . FunctionsController::GetUrl("img", false) . '/users/' . $value['imagen'] . '" class="img-circle" alt="">'; } $data .= '</span>'; $data .= '<span class="subject">'; $sub_msj = $messagecontroller->GetCountSubMessage($value['id_mensaje'], $id_user); if ($sub_msj >= 1) { $data .= '<span class="badge badge-default">'; $data .= $sub_msj . '</span>'; } $data .= '<span class="from">'; $data .= $value['nombre'] . '</span>'; $data .= '<span class="time">' . FunctionsController::Get_TimeAgo($value['fecha'] . " " . $value['hora']) . '</span>'; $data .= '</span>'; $data .= '<br><span class="message">'; $data .= '<b>' . $value['asunto'] . "</b><br>"; if (strlen($value['mensaje']) >= 65) { $data .= substr(htmlspecialchars_decode($value['mensaje']), 0, 60) . ' (...)'; } else { $data .= $value['mensaje']; } $data .= '</span>'; $data .= '</a>'; $data .= '</li>'; } $array_['inbox'] = array("data" => $data); $json = new SivarApi\Tools\Services_JSON(); echo $json->encode($array_);
$action_form .= '<span>  <b>NO SE HA INICIADO LA BITACORA</b>' . '  <img src="../img/assert/flechaderecha_naranja.png" width="50" height="20" />' . '   <b>INICIE EL PROCESO</b> </span>'; $action_form .= "</div>"; $action_form .= '</div>'; } else { //IMPRIMIMOS LOS LOGS $action_form_button = "<button class='btn green' onclick='InsertBitacora(" . $sales->GetIdBitacora($prospect_data['id_prospect']) . ',"' . UserController::GetIDUser() . '"' . ");'><i class='fa fa-plus'></i></button>"; //OBTENEMOS LOS VALORES DE LA BITACORA ANTES DE IMPRIMIRLOS 'POR LOGICA' $result_bitacora = $sales->GetBitacora($prospect_data['id_prospect']); $action_form .= '<div class="scroller" style="height: 430px;" ' . 'data-always-visible="1" data-rail-visible1="0" data-handle-color="#D7DCE2">' . '<div class="general-item-list class_tbody_bitacora" id="bitacora_seccion">'; foreach ($result_bitacora as $kb => $vb) { $action_form .= '<div class="item class_tr_bitacora">'; $action_form .= '<div class="item-head">'; $action_form .= '<div class="item-details">'; $action_form .= '<img class="item-pic" src="../img/users/' . $vb['avatar'] . '">'; $action_form .= '<a href="" class="item-name primary-link">' . $vb['name'] . '</a>'; $action_form .= '<span class="item-label">' . FunctionsController::Get_TimeAgo($vb['date'] . " " . $vb['hour']) . '</span>'; $action_form .= '</div>'; $action_form .= '<span class="item-status">' . '<span class="badge badge-empty badge-success"></span>    Tipo: ' . $vb['title_type'] . '</span>'; $action_form .= '</div>'; $action_form .= '<div class="item-body">'; $action_form .= '<b>' . $vb['title'] . ':</b>'; $action_form .= '  ' . $vb['description']; $action_form .= '</div>'; $action_form .= '</div>'; } /* $action_form .= '<div class="item"> <div class="item-head"> <div class="item-details"> </div> </div> <div class="item-body">
if ($value['Uid'] != $id_user) { $img_data = ""; if (\SivarApi\Tools\Validation::Is_Empty_OrNull($value['Uimg'])) { $img_data = "avatar.png"; } else { $img_data = $value['Uimg']; } $print .= '<img class="timeline-badge-userpic" src="../img/users/' . $img_data . '">'; } else { $print .= '<div class="timeline-icon">'; $print .= '<i class="icon-ghost font-green-haze"></i>'; $print .= '</div>'; } $print .= '</div>'; $print .= '<div class="timeline-body">'; $time_ago = FunctionsController::Get_TimeAgo($value['date'] . " " . $value['hour']); $print .= '<div class="timeline-body-arrow"></div>'; $print .= '<div class="timeline-body-head">'; $print .= '<div class="timeline-body-head-caption">'; $print .= '<a href="#" class="timeline-body-title font-blue-madison">' . $value['Uname'] . '</a>'; $print .= '<span class="timeline-body-time font-grey-cascade">' . $time_ago . '</span>'; $print .= '</div>'; $print .= '</div>'; $print .= '<div class="timeline-body-head-actions">'; $print .= ''; $print .= '</div>'; $print .= '<div class="timeline-body-content">'; $print .= '<span class="font-grey-cascade">'; if ($value['Uid'] == $id_user) { $print .= '<b>TĂș</b> Entrastes A <b> ' . $value['Pname'] . '</b> Aproximadamente  (' . $time_ago . ')'; } else {