Esempio n. 1
0
 } else {
     $prospect_body_dir .= '<div class="form-body"><i class="fa fa-map-marker"></i><b>Direccion: </b>' . $prospect_data['direccion'] . '</div>';
 }
 if (SivarApi\Tools\Validation::Is_Empty_OrNull($prospect_data['direccion'])) {
     $prospect_body_dir .= '<div class="form-body"><i class="fa fa-map-marker"></i> <b>Direccion 2: </b> Sin Direccion </div>';
 } else {
     $prospect_body_dir .= '<div class="form-body"><i class="fa fa-map-marker"></i> <b>Direccion 2: </b>' . $prospect_data['direccion2'] . '</div>';
 }
 $title_dir = "Direccion ";
 $action_button = '';
 $pais = $sales->Get_Country($prospect_data['id_pais']);
 //obtiene el pais
 $prospect_body_dir .= '<div class="form-body"><i class="fa fa-globe"></i> <b>Provincia : </b>' . $prospect_data['provincia'] . '<b>&nbsp&nbsp&nbsp&nbsp  <i class="fa fa-globe"></i> Ciudad: </b>' . $prospect_data['ciudad'] . '<b>&nbsp&nbsp&nbsp&nbsp  <i class="fa fa-globe"></i> Pais: </b>' . $pais . '</div>';
 //agrega los datos de la direccion
 //perfil o progreso del prospecto completado
 $propect_progress = $sales->Get_ProspectProgress($prospect_data['id_prospect']);
 $complete_profile = "(Perfil Completado:  " . $propect_progress . "%)";
 if ($propect_progress >= 100) {
     $complete_profile = "";
 }
 //si esta al 100% el progreso desaparece
 //cambia el titulo del dashboard por el nombre del prospecto , agrega el perfil completado
 $action_edit = "";
 if ($prospect_data['meta_estado'] <= 1) {
     $action_edit = '<a class="btn blue"  href="' . FunctionsController::GetUrl('sales/dashboard_edit_prospecto.php?id=' . $prospect_data['id_prospect']) . '"' . '><i class="fa fa-pencil"></i></a>';
 }
 $script_title = "<script>\$('#id_title').html('<p><b>" . strtoupper($prospect_data['nombre']) . "</b>" . "&nbsp&nbsp " . $action_edit . " <small>" . $complete_profile . "</small>" . "</p>');</script>";
 /*INICIO DE LA INFORMACION DEL PROSPECTO */
 $title_info = "Informacion Del Prospecto";
 $prospect_info = '<div class="form-body">';
 $prospect_info .= '<i class="fa fa-building-o"></i>&nbsp&nbsp <b>Nombre:</b> ' . $prospect_data['nombre'] . '<br><br>';