proper time range

This commit is contained in:
Sebastian Grewe 2013-06-06 11:57:46 +02:00
parent 1bf2e7cf18
commit 8fccc8fe3a

View File

@ -6,21 +6,21 @@
<thead>
<tr>
<td></td>
{for $i=date('G', time() + 60 * 60) to 23}
<th scope="col">{$i}</th>
{for $i=date('G') to 23}
<th scope="col">{$i}:00</th>
{/for}
{for $i=0 to date('G')}
<th scope="col">{$i}</th>
{for $i=0 to date('G', time () - 60 * 60)}
<th scope="col">{$i}:00</th>
{/for}
</tr>
</thead>
<tbody>
<tr>
<th scope="row">{$GLOBAL.USERDATA.username}</th>
{for $i=date('G', time() + 60 * 60) to 23}
{for $i=date('G') to 23}
<td>{$YOURHASHRATES.$i|default:"0"}</td>
{/for}
{for $i=0 to date('G')}
{for $i=0 to date('G', time() - 60 * 60)}
<td>{$YOURHASHRATES.$i|default:"0"}</td>
{/for}
</tr>