示例#1
0
     		</div>
     		<div class="item-body">
     		</div>
     		</div>';*/
     $action_form .= '</div></div>';
     //FIN DE LA IMPRESION
 }
 //TITULO DE LA BITACORA ...
 $action_title = "Bitacora <span class='badge' id='bitacora_counter'>{$bitacora_counter}</span>";
 //FIN DE TODAS LAS ACCIONES BITACORA
 //INICIO DEL SISTEMA AGENDA
 $title_contact = "Contactos ";
 $action_contact = '<button type="button" onclick="NewContact(' . "'" . $prospect_data['id_prospect'] . "'" . ');" class="btn blue"><i class="fa fa-plus"></i></button>';
 $body_contact .= '<br><table id="tabla_agenda" class="table table-striped  table-hover">';
 $nav = null;
 $contact = $sales->Get_ContactProspect($prospect_data['id_prospect']);
 if ($sales->Get_ContactCount() == 0) {
     $button_contact = "";
     $body_contact = '<div class="form-body">';
     $body_contact .= '<div class="alert alert-danger" role="alert">';
     $body_contact .= '<i class="fa fa-exclamation-triangle"></i>';
     $body_contact .= '<span>&nbsp&nbsp<b>NO EXISTEN CONTACTOS </b>' . '&nbsp&nbsp<img src="../img/assert/flechaderecha_naranja.png" width="50" height="20" />' . '&nbsp&nbsp&nbsp' . $action_contact . '</span>';
     $body_contact .= "</div>";
     $body_contact .= '</div>';
 } else {
     $body_contact .= '<thead><th>Nombres</th>';
     $body_contact .= '<th>Titulo</th>';
     $body_contact .= '<th>E-mail</th>';
     $body_contact .= '<th>Notas</th>';
     $body_contact .= '<th></th>';
     $body_contact .= '</tr></thead>';
示例#2
0
         echo $json->encode($contact);
     }
     unset($id);
     unset($name);
     unset($tel);
     break;
 case "add":
     $id = $_REQUEST['id'];
     $name = $_REQUEST['name'];
     $name2 = $_REQUEST['name2'];
     $title = $_REQUEST['title'];
     $mail = $_REQUEST['mail'];
     $notes = $_REQUEST['notes'];
     $result = $prospect->SetContact(array("id_prospect" => $id, "nombres" => $name, "apellidos" => $name2, "titulo" => $title, "email" => $mail, "notas" => $notes));
     if ($result) {
         $prospect->Get_ContactProspect($id);
         if ($prospect->Get_ContactCount() <= 1) {
             echo "first";
         } else {
             echo "more";
         }
     }
     unset($id);
     unset($name);
     unset($name2);
     unset($title);
     unset($mail);
     unset($notes);
     unset($result);
     break;
 case "delete":