diff options
author | Marcin Slusarz <marcin.slusarz@gmail.com> | 2012-03-25 17:18:08 +0200 |
---|---|---|
committer | Christoph Brill <egore911@egore911.de> | 2012-03-26 00:37:44 +0200 |
commit | 630a1bdb912dee9c5aa10541b3a0a0fe7ef0d042 (patch) | |
tree | 22ce19a42dd2aa99159dd0652b7d4ffc7efd73c7 /index.php | |
parent | c23208fb9f84b0f09b2d8ee641a856d7ee174dd7 (diff) |
remember last channel
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -167,6 +167,7 @@ if (!isset($date)) { echo ' <h1>'.$title.'</h1> <hr/> <form name="open_for" method="get" action=""> + <input name="channel" type="text" value="' . $channel . '" style="display: none; visibility: hidden;"/> <label for="date">Enter date of the log to open:</label> <input id="date" size="10" maxlength="10" name="date" value="'.date('Y-m-d').'" onkeyup="javascript:makeValid(\'date\')" onblur="javascript:makeValidFinal(this, \'date\', \'date_chooser\', 1950, 2049, Date.patterns.ISO8601ShortPattern, false)" type="text"/> <img src="images/calendar.png" alt="Choose date" onclick="showChooser(this, \'date\', \'date_chooser\', 1950, 2049, Date.patterns.ISO8601ShortPattern, false);"/> @@ -196,7 +197,7 @@ if (!isset($date)) { $last_month = $month; echo ' <div style="border: 1px solid gray; margin: 10px; padding: 20px; float: left;">'.$month.'<hr/>'.PHP_EOL; } - echo ' <a href="?date='.get_date($file).'">'.get_date($file).'</a> <a href="'.LOG_DIR.'/'.$file.'">(raw)</a><br/>'.PHP_EOL; + echo ' <a href="?channel='.$channel.'&date='.get_date($file).'">'.get_date($file).'</a> <a href="'.LOG_DIR.'/'.$file.'">(raw)</a><br/>'.PHP_EOL; $month_counter++; } finish_month(); |