Example #1
0
 $social_info .= "</div>";
 //FIN DE LAS REDES SOCIALES
 //INICIO DE NOTAS
 $notes_title = "Notas";
 $notes_info = '<div id="id_notes" class="form-body">';
 $notes_info .= $prospect_data['notas'] ?: "<b>No Existen notas</b>";
 $notes_info .= '</div>';
 $notes_info .= '<div class="form-actions"><div class="row">';
 $notes_info .= '<div id="id_notes_actions" class="col-md-offset-4 col-md-8">';
 $notes_info .= '<button type="button" onclick="ProspectEditNotes(' . $prospect_data['id_prospect'] . ');" class="btn blue">Agregar Notas </button>';
 $notes_info .= '</div></div>';
 $notes_info .= '</div>';
 //FIN DE NOTAS
 //INICIANDO EL FORMULARIO DE TODAS LAS ACCIONES BITACORA
 //OBTENEMOS LOS TIPOS DE DE DATOS QUE SE MANEJAN EN LA BITACORA
 $meta_bitacora_type = $sales->GetTypeOfBitacora();
 //CODIFICAMOS LOS TIPOS A JSON
 $json_encode = new \SivarApi\Tools\Services_JSON();
 $meta_type_json = $json_encode->encode($meta_bitacora_type);
 //LO ENVIAMOS A UN INPUT DE TIPO HIDDEN PARA LUEGO MANIPULARLO DENTRO DEL SCRIPT AjaxAdminSales.js
 $action_form = "<input type='hidden' id='BitacoraTypes' value='" . $meta_type_json . "' />";
 //CONTADOR DE LA BITACORA ¿CUANTOS LOGS EXISTEN?
 $bitacora_counter = $sales->GetBitacorLogCount($prospect_data['id_prospect']);
 //VERIFICAMOS SI EXISTEN O NO LOGS
 if ($bitacora_counter == 0) {
     $action_form .= '<div class="form-body">';
     $action_form .= '<div class="alert alert-danger" role="alert">';
     $action_form .= '<i class="fa fa-exclamation-triangle"></i>';
     $action_form .= '<span>&nbsp&nbsp<b>NO SE HA INICIADO LA BITACORA</b>' . '&nbsp&nbsp<img src="../img/assert/flechaderecha_naranja.png" width="50" height="20" />' . '&nbsp&nbsp&nbsp<b>INICIE EL PROCESO</b> </span>';
     $action_form .= "</div>";
     $action_form .= '</div>';