本文整理汇总了PHP中Type::loadList方法的典型用法代码示例。如果您正苦于以下问题:PHP Type::loadList方法的具体用法?PHP Type::loadList怎么用?PHP Type::loadList使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Type
的用法示例。
在下文中一共展示了Type::loadList方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: search_type
function search_type($str)
{
global $cp;
$objTypeList = new Type();
$objTypeList->addWhere("type LIKE '" . $str . "%'");
$objTypeList->loadList();
if ($objTypeList->rMore()) {
while ($objType = $objTypeList->rNext()) {
$cur =& $cp->add_node('type');
$cur->set_data($objType->type);
}
}
return;
}
示例2: Type
}
if ($sqlFilter) {
$objItemList->addWhere('(' . $sqlFilter . ')');
}
if ($pShow == 'past') {
// past items from recent to old
$objItemList->addOrder('finishDate DESC, priority ASC');
} else {
// coming items from old to new ones
$objItemList->addOrder('finishDate ASC, priority ASC');
}
$objItemList->loadList();
// --- LOAD TYPES --------------------------------------------
$objTypeList = new Type();
$objTypeList->addWhere("type <> ''");
$objTypeList->loadList();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<title>AAT Queue!</title>
<link href="aat.css" rel="stylesheet" type="text/css" />
<!--[if gte IE 5.5]>
<![if lt IE 7]>
<style type="text/css">
div#header {
position: absolute;
left: expression( ( 0 + ( ignoreMe2 = document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft ) ) + 'px' );
top: expression( ( 0 + ( ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop ) ) + 'px' );
示例3: Type
} else {
if ($_REQUEST['mode'] == 'purgeAll') {
$objType = new Type();
$objType->delete("(finishDate < " . "'" . strftime(TZN_DATE_SQL, PRJ_DTE_NOW) . "'" . " AND status = " . AAT_STATUS_LEVELS . ") OR (status = " . AAT_STATUS_LEVELS . ")");
$pReload = true;
} else {
if ($_REQUEST['mode'] == 'deleteAll') {
$objType = new Type();
$objType->emptyTable();
$pReload = true;
}
}
}
}
$objType = new Type();
$objType->loadList();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<title>AAT Queue!</title>
<link href="aat.css" rel="stylesheet" type="text/css" />
<script language="JavaScript" src="aat.js" type="text/javascript"></script>
</head>
<body>
<?php
if ($pReload) {
?>
<script language="JavaScript">