当前位置: 首页>>代码示例>>PHP>>正文


PHP listList函数代码示例

本文整理汇总了PHP中listList函数的典型用法代码示例。如果您正苦于以下问题:PHP listList函数的具体用法?PHP listList怎么用?PHP listList使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了listList函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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


注:本文中的listList函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。