function Crear() { ?> <body class="responsive"> <div class="register-box"> <div class="register-box-body"> <p class="login-box">Registrar Nueva Tienda</p> <form action="./INCLUDES/Tiendas.php?act=1" method="post"> <div class="form-group has-feedback"> <input type="text" class="form-control" placeholder="Tienda" name="nombre" id="marca"/> <span class="glyphicon glyphicon-user form-control-feedback"></span> </div> <div class="form-group has-feedback"> <input type="tel" class="form-control" placeholder="Telefono" name="telefono" id="marca"/> <span class="glyphicon glyphicon-phone form-control-feedback"></span> </div> <div class="form-group has-feedback"> <input type="url" class="form-control" placeholder="Enlace" name="enlace" id="marca"/> <span class="glyphicon glyphicon-home form-control-feedback"></span> </div> <div class="form-group has-feedback"> <textarea class="form-control" placeholder="Direccion" name="direccion" id="descripcion"></textarea> <span class="glyphicon glyphicon-dashboard form-control-feedback"></span> </div> <div class="form-group has-feedback"> <?php catalogo(); ?> </div> <div class="row"> <div class="col-xs-8"> </div><!-- /.col --> <div class="col-xs-4"> <button type="submit" class="btn btn-primary btn-block btn-flat">Crear</button> </div><!-- /.col --> </div> </form> </div><!-- /.form-box --> </div><!-- /.register-box --> <!-- jQuery 2.1.4 --> <script src="../../plugins/jQuery/jQuery-2.1.4.min.js"></script> <!-- Bootstrap 3.3.2 JS --> <script src="../../bootstrap/js/bootstrap.min.js" type="text/javascript"></script> <!-- iCheck --> <script src="../../plugins/iCheck/icheck.min.js" type="text/javascript"></script> <script> $(function () { $('input').iCheck({ checkboxClass: 'icheckbox_square-blue', radioClass: 'iradio_square-blue', increaseArea: '20%' // optional }); }); </script> </body> <?php }
function FormEditar() { $id = $_POST['id']; $nombre = $_POST['nombre']; $imagen = $_POST['imagen']; ?> <body class="responsive"> <div class="register-box"> <div class="register-box-body"> <p class="login-box">Editar Categoria</p> <form action="./INCLUDES/Categorias.php?act=3" method="post"> <div class="form-group has-feedback"> <input type="text" class="form-control" placeholder="Categoria" name="nombre" id="marca" value ="<?php echo $nombre; ?> "/> <span class="glyphicon glyphicon-circle-arrow-down form-control-feedback"></span> </div> <div class="form-group has-feedback"> <input type="hidden" name="categoria" id="categoria" value ="<?php echo $id; ?> "/> </div> <div class="form-group has-feedback"> <?php catalogo(); ?> </div> <div class="row"> <div class="col-xs-8"> </div><!-- /.col --> <div class="col-xs-4"> <input type="button" class="btn btn-danger btn-block btn-flat" value="Cancelar" onClick="window.open('./CategoriaAdmin.php?act=2')"> <button type="submit" class="btn btn-primary btn-block btn-flat">Guardar</button> </div><!-- /.col --> </div> </form> </div><!-- /.form-box --> </div><!-- /.register-box --> <!-- jQuery 2.1.4 --> <script src="../../plugins/jQuery/jQuery-2.1.4.min.js"></script> <!-- Bootstrap 3.3.2 JS --> <script src="../../bootstrap/js/bootstrap.min.js" type="text/javascript"></script> <!-- iCheck --> <script src="../../plugins/iCheck/icheck.min.js" type="text/javascript"></script> <script> $(function () { $('input').iCheck({ checkboxClass: 'icheckbox_square-blue', radioClass: 'iradio_square-blue', increaseArea: '20%' // optional }); }); </script> </body> <?php }
<table class="table table-condensed"> <thead> <tr> <th>Categoria</th> <th>Subcategoria</th> <th>Productos</th> <th>Precio Min</th> <th>Precio Max</th> </tr> </thead> <tbody> <?php catalogo($pid, $saldo); ?> </tbody> </table> </div> </div><!--/span--> <div class="box span6"> <?php
<?php ?> <table class="table table-condensed"> <thead> <tr> <th colspan=2 style="text-align:center"><?php echo $categoria . ">" . $subcategoria; ?> </th> </tr> </thead> <tbody> <?php catalogo($tid, $_GET['i']); ?> </tbody> </table> </div>
</div> <div class="box-content"> <table class="table table-condensed"> <thead> <tr> <th>Categoria</th> <th>Subcategoria</th> <th>Productos</th> </tr> </thead> <tbody> <?php catalogo(); ?> </tbody> </table> </div> </div><!--/span--> <div class="box span8"> <?php