Exemple #1
0
    setWorkerCurrent($author);
} else {
    if (isset($_REQUEST[PARAM_LIST_INDEX])) {
        $worker = getParamItem(PARAM_LIST, PARAM_LIST_INDEX);
        setWorkerCurrent($worker);
    }
}
$_SESSION[PARAM_LIST] = NULL;
$worker = getWorkerCurrent();
if (!$author->isOrganizer()) {
    $worker = $author;
}
if (is_null($worker)) {
    $worker = $author;
}
setWorkerCurrent($worker);
// paranoia about some included section
$isAuthor = $worker->workerid == $author->workerid;
// login == current worker
logMessage("Worker:", $worker->workerid);
logMessage("Author:", $author->workerid);
// logMessage("phpinfo:", phpinfo());
// ok, start the html
include 'section/header.php';
?>

<div id="main">
    <table><tr style="vertical-align:top"><td>

    <div id="workerviewpage_workerdata">
        <?php 
Exemple #2
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 -->