本文整理汇总了PHP中listList函数的典型用法代码示例。如果您正苦于以下问题:PHP listList函数的具体用法?PHP listList怎么用?PHP listList使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了listList函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: ART_block_biblio
function ART_block_biblio()
{
global $SYS;
$c = newObject("categoria");
$c->searchResults = $c->select("cat_id=0 AND nombre <> 'faqs'", $offset, $sort);
ob_start();
listList($c, array(), "Articulus/biblio");
//plantHTML($SYS,"Articulus/biblio");
$data = ob_get_contents();
ob_end_clean();
return $data;
}
开发者ID:BackupTheBerlios,项目名称:ascore,代码行数:12,代码来源:block_articulus.php
示例2: getmicrotime
for ($i = 1; $i <= $M; $i += $M / 3) {
$bm = getmicrotime();
setLimitRows($i);
$a->searchResults = $a->selectAll();
ob_start();
$example->listList($a, array(), $tmpl);
ob_end_clean();
$plist_time_ellapsed[$i] = getmicrotime() - $bm;
}
}
for ($i = 1; $i <= $M; $i += $M / 3) {
$bm = getmicrotime();
setLimitRows($i);
$a->searchResults = $a->selectAll();
ob_start();
listList($a, array(), $tmpl);
ob_end_clean();
$cplist_time_ellapsed[$i] = getmicrotime() - $bm;
}
$totaltime = getmicrotime() - $abm;
$a->deletes("1=1");
$db_tg = new graph(500, 400);
if ($SYS["bcompiler_extension"]) {
$db_tg->y_data["barras"] = array_values($plist_time_ellapsed);
}
$db_tg->y_data["mbarras"] = array_values($cplist_time_ellapsed);
$db_tg->x_data = array_keys($cplist_time_ellapsed);
$db_tg->parameter["file_name"] = $SYS["BASE"] . "/Data/Img/Tmp/render";
$db_tg->parameter["path_to_fonts"] = $SYS["DOCROOT"] . "/Data/Fonts/";
if ($SYS["bcompiler_extension"]) {
$db_tg->parameter['title'] = _("lib_planty Compiled vs Source") . "({$totaltime})";
开发者ID:BackupTheBerlios,项目名称:ascore,代码行数:31,代码来源:testme.php
示例3: array
$dir->current_inode = $inode;
if (checkReadSecurity($aux)) {
$dir->searchResults = $dir->select("inode={$inode}", $offset, $sort);
$safe_list = array();
do {
$ele = current($dir->searchResults);
if (checkReadSecurity($ele)) {
$safe_list[] = $ele;
}
} while (next($dir->searchResults));
$dir->searchResults = $safe_list;
if (sizeof($safe_list) < 1 || $safe_list[0] == false) {
unset($dir->searchResults);
$dir->searchResults = array();
}
formAction("", "", "listForm");
$SYS["inode"] = $inode;
plantHTML($SYS, "navigator_top");
include_once "mime_icons.php";
listList($dir, array("mime_image" => 'code#return img_icon($object->mime);', "usuario" => 'xref#user|uid|username', "grupo" => 'xref#group|gid|groupname'), "list");
HTML("navigator_bottom", True);
formClose();
} else {
$notification->push(_("Insufficient privileges."), 'horde.error');
if ($inode != $oldinode) {
$inode = $oldinode;
} else {
$inode = 0;
}
require 'list.php';
}
开发者ID:BackupTheBerlios,项目名称:ascore,代码行数:31,代码来源:list.php
示例4: newObject
<?php
require_once "Biblio.php";
$libro = newObject("b_libro");
setLimitRows(15);
$libro->searchResults = $libro->selectAll($offset, $sort);
$extk = array();
listList($libro, $extk, "listadolibro");
resetLimitRows();
开发者ID:BackupTheBerlios,项目名称:ascore,代码行数:9,代码来源:main.php
示例5: setNavVars
<?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");
开发者ID:BackupTheBerlios,项目名称:ascore,代码行数:18,代码来源:public_list_post.php
示例6: showQuery
function showQuery($views, $title = '')
{
$q = newObject("queryb");
$vquery = "SELECT * FROM {$views}";
$bdres = _query($vquery);
for ($i = 0, $rows_affected = _affected_rows(); $i < $rows_affected; $i++) {
$rawres = _fetch_array($bdres);
foreach ($rawres as $kres => $vres) {
$formated[md5($kres)] = $vres;
}
$All[] = $formated;
$MetaDataAll[] = $rawres;
}
if (!is_array($All) || sizeof($All) < 1) {
die("No hay resultados");
}
$ckeys = array_keys($All[0]);
$titles = array_keys($MetaDataAll[0]);
if (empty($title)) {
$TITLE = '<h3 align="center">' . $views . ' (' . sizeof($All) . ')</h3>';
} else {
$TITLE = '<h3 align="center">' . $title . ' (' . sizeof($All) . ')</h3>';
}
$magic_template = '
<!--HEAD-->
' . $TITLE . '
<table width="95%" cellspacing="0" border="1" cellpadding="1" align="center" bgcolor="#CECECE" style="border:solid 1px gray">
<tr>
';
foreach ($titles as $row) {
$row = explode("|", $row);
$magic_template .= "\n\t\t\t<th>{$row[0]}</th>\n\t\t\t";
unset($row[0]);
$metadata[] = implode("|", $row);
}
$magic_template .= '
</tr>
<!--SET-->
<tr>
';
//print_r($keys);
$j = 0;
$magic = array();
foreach ($MetaDataAll[0] as $row => $data) {
$type = explode(":", $metadata[$j]);
if ($type[0] == "date") {
$cell = "<!-- A:{$ckeys[$j]} -->";
} else {
if ($type[0] == "datex") {
$cell = "<!-- R:{$ckeys[$j]} -->";
} else {
if ($type[0] == "money") {
$cell = "<!-- S:{$ckeys[$j]} -->";
} else {
if ($type[0] == "time") {
$cell = "<!-- T:{$ckeys[$j]} -->";
} else {
if ($type[0] == "ref") {
$randomkey = md5(time() . $ckeys[$j]);
$magic["{$randomkey}"] = "xxref#{$type[1]}@{$row}@" . trim($type[2]);
$cell = "<!-- D:{$randomkey} -->";
} else {
$cell = "<!-- D:{$ckeys[$j]} -->";
}
}
}
}
}
$magic_template .= "\n\t\t\t<td bgcolor=\"white\">{$cell}</td>\n\t\t\t";
$j++;
}
$magic_template .= '
</tr>
<!--END-->
</table>';
$q->searchResults = $All;
listList($q, $magic, $magic_template);
}
开发者ID:BackupTheBerlios,项目名称:ascore,代码行数:79,代码来源:lib_autoquery.php
示例7: newObject
<?php
require_once "Reports.php";
$u = newObject("report");
$u->isAdmin = BILO_isAdmin();
$d = array("isPrint" => "fref#report|ID|Is_Print");
$u->searchResults = $u->selectAll($offset, $sort);
listList($u, $d, "list_reports");
?>
开发者ID:BackupTheBerlios,项目名称:ascore,代码行数:9,代码来源:index.php
示例8: array
$tasks = array(1);
//generateJobsToday();
foreach ($ids as $id) {
$o = newObject("gtask", $id);
$cron = new Parser($o->getCronString());
$RunsToday = $cron->getRuns(time());
foreach ($RunsToday as $timeStampOfRun) {
//echo strftime("%d/%m/%Y %H:%M",$cron_ran)." # ".$cron_ran;
$tl = newObject("gtasklog");
$tasklog = $tl->getByTaskDate($o, $timeStampOfRun);
if ($tasklog) {
$tasks[] = $tasklog->ID;
//print_r($tasklog);
} else {
//
$tl = newObject("gtasklog");
$tl->gtask_id = $id;
$tl->schedule_id = $o->schedule_id;
$tl->inicio = $timeStampOfRun;
$tl->estado = 'No iniciada';
$tasks[] = $tl->save();
}
}
}
$o = newObject("gtasklog");
$d = array("gtask_id" => $o->get_external_reference("gtask_id"), "schedule_id" => $o->get_external_reference("schedule_id"));
$o->searchResults = $o->select("(inicio >" . dateTodayStamp() . " ) OR (estado='No iniciada')", $offset, $sort);
listList($o, $d, "gtasklog_control");
?>
开发者ID:BackupTheBerlios,项目名称:ascore,代码行数:29,代码来源:task_today.php
示例9: setNavVars
<?php
require_once "Forus.php";
setNavVars(array("foro_id"));
$foro_id = isset($foro_id) ? $foro_id : 1;
$sort = isset($sort) ? $sort : "fecha DESC";
$n = newObject("post");
$u = newObject("post");
$f = newObject("foro", $foro_id);
$deffor = "Foro: <b><a href=\"index.php\">Foros</a> --> {$f->title}</b>";
$url = $PHP_SELF;
if ($cont == "true") {
$f->visitas++;
}
$f->save();
$u->searchResults = $u->select("p_id<2 and foro_id={$foro_id}", $offset, $sort);
$u->bread = $deffor;
$padre = $f->ID;
$total = $f->sumaMsg2();
$id = $u->ID;
$external_data = array("grafica" => 'code#return $object->msgBar(' . $total . ');', "nuevo2" => 'code#if ($object->fecha >= ' . ($_SESSION['fecha'] + 1) . ')
return "Nuevo";');
echo $parcial;
//lo anterior es la forma de pasar el resultado de un if u otro bucle.
$u->foro_id = $foro_id;
//damos el valor primero al objeto sino se lo pasa vacio.
listList($u, $external_data, "list");
开发者ID:BackupTheBerlios,项目名称:ascore,代码行数:27,代码来源:index2.php
示例10: newObject
$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");
开发者ID:BackupTheBerlios,项目名称:ascore,代码行数:30,代码来源:view2.php
示例11: newObject
<?php
require_once "Bilo.php";
if (BILO_isOperator()) {
$g = newObject("group");
$u = newObject("user");
$g->isAdmin = BILO_isAdmin();
setLimitRows(30);
$g->searchResults = $g->select("active='Si'", $offset, $sort);
listList($g, array(), "list_group");
resetLimitRows();
} else {
echo "<h4 align=\"center\">PRIVILEGIOS INSUFICIENTES</h4>";
}
?>
开发者ID:BackupTheBerlios,项目名称:ascore,代码行数:15,代码来源:list_group.php
示例12: newObject
<?php
require_once "GlobalSche/GlobalSche.php";
$u = newObject("gtasklog");
$u->searchResults = $u->selectAll($offset, $sort);
$d = array("gtask_id" => $u->get_external_reference("gtask_id"), "schedule_id" => $u->get_external_reference("schedule_id"));
listList($u, $d, "gtasklog_list");
开发者ID:BackupTheBerlios,项目名称:ascore,代码行数:7,代码来源:tasklog_list.php
示例13: newObject
<?php
require_once "GlobalSche/GlobalSche.php";
$u = newObject("gtask");
$u->searchResults = $u->selectAll($offset, $sort);
$d = array("schedule_id" => $u->get_external_reference("schedule_id"));
listList($u, $d, "task_list");
?>
开发者ID:BackupTheBerlios,项目名称:ascore,代码行数:8,代码来源:task_list.php
示例14: newObject
<?php
require_once "GlobalSche/GlobalSche.php";
$u = newObject("gsteplog");
$u->searchResults = $u->selectAll($offset, $sort);
$d = array("gtask_id" => $u->get_external_reference("gtask_id"), "gtasklog_id" => $u->get_external_method("gtasklog_id", "idname"), "gstep_id" => $u->get_external_reference("gstep_id"));
//print_r($d);
listList($u, $d, "steplog_list");
开发者ID:BackupTheBerlios,项目名称:ascore,代码行数:8,代码来源:steplog_list.php
示例15: BILO_isAdmin
<?php
require_once "JasperReports.php";
$aux->isAdmin = BILO_isAdmin();
$aux = newObject("jasperreport");
setLimitRows(20);
$aux->searchResults = $aux->selectAll($offset, $sort);
listList($aux, array(), "listadojasperreport");
resetLimitRows();
开发者ID:BackupTheBerlios,项目名称:ascore,代码行数:9,代码来源:listadojasperreport.php
示例16: eval
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()">
<img src="<?php
echo $SYS["FROOT"] . "/Framework/Extensions/Zoom/local/Images/center.png";
?>
" alt="Centrar" width="16" height="16" align="middle" border="0" title="Centrar"></a>
开发者ID:BackupTheBerlios,项目名称:ascore,代码行数:31,代码来源:Zoom.php
示例17: listList
$cell = "<!-- D:{$row} -->";
}
}
}
}
}
$magic_template .= "\n\t\t\t<td bgcolor=\"white\">{$cell}</td>\n\t\t\t";
$j++;
}
$magic_template .= '
</tr>
<!--END-->
</table>';
//print($magic_template);
$q->searchResults = $bulk;
listList($q, $magic, $magic_template);
}
$data = ob_get_contents();
ob_clean();
if ($print_mode == "yes") {
require_once "Lib/lib_PDF.php";
PDF_html_2_pdf($data);
} else {
if ($export_mode == "yes") {
$trans_from = array(";", "</td>", " ", "</th>", "<tr>");
$trans_to = array("", ";", "", ";", "\n");
header("Content-Type: text/csv");
$origname = strtr($u->reportname, " ", "_") . ".csv";
header("Content-Disposition: attachment; filename={$origname}");
$pass1 = strip_tags(str_replace($trans_from, $trans_to, preg_replace("/<h3(.*)h3>/e", "", $data)));
$pass2 = strtr($pass1, "\t", " ");
开发者ID:BackupTheBerlios,项目名称:ascore,代码行数:31,代码来源:view.php
示例18: plantHTML
if ($filas == 0) {
$u->nohay = "<tr><td align=\"center\"><b>No hay subcategorias</b></td></tr>";
}
$u->cat_id = $cat_id;
plantHTML(array("text" => "Categoria: {$u->nombre}"), "titulo");
$u->isAdmin = BILO_isAdmin();
if (BILO_isAdmin()) {
$u->crea = "<div align=\"center\"><a href=\"nueva_categoria.php?cat_id={$u->cat_id}\" class=\"minibuttonik\">Crear</a></div>";
}
listList($u, array(), "list_cat");
}
$v = newObject("documento");
if ($cat_id > 1) {
$c = newObject("categoria", $cat_id);
$v->searchResults = $v->select("cat_id={$cat_id}", $offset, $sort);
} else {
$v->searchResults = $v->selectAll($offset, $sort);
}
$filas = $v->nRes;
if (BILO_isAdmin()) {
$colspan = 5;
} else {
$colspan = 4;
}
if ($filas == 0) {
$v->nohay = "<tr><td align=\"center\" colspan=\"{$colspan}\"><b>No hay documentos disponibles en este instante</b></td></tr>";
}
$external_data = array("categoria" => "xref#categoria|cat_id|nombre");
$v->isAdmin = BILO_isAdmin();
listList($v, $external_data, "list_doc");
开发者ID:BackupTheBerlios,项目名称:ascore,代码行数:30,代码来源:index2.php
示例19: foreach
}
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>
开发者ID:BackupTheBerlios,项目名称:ascore,代码行数:31,代码来源:cmd_querybuilder.php
示例20: newObject
<?php
require_once "GlobalSche/GlobalSche.php";
$u = newObject("gstep");
$u->searchResults = $u->selectAll($offset, $sort);
$d = array("gtask_id" => $u->get_external_reference("gtask_id"));
listList($u, $d, "step_list");
开发者ID:BackupTheBerlios,项目名称:ascore,代码行数:7,代码来源:step_list.php
注:本文中的listList函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论