Ejemplo n.º 1
0
   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", "Apps");
Session::InsertSession("home", "");
Session::InsertSession("title", "<b>Aplicaciones</b>");
//PREPARANDO LA VISTA ...
ViewClass::PrepareView("View.phtml", "Admin");
//CARGAMOS LA VISTA DEL PLUGINS
$loader = "<?php ?>";
//functions
$js = "<script src='' type='text/javascript' ></script>";
//CSS
$css = '<link href="../../assets/global/plugins/jquery-file-upload/blueimp-gallery/blueimp-gallery.min.css" rel="stylesheet"/>
            <link href="../../assets/global/plugins/jquery-file-upload/css/jquery.fileupload.css" rel="stylesheet"/>
            <link href="../../assets/global/plugins/jquery-file-upload/css/jquery.fileupload-ui.css" rel="stylesheet"/>';
//LLAMANDO LA VISTA
ViewClass::SetView(ViewClass::SetParamsString($loader, $js . $css, "", ""));
Ejemplo n.º 2
0
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));
Ejemplo n.º 3
0
                fjs.parentNode.insertBefore(js, fjs);
        }(document, "script", "facebook-jssdk"));</script>';
$footer = '   var get_paises = function()
   {
        $.ajax({
                      type: "POST",
                      url: "get_paises.php",
                      beforeSend: function()
                      {
                          $("#drown_pais").html("<p>Cargando datos ...</p>");
                      },
                      success: function(value){
                          document.getElementById("drown_pais").innerHTML = value;
                      },
                      error: function()
                      {
                          $("#combo_pais").html("Error al cargar");
                      }
                      
              });
   }
   
   get_paises();';
$footer_end = '<script src="https://maps.googleapis.com/maps/api/js?v=3.exp&signed_in=true&libraries=places"></script>';
$footer_end .= '<script src="AjaxAddSales.js"></script>';
$rol = $_SESSION['login']['rol'];
$adminc = new AdminController();
$adminc->Get_Permission($rol, FunctionsController::get_actual_page());
ViewClass::PrepareView("View.phtml", "Admin");
ViewClass::SetView(ViewClass::SetParamsString("<?php include 'ViewAddProspecto.php'; ?>", $header, $footer, $footer_end));