include("../clases/configuracion.php"); include_once(PATH."clases/Sesion.php"); include_once(PATH."clases/BDMySql.php"); include_once(PATH."clases/Config.php"); include_once(PATH."clases/Paginacion.php"); include_once(PATH."clases/Lista.php"); include_once(PATH."clases_proyecto/Modelo.php"); if ($_SESSION["SE_EMAIL"]=="") Error::writeTemplate("Catálogo de productos", "Para entrar en esta sección debe estar identificado", "&back=0"); $cuantos = Config::dame("RECORDS_PAG"); $pagIni = $_GET["fr_pagIni"]!=""?$_GET["fr_pagIni"]:1; $pagSel = $_GET["fr_pagSel"]!=""?$_GET["fr_pagSel"]:1; $bd = new BDMySql(); $modelosInvisibles = $bd->select(Modelo::noPuedeVerUsuario($_SESSION["SE_CODIGO"]),true); $modelosInvisibles = Lista::selectCampoToStrInt($modelosInvisibles, "cod_modelo"); $modelosUsu = $bd->select(Modelo::usuario($modelosInvisibles),true); $pag = new Modelo($modelosInvisibles); $total = $bd->select1Row($pag->total(),"total"); if ($total>0) { $result = $bd->select($pag->lista($pagSel,$cuantos), true); $totalPag=count($result); $regDel=(($pagSel-1)*$cuantos)+1; $regHasta=($regDel+$cuantos-1)>$total?$total:$regDel+$cuantos-1; } $img3l="cat"; include(PATH."cabecera.php"); ?> Paginacion::JS("", "formSearch") ?>