<div id="slide-content" class="scrollpane"> <?php // grab array of library name ids (login names) $name_id = getNameIDs(); // loop through these for the panel display for ($i = 0; $i < count($name_id); $i++) { // smaller functions used for future flexibility $nameid = $name_id[$i]; $id = getID($name_id[$i]); $url = getURL($name_id[$i]); $name = getName($name_id[$i]); $building = getBuilding($name_id[$i], 'at '); $description = getDescription($name_id[$i]); $notes = getHoursNotes($name_id[$i]); $map = getMapCode($name_id[$i]); $address = getAddress($name_id[$i]); $phone = getPhone($name_id[$i]); $accessurl = getAccessURL($name_id[$i]); $currentdate = date('Y-m-d'); $currenttime = date('H:i:s'); ?> <a name="view-<?php echo $nameid; ?> "></a> <div id="<?php echo $nameid; ?>
$row .= 'N/A</td>'; } //closes if-else } //closes if // close the row $row .= '</tr>'; // add the row to the widget $widget .= $row; } //closes for // grab name for monthly hours link $URLname = getNameIDs($location1); // grab available widget or emergency closure notes for location 1 $note1 = getWidgetNote($location1); $emergencynote1 = getHoursNotes($URLname); // when a note is included if ($note1 || $emergencynote1) { // add a row for notes $widget .= ' <tr class="widget-note"><td colspan="4"><em>Note:</em> '; if ($note1) { $widget .= $note1; } //closes if if ($note1 && $emergencynote1) { $widget .= '<br /><br />'; } //closes if if ($emergencynote1) { $widget .= $emergencynote1;