function hook_renderEditForm() { if (!isset($_SESSION["search_form"])) { unset($this->_arrayForm["form"]); if ($this->ID != 1) { $this->_boton0 = gfxBotonAction("Llamar", "getElementById('jasperreport').action='public_call_report.php',getElementById('jasperreport').submit();getElementById('jasperreport').action='public_w_operation_save.php'", True); } } }
<?php require_once "Forus.php"; $ID = isset($ID) ? $ID : 1; $s = newObject("post", $p_id); $foro_id = isset($foro_id) ? $foro_id : 1; $p = newObject("post", $ID); $leido = isset($leido) ? $leido : 1; $a = newObject("post", $leido); $p->title = $s->title; $p->user = BILO_username(); if ($p->title != "") { $p->resp = "readonly=\"true\""; } $p->p_id = isset($p_id) ? $p_id : 0; $p->foro_id = $foro_id; formAction("action_save.php?ID={$ID}&foro_id={$p->foro_id}&leido=", "footer", "editForm"); $p->boton0 = gfxBotonAction("Guardar", "getElementById('editForm').submit()", True); plantHTML($p, "post"); formClose(); ?>
<?php require_once "Articulus.php"; require_once "Lib/lib_tree.php"; require_once "Memo/Memo.php"; /* Filehelper */ if (BILO_isLogged()) { $ID = isset($ID) ? $ID : 1; $p = newObject("documento", $ID); $p->cat_id = isset($cat_id) ? $cat_id : 1; if ($p->cat_id > 1) { $cat = newObject("categoria", $cat_id); $p->cat_pr = $cat->cat_or; } formAction("action_save_documento.php", "footer", "editForm"); $wRes = new avSelectTree(); $p->categoria = $wRes->avSelectPrintTree("cat_id", "Articulus", "categoria", "cat_id", "nombre", $p->cat_pr); $p->filehelper = $SYS["ROOT"] . "Backend/Memo/action_fileselector.php"; $p->boton0 = gfxBotonAction("Guardar", "getElementById('editForm').submit()", True); $p->boton1 = gfxBotonAction("Volver", "history.go(-1)", True); $c = newObject("categoria"); if ($ID < 2) { $p->autor = BILO_username(); } plantHTML($p, "documento", array("cat_id" => $c->ListCat())); formClose(); } else { echo "No esta logueado"; }
<?php require_once "Noticias.php"; $ID = isset($ID) ? $ID : 1; $n = newObject("notice"); $n->isAdmin = BILO_isAdmin(); if ($ID > 1) { $n = newObject("notice", $ID); $f = newObject("foto", $n->adjunto); $n->id_foto = $f->id_foto; $n->id_thumb = $f->id_thumb; $n->volver = gfxBotonAction("Volver", "history.go(-1)", True); plantHTML($n, 'view_notice'); $n->visita++; $n->fech_ult_consulta = date(time()); $n->save(); } else { echo "<div align=\"center\"><B>ERROR EN LA PÁGINA</B></DIV>"; }
$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); } if ($n->nRes == 0) { $n->nohay = "NO HAY NINGUNA NOTICIA DISPONIBLE"; } } formAction("", "", "editForm"); $n->boton0 = gfxBotonAction("Buscar", "getElementById('editForm').submit()", True); $n->isAdmin = BILO_isAdmin(); $n->busca = $busqueda; plantHTML($n, 'search_notice'); $c = newObject("cat_not", $cat_id); $c->fecha_hoy = date(time()); plantHTML($c, 'menu_cat', array("ID" => $c->listAll("nombre_cat"))); listList($n, array(), 'list_notice', "", 1, "plParseTemplateFast");
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"; } } else { $n->searchResults = $n->selectAll($offset, $sort); } } $datosExternos = array("bookmark" => $n->get_external_reference("host")); $c = newObject("bookmark"); $datosExternosBuscar = array("host" => $c->listAll("nombre")); formAction("", "", "editForm"); plantHTML(array("host" => $_REQUEST["host"], "busca" => $_REQUEST["busca"], "boton0" => gfxBotonAction("Buscar", "getElementById('editForm').submit()", True)), 'search_example', $datosExternosBuscar); listList($n, $datosExternos, 'example_list', "", 1, "plParseTemplateFast");