function showChoices () { #---------------------------------------------------------------------- displayChoices( array( competitionChoice(), choiceButton( true, 'show', 'Show' ) )); }
function showChoices () { #---------------------------------------------------------------------- displayChoices( array( choiceButton( true, 'doit', ' Do it now ' ) )); }
function showChoices () { #---------------------------------------------------------------------- displayChoices( array( choiceButton( true, 'check', ' Check now ' ) )); }
function showChoices () { #---------------------------------------------------------------------- displayChoices( array( choiceButton( true, 'export', ' Export now ' ) )); }
function offerChoices() { #---------------------------------------------------------------------- global $chosenYears, $chosenRegionId, $chosenOrder; #--- Submission echo "<p>You can submit media <a href='media_insertion.php'>here</a></p><hr/><br/>"; #--- Filter displayChoices(array(regionChoice(true), yearsChoice(true, false, false, true), choice('order', 'Sorted by', array(array('date', 'Competition Date'), array('submission', 'Insertion Date')), $chosenOrder), choiceButton(true, 'filter', 'Filter'))); }
function showChoices () { #---------------------------------------------------------------------- global $chosenWhat; displayChoices( array( eventChoice( false ), competitionChoice(), choice( 'what', 'What', array( array( '', 'All' ), array( 'individual', 'individual results' ), array( 'ranks', 'ranks' ), array( 'similar', 'similar results' )), $chosenWhat ), choiceButton( true, 'show', 'Show' ) )); }
function infoMedium() { #---------------------------------------------------------------------- global $mediumId; $infos = dbQuery("\n SELECT media.*, competition.cellName\n FROM CompetitionsMedia media, Competitions competition\n WHERE media.id = '{$mediumId}'\n AND competition.id = media.competitionId\n "); extract($infos[0]); echo "<table border='0' cellspacing='0' cellpadding='2' width='100%'>\n"; $tableList = array(array('Type', $type), array('Competition', competitionLink($competitionId, $cellName)), array('Link', externalLink(htmlEscape($uri), htmlEscape($text))), array('Submitter', emailLink(htmlEscape($submitterEmail), htmlEscape($submitterName))), array('Comment', htmlEscape($submitterComment)), array('Submitted on:', $timestampSubmitted), array('Decided on', $timestampDecided), array('Status', $status)); foreach ($tableList as $table) { list($name, $value) = $table; echo "<tr><td>{$name}</td><td>{$value}</td></tr>"; } echo "</table>"; displayChoices(array(array(choiceButton(false, "refuse{$mediumId}", 'Erase'), choiceButton(false, "accept{$mediumId}", 'Accept')))); }
function offerChoices () { #---------------------------------------------------------------------- global $chosenEventId, $chosenRegionId, $chosenYears, $chosenPatternHtml, $chosenList, $chosenMap; displayChoices( array( eventChoice( false ), regionChoice( true ), yearsChoice( true, true, false, true ), textFieldChoice( 'pattern', 'Name, City or Venue', $chosenPatternHtml ), array( choiceButton( $chosenList, 'list', 'List' ), choiceButton( $chosenMap, 'map', 'Map' ), ) )); }
function offerChoices() { #---------------------------------------------------------------------- global $chosenType, $chosenStatus, $chosenRegionId, $chosenOrder; displayChoices(array(regionChoice(true), choice('type', 'Type', array(array('', 'All'), array('article', 'Articles'), array('report', 'Reports'), array('multimedia', 'Multimedia')), $chosenType), choice('order', 'Sorted by', array(array('date', 'Competition Date'), array('submission', 'Submission/Insertion Date')), $chosenOrder), choice('status', 'Status', array(array('pending', 'Pending'), array('accepted', 'Accepted')), $chosenStatus), choiceButton(true, 'filter' . rand(), ' Filter '))); }
function offerChoices() { #---------------------------------------------------------------------- global $chosenMixed, $chosenSlim, $chosenSeparate, $chosenHistory, $chosenMixHist; displayChoices(array(regionChoice(false), eventChoice(false), yearsChoice(true, false, true, false), array(choiceButton($chosenMixed, 'mixed', 'Mixed'), choiceButton($chosenSlim, 'slim', 'Slim'), choiceButton($chosenSeparate, 'separate', 'Separate'), choiceButton($chosenHistory, 'history', 'History'), choiceButton($chosenMixHist, 'mixHist', 'Mixed History')))); }
function offerChoices() { #---------------------------------------------------------------------- global $chosenSingle, $chosenAverage; displayChoices(array(regionChoice(false), array(choiceButton($chosenSingle, 'single', 'Single'), choiceButton($chosenAverage, 'average', 'Average')))); }
function offerChoices() { #---------------------------------------------------------------------- global $chosenPatternHtml; displayChoices(array(eventChoice(false), regionChoice(false), textFieldChoice('pattern', 'Name, parts, or WCA id', $chosenPatternHtml), choiceButton(true, 'search', 'Search'))); }
function offerChoicesResults() { #---------------------------------------------------------------------- global $chosenCompetitionId, $chosenByPerson, $chosenAllResults, $chosenTop3, $chosenWinners; displayChoices(array(array(choiceButton($chosenWinners, 'winners', 'Winners'), choiceButton($chosenTop3, 'top3', 'Top 3'), choiceButton($chosenAllResults, 'allResults', 'All Results'), choiceButton($chosenByPerson, 'byPerson', 'By Person'), "<input type='hidden' name='competitionId' value='{$chosenCompetitionId}' />"))); }
function offerChoices() { #---------------------------------------------------------------------- global $chosenShow, $chosenSingle, $chosenAverage; displayChoices(array(eventChoice(true), regionChoice(false), yearsChoice(true, false, true, true), choice('show', 'Show', array(array('100 Persons', '100 Persons'), array('1000 Persons', '1000 Persons'), array('All Persons', 'All Persons'), array('By Region', 'By Region'), array('100 Results', '100 Results'), array('1000 Results', '1000 Results')), $chosenShow), array(choiceButton($chosenSingle, 'single', 'Single'), choiceButton($chosenAverage, 'average', 'Average')))); }
function offerChoicesPrereg () { #---------------------------------------------------------------------- global $chosenCompetitionId, $chosenForm, $chosenList; global $competition; if( $competition['showPreregForm'] ) displayChoices( array( array( choiceButton( $chosenForm, 'form', 'Registration Form' ), choiceButton( $chosenList, 'list', 'List of Registered Competitiors' ), "<input type='hidden' name='competitionId' value='$chosenCompetitionId' />", ), )); else displayChoices( array( array( choiceButton( $chosenList, 'list', 'List of Registered Competitiors' ), "<input type='hidden' name='competitionId' value='$chosenCompetitionId' />", ), )); }