示例#1
0
$tblEventAttendee->setCSSFile("cuscosky.css");
//i liked this table feel; but any css can be used from http://icant.co.uk/csstablegallery
#implement a callback function on signing up to create cookie
$tblEventAttendee->onAddExecuteCallBackFunction("onAddCallBackFunction");
//if event expired, do not allow people to sign up for it or change who had attended
if ($eventExpired) {
    $tblEventAttendee->disallowAdd();
    $tblEventAttendee->disallowDelete();
    $tblEventAttendee->turnOffAjaxEditing();
    $tblEventAttendee->omitFieldCompletely("fldWillBeLate");
    $tblEventAttendee->omitFieldCompletely("fldTimeArriving");
}
//this needs to be very low in the excution path to ensure the obj is loaded correctly with every other piece of logic
//typically doAction is called within the showTable() method, but i do not want to do that because i modify headers with my onAdd callback function
if (isset($_REQUEST['action']) && $_REQUEST['action'] != '') {
    $tblEventAttendee->doAction($_REQUEST['action']);
}
include 'header.php';
if ($eventExpired) {
    displayExpiration();
}
echo "<h3><u>{$fldType}</u> Event: {$fldTitle} - " . date("M d, Y", strtotime($fldDate)) . " @ {$fldTime}</h3>\n";
if ($fldType == "Public") {
    echo "<div class=\"highlight\"><img src='youre-invited.png' width='150' hspace='10' align='left' /><center style='color: blue;font-size: 14px'><i>YOU'RE</i> invited! Who me? Yes, you! Can friends come?? YES!! All are welcome. <br />This is a <b><i>PUBLIC</i></b> event. You are welcome to join. Don't feel an invitation is required. Just sign up below to let us know you'll be there. :-)</center></div><br />";
}
echo "<div id='container' style=\"text-align:center; font-size:13px; width: 90%; margin: auto; text-align:center;\">";
$marginLeft = "30%;";
if ($fldImage) {
    echo "<div id='leftDiv' style='width: 35%; float: left;'><img src=\"uploads/{$fldImage}\" width=\"200px\" class=\"imagedropshadow\"></div>";
    $marginLeft = "5px;";
}