<?php $params = array('enumStyle' => 'terse', 'clsRpt'); $clsRpt = new generic_rpt($params); $clsRpt->strWidthLabel = '120pt'; $attributes = new stdClass(); $attributes->lTableWidth = 1200; $attributes->lUnderscoreWidth = 400; $attributes->divID = 'grantDiv'; $attributes->divImageID = 'grantDivImg'; $attributes->bStartOpen = false; $attributes->bAddTopBreak = true; showGrant($clsRpt, $grant, $lGrantID); showProjects($clsRpt, $grant, $lGrantID, $attributes); showSchedule($clsRpt, $grant, $lGrantID, $attributes); showAwards($clsRpt, $grant, $lGrantID, $attributes); showResources($clsRpt, $grant, $lGrantID, $attributes); showReporting($clsRpt, $grant, $lGrantID, $attributes); showImageInfo(CENUM_CONTEXT_GRANTS, $lGrantID, 'Grant Images', $images, $lNumImages, $lNumImagesTot); showDocumentInfo(CENUM_CONTEXT_GRANTS, $lGrantID, 'Grant Documents', $docs, $lNumDocs, $lNumDocsTot); function showGrant($clsRpt, $grant, $lGrantID) { //-------------------------------------------------- // //-------------------------------------------------- openBlock('Grant', strLinkEdit_Grant($lGrantID, 'Edit Grant Record', true) . ' ' . strLinkRem_Grant($lGrantID, 'Remove Grant Record', true, true)); echoT($clsRpt->openReport() . $clsRpt->openRow() . $clsRpt->writeLabel('Grant ID:') . $clsRpt->writeCell(str_pad($lGrantID, 5, '0', STR_PAD_LEFT)) . $clsRpt->closeRow() . $clsRpt->openRow() . $clsRpt->writeLabel('Grant Name:') . $clsRpt->writeCell(htmlspecialchars($grant->strGrantName)) . $clsRpt->closeRow()); echoT($clsRpt->openRow() . $clsRpt->writeLabel('Accounting Country:') . $clsRpt->writeCell($grant->strFlagImg) . $clsRpt->closeRow()); echoT($clsRpt->openRow() . $clsRpt->writeLabel('Notes:') . $clsRpt->writeCell(nl2br(htmlspecialchars($grant->strNotes))) . $clsRpt->closeRow()); echoT($clsRpt->openRow() . $clsRpt->writeLabel('Attributed to:') . $clsRpt->writeCell(htmlspecialchars($grant->strAttributedTo)) . $clsRpt->closeRow()); echoT($clsRpt->closeReport());
} } } else { if (strpos($value['Visitor'], $month) !== False) { } else { printTable($value); } } } } else { if ($value['Visitor'] == $teamName) { printTable($value); } else { if ($value['Home'] == $teamName) { printTable($value); } } } } echo '</table>'; //} } $teamName = $_POST['Team']; $month = $_POST['Month']; if ($month == 'Playoffs') { $Playoffs = csv_to_array('playoff.csv'); showSchedule($Playoffs, 'NULL', $teamName); } else { $NBASchdule = csv_to_array('NBASchedule.csv'); showSchedule($NBASchdule, $month, $teamName); }