root/dev/templates/clock.tpl @ 491

Revision 370, 1.0 KB (checked in by kovell, 12 years ago)

- SQL queries optimised for speed and error protection.
- feed syndication optimised
- front page includes optional clock and optional kill/loss display
- mysqli support added
- transaction protection of kills added where supported (mysqli and InnoDB)
- summary tables and contracts show total destroyed value instead of ship value
- html errors reduced
- related kill calculation improved
- query caching errors reduced
- minor bugfixes
- Smarty 2.6.25 added
- apoc fitting mod added and modded
- code optimisations
- code comments added (doxygen format)
- conflicting mods are now identified

Line 
1<!-- clock.tpl -->
2{literal}<script type="text/javascript">
3<!--
4window.onload=updateClock;
5setInterval("updateClock()", 60000 )
6function updateClock ( )
7{
8  var currentTime = new Date ( );
9  var currentHours = currentTime.getUTCHours ( );
10  var currentMinutes = currentTime.getMinutes ( );
11
12  currentHours = ( currentHours < 10 ? "0" : "" ) + currentHours;
13  currentMinutes = ( currentMinutes < 10 ? "0" : "" ) + currentMinutes;
14
15  var currentTimeString = currentHours + ":" + currentMinutes;
16
17  document.getElementById("clock").firstChild.nodeValue = currentTimeString;
18}
19
20// -->
21</script>{/literal}
22<table class=kb-table width=150 cellspacing="1">
23        <tr><td class=kb-table-header align=center>Eve Time</td></tr>
24        <tr class=kb-table-row-even>
25                <td>
26                        <table class=kb-subtable cellspacing=0 border=0 width="100%">
27                                <tr class=kb-table-row-odd  style="text-align: center; font-weight: bold;">
28                                        <td id="clock">{$clocktime}</td>
29                                </tr></table></td>
30        </tr>
31</table><!-- /clock.tpl -->
Note: See TracBrowser for help on using the browser.