AuthUser(); if($Usr['type'] != 'admin') { header('Location: '.WEB_ROOT); exit; } else { $reportes->SetPage($_GET["p"]); $dateNow=$reportes->dateNow(); $smarty->assign("dateNow",$dateNow); if($Usr['type']=="admin") { $smarty->assign("tipo","admin"); $resSuc=$reportes->enumsucursales(); $resSuc=$util->DecodeUrlResult($resSuc); $smarty->assign("resSuc",$resSuc); } } ?>