예제 #1
0
 - Site Admin Page</title>
    <link href="css/site.css" rel="stylesheet" type="text/css">
</head>

<body>
<div id="container">

<?php 
require_once 'db/Expo.php';
require_once 'db/Worker.php';
require_once 'section/ExpoList.php';
require_once 'section/Menu.php';
require_once 'swwat/gizmos/format.php';
require_once 'util/date.php';
setWorkerCurrent(NULL);
$expoList = Expo::selectMultiple();
// should be in order for display
usort($expoList, "ExpoCompare");
$_SESSION[PARAM_LIST] = $expoList;
setExpoCurrent(NULL);
$_REQUEST[PARAM_LIST_INDEX] = NULL;
setStationCurrent(NULL);
// ok, start the html
include 'section/header.php';
?>

<div id="main">

    <div id="expolistpage_filters">
    </div><!-- expolistpage_filters -->
예제 #2
0
    }
}
// $registration
foreach ($registrationArray as $registration) {
    try {
        $registration->delete();
        // accepted, so don't keep around
    } catch (PDOException $ex) {
        logMessage("RegistrationAction", "delete registration for worker:{$worker->workerid} failure " . $ex->getMessage());
        // but ignore and continue
    }
}
// $registration
$expoArray = array();
try {
    $expoArray = Expo::selectMultiple();
} catch (PDOException $ex) {
    logMessage("RegistrationAction", "selecting expo list " . $ex->getMessage());
    // but ignore and continue
}
foreach ($expoArray as $expo) {
    if ($expo->newUserAddedOnRegistration && !$expo->isPast()) {
        if (!$worker->isAssignedToExpo($expo->expoid)) {
            try {
                $worker->assignToExpo($expo->expoid);
            } catch (PDOException $ex) {
                logMessage("RegistrationAction", "assign worker:{$worker->workerid} failure " . $ex->getMessage());
                // but ignore and continue
            }
        }
    }