Beispiel #1
0
echo '<input type="hidden" name="', PARAM_TYPE_MESSAGE, '" value="', PARAM_EMAIL, '"/>';
//echo '<input type="radio" name="', PARAM_TYPE_MESSAGE, '" value="', PARAM_EMAIL, '" checked="checked"/>';
//echo "Email Message<br/>\n";
//echo '<input type="radio" name="', PARAM_TYPE_MESSAGE, '" value="', PARAM_SMS_SERVICE, '"/>';
//echo "SMS Message<br/><br/>\n";
echo "Subject: ";
echo '<input type="text" name="', PARAM_SUBJECT_MESSAGE, '" value="" length="30"/>';
echo "<p/>\n";
echo '<textarea name="', PARAM_MESSAGE, '" rows="3" cols="40"></textarea>';
echo "<br/><br/>\n";
// todo - add javascript such that when sms is checked, the sendmessage button is greyed out if >160 characters
// todo - hava javascript show error message in sms_overlength or similar
// todo - create css errortext
swwat_createInputSubmit(PARAM_SEND_MESSAGE, "Send Message");
echo "<br/><br/>\n";
createWorkerHTMLList($workerList, $author, "To:", $author->isOrganizer());
?>
        </form>
    </div><!-- sendmessagepage_send -->

</div><!-- main -->

<?php 
$menuItemArray = array();
if ($author->isOrganizer()) {
    $menuItemArray[] = MENU_VIEW_SITEADMIN;
}
// todo - fix
//    $menuItemArray[] = MENU_XYZExpo_MESSAGE;
//    $menuItemArray[] = MENU_XYZStation_MESSAGE;
//    $menuItemArray[] = MENU_XYZWorker_MESSAGE;
Beispiel #2
0
// should be in order for display
usort($workerList, "WorkerCompare");
$_SESSION[PARAM_LIST] = $workerList;
setWorkerCurrent(NULL);
// set null wherever param_list set to workers
$_REQUEST[PARAM_LIST_INDEX] = NULL;
// ok, start the html
include 'section/header.php';
?>

<div id="main">

    <div id="workerlistpage_filters">
    </div><!-- workerlistpage_filters -->

    <?php 
createWorkerHTMLList($workerList, $author);
?>
</div><!-- main -->

<?php 
$menuItemArray = array();
$menuItemArray[] = MENU_VIEW_SITEADMIN;
$menuItemArray[] = MENU_SEND_MESSAGE;
Menu::addMenu($menuItemArray);
include 'section/footer.php';
?>

</div><!-- container -->
</body></html>