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 */ //INCLUIMOS LIBRERIA PRINCIPAL DONDE SE CARGAN TODAS LAS DEMAS LIBRERIAS O SCRIPTS include '../../../Conf/Include.php'; //INICIA UNA NUEVA SESION...CLASE DEL CORE Tools/Session Session::InitSession(); Session::InsertSession("page_name", "Inbox"); Session::InsertSession("home", "Inbox"); Session::InsertSession("title", "<b>Inbox</b>"); //CARGARA LOS SCRIPTS NECESARIOS EN EL HEADER //<link href="../../assets/global/plugins/pace/themes/lieison-loading.css" rel="stylesheet" type="text/css"/> $header = '' . '<script src="../../assets/global/plugins/pace/pace.min.js" type="text/javascript"></script>' . '<link href="../../assets/admin/pages/css/blog.css" rel="stylesheet" type="text/css"/>' . '<link href="../css/loading-lieison-cms.css" rel="stylesheet" type="text/css"/>' . ''; //CARGARA EL BODY $body = "<?php include 'views/inbox.php' ?>"; //CARGARA EL FOOTER O LOS SCRIPTS JS $footer = ""; //CUIDADO SOLO CARGA LOS INITS DE JS ejemplo Load(); $end_footer = ""; //PREPARANDO LA VISTA ... ViewClass::PrepareView("View.phtml", "Admin"); //LLAMANDO LA VISTA ViewClass::SetView(ViewClass::SetParamsString($body, $header, $end_footer, $footer));
$body_contact .= "" . '<button type="button" onclick="EditContact(' . "'" . $val_id . "'" . ');" class="btn btn-primary"><i class="fa fa-pencil"></i></button>' . ""; $body_contact .= "" . '<button type="button" onclick="DeleteContact(' . "'" . $c_v['id_prospect_contact'] . "'" . ');" class="btn red"><i class="fa fa-trash-o"></i></button>' . "</td>"; $body_contact .= '</tr>'; } $body_contact .= "</tbody>"; } $nav = null; //ahorita la navegacion estara desactivada $body_contact .= '</table><div class="form-actions">' . $nav ?: "" . '</div>'; //FIN SISTEMA DE AGENDA //SCRIPT FORM //SE LE AGREGAR EL SISTEMA PARA VERIFICAR SI SE AGREGARON MAS NOTIFICACIONES // $script_title .= " <script>setInterval('notify_bitacora($id_p)', 10000);</script>"; //este arreglo agrega todos los patrones a sustituir dentro del view "ViewAdmin.phtml.bak" $patterns = array("%{script_form}%" => $script_title, "%{title_dir_prospecto}%" => $title_dir, "%{action_button}%" => $action_button, "%{dir_prospecto}%" => $prospect_body_dir, "%{title_info}%" => $title_info, "%{prospect_info}%" => $prospect_info, "%{social_title}%" => $social_title, "%{social_info}%" => $social_info, "%{notes_title}%" => $notes_title, "%{notes_info}%" => $notes_info, "%{title_action_form}%" => $action_title, "%{action_form}%" => $action_form, "%{action_form_button}%" => $action_form_button, "%{title_contact}%" => $title_contact, "%{body_contact}%" => $body_contact, "%{actions_contact}%" => $action_contact); ViewClass::PrepareView("ViewAdmin.phtml", "Admin/Sales"); $params = ViewClass::SetPatternString($patterns); ViewClass::SetView($params); } else { //CARGA TODOS LOS PROSPECTOS EN EL PRINCIPAL $inactivos = trim($_REQUEST['inactivo']); $terminados = trim($_REQUEST['terminados']); if ($inactivos == "false") { $inactivos = false; } else { $inactivos = true; } if ($terminados == "false") { $terminados = false; } else { $terminados = true;