function RedesSociales() { $rs = new CL_REDSOCIAL(); $redes = $rs->ObtenerRedSocial(); ?> <div class="box box-danger"> <div class="box-header with-border"> <h3 class="box-title">Eliminar Redes Sociales</h3> <div class="box-tools pull-right"> <button class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button> <button class="btn btn-box-tool" data-widget="remove"><i class="fa fa-times"></i></button> </div> </div><!-- /.box-header --> <?php for ($index = 0; $index < count($redes); $index++) { ?> <ul class="users-list clearfix"> <li> <form action="./INCLUDES/Redes.php?act=2" method="POST"> <div class="box-body no-padding"> <div class="col-md-3 col-sm-6 col-xs-12"> <div class="info-box"> <span class="info-box-icon bg-red"><i class="fa fa-google-plus"></i></span> <div class="info-box-content"> <span class="info-box-text"></span> <span class="info-box-number"><?php echo $redes[$index]->strNombre; ?> </span> <input type="hidden" name="id" value="<?php echo $redes[$index]->intId; ?> "> <input type="submit" value="Eliminar" id="register-submit" class="btn btn-danger"> </div><!-- /.info-box-content --> </div><!-- /.info-box --> </div><!-- /.col --> </div><!-- /.box-body --> </form> </li> <?php if ($index > 0 && ($index + 1) % 4 == 0) { ?> </ul> <?php } } ?> </div><!--/.box --> <div class="box box-danger"> <div class="box-header with-border"> <h3 class="box-title">Crear Red Social</h3> <div class="box-tools pull-right"> <button class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button> <button class="btn btn-box-tool" data-widget="remove"><i class="fa fa-times"></i></button> </div> </div><!-- /.box-header --> <form action="./INCLUDES/Redes.php?act=1" method="Post"> <div class="col-lg-6-6"> <!-- general form elements disabled --> <div class="box box-warning"> <div class="box-body"> <form role="form"> <!-- text input --> <div class="form-group"> <label>Nombre</label> <input type="text" name="nombre" class="form-control" placeholder="Enter ..."/> <span class="glyphicon glyphicon-bookmark form-control-feedback"></span> </div> <!-- text input --> <div class="form-group"> <label>Link</label> <input type="url" name="link" class="form-control" placeholder="Enter ..."/> <span class="glyphicon glyphicon-home form-control-feedback"></span> </div> <button type="submit" class="btn btn-primary">Submit</button> </div><!-- /.box-body --> </div><!-- /.box --> </div><!--/.col (right) --> </form> <div class="box-footer text-center"> <a href="javascript::" class="uppercase">View All Users</a> </div><!-- /.box-footer --> </div><!--/.box --> <?php }
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 }