예제 #1
0
function menuMaster()
{
    global $num_rand, $vConex;
    $html = "\n        <!DOCTYPE html>\n        <html lang='es'>\n        <head>\n            <title>Owl</title>\n            <meta charset='utf-8'>\n            <meta name='viewport' content='width=device-width, user-scalable=no, initial-scale=1.0, user-scalable=1.0, minimum-scale=1.0, maximum-scale=1.0'>\n            <meta name='description'>\n            <meta name='keywords'>\n            <meta name='author' content=''>\n            <script type='text/javascript' src='_librerias/js/global.js'></script>\n            <script type='text/javascript' src='_librerias/js/ajaxglobal.js'></script>\n            <script type='text/javascript' src='/_librerias/js/jquery-2.1.1.min.js'></script>\n            <script type='text/javascript' src='/_librerias/js/jquery-ui.min.js'></script>\n            <script type='text/javascript' src='/_librerias/js/owlchat/zilli.js'></script>\n            <script type='text/javascript' src='/_librerias/js/owlchat/AjaxZilli.js'></script>\n            <script type='text/javascript' src='/_librerias/js/popup/jquery.popup.js'></script>\n\n            <link href='./_estilos/OwlStyles.css' rel='stylesheet' type='text/css'/>\n            <link href='/_estilos/popup/popup.css' rel='stylesheet' type='text/css'/>\n        </head>\n        <body>\n            <div class='site'>\n            <div id='menu' class='mHSinSubElementosA001 tamano'>";
    $sUrlPanelesA = "PanelA[PanelA[./_vistas/carrusel.html?vista=PanelA[1000|";
    $sUrlPanelesA .= "PanelB[PanelB[./_vistas/site.php?vista=PanelB[2000|";
    $sClassA = "font-weight:bold;font-size:1em;line-height:20px;";
    $sClassB = "font-weight:lighter;font-size:0.9em;margin:2px 0px 0px 2px;";
    $sBotMatris = "<div style='{$sClassA}'  style='float: left;width: 30%;'>DEFSEI</div><div style='{$sClassB}'>Herramientas</div>]{$sUrlPanelesA}]cuerpo]RZ}";
    $sBotMatris .= "CT - CF ]./_vistas/adminTablasForms.php?vista=Felipe]cuerpo]C}";
    $sBotMatris .= "Salir]salir_master.php]cuerpo]C}";
    $sTipoAjax = "true";
    $sClase = "menuHorz001";
    $sBot = Boton001($sBotMatris, $sClase, $sTipoAjax);
    $master_access = $_SESSION["master_access"];
    $Q_U = " SELECT * FROM administradores WHERE AdminCod = {$master_access}";
    $Obj = fetchOne($Q_U, $vConex);
    $Nombres = $Obj->Nombres;
    $ApellidoPat = $Obj->ApellidoPat;
    $Usuario = $Obj->Usuario;
    $sBot .= ' <div class="menuHorz001" style="float: right;width: 30%;">
                <ul><li class="razonSocial" style="float: right;text-align: center;">
                <div style="font-weight:bold;font-size:1em;line-height:20px;">' . $Nombres . ' ' . $ApellidoPat . '</div>
                <div style="font-weight:lighter;font-size:0.9em;margin:2px 0px 0px 2px;">Usuario</div>
                </li></ul>
              </div>';
    $html = "{$html}{$sBot}</div>";
    return $html;
}
function menuEmpresaSite($url)
{
    global $cnOwl;
    $sql = 'SELECT U.Usuario,U.IdUsuario,U.UrlId,U.Carpeta,U.Perfil,U.Estado
	,E.RazonSocial, E.Logo,T.Archivo
	FROM ((usuarios AS U
	LEFT JOIN empresa E ON E.PaginaWeb = U.IdUsuario)
	LEFT JOIN temasgraf T ON E.IdTemaGraf = T.IdTemasGraf)
	WHERE  UrlId = "' . $url . '" ';
    $rg = rGT($cnOwl, $sql);
    $tUrlId = $rg["UrlId"];
    $tRazonSocial = $rg["RazonSocial"];
    $tLogo = $rg["Logo"];
    $tIdUsuario = $rg["IdUsuario"];
    $tCarpeta = $rg["Carpeta"];
    $color = $rg["Archivo"];
    $tUrlLogo = "http://old1.owlgroup.org/ArchivosEmpresa/" . $tCarpeta . "/" . $tLogo . "";
    $html = '<!DOCTYPE html> ';
    $html = $html . '<html lang="es">';
    $html = $html . '<head>';
    $html = $html . '<title>Owl</title>';
    $html = $html . ' <meta charset="utf-8">';
    $html = $html . ' <meta name="viewport" content="width=device-width, initial-scale=1.0">';
    $html = $html . '<meta name="description" content="">';
    $html = $html . '<meta name="keywords" content="">';
    $html = $html . ' <meta name="author" content="">';
    $html = $html . '<script type="text/javascript" src="../_librerias/js/global.js"></script>';
    $html = $html . '<script type="text/javascript" src="../_librerias/js/ajaxglobal.js"></script>';
    $html = $html . '<link href="/_estilos/estiloCuadro.css" rel="stylesheet" type="text/css" />';
    $html = $html . '</head>';
    $html = $html . '<body>';
    $html = $html . '<style type="text/css">';
    $html = $html . '.mHSinSubElementosA001.tamano{background-color:' . $color . ' !important;}';
    $html = $html . '.CuadroA2 button{background-color:' . $color . ' !important;}';
    $html = $html . '</style>';
    $html = $html . '<div class="site">';
    $html = $html . '<div id="menu" class="mHSinSubElementosA001 tamano">';
    $sClassA = "font-weight:bold;font-size:2.2em;line-height:40px;float:left";
    $sClassB = "margin:8px 20px 0px 50px;color:#e7e7e7;float:left;width:130px;line-height:20px;";
    $sUrlPanelesA = "PanelA[PanelA[../_vistas/se_publicidad.php?empresa=" . $tIdUsuario . "[1000|";
    $sUrlPanelesA = $sUrlPanelesA . "PanelB[PanelB[../_vistas/se_login_inscripcion.php?muestra=Login&empresa=" . $tIdUsuario . "[2000|";
    $sUrlPanelesA = $sUrlPanelesA . "PanelD[PanelD[../_vistas/se_productos.php?empresa=" . $tIdUsuario . "&panel=PanelD[4000[true|";
    $sUrlPanelesB = "PanelA[PanelA[../_vistas/se_productos.php?vista=PanelA&empresa=" . $tIdUsuario . "&panel=PanelA[1000|";
    $sUrlPanelesB = $sUrlPanelesB . "PanelB[PanelB[../_vistas/se_login_inscripcion.php?muestra=Login&empresa=" . $tIdUsuario . "[2000|";
    $sUrlPanelesC = "PanelA[PanelA[../_vistas/se_somos.php?vista=PanelA&empresa=" . $tIdUsuario . "[1000|";
    $sUrlPanelesC = $sUrlPanelesC . "PanelB[PanelB[../_vistas/se_login_inscripcion.php?muestra=Registro&empresa=" . $tIdUsuario . "[2000|";
    $sUrlPanelesD = "PanelA[PanelA[../_vistas/se_noticias.php?vista=PanelA&empresa=" . $tIdUsuario . "[1000|";
    $sUrlPanelesD = $sUrlPanelesD . "PanelB[PanelB[../_vistas/se_login_inscripcion.php?muestra=Registro&empresa=" . $tIdUsuario . "[2000|";
    if ($tLogo != "") {
        $sBotoL = "\n\t<div style='" . $sClassA . "'><img src='" . $tUrlLogo . "'></div>\n\t<div style='" . $sClassB . "'>\n\t<div class='tituloA2' >PLATAFORMA </div>\n\t<div class='lineaRZ' ></div>\n\t<div class='sub_tituloA2'>EDUCATIVA</div>\n\t</div>";
        $sBotMatris = "" . $sBotoL . "]" . $sUrlPanelesA . "]cuerpo]RZ}";
    } else {
        $sBotMatris = "<div style='" . $sClassA . "'>" . $tRazonSocial . "</div><div style='" . $sClassB . "'>HERRAMIENTAS</div>]" . $sUrlPanelesA . "]cuerpo]RZ}";
    }
    $BntProductos = "<div style='padding:0px 0px 0px 10px;'><div class='icon_mn_Productos'></div><div>Cursos</div></div>";
    $Somos = "<div style='padding:0px 0px 0px 10px;'><div class='icon_mn_somos'></div><div>Somos</div></div>";
    $Noticias = "<div style='padding:0px 0px 0px 10px;'><div class='icon_mn_noticias'></div><div>Noticias</div></div>";
    $Registrate = "<div style='padding:0px 0px 0px 10px;'><div class='icon_mn_registrate'></div><div>Registrate</div></div>";
    $Login = "******";
    $sBotMatris = $sBotMatris . "" . $BntProductos . "]" . $sUrlPanelesB . "]cuerpo]C}";
    $sBotMatris = $sBotMatris . "" . $Somos . "]" . $sUrlPanelesC . "]cuerpo]C}";
    $sBotMatris = $sBotMatris . "" . $Noticias . "]" . $sUrlPanelesD . "]cuerpo]C}";
    $sBotMatris = $sBotMatris . "" . $Registrate . "]../_vistas/se_login_inscripcion.php?muestra=Registro&empresa=" . $tIdUsuario . "]PanelB]C}";
    $sBotMatris = $sBotMatris . "" . $Login . "]../_vistas/se_login_inscripcion.php?muestra=Login&empresa=" . $tIdUsuario . "]PanelB]C}";
    $sTipoAjax = "true";
    $sClase = "menuHorz001";
    $sBot = Boton001($sBotMatris, $sClase, $sTipoAjax);
    $html = $html . $sBot . ' </div>';
    return $html;
}
function menuMaster($UsuarioAdmin)
{
    $html = '<!DOCTYPE html> ';
    $html = $html . '<html lang="es">';
    $html = $html . '<head>';
    $html = $html . '<title>Owl</title>';
    $html = $html . ' <meta charset="utf-8">';
    $html = $html . ' <meta name="viewport" content="width=device-width, initial-scale=1.0">';
    $html = $html . '<meta name="description" content="">';
    $html = $html . '<meta name="keywords" content="">';
    $html = $html . ' <meta name="author" content="">';
    $html = $html . '<script type="text/javascript" src="_librerias/js/global.js"></script>';
    $html = $html . '<script type="text/javascript" src="_librerias/js/ajaxglobal.js"></script>';
    $html = $html . '<link href="./_estilos/master.css" rel="stylesheet" type="text/css" />';
    $html = $html . '</head>';
    $html = $html . '<body>';
    $html = $html . '<div class="site" id="site">';
    $html = $html . '<div id="menu" class="MenuGeneral">';
    $html = $html . '<div   class="MenuGeneralCentral" >';
    $sClassA = "font-weight:400;font-size:1.4em;";
    $sClassB = "font-weight:lighter;font-size:0.9em;margin:0px;";
    $sUrlPanelesA = "PanelA[PanelA[./_vistas/carrusel.html?vista=PanelA[1000|";
    $sUrlPanelesA = $sUrlPanelesA . "PanelB[PanelB[./_vistas/site.php?vista=PanelB[2000|";
    $sBotMatris = "<div style='" . $sClassA . ";color:#10CBF6;' >Defsei</div><div style='" . $sClassB . "'>HERRAMIENTAS</div>]" . $sUrlPanelesA . "]cuerpo]RZ}";
    if (!empty($UsuarioAdmin)) {
        // $sBotMatris = $sBotMatris."Gestión]./_vistas/sys_gestion.php?vista=Felipe]cuerpo]C}";
        // $sBotMatris = $sBotMatris."H Inicio]./_vistas/adminTablasForms.php?site=yes]cuerpo]C}";
        $sBotMatris = $sBotMatris . "Gestión Objetos]./_vistas/adminTablasFormsNew.php?site=yes]cuerpo]C}";
        $sBotMatris = $sBotMatris . "Salir]./master.php?CierraSesion=Yess]site]C}";
    }
    $sBotMatris = $sBotMatris . "Ayuda]./_vistas/adminTablasForms.php?site=yes]cuerpo]C}";
    $sTipoAjax = "true";
    $sClase = "menuHorz001";
    $sBot = Boton001($sBotMatris, $sClase, $sTipoAjax);
    $html = $html . $sBot . ' </div>';
    $html = $html . ' </div>';
    return $html;
}