<?php // <editor-fold defaultstate="collapsed" desc="php"> require '../../includes/constants.php'; //require '../../includes/paginacion.php'; $pag = new paginacion(); $producto = new producto(); $usuario = new usuario(); $usuario->confirmar_miembro(); if (isset($_GET['producto'])) { $producto = $producto->ver($_GET['producto']); $pag->paginar("select almacen.id, almacen.nombre,\n producto_almacen.cantidad,\n producto_almacen.producto_id\n FROM producto \n inner join producto_almacen on producto_almacen.producto_id = producto.id\n inner join almacen on producto_almacen.almacen_id = almacen.id\n where producto_almacen.producto_id = {$_GET['producto']}\n and almacen.empresa_id={$_SESSION['usuario']['empresa_id']}", 5); if ($producto['suceed'] && count($producto['data'] > 0)) { $producto = $producto['data'][0]; } } // </editor-fold> ?> <!DOCTYPE html> <html lang="es"> <head> <meta charset="utf-8"> <title><?php echo TITULO; ?> - Productos en Almacen</title> <meta name="description" content=""> <meta name="author" content=""> <!-- Le HTML5 shim, for IE6-8 support of HTML elements --> <!--[if lt IE 9]>
//--Generando Cuerpo $j = 9; $cuerpo = "<tr>"; for ($i = 0; $i <= count($rs) - 1; $i++) { $cuerpo .= "<td width='10%'>" . $rs[$i][1] . "</td>\n\t\t\t\t <td width='10%'>" . $rs[$i][2] . "</td>\n\t\t\t\t <td style='text-align:left;' width='10%'>" . $rs[$i][3] . "</td>\n\t\t\t\t <td style='text-align:left;' width='10%'>" . $rs[$i][7] . "</td>"; for ($k = 0; $k < $rs[0][5]; $k++) { $nota_un = $rs[$i][$j]; if ($nota_un == "") { $nota_un = '0'; } $cuerpo .= "<td width='5%'>" . $nota_un . "</td>"; $j++; } //-- $nota_def = $rs[$i][14]; if ($nota_def == "") { $nota_def = '0'; } //-- $j = 9; $nota_un = ''; $cuerpo .= "<td width='5%;'>" . $nota_def . "</td></tr>"; } //--Paginacion $obj_paginador = new paginacion($actual, $obj_notas->num_rows2, $nom_fun); //-- $mensaje[0] = $cabecera; $mensaje[1] = $cuerpo; $mensaje[2] = $obj_paginador->crear_paginacion(); die(json_encode($mensaje)); }
<?php // <editor-fold defaultstate="collapsed" desc="php"> require '../../includes/constants.php'; $usuario = new usuario(); $usuario->confirmar_miembro(); $pag = new paginacion(); $query = "select usuario.*, tipo_usuario.nombre tipo_usuario from usuario\ninner join usuario_empresa_rol on usuario.id = usuario_empresa_rol.usuario_id\ninner join tipo_usuario on tipo_usuario_id = tipo_usuario.id\n where usuario_empresa_rol.empresa_id = {$_SESSION['usuario']['empresa_id']}"; if (isset($_GET['filtrar'])) { $query .= " and usuario.nombre like '%{$_GET['filtrar']}%'"; } $pag->paginar($query, 5); // </editor-fold> ?> <!DOCTYPE html> <html lang="es"> <head> <meta charset="utf-8"> <title><?php echo TITULO; ?> </title> <meta name="description" content=""> <meta name="author" content=""> <!-- Le HTML5 shim, for IE6-8 support of HTML elements --> <!--[if lt IE 9]> <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> <!-- Le styles -->
<?php // <editor-fold defaultstate="collapsed" desc="php"> require '../../includes/constants.php'; $pag = new paginacion(); $usuario = new usuario(); $usuario->confirmar_miembro(); $pag->paginar("select * from vendedor where empresa_id =" . $_GET['id'], 5); // </editor-fold> ?> <!DOCTYPE html> <html lang="es"> <head> <meta charset="utf-8"> <title><?php echo TITULO; ?> </title> <meta name="description" content=""> <meta name="author" content=""> <!-- Le HTML5 shim, for IE6-8 support of HTML elements --> <!--[if lt IE 9]> <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> <!-- Le styles --> <link href="<?php echo ROOT; ?> /css/bootstrap.min.css" rel="stylesheet"/>
<?php // <editor-fold defaultstate="collapsed" desc="php"> require '../../includes/constants.php'; $pag = new paginacion(); $usuario = new usuario(); $usuario->confirmar_miembro(); $pag->paginar("select * from cliente where organismo_id =" . $_GET['id'], 5); $organismo = new organismo(); $organismo = $organismo->ver($_GET['id']); $organismo = $organismo['data'][0]; // </editor-fold> ?> <!DOCTYPE html> <html lang="es"> <head> <meta charset="utf-8"> <title><?php echo TITULO; ?> </title> <meta name="description" content=""> <meta name="author" content=""> <!-- Le HTML5 shim, for IE6-8 support of HTML elements --> <!--[if lt IE 9]> <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> <!-- Le styles --> <link href="<?php
<?php // <editor-fold defaultstate="collapsed" desc="php"> require '../../includes/constants.php'; $pag = new paginacion(); $usuario = new usuario(); $usuario->confirmar_miembro(); if (isset($_GET['id'])) { $pag->paginar("select cuotas.*, status_recibo.nombre 'status' , recibo.contrato_id\r\n from cuotas\r\n inner join status_recibo on cuotas.status_recibo_id = status_recibo.id\r\n inner join recibo on cuotas.recibo_id = recibo.id\r\n where recibo_id={$_GET['id']}", 5); } if (count($pag->registros) > 0) { $cuotas_cobradas = 0; $cuotas_pendientes = 0; $monto_cobrado = 0; $monto_pendiente = 0; } // </editor-fold> ?> <!DOCTYPE html> <html lang="es"> <head> <meta charset="utf-8"> <title><?php echo TITULO; ?> </title> <meta name="description" content=""> <meta name="author" content=""> <!-- Le HTML5 shim, for IE6-8 support of HTML elements --> <!--[if lt IE 9]>
<?php // <editor-fold defaultstate="collapsed" desc="php"> require '../../includes/constants.php'; $usuario = new usuario(); $usuario->confirmar_miembro(); //require '../../includes/paginacion.php'; $pag = new paginacion(); $pag->paginar("select \n producto.id 'producto_id', producto.nombre 'producto', \n almacen.id 'almacen_id', almacen.nombre 'almacen',\n producto.cantidad_minima, ifnull(producto_almacen.cantidad, 0)'existencia'\n from producto \n left outer join producto_almacen on producto.id = producto_almacen.producto_id\n left outer join almacen on almacen.id = producto_almacen.almacen_id\n where ifnull(producto_almacen.cantidad, 0) < producto.cantidad_minima\n and producto.empresa_id ={$_SESSION['usuario']['empresa_id']}", 5); // </editor-fold> ?> <!DOCTYPE html> <html lang="es"> <head> <meta charset="utf-8"> <title><?php echo TITULO; ?> </title> <meta name="description" content=""> <meta name="author" content=""> <!-- Le HTML5 shim, for IE6-8 support of HTML elements --> <!--[if lt IE 9]> <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> <!-- Le styles --> <link href="<?php echo ROOT; ?>
<?php // <editor-fold defaultstate="collapsed" desc="php"> require '../../includes/constants.php'; $usuario = new usuario(); $usuario->confirmar_miembro(); $pag = new paginacion(); $almacen = new almacen(); if (isset($_GET['id'])) { $almacen = $almacen->ver($_GET['id']); $pag->paginar("select producto.id, producto.codigo, producto.nombre,\n producto_almacen.cantidad,\n categoria.nombre categoria,\n producto_almacen.almacen_id\n FROM producto \n inner join producto_almacen on producto_almacen.producto_id = producto.id\n inner join categoria on producto.categoria_id = categoria.id where producto_almacen.almacen_id = " . $_GET['id'], 5); if ($almacen['suceed'] && count($almacen['data'] > 0)) { $almacen = $almacen['data'][0]; } } // </editor-fold> ?> <!DOCTYPE html> <html lang="es"> <head> <meta charset="utf-8"> <title><?php echo TITULO; ?> - Productos del Almacen</title> <meta name="description" content=""> <meta name="author" content=""> <!-- Le HTML5 shim, for IE6-8 support of HTML elements --> <!--[if lt IE 9]> <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
$items++; } } } $total = count($promos_home->promos_home); if (isset($_GET['page'])) { $pg = $_GET['page']; } else { $pg = 0; } //echo "get pag: " . $_GET['page']; $cantidad = 15; //Cantidad de registros que se desea mostrar por pagina //Para probar solo le coloqué 3 //página actual $paginacion = new paginacion($cantidad, $pg); //página inicial $desde = $paginacion->getFrom(); $recorrer = $promos_home->promos_home; $limite = $desde + $cantidad; //revisión de límites if ($limite > $total) { $limite = $total; } $j = 0; echo "\t<div id='list_carousel'>\n\t\t\t<ul>"; for ($i = $desde; $i < $limite; $i++) { $p = $recorrer[$i]; //revisar que exista la imagen en caso contrario ponemos el cuadro negro if (file_exists("./p_images/" . $p->url_imagen)) { $src = TIENDA . "p_images/" . $p->url_imagen;
/*Despliega las publicaciones de una categoría*/ /*echo "<pre>"; print_r($promociones_hijas); echo "</pre>"; /**/ if (isset($_GET['page'])) { $pg = $_GET['page']; } else { $pg = 0; } //echo "get pag: " . $_GET['page']; $cantidad = 100; //Cantidad de registros que se desea mostrar por pagina //Para probar solo le coloqué 3 //página actual $paginacion = new paginacion($cantidad, $pg); //página inicial $desde = $paginacion->getFrom(); $recorrer = $promociones_hijas; $limite = $desde + $cantidad; //revisión de límites if ($limite > $total) { $limite = $total; } $j = 0; //foreach ($promociones_hijas as $p) { for ($i = $desde; $i < $limite; $i++) { $p = $recorrer[$i]; $fecha = $p->fin_promocionDt; $pieces = explode("-", $fecha); $d = $pieces[2];
<?php // <editor-fold defaultstate="collapsed" desc="php"> require '../../includes/constants.php'; $pag = new paginacion(); $usuario = new usuario(); $usuario->confirmar_miembro(); $pag->paginar("\nSELECT lote_detalle.*, \n contrato.fecha,\n contrato.numero,\n recibo.id recibo_id,\n recibo.monto\n from lote_detalle\ninner join recibo on lote_detalle.recibo_id=recibo.id\ninner join contrato on contrato.id = recibo.contrato_id\n where lote_detalle.lote_id={$_GET['id']}", 5); // </editor-fold> ?> <!DOCTYPE html> <html lang="es"> <head> <meta charset="utf-8"> <title><?php echo TITULO; ?> </title> <meta name="description" content=""> <meta name="author" content=""> <!-- Le HTML5 shim, for IE6-8 support of HTML elements --> <!--[if lt IE 9]> <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> <!-- Le styles --> <link href="<?php echo ROOT; ?> /css/bootstrap.min.css" rel="stylesheet"/>