本文整理汇总了PHP中plantHTML函数的典型用法代码示例。如果您正苦于以下问题:PHP plantHTML函数的具体用法?PHP plantHTML怎么用?PHP plantHTML使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了plantHTML函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: BILO_block_user
function BILO_block_user()
{
global $SYS;
ob_start();
if (BILO_isLogged()) {
$u = newObject("user", BILO_uid());
$u->username = BILO_username();
$u->clase = "login";
plantHTML($u, "Public/block_ok_login");
} else {
$u = newObject("user");
debug(BILO_username(), "blue");
$u->clase = "logoff";
plantHTML($u, "Public/block_no_login");
}
$data = ob_get_contents();
ob_end_clean();
return $data;
}
示例2: isset
<?php
require_once "JasperReports.php";
$ID = isset($ID) ? $ID : 1;
$ane = newObject("jasperreport", $ID);
formAction("action_save_jasperreport.php", "footer", "editForm");
$ane->boton0 = gfxBotonAction("Guardar", "getElementById('editForm').submit()", True);
plantHTML($ane, "add_jasperreport", array());
formClose();
?>
示例3: newObject
<?php
require_once "Biblio.php";
require_once "Lib/lib_tree.php";
$libro = newObject("b_libro", $ID);
//$wRes=new avSelectTree();
/*
$libro->b_categoria_id=$wRes->avSelectPrintTree("b_categoria_id","Biblio","b_categoria","b_cat_padre_id","nombre_cat",$p->b_categoria_padre_id);
*/
//$libro->b_categoria_id=$wRes->avSelectPrintTree("b_categoria_id","Biblio","b_categoria","b_cat_padre_id","nombre_cat",$libro->b_categoria_id);
formAction("action_save_libro.php", "footer", "editForm");
$libro->boton0 = gfxBotonAction("Guardar", "getElementById('editForm').submit()", True);
$c = newObject("b_categoria");
$libro->b_categoria = $libro->get_selected_options("b_categoria");
$d = array("b_categoria" => $c->listAll("nombre_cat"));
plantHTML($libro, "fichalibro", $d);
formClose();
示例4: plantHTML
<?php
require_once "System.php";
plantHTML(array(), "f_menu");
plantHTML(array(), "system_help");
plantHTML(array(), "footer");
?>
示例5: plantHTML
<?php
require_once "Articulus.php";
plantHTML($_GET, "menu_cat");
$cat_id = isset($cat_id) ? $cat_id : 1;
setNavVars(array("ID", "cat_id"));
$u = newObject("categoria", $cat_id);
$cat = "Categoria: <b>{$u->nombre}</b><br>";
echo $cat;
$u->searchResults = $u->select("cat_id={$cat_id}", $offset, $sort);
$filas = _affected_rows();
if ($filas > 0) {
listList($u, array(), "list_cat");
} else {
echo "No hay subcategorias<br>";
}
$v = newObject("documento");
$v->searchResults = $v->select("cat_id={$cat_id}", $offset, $sort);
$filas = _affected_rows();
if ($filas > 0) {
listList($v, array(), "list_doc");
} else {
echo "No hay documentos<br>";
}
if ($u->cat_id > 1) {
plantHTML($u, "view_cat");
} else {
plantHTML($u, "menu_todo");
}
示例6: isset
<?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";
}
示例7: isset
<?php
require_once "Noticias.php";
$ID = isset($ID) ? $ID : 1;
$n = newObject("notice", $ID);
$n = newObject("notice", $ID);
formAction("action_save_notice.php?ID={$ID}", "footer", "editForm");
$n->boton0 = gfxBotonAction("Guardar", "getElementById('editForm').submit()", True);
$c = newObject("cat_not");
$d = array("id_cat" => $c->listAll("nombre_cat"));
plantHTML($n, 'add', $d);
formClose();
示例8: empty
<?php
require_once "Bilo.php";
$REFERER = empty($REFERER) ? $_SERVER["HTTP_REFERER"] : $REFERER;
plantHTML(array("MSG" => "Identifíquese", "SMSG" => $SYS["MESSAGES"], "REFERER" => $REFERER, "ROOT" => $SYS["ROOT"]), "Public/public_entrada");
示例9: newObject
<?php
require_once "Bilo.php";
$p = newObject("user_pref");
$p->getPrefByUser(BILO_uid());
formAction("action_pref_save.php", "footer", "editForm");
$p->boton0 = gfxBotonAction("Guardar", "getElementById('editForm').submit()", True);
$external_data = array();
plantHTML($p, "user_pref", $external_data);
formClose();
示例10: plantHTML
<?php
require_once "Bilo.php";
if (!BILO_isLogged()) {
plantHTML(array("ROOT" => $SYS["ROOT"], "MSG" => "Entrada al Sistema", "SMSG" => $SYS["MESSAGES"], "REFERER" => $_SERVER["HTTP_REFERER"]), "entrada");
} else {
PlantHTML(array("location" => $SYS["ROOT"] . "Backend/"), "redirect");
}
示例11: isset
<?php
require_once "GlobalSche/GlobalSche.php";
$ID = isset($ID) ? $ID : 1;
if ($ID > 1) {
$n = newObject("schedule", $ID);
} else {
$n = newObject("schedule");
}
$fkeys = array();
formAction("action_save_schedule.php?ID={$ID}", "footer", "editForm");
$n->_boton0 = gfxBotonAction("Guardar", "getElementById('editForm').submit()", True);
plantHTML($n, 'schedule_add', $fkeys);
formClose();
示例12: strtr
} else {
$q = "CREATE VIEW View_" . strtr($d->nombre, " ", "_") . " AS " . $d->queryb;
}
$res = _query($q);
if ($res) {
echo "<div align=\"left\">La consulta {$d->nombre} ha sido promocionada a vista</div><br>";
} else {
echo "<strong>Error</strong>";
}
/*
$d=newObject("queryb",$ID);
if ($d->delete())
echo "borrado";
else
echo "no borrado";*/
plantHTML(array(), "action_footer");
frameGo("fbody", "dev.php?command=querybuilder");
die;
}
}
}
}
echo "<script type=\"text/javascript\" language=\"JavaScript\" src=\"{$SYS["ROOT"]}/Extensions/querybuilder_helper.js\"></script>";
?>
<table width="95%" border="0" cellspacing="5" align="center" bgcolor="#eeeeee" style="border : 1px #c6c6c6 outset; -moz-border-radius : 10px;">
<TR><TD align="center" bgcolor="#e6a129">
<h2>Core QUERY BUILDER</h2>
</TD></TR>
<TR><TD>
示例13: plantHTML
}
}
//-------------------------------------------------------------------------
// Si nos encontramos en 'Informes Jasper -> Informes disponibles' o en 'Informes Jasper -> Gestión' ocultamos el botón desactivar porque no se usará
if ($_SESSION["origin"] == "report" || $_SESSION["origin"] == "jasperreport") {
$SYS["deactivate_type"] = "hidden";
} else {
$SYS["deactivate_type"] = "image";
}
// Los botones para borrar y desactivar estarán visibles para los administradores por temas de desarrollo, mientras que para el resto de grupos únicamente el botón para desactivar
if (BILO_checkGroup("Administradores")) {
// Mostramos el botón para borrar
$SYS["delete_type"] = "image";
// Definimos la ruta de los iconos
$SYS["delete_icon_url"] = $SYS["ROOT"] . "Apps/" . $SYS["PROJECT"] . "/local/Icons/delete.png";
$SYS["deactivate_icon_url"] = $SYS["ROOT"] . "Apps/" . $SYS["PROJECT"] . "/local/Icons/deactivate.png";
} else {
// Ocultamos el botón para borrar
$SYS["delete_type"] = "hidden";
// Modificamos el icono del botón para desactivar
$SYS["deactivate_icon_url"] = $SYS["ROOT"] . "Apps/" . $SYS["PROJECT"] . "/local/Icons/delete.png";
}
plantHTML($SYS, "interface");
if (isset($_SESSION["search"])) {
unset($_SESSION["search"]);
unset($_SESSION["query"]);
jsAction("getElementById('search_icon').src='<!-- D:ROOT -->Apps/<!-- D:PROJECT -->/local/Icons/search_enabled.png';");
}
if (isset($_SESSION["master"])) {
unset($_SESSION["master"]);
}
示例14: isset
<?php
require_once "GlobalSche/GlobalSche.php";
$ID = isset($ID) ? $ID : 1;
if ($ID > 1) {
$n = newObject("gtask", $ID);
} else {
$n = newObject("gtask");
}
$fkeys = array("schedule_id" => $n->get_references("schedule_id"));
formAction("action_save_task.php?ID={$ID}", "footer", "editForm");
$n->_boton0 = gfxBotonAction("Guardar", "getElementById('editForm').submit()", True);
plantHTML($n, 'task_add', $fkeys);
formClose();
示例15: isset
$ID = isset($ID) ? $ID : 1;
$max = 4;
$p = newObject("post", $ID);
$origen = $p->traeOrigen();
$url = $p->traeUrl();
echo $SESSION['fecha'];
if ($origen != $url) {
$p->visitas++;
$p->save();
}
$f = newObject("foro", $foro_id);
$padre = $ID;
$s = newObject("post", $padre);
$defpost = "Foro: <b><a href=\"index.php\">Foros</a> --> <a href=\"index2.php?foro_id={$foro_id}\">{$f->title}</a> --> {$s->title}</b>";
$p->bread = $defpost;
plantHTML($p, "view");
$u = newObject("post");
setLimitRows($max);
$u->searchResults = $u->select("p_id={$ID}", $offset, $sort);
$filas = _affected_rows();
if ($filas == 0) {
$offset = 0;
}
setNavVars(array("ID", "foro_id"));
$u->p_id = $ID;
$u->foro_id = $foro_id;
$external_data = array("nuevo3" => 'code#if ($object->fecha >= ' . $_SESSION['fecha'] . ')
{
$_SESSION["nuevo"]="verdadero";
return "N U E V O";}');
listList($u, $external_data, "list_children");