Пример #1
0
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
*/
// $Id: editNotes.php,v 1.9 2005/10/30 22:37:19 atrommer Exp $
checkUser($_SESSION['USERTYPE'], 2);
// check for postback
if ($_POST['isPostback']) {
    updateNotes($_POST['hdEvent'], sanitizeInput($_POST['taComments']));
    redirect('editSched.php?area=' . $_POST['area']);
}
if (isset($_REQUEST['event'])) {
    $oEvent = getEventDetails($_REQUEST['event']);
    // if we don't have a month set, pull it from area
    if (strlen($oEvent->event_comments)) {
        $sNotes = $oEvent->event_comments;
    } else {
        $sNotes = getAreaTempl($_REQUEST['area']);
    }
} else {
    accessDenied("Please choose an event to edit first using Manage Schedules");
}
doHeader("Editing notes for " . $oEvent->event_name, 'taComments');
?>

		<b><?php 
echo $oEvent->event_name;
?>
</b>
		<br>
		  <span class="contactInfo"><?php 
echo date("l, F jS, Y", strtotime($oEvent->event_date));
?>
Пример #2
0
checkUser($_SESSION['USERTYPE'], 2);
/*
 * This page takes a post from the assignemps page
 * and allows a super to edit the details of the area.
 * It also allows them to call the editPos page for position edits
 */
// check for postback
if ($_POST['isPostback']) {
    // do the updates
    updateArea($_POST);
    redirect('assignEmps.php');
}
// first we get the area details
$oAreaDetails = getAreas($_SESSION['USERID'], $_REQUEST['area']);
// now get the area template
$sATempl = getAreaTempl($_REQUEST['area']);
// next get the cur super's super list
if ($_SESSION['USERTYPE'] == 2) {
    // grab the supers child supers
    $oSupers = getChildSupers($_SESSION['USERID']);
} else {
    $oSupers = getSupervisors();
}
// get the area supers
$oAreaSuper = getAreaSuper($_REQUEST['area']);
// parse through the object into an array
foreach ($oAreaSuper as $Super) {
    $aSelectedSupers[] = $Super->as_uid;
}
doHeader("Area Edit of " . $oAreaDetails[0]->area_name, 'taTempl');
?>