Esempio n. 1
0
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;
}
Esempio n. 2
0
}
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' );
Esempio n. 3
0
    } 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">