<?php require_once "Articulus.php"; HTML("menu"); $u = newObject("categoria"); setNavVars(array("ID", "cat_id")); $u->searchResults = $u->select("cat_id<2"); $filas = _affected_rows(); if ($filas > 0) { listList($u, array(), "index"); } else { echo "No hay ninguna categoría disponible"; }
<?php require_once "Forus.php"; HTML("public-menu_foro"); setNavVars(array("ID", "foro_id")); $sort = isset($sort) ? $sort : "fecha DESC"; $u = newObject("foro"); $u->searchResults = $u->selectall($offset, $sort); $total = $u->sumaMsg(); $external_data = array("grafica" => 'code#return $object->msgBar(' . $total . ');'); listList($u, $external_data, "public-list_foro");
<?php require_once "Forus.php"; setNavVars(array("foro_id")); $foro_id = isset($foro_id) ? $foro_id : 1; $sort = isset($sort) ? $sort : "fecha DESC"; $u = newObject("post"); $f = newObject("foro", $foro_id); $deffor = "<br>Foro: <b><a href=\"index.php\">Foros</a> --> {$f->title}</b>"; echo $deffor; $url = $PHP_SELF; if ($cont == "true") { $f->visitas++; } $f->save(); $u->searchResults = $u->select("p_id<2 and foro_id={$foro_id}", $offset, $sort); $external_data = array("grafica" => 'code#return $object->msgBar(' . $f->msg . ');'); listList($u, $external_data, "Forus/list_post");
$u->searchResults = eval(' $u=newObject("' . $class . '"); if (method_exists($u,"' . $method_n . 'AVSEARCH")) return $u->' . $method_n . 'AVSEARCH("' . $avsearch . '"' . $method_pe . '); else return $u->' . $method_n . '(' . $method_p . '); '); } else { $u->searchResults = eval(' $u=newObject("' . $class . '"); return $u->' . $method_n . '(' . $method_p . '); '); } } setNavVars(array("module", "class", "show", "method", "name", "avsearch")); $className = $class; $showName = $u->properties_desc["{$show}"]; $template = "\n<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\n<!--HEAD-->\n<html>\n<head>\n<title>Zoom {$class} </title>\n<LINK href=\"{$SYS["ROOT"]}/Themes/Estilos/global.css\" rel=\"stylesheet\" type=\"text/css\">\n</head>\n\n<script type=\"text/javascript\" language=\"JavaScript1.3\">\n\nfunction frameClose(){\n\tparent.document.getElementById(\"wFrame{$class}{$name}\").style.display=\"none\";\n}\nfunction selItem(id,val){\n\tparent.document.getElementById(\"Target{$class}{$name}\").value=id;\n\tparent.document.getElementById(\"wTarget{$class}{$name}\").value=val;\n\ts=new String(val);\n\t\n\tparent.document.getElementById(\"wTarget{$class}{$name}\").size=(s.length)+5;\n\tframeClose();\n}\n\nfunction noaction(){\n\treturn;\n}\nfunction refresh(){\n\tlocation.href=location.href+'&reload';\n}\nfunction wresize() {\n\ts=document.getElementById('mainView{$class}{$name}').clientHeight+10;\n\tw=parent.document.documentElement.clientWidth;\n\tww=document.getElementById('mainView{$class}{$name}').clientWidth;\n\tif (window.scrollbars==1) {\n\t\tparent.document.getElementById(\"wFrame{$class}{$name}\").style.width=500+\"px\";\n\t\t\n\t}\n\t\n\tif (parent.document.body.scrollTop<=0)\n\t\th=parent.document.documentElement.scrollTop+(parent.document.documentElement.clientHeight/2-s/2);\n\telse\n\t\th=parent.document.body.scrollTop+(parent.document.documentElement.clientHeight/2-s/2);\n\t\n\t\n\ty=h;\n\tx=((w/2)-(ww/2));\n\tif (y<25)\n\t\ty=25;\n\tparent.document.getElementById(\"wFrame{$class}{$name}\").style.left=x+\"px\";\n\tparent.document.getElementById(\"wFrame{$class}{$name}\").style.height=s+\"px\";\n\tparent.document.getElementById(\"wFrame{$class}{$name}\").style.top=y+\"px\";\n\t\n\t/* Repaint */\n\t\n}\n</script>\n<style>\ntd.dynamic_class_autotemplate0 {text-align:left;vertical-align:top;background-color:#EEEEF6}\ntd.dynamic_class_autotemplate1 {text-align:left;vertical-align:top;background-color:white}\ntd.dynamic_class_autotemplate2 {text-align:left;vertical-align:top;background-color:#F7F7F7}\ntd.dynamic_class_autotemplate3 {text-align:left;vertical-align:top;background-color:white}\n</style>\n<body bgcolor=\"#FFFFFF\" style=\"padding:0px;margin:0px;\">\n<table width=\"100%\" id=\"mainView{$class}{$name}\">\n<tr>\n\t<td align=\"center\" style=\"background-color:#4B85B8;color:white\" colspan=\"2\" height=\"16\">\n\t<b>{$showName} ({$className}).</b>\n\t</td>\n</tr>\n<tr>\n<td valign=\"top\">\n\t<table width=\"100%\" >\n\t\n\t<tr>\n\t<td bgcolor=\"white\"><a href=\"<!-- N:navvars -->&sort=ID\">ID</a></td>\n\t<td bgcolor=\"white\" align=\"center\"><a href=\"<!-- N:navvars -->&sort=" . $show . "\">\n\t<!-- K:_(Ordenar) --></a></td>\n\t<td bgcolor=\"white\" align=\"center\">seleccionar</td>\n\t</tr>\n\t<!--SET-->\n\t<tr>\n\t\t<td class=\"<!-- dynamic_class -->\">\n\t\t\t<!-- D:ID -->\n\t\t</td>\n\t\t<td class=\"<!-- dynamic_class -->\" width=\"100%\" nowrap>\n\t\t\t<!-- L:" . $show . " -->\n\t\t</td>\n\t\t<td class=\"<!-- dynamic_class -->\" style=\"text-align:center\">\n\t\t\t<a \n\tstyle=\"cursor:pointer;background-color:white;border:1px solid gray\"\n\thref=\"javascript:selItem('<!-- D:ID -->','<!-- D:" . $show . " -->');\"> + </a>\n\t\t</td>\n\t</tr>\n\t<!--END-->\n\t</table>\n\t</td>\n\t<td width=\"1\" height=\"200\"></td>\n</tr>\n<tr>\n<td>\n<form action=\"\" method=\"POST\">\nbuscar: <INPUT type=\"text\" name=\"avsearch\" value=\"{$avsearch}\">\n<INPUT type=\"submit\">\n</form>\n</td>\n</tr>\n<tr>\n\t<td colspan=\"2\">\n\t<table width=\"100%\" cellspacing=\"0\" border=\"0\" cellpadding=\"4\" align=\"center\" style=\"border:solid 1px gray\">\n\t<tr><td align=\"left\">\n\t<a href=\"<!-- N:prevpage -->\">Página anterior</a>\n\t</td>\n\t<td align=\"center\"><!-- D:Pager -->\n\t</td><td align=\"right\">\n\t<a href=\"<!-- N:nextpage -->\">Página siguiente</a>\n\t</td>\n\t</tr>\n\t</table>\n\t</td>\n</tr>\n</table>\n\n"; listList($u, array(), $template); $SYS["FROOT"] = $SYS["ROOT"] . "../../../"; ?> <script type="text/javascript" language="JavaScript1.3"> wresize(); </script> <a style="cursor:pointer;position:absolute;right:3px;top:2px;float : right;" href="javascript:frameClose()"> <img src="<?php echo $SYS["FROOT"] . "/Framework/Extensions/Zoom/local/Images/close.png"; ?> " alt="Cerrar" width="16" height="16" align="middle" border="0" title="Centrar"></a> <a style="cursor:pointer;position:absolute;left:3px;top:2px;float : right;" href="javascript:wresize()">
} echo ' </select> <input type="hidden" name="QB_CMD" value="module"> <input type="submit"> </form> <hr>O bien, seleccione una vista con la que trabajar: <form action="dev.php?command=querybuilder_views" method="POST" enctype="multipart/form-data" > <select name="views" > '; foreach ($all_views as $k => $v) { echo "<option value=\"{$v}\">{$v}</option>"; } echo ' </select> <input type="submit"> </form> </td> </tr> </tbody> </table> <br><br> '; $xx = newObject("queryb"); $xx->searchResults = $xx->selectAll(); setNavVars(array("command")); listList($xx, array(), "queryb"); } ?> </TD></TR></table>
<?php require_once "coreg2.php"; setNavVars(array("void_framming")); $u = newObject("bookmark", 1); $uid = BILO_uid(); $u->searchResults = $u->select("user_id={$uid}", $offset, $sort); listList($u, array(), "lbookmarks"); ?>
<?php require_once "Noticias.php"; $busqueda = isset($_POST["busca"]) ? $_POST["busca"] : $busqueda; $cat_id = isset($cat_id) ? $cat_id : 1; setNavVars(array("cat_id", "busqueda")); $n = newObject("notice"); $n->isAdmin = BILO_isAdmin(); /*$us=newObject("user",BILO_uid());//BILO-uid nos da el id del usuario actual. $us->searchResults=$us->select("ID = 'BILO_uid'"); //$_SESSION['fecha']=$us->fecha_hoy; $_SESSION['fecha']=$us->fecha_hoy;*/ if ($busqueda != "") { $keys = explode(" ", $busqueda); foreach ($keys as $k => $v) { $q[] = "(titulo LIKE '%{$v}%' OR body LIKE '%{$v}%' OR keyword LIKE '%{$v}%')"; $xquery = implode("OR", $q); } $n->searchResults = $n->select($xquery, $offset, $sort); if ($n->nRes == 0) { $n->nohay = "NO EXISTEN NOTICIAS QUE CUMPLAN EL CRITERIO DE BÚSQUEDA"; } } else { if ($cat_id > 1) { $n->searchResults = $n->select("id_cat={$cat_id}", $offset, $sort); if ($n->nRes == 0) { $n->nohay = "NO HAY NINGUNA NOTICIA EN ESTA CATEGORIA"; } } else { $n->searchResults = $n->selectAll($offset, $sort); }
<?php require "noexists.php"; require_once "Test.php"; $busqueda = isset($_POST["busca"]) ? $_POST["busca"] : $busqueda; $host = isset($_POST["host"]) ? $_POST["host"] : $host; setNavVars(array("busqueda", "host")); $n = newObject("example"); //$n->searchResults=$n->selectAll($offset,$sort); if ($busqueda != "") { if ($host != "" && $host > 1) { $n->searchResults = $n->selectAll($offset, $sort); $n->searchResults = $n->select($n->buildMultiquery($busqueda) . " AND host={$host}", $offset, $sort); //$n->searchResults=$n->select("host=$host",$offset,$sort); if ($n->nRes == 0) { $n->nohay = "NO HAY NINGÚN DATO CON ESTE HOST"; } } else { $n->searchResults = $n->selectAll($offset, $sort); $n->searchResults = $n->select($n->buildMultiquery($busqueda), $offset, $sort); if ($n->nRes == 0) { $n->nohay = "NO EXISTEN DATOS QUE CUMPLAN EL CRITERIO DE BÚSQUEDA"; } } } else { if ($host != "" && $host > 1) { $n->searchResults = $n->selectAll($offset, $sort); $n->searchResults = $n->select("host={$host}", $offset, $sort); if ($n->nRes == 0) { $n->nohay = "NO HAY NINGÚN DATO CON ESTE HOST"; }