Example #1
0
function Novedades()
{
    ?>
    <div class="container">
        <div class="fish-info-section">
            <div class="fish-info-left">
                <img src="<?php 
    $em = new CL_EMPRESA();
    $em->GET_IMAGENES();
    $nov = explode('/', $em->strNovedades);
    echo $nov[0] . '/' . $nov[1] . '/no_' . $nov[2];
    ?>
" alt="" />
            </div>
            <div class="fish-info-middle">
                <h4>Novedades</h4>
            </div>
            <div class="fish-info-right">
                <h3>Novedades</h3>
                <p><?php 
    echo $GLOBALS['Empresa']->strTextoNovedades;
    ?>
</p>
            </div>
            <div class="clearfix"></div>
        </div>
    </div>
    <?php 
}
Example #2
0
<?php

include './CLASES/CL_EMPRESA.php';
$Empresa = new CL_EMPRESA();
$Empresa->GetInfo();
$empr = new CL_EMPRESA();
$empr->GET_IMAGENES();
session_start();
function head()
{
    ?>
    <!DOCTYPE html>
    <html>
        <head>
            <meta charset="UTF-8">
            <title>Admin De Guate Artesanias  | Dashboard</title>
            <meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
            <!-- Bootstrap 3.3.4 -->
            <link href="./Administrador/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css" />    
            <!-- FontAwesome 4.3.0 -->
            <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
            <!-- Ionicons 2.0.0 -->
            <link href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css" rel="stylesheet" type="text/css" />    
            <!-- Theme style -->
            <link href="./Administrador/dist/css/AdminLTE.min.css" rel="stylesheet" type="text/css" />
            <!-- AdminLTE Skins. Choose a skin from the css/skins 
                 folder instead of downloading all of them to reduce the load. -->
            <link href="./Administrador/dist/css/skins/_all-skins.min.css" rel="stylesheet" type="text/css" />
            <!-- iCheck -->
            <link href="./Administrador/plugins/iCheck/flat/blue.css" rel="stylesheet" type="text/css" />
            <!-- Morris chart -->
Example #3
0
     $correo = $_POST['correo'];
     $nov = $_POST['novedades'];
     $empr = new CL_EMPRESA();
     $empr->CambiarCorreo($correo);
     $empr->CambiarDescripcion($descripcion);
     $empr->CambiarDireccion($dir);
     $empr->CambiarMision($mision);
     $empr->CambiarSlogan($slogan);
     $empr->CambiarNombre($nombre);
     $empr->CambiarTelefono((int) $telefono);
     $empr->CambiarVision($vision);
     $empr->CambiarNovedades($nov);
     header("Location:http://localhost:8000/InfoGeneralAdmin.php?act=2");
     break;
 case 2:
     $empr = new CL_EMPRESA();
     if (isset($_POST['Novedades'])) {
         $Imagen = $_POST['Imagen'];
         $empr->CambiarImagen('NOVEDADES', $Imagen[0]);
         header("Location:http://localhost:8000/InfoGeneralAdmin.php?act=1");
     } elseif (isset($_POST['Portada'])) {
         $Imagen = $_POST['Imagen'];
         $empr->CambiarImagen('PORTADA1', $Imagen[0]);
         $empr->CambiarImagen('PORTADA2', $Imagen[1]);
         $empr->CambiarImagen('PORTADA3', $Imagen[2]);
         header("Location:http://localhost:8000/InfoGeneralAdmin.php?act=1");
     } elseif (isset($_POST['Logo'])) {
         $Imagen = $_POST['Imagen'];
         $empr->CambiarImagen('LOGO', $Imagen[0]);
         header("Location:http://localhost:8000/InfoGeneralAdmin.php?act=1");
     }
Example #4
0
function head()
{
    ?>
    <!--
    Author: W3layouts
    Author URL: http://w3layouts.com
    License: Creative Commons Attribution 3.0 Unported
    License URL: http://creativecommons.org/licenses/by/3.0/
    -->
    <!DOCTYPE html>
    <html>
        <head>
            <title><?php 
    echo $GLOBALS['Empresa']->strNombre;
    ?>
| Home :: w3layouts</title>
            <link href="css/bootstrap.css" rel='stylesheet' type='text/css' />
            <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
            <script src="js/jquery.min.js"></script>
            <!-- Custom Theme files -->
            <link href="css/style.css" rel="stylesheet" type="text/css" media="all" />
            <!-- Custom Theme files -->
            <meta name="viewport" content="width=device-width, initial-scale=1">
            <script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>
            <!-- Custom Theme files -->
            <link rel="stylesheet" href="css/touchTouch.css" type="text/css" media="all" />
            <!--webfont-->
            <link href='http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800' rel='stylesheet' type='text/css'>
            <link href='http://fonts.googleapis.com/css?family=Playfair+Display+SC:400,900,700italic,700,400italic,900italic' rel='stylesheet' type='text/css'>
            <script src="js/responsiveslides.min.js"></script>
            <script>
                $(function () {
                    $("#slider").responsiveSlides({
                        auto: true,
                        nav: true,
                        speed: 500,
                        namespace: "callbacks",
                        pager: true,
                    });
                });
            </script>
            <script src="js/touchTouch.jquery.js"></script>    
            <script src="js/jquery.ui.totop.js"></script>
            <script>
                $(document).ready(function () {
                    $().UItoTop({easingType: 'easeOutQuart'});
                });

                $(function () {

                    // Initialize the gallery
                    $('.works a.gal').touchTouch();
                });
            </script>
        </head>
        <body>
            <!-- header-starts -->
            <div class="header">
                <div class="col-md-4 header-left">
                    <div class="social-icons">
                        <?php 
    $em = new CL_REDSOCIAL();
    $redes = $em->ObtenerRedSocial();
    for ($index = 0; $index < count($redes); $index++) {
        if ($redes[$index]->strNombre === 'facebook') {
            ?>
                                <a href="<?php 
            echo $redes[$index]->strUrl;
            ?>
"><i class="facebook"></i></a>
                                <?php 
        } else {
            if ($redes[$index]->strNombre === 'twiter') {
                ?>
                                <a href = "<?php 
                echo $redes[$index]->strUrl;
                ?>
"><i class = "twitter"></i></a>
                                <?php 
            } else {
                if ($redes[$index]->strNombre === 'google') {
                    ?>
                                <a href="<?php 
                    echo $redes[$index]->strUrl;
                    ?>
"><i class="google-pluse"></i></a>
                                <?php 
                } else {
                    ?>
                                <a href="<?php 
                    echo $redes[$index]->strUrl;
                    ?>
"><i class="social-icons"></i></a>
                                <?php 
                }
            }
        }
        ?>


                        <?php 
    }
    ?>
                    </div>
                    <div class="logo">
                        <a href="index.php"><span><?php 
    print $GLOBALS['Empresa']->strSlogan;
    ?>
</span>
                            <h1><?php 
    print $GLOBALS['Empresa']->strNombre;
    ?>
</h1></a>
                    </div>
                    <div class="top-menu">
                        <ul>
                            <li><a class="active" href="index.php">Home</a></li>
                            <li><a href="AcercaDe.php">Acerca De</a></li>
                            <li><a href="Productos.php">Productos</a></li>
                            <li><a href="Marcas.php">Marcas</a></li>
                            <li><a href="Contacto.php">Contacto</a></li>
                            <li><a href="Tiendas.php">Tiendas</a></li>
                        </ul>
                    </div>
                </div>
                <div class="col-md-8 header-right">
                    <div class="slider">
                        <div class="callbacks_container">
                            <ul class="rslides" id="slider">
                                <?php 
    $emp = new CL_EMPRESA();
    $emp->GET_IMAGENES();
    $GLOBALS['Empresa']->arrPortada = $emp->arrPortada;
    $GLOBALS['Empresa']->strLogo = $emp->strLogo;
    $GLOBALS['Empresa']->strNovedades = $emp->strNovedades;
    for ($index = 0; $index < count($emp->arrPortada); $index++) {
        ?>
                                <li><img src="<?php 
        $por = explode('/', $emp->arrPortada[$index]);
        echo $por[0] . '/' . $por[1] . '/p_' . $por[2];
        ?>
" class="img-responsive" alt=""style="width:800; height:600;"/></li>
                                <?php 
    }
    ?>
                            </ul>
                        </div>
                    </div>
                </div>
                <div class="clearfix"></div>
            </div>
            <!-- header-ends -->
            <?php 
}