query($query); if (!$db->num_rows()) mydie ("Sección no habilitada por el momento"); while ($db->next_record()){ $total += $db->f(num); $tpl->assign (array( ID => $db->f(id), NOMBRE => $db->f(nombre), NOMVAR => rawurlencode ($db->f(nombre)) )); $tpl->parse ("main.row"); } banners(); $tpl->assign(array( NUMRES => $total, URL => $url )); $tpl->parse ("main"); $tpl->out ("main"); ?>