Mercurial > hg > lukkari
changeset 30:6148ce4a83ed
Cleanups.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 27 Sep 2011 10:56:50 +0300 |
parents | ac51fc10414f |
children | dbe7ff545293 |
files | index.php |
diffstat | 1 files changed, 21 insertions(+), 17 deletions(-) [+] |
line wrap: on
line diff
--- a/index.php Mon Sep 05 10:55:45 2011 +0300 +++ b/index.php Tue Sep 27 10:56:50 2011 +0300 @@ -8,7 +8,8 @@ $roomFile = "luokkatilat.txt"; $cacheFile = "coursecache.txt"; $baseURI = "http://tnsp.org/luk/"; -$infoURI = "http://www.oamk.fi/opiskelijalle/rakenne/opinto-opas/koulutusohjelmat/?sivu=oj&kieli=FI&opas=2010-2011&vuosi=10S11K&koodi1="; +//$infoURI = "http://www.oamk.fi/opiskelijalle/rakenne/opinto-opas/koulutusohjelmat/?sivu=oj&kieli=FI&opas=2010-2011&vuosi=10S11K&koodi1="; +$infoURI = "http://www.oamk.fi/opiskelijalle/rakenne/opinto-opas/koulutusohjelmat/?sivu=oj&kieli=FI&koodi1="; $dayNames = array("Maanantai", "Tiistai", "Keskiviikko", "Torstai", "Perjantai", "Lauantai", "Sunnuntai"); $hourStamps = array( @@ -388,31 +389,33 @@ if ($miniMode) echo "<div id=\"mini\">\n"; echo -"<form id=\"controls\" action=\"".$baseURI."\" method=\"get\">\n". -" <table>\n". -" <tr>\n". -" <td>\n". -" <select name=\"luokka\">\n"; +"<form id=\"controls\" action=\"".$baseURI."\" method=\"get\"> + <table> + <tr> + <td> + <select name=\"luokka\"> +"; foreach ($classes as $class) { echo " <option ".($luokka == $class ? "selected=\"selected\" " : "")."value=\"".$class."\">".htmlentities($class)."</option>\n"; } -echo -" </select>\n". -" </td>\n". -" <td><input type=\"submit\" value=\" Vaihda \" /></td>\n". -" <td>[<a href=\"".$baseURI."?luokka=".$luokka; +echo +" </select> + </td> + <td><input type=\"submit\" value=\" Vaihda \" /></td> + <td>[<a href=\"".$baseURI."?luokka=".$luokka; if ($miniMode) echo "\">Normaali"; else echo "&nyt\">Mini-info"; -echo "</a>]</td>\n". -" <td>[<a href=\"http://www.oamk.fi/tyojarjestykset/otek/luokat/OR_".$luokka.".htm\">Alkuperäinen</a>]</td>\n". -" </tr>\n". -" </table>\n". -"</form>\n"; +echo "</a>]</td> + <td>[<a href=\"http://www.oamk.fi/tyojarjestykset/otek/luokat/OR_".$luokka.".htm\">Alkuperäinen</a>]</td> + </tr> + </table> +</form> +"; echo "<h1>".$pageTitle."</h1>\n"; @@ -428,7 +431,8 @@ echo "<div style=\"position: relative; top: 5em; font-size: 5pt;\"><hr /> Yhteydenotot <b>ccr @ IRCNet</b> tai <b>ccr at tnsp dot org</b>. En vastaa mahdollisista virheistä tiedoissa! -</div>\n"; +</div> +"; if ($miniMode) echo "</div>\n"; printPageFooter();