1
0

Update template.lua

Removed FusionCare link, change position for "Current time JS", Compression Ratio: 31% (HTML)
This commit is contained in:
Ambushed91 2014-10-27 18:45:41 +01:00
parent c9fd6f820a
commit bc1a98b2db

View File

@ -64,47 +64,44 @@ function ShowPage(WebAdmin, TemplateRequest)
Output([[ Output([[
<!DOCTYPE html> <!DOCTYPE html>
<head> <head>
<title>]] .. Title .. [[</title> <title>]] .. Title .. [[</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="http://fonts.googleapis.com/css?family=Open+Sans:400,600,300" rel="stylesheet" type="text/css"> <link href="http://fonts.googleapis.com/css?family=Open+Sans:400,600,300" rel="stylesheet" type="text/css">
<link rel="stylesheet" type="text/css" href="/style.css"> <link rel="stylesheet" type="text/css" href="/style.css">
<link rel="icon" href="/favicon.ico"> <link rel="icon" href="/favicon.ico">
</head> </head>
<body> <body>
<div class="contention"> <div class="contention">
<div class="pagehead"> <div class="pagehead">
<div class="row1"> <div class="row1">
<div class="wrapper"> <div class="wrapper">
<img src="/logo_login.png" alt="MCServer Logo" class="logo"> <img src="/logo_login.png" alt="MCServer Logo" class="logo">
</div> </div>
</div> </div>
<div id="panel"> <div id="panel">
<div class="upper"> <div class="upper">
<div class="wrapper"> <div class="wrapper">
<ul class="menu top_links"> <ul class="menu top_links">
<li><a href=".././"><img src="/log_out.png" style="vertical-align:bottom;"> Log Out</a></li> <li><a href=".././"><img src="/log_out.png" style="vertical-align:bottom;"> Log Out</a></li>
</ul> </ul>
<div class="welcome"><strong>Welcome back, ]] .. TemplateRequest.Request.Username .. [[</strong></div> <div class="welcome"><strong>Welcome back, ]] .. TemplateRequest.Request.Username .. [[</strong></div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<div class="row2 push10"> <div class="row2 push10">
<div class="wrapper padtopp"> <div class="wrapper padtopp">
<table width="100%" border="0" align="center"><tbody> <table width="100%" border="0" align="center"><tbody>
<tr> <tr>
<!-- start: usercp_nav --> <td width="180" valign="top">
<td width="180" valign="top"> <table border="0" cellspacing="0" cellpadding="5" class="tborder">
<table border="0" cellspacing="0" cellpadding="5" class="tborder"> <tbody><tr>
<tbody><tr> <td class="thead"><strong>Menu</strong></td>
<td class="thead"><strong>Menu</strong></td> </tr>
</tr> <tr>
<tr> <td class="trow1 smalltext"><a href=']] .. BaseURL .. [[' class='usercp_nav_item usercp_nav_home'>Home</a></td>
<td class="trow1 smalltext"><a href=']] .. BaseURL .. [[' class='usercp_nav_item usercp_nav_home'>Home</a></td> </tr>
</tr> <tr><td class="tcat"><div><span class="smalltext"><strong>Server Management</strong></span></div></td></tr></tbody><tbody style="" id="usercppms_e"><tr><td class="trow1 smalltext">
<!-- start: usercp_nav_messenger -->
<tr><td class="tcat"><div><span class="smalltext"><strong>Server Management</strong></span></div></td></tr></tbody><tbody style="" id="usercppms_e"><tr><td class="trow1 smalltext">
]]) ]])
@ -125,57 +122,45 @@ function ShowPage(WebAdmin, TemplateRequest)
Output([[</td></tr></tbody> Output([[</td></tr></tbody>
</table> </table>
</td> </td>
<!-- end: usercp_nav --> <td valign="top" style='padding-left:25px;'>
<td valign="top" style='padding-left:25px;'> <table border="0" cellspacing="0" cellpadding="5" class="tborder">
<table border="0" cellspacing="0" cellpadding="5" class="tborder"> <tbody><tr>
<tbody><tr> <td class="thead" colspan="2"><strong>]] .. SubTitle .. [[</strong></td>
<td class="thead" colspan="2"><strong>]] .. SubTitle .. [[</strong></td> </tr>
</tr> <tr>
<tr> <td class="trow2">
<td class="trow2"> ]] .. PageContent .. [[
]] .. PageContent .. [[ </td>
</td> </tr>
</tr> </tbody></table>
</tbody></table> </td>
</td> </tr>
</tr> </tbody></table>
</tbody></table> </div>
</div> </div>
</div> </div>
</div> <div id="footer">
<div id="footer"> <div class="upper">
<div class="upper"> <div class="wrapper">
<div class="wrapper"> <ul class="menu bottom_links">
<ul class="menu bottom_links"> <li><a>Server Name: <strong>]] .. cRoot:Get():GetServer():GetServerID() .. [[</strong></a></li>
<li><a>Server Name: <strong>]] .. cRoot:Get():GetServer():GetServerID() .. [[</strong></a></li> <li><a>Memory: <strong>]] .. MemoryUsageKiB / 1024 .. [[MB</strong></a></li>
<li><a>Memory: <strong>]] .. MemoryUsageKiB / 1024 .. [[MB</strong></a></li> <li><a>Chunks: <strong>]] .. NumChunks .. [[</strong></a></li>
<li><a>Chunks: <strong>]] .. NumChunks .. [[</strong></a></li> </ul>
<li><a><script type="text/javascript"> </div>
document.write ('Time: <strong><span id="date-time">', new Date().toLocaleString(), '<\/span><\/strong>') </div>
if (document.getElementById) onload = function () { <div class=lower>
setInterval ("document.getElementById ('date-time').firstChild.data = new Date().toLocaleString()", 50) <div class=wrapper>
} <span id=current_time><strong>Current time:</strong> <script type=text/javascript>document.write('Time: <strong><span id="date-time">',new Date().toLocaleString(),"</span></strong>");if(document.getElementById){onload=function(){setInterval("document.getElementById ('date-time').firstChild.data = new Date().toLocaleString()",50)}};</script></span>
</script></a></li> <span id=copyright>
</ul> Copyright © <a href=http://www.mc-server.org target=_blank>MCServer Team</a> 2014.
<ul class="menu bottom_right"> </span>
</div>
</ul> </div>
</div> </div>
</div> </body></html>
<div class="lower">
<div class="wrapper">
<span id="current_time"><strong>FusionCare</strong> Web Developement</span>
<span id="copyright">
Copyright © <a href="http://www.mc-server.org" target="_blank">MCServer Team</a> 2014.
</span>
</div>
</div>
</div>
</body>
</html>
]]) ]])
return table.concat(SiteContent) return table.concat(SiteContent)