$value) {
$num_total_rows = $value['total_products'];
}
$itemspage="18";
$page = false;
if (isset($_GET["page"])) {
$page = $_GET["page"];
$noindex=1;
}
if (!$page) {
$start = 0;
$page = 1;
$numcab=1;
} else {
$itemspage="18";
$start = ($page - 1) * $itemspage;
$numcab=0;
}
//calculo el total de paginas
$total_pages = ceil($num_total_rows / $itemspage);
$fecha_hoy = date('Y-m-d');
$fecha = date("Y-m-d", strtotime("-1 months"));
function str_limit($value, $limit = 100, $end = '...'){
if (mb_strwidth($value, 'UTF-8') <= $limit) {
return $value;
}
return rtrim(mb_strimwidth($value, 0, $limit, '', 'UTF-8')).$end;
}
include 'common/head.php';
?>