THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * *@version 1.0 *@todo Lieison S.A de C.V */ session_start(); include '../../../Conf/Include.php'; set_dependencies(array("ProspectController", "AdminController", "UserController")); $sales = new ProspectController(); //constructor nuevo sales en el controlador //CAMBIAR PROCESO DEL PROSPECTO if (isset($_REQUEST['meta_estado'])) { $id_p = $_REQUEST['id_prospect']; $print_status = '<div id="meta_estado"><i class="fa fa-building-o"></i>   <b>Arranque Del Prospecto:</b>'; if ($sales->Set_MetaStatus($_REQUEST['meta_estado'] + 1, $id_p) == true) { switch ($_REQUEST['meta_estado']) { case 0: $id_bitacora = $sales->GetIdBitacora($id_p); $id_type = 0; $id_user = UserController::GetIDUser(); $title = "Inicio del proceso"; $description = "Este prospecto ha iniciado el proceso de verificacion"; $sales->InsertBitacora($id_bitacora, $id_user, $id_type, $title, $description); $print_status .= " En Proceso    " . " <input class='btn green' type='button' onclick='ProspectInitProcess(1 ,{$id_p});' " . "value='Terminar Proceso' id='cmdmeta_estado' /> <a class='btn btn-primary' href='" . FunctionsController::GetUrl("sales/") . "dashboard_admin_prospecto.php?id={$id_p}" . "'>" . "<i class='fa fa-refresh'></i></a>";
*@copyright (c) 2015, Lieison * * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * *@version 1.0 *@todo Lieison S.A de C.V * * * */ include '../../../Conf/Include.php'; set_dependencies(array("ProspectController", "AdminController")); $prospecto = new ProspectController(); $arrayp = array("nombre" => $_REQUEST['nombre'], "direccion" => $_REQUEST['direccion1'], "direccion2" => $_REQUEST['direccion2'], "provincia" => $_REQUEST['provincia'], "ciudad" => $_REQUEST['ciudad'], "id_pais" => $_REQUEST['pais'], "zip" => $_REQUEST['zip'], "telefono" => $_REQUEST['telefono'], "fax" => $_REQUEST['fax'], "pagina_web" => $_REQUEST['web'], "email" => $_REQUEST['mail'], "facebook" => $_REQUEST['facebook'], "twitter" => $_REQUEST['twitter'], "notas" => $_REQUEST['notas'], "fecha" => FunctionsController::get_date(), "estado" => 1); echo $prospecto->Add_Prospect($arrayp);
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * *@version 1.0 *@todo Lieison S.A de C.V * * * */ include '../../../Conf/Include.php'; set_dependencies(array("ProspectController", "AdminController")); if (!isset($_REQUEST['type'])) { exit; } $prospect = new ProspectController(); $type = $_REQUEST['type']; switch ($type) { case "add_contact": $id = $_REQUEST['id']; $name = $_REQUEST['name']; $tel = $_REQUEST['tel']; $result = $prospect->SetContactPhone($id, $name, $tel); if ($result) { $contact = $prospect->Get_PhonesContact($id); $json = new \SivarApi\Tools\Services_JSON(); echo $json->encode($contact); } unset($id); unset($name); unset($tel);
* * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * *@version 1.0 *@todo Lieison S.A de C.V */ include '../../../Conf/Include.php'; set_dependencies(array("ProspectController", "AdminController")); if (!isset($_REQUEST['nombre'])) { exit; } $prospecto = new ProspectController(); $resultado = $prospecto->Find_Prospect($_REQUEST['nombre']); unset($prospecto); echo $resultado[0]['contador'];
in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * *@version 1.0 *@todo Lieison S.A de C.V */ include '../../../Conf/Include.php'; set_dependencies(array("ProspectController", "AdminController")); $header = new Http\Header(); if (!isset($_POST['cmd_enviar'])) { $header->redirect("index.php"); exit; } $values = array("nombre" => $_POST['txt_nombre'], "direccion" => $_POST['txt_direccion1'], "direccion2" => $_POST['txt_direccion2'], "provincia" => $_POST['txt_provincia'], "ciudad" => $_POST['txt_ciudad'], "id_pais" => $_POST['combo_pais'], "zip" => $_POST['txt_zip'], "telefono" => $_POST['txt_telefono'], "fax" => $_POST['txt_fax'], "pagina_web" => $_POST['txt_web'], "email" => $_POST['txt_email'], "facebook" => $_POST['txt_facebook'], "twitter" => $_POST['txt_twitter'], "notas" => $_POST['txt_notas']); $id = $_POST['cmd_enviar']; $prospect = new ProspectController(); $prospect->EditProspect($id, $values); $header->redirect("dashboard_admin_prospecto.php?id={$id}");
<?php if (!isset($_REQUEST['id'])) { $header = new \Http\Header(); $header->redirect("index.php"); exit; } $prospect = new ProspectController(); $result = $prospect->Get_Prospect_ById($_REQUEST['id']); /*echo "<pre>"; print_r($result); echo "</pre>";*/ ?> <div class="page-bar"><div class="col-md-12 "> <div class="portlet box blue"> <div class="portlet-title"> <div class="caption"> <i class="fa fa-user"></i> <?php echo $result['nombre']; ?> </div> <div class="tools"> <a href="" class="collapse"> </a> </div> </div> <div class="portlet-body form"> <form class="form-horizontal" role="form" action="get_edit_prospect.php" method="post"> <div class="form-body"> <div class="form-group"> <label class="col-md-3 control-label">Nombre del Prospecto *</label>
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * *@version 1.0 *@todo Lieison S.A de C.V */ include '../../../Conf/Include.php'; set_dependencies(array("ProspectController", "AdminController")); $id = $_REQUEST['id'] ?: null; if ($id == null) { exit; } //COMENZAREMOS A INTEGRAR EL PROSPECTO A CLIENTE $propect = new ProspectController(); $result = $propect->CreateClient($id); if ($result) { echo "true"; } //FINALIZAMOS LO QUE ES EL TRAPASO DE PROSPECTO A CLIENTE
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * *@version 1.0 *@todo Lieison S.A de C.V * * * */ include '../../../Conf/Include.php'; set_dependencies(array("ProspectController", "AdminController")); $prospect = new ProspectController(); $result = $prospect->GetEntrance(); $print = ""; session_start(); $id_user = $_SESSION['login']['id']; foreach ($result as $key => $value) { $print .= '<div class="timeline-item">'; $print .= '<div class="timeline-badge">'; 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 . '">';
in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * *@version 1.0 *@todo Lieison S.A de C.V */ include '../../../Conf/Include.php'; set_dependencies(array("ProspectController", "AdminController")); $sales = new ProspectController(); //constructor nuevo sales en el controlador if (isset($_REQUEST['new_notes'])) { $html = $_REQUEST['new_notes']; $id_p = $_REQUEST['id_prospect']; echo $sales->Set_NewNotes($html, $id_p); unset($html); unset($id_p); exit; }
/** * "id_bitacora" : id_bitacora, "id_user": id_user, "id_type": $("#Btype").val(), "title": $("#Btitle").val(), "description": $("#Bdescription").val() * * funcion javascript donde lo llama * InsertBitacora(id_bitacora , id_user); */ include '../../../Conf/Include.php'; set_dependencies(array("ProspectController", "AdminController")); if (!isset($_REQUEST['id_bitacora'])) { exit; } $sales = new ProspectController(); $date = FunctionsController::get_date(); $time = FunctionsController::get_time(); $id_bitacora = $_REQUEST['id_bitacora']; $id_user = $_REQUEST['id_user']; $id_type = $_REQUEST['id_type']; $title = $_REQUEST['title']; $description = $_REQUEST['description']; $is_insert = $sales->InsertBitacora($id_bitacora, $id_user, $id_type, $title, $description, $date, $time); if ($is_insert) { $id_prospect = $sales->GetPropspectoByBitacora($id_bitacora); $result_bitacora = $sales->GetBitacora($id_prospect, $time); 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">';
foreach ($paises as $key => $value) { $id = $value['id']; $nombre = $value['nombre']; if ($id == 68 && $exist_country == FALSE) { $values .= "<option selected value='{$id}'>{$nombre}</option>"; } elseif ($exist_country == true && $id == $_REQUEST['country']) { $values .= "<option selected value='{$id}'>{$nombre}</option>"; } else { $values .= "<option value='{$id}'>{$nombre}</option>"; } } $values .= "</select>"; unset($paises); echo $values; } else { $prospect = new ProspectController(); $data = $prospect->Get_Prospect_ById($_REQUEST['id']); $id_pais = $data['id_pais']; $paises = FunctionsController::get_paises(); $values = '<select id="combo_pais" name="combo_pais" class="form-control">'; foreach ($paises as $key => $value) { $id = $value['id']; $nombre = $value['nombre']; if ($id == $id_pais && $exist_country == FALSE) { $values .= "<option selected value='{$id}'>{$nombre}</option>"; } elseif ($exist_country == true && $id == $_REQUEST['country']) { $values .= "<option selected value='{$id}'>{$nombre}</option>"; } else { $values .= "<option value='{$id}'>{$nombre}</option>"; } }