Ejemplo n.º 1
0
$dmyCalButton = "<a href='#'><div class='calButtonSelected' id='calButton'><small>[Cal]</small></div></a>";
$dmyListButton = "<a href='homeList.php'><div class='unselected' id='listButton'><small>[List]</small></div></a>";
$dmyCalListBox .= $dmyCalButton . $dmyListButton;
$dmyCalListBox .= "</div>";
$showFiltersButton = "<div class='unselected'  onclick='toggleFilters()' id='showFiltersButton'><span>Show Filters</span></div>";
$dateMenuBar .= $todayButton . $arrowButtonsBox . $dateBox . $dmyCalListBox . $showFiltersButton;
$dateMenuBar .= "</div>";
#close dateMenuBar
#filters box
$filtersBox = "<div style='display:none;' class='filtersBox'>";
#open filtersBox
$assignmentStatusDiv = "<div class='assignmentStatus'>" . "<h3>Assignment Status</h3>";
$assignmentStatusSelect = "<select onchange='filterAssignments()' id='assignmentStatusSelect'>" . "<option value='none'>No Filter</option>" . "<option value='pending'>Pending Assignments</option>" . "<option value='complete'>Complete Assignments</option></select>";
$assignmentStatusDiv .= $assignmentStatusSelect . "</div>";
$repDiv = "<div class='repDiv'>" . "<h3>Representative</h3>";
$repDivSelector = $gremlin->createUserSelect();
$repDiv .= $repDivSelector . "</div>";
$filtersBox .= $assignmentStatusDiv . $repDiv;
$filtersBox .= "</div>";
#close filtersBox
#Col 1 - Event List
$col1 = "<div id='homeCol1'>";
#open homeCol1
#there's two tabs in col1
#tab 1 - All Events
$tab1 = "<div id='homeTab1'>";
#open homeTab1
$allEventsTable = "<table class='eventsTable'>";
$allEventsRows = "<tr><td><div class='headerRow'><h5>Pick Ups and Drop Offs</h5></div></td></tr>";
#Build "Anytime Events"
$allEventsRows .= $gremlin->buildPickupDropoffRows($user->ID, $user->teamID, $unixTime);