Exemplo n.º 1
0
        ?>
							<h2>Click for more information</h2>
							<?php 
    }
    ?>
						</a>
						<?php 
    printDateSubtitle($show);
    ?>
 </div> <?php 
}
if (count($shortplayinfo) > 0) {
    ?>
					<div class="showinfo">
						<h3>The <?php 
    echo getSeasonString($latestYear);
    ?>
 Short Plays</h3>
						<img class="thumbnail" src="ShowFront/spsthumb.jpg" alt="The 2015-2016 Short Play Series">
						<p><?php 
    for ($i = 0; $i < count($shortplayinfo) - 1; $i++) {
        echo $shortplayinfo[$i]["Quarter"];
        echo ",";
    }
    echo $shortplayinfo[count($shortplayinfo) - 1]["Quarter"];
    ?>
						</p></div> 
						<?php 
}
?>
				
Exemplo n.º 2
0
function printSeasonSelect($formName)
{
    //The current year
    $currentyear = date("Y");
    //last represents the last season that is available for editing
    //Two years into the future should be more than enough for practical purposes
    $last = $currentyear + 2;
    ?>
	<select form='<?php 
    echo $formName;
    ?>
' name="season-input">
		<?php 
    for ($i = $last; $i > 2000; $i--) {
        ?>
			<option value=<?php 
        echo $i;
        ?>
				<?php 
        if ($i == $currentyear) {
            ?>
					selected='selected'
				<?php 
        }
        ?>
>
			<?php 
        echo getSeasonString($i);
        ?>
</option>
		<?php 
    }
    ?>
	</select>

<?php 
}