include 'connect.php'; if (isset($_GET['tipo'])) { $_SESSION['tipo'] = $_GET['tipo']; $_SESSION['obras_num_pag'] = 0; } elseif (!isset($_SESSION['tipo'])) { $_SESSION['tipo'] = 'r'; } if (isset($_GET['real_cur'])) { $_SESSION['real_cur'] = $_GET['real_cur']; $_SESSION['obras_num_pag'] = 0; } elseif (!isset($_SESSION['real_cur'])) { $_SESSION['real_cur'] = '1'; } if (isset($_GET['id_obra_zona'])) { $_SESSION['id_obra_zona'] = $_GET['id_obra_zona']; $_SESSION['obras_num_pag'] = 0; } elseif ((!isset($_SESSION['id_obra_zona']))||(isset($_GET['real_cur']))||(isset($_GET['tipo']))) { $select = 'select max(id_obra_zona) as max from obra_zona where tipo = \''.$_SESSION['tipo'].'\' and real_cur = \''.$_SESSION['real_cur'].'\''; $select = mysql_query($select); if (mysql_result($select,0,'max') != NULL) { $_SESSION['id_obra_zona'] = mysql_result($select,0,'max'); } else { $_SESSION['id_obra_zona'] = NULL; } } $select = 'select nombre from tipo where real_cur = \''.$_SESSION['real_cur'].'\' limit 1'; $select = mysql_query($select); $nombre = mysql_result($select,0,'nombre'); #obtain where statement $select_where = ' where id_obra_zona = \''.$_SESSION['id_obra_zona'].'\' '; $pages = new pages; $pages->select_where = $select_where; $pages->tabla = 'imagenes'; $pages->num_per_page = 8; $pages->session_var = 'obras_num_pag'; //$pages->pages_to_show = 7; if (isset($_GET['num_pag'])) $pages->num_pag = $_GET['num_pag']; $pages->begin(); ?>
| ||||||||||||||||||||||||||||||||||||||||||
|
Desarrolo y diseņo: RK Aplicaciones WEB | © LANKIDE CB. |