Style cleanup
authorJean-Michel Vourgère <jvourger@greenpeace.org>
Sat, 25 Feb 2017 19:29:00 +0000 (08:29 +1300)
committerJean-Michel Vourgère <jvourger@greenpeace.org>
Thu, 9 Mar 2017 18:06:30 +0000 (18:06 +0000)
css/squasher.css
templates/admin.tpl
templates/index.tpl
templates/login.tpl
templates/logs.tpl
templates/udmin.tpl

index 16bd6792cb1651e856291a7a0381539f2eefb887..c2c7abef14f3048fe1c4dd9b5bb1e06b1cfcaf9f 100644 (file)
 body {
        background-color:#E2EBD8;
-       min-width:1000px;
        font-family:Arial Narrow;
        font-size:16px;
 }
 
-.wrapper {
+.wrappercontainer {
        width: 1000px;
        margin: 10px auto;
-}
-
-.container {
        border:5px solid;
        border-color:#FFFFFF;
        color:#003300;
-       left:50%;
        background: #FFFFFF;
 }
 
+/* top banner */
+.banner {
+       background-color:#66CC00;
+       width:100%;
+       height:45px;
+       background:#66CC00 url(../img/squash.gif) no-repeat 30px 50%;
+}
+
+/* Top right list of links, inside banner */
 .control {
        float:right;
        text-align:right;
+       margin: 2px;
 }
 
+/* A menucontainer can hold several menu lines */
 .menucontainer {
-       background-color:#FFFFFF;
+       margin-top:10px;
+       margin-bottom:10px;
 }
 
 .menu {
-       text-align:center;
+       clear:left;
 }
 
-.menuhead {
+/* menus div contains:
+ - div.menuhead
+ - a
+ - a.selected */
+.menu .menuhead, .menu a {
        float:left;
-       background-color:#66CC00;
-       color:#003300;
        margin:1px;
+       padding:3px 8px;
        border:1px solid;
+}
+
+.menu .menuhead {
+       background-color:#66CC00;
+       color:#003300;
        border-color:#66CC00;
 }
 
-.menuitem {
-       float:left;
+.menu a {
        background-color:#C7F09E;
        color:#003300;
-       margin:1px;
-       border:1px solid;
        border-color:#E2EBD8;
+       text-decoration:none;
 }
 
-.menuitem:hover {
-       background-color:#339900;
-       color:#FFFFFF;
-}
-
-.menuitem_selected {
-       float:left;
+.menu a:hover, .menu a.selected {
        background-color:#339900;
        color:#FFFFFF;
-       margin:1px;
-       border:1px solid;
        border-color:#E2EBD8;
 }
 
+/* main content container */
 .content {
+       clear:left;
+       margin-top:10px;
        float:left;
        padding-right:5px;
        width:600px;
 }
 
-/* These are used by logs : */
+/* misc */
+.bottomimage {
+       background: #FFFFFF url(../img/gp1.gif) no-repeat 95% 95%;
+       clear:both;
+       float:right;
+       width:300px;
+       height:146px;
+}
 
-tr.logentry_download {
-       background-color:#C7F09E;
+.footer {
+       clear:both;
+       margin-top:10px;
+       background-color:#66CC00;
+       text-align:center;
+       background:#66CC00 url(../img/gplogobottomright.gif) no-repeat 100%;
+}
+
+.clear {
+       clear:both;
+}
+
+a {
        color:#003300;
-       margin:1px;
-       border:1px solid;
-       border-color:#C7F09E;
 }
 
-tr.logentry_download:hover {
-       background-color:#339900;
-       color:#FFFFFF;
+a:hover {
+       color:#FF6600;
 }
 
-tr.logentry_delete {
+/* These are used by logs : */
+table.log {
+       border-spacing:0;
+       spacing:0;
+       padding:0;
+       width:1000px;
        background-color:#C7F09E;
-       color:#003300;
-       margin:1px;
-       border:1px solid;
-       border-color:#C7F09E;
 }
 
-tr.logentry_delete:hover {
+tr.logentry_header {
        background-color:#339900;
        color:#FFFFFF;
+       border:1px solid;
+       border-color:#C7F09E;
+       text-align:center;
 }
 
-tr.logentry_login {
+tr.logentry_download, tr.logentry_delete, tr.logentry_login, tr.logentry_empty {
        background-color:#C7F09E;
        color:#003300;
        margin:1px;
@@ -105,16 +131,13 @@ tr.logentry_login {
        border-color:#C7F09E;
 }
 
-tr.logentry_login:hover {
-       background-color:#339900;
-       color:#FFFFFF;
+tr.logentry_empty {
+       text-align:center;
 }
 
-tr.logentry_header {
+tr.logentry_download:hover, tr.logentry_delete:hover, tr.logentry_login:hover {
        background-color:#339900;
        color:#FFFFFF;
-       border:1px solid;
-       border-color:#C7F09E;
 }
 
 /* there are used on index, for each file block : */
@@ -193,38 +216,6 @@ tr.logentry_header {
        padding-right:2px;
 }
 
-/* general stuff : */
-.clear {
-       clear:both;
-       height:1px;
-}
-
-.spacer {
-       clear:both;
-       height:10px;
-}
-
-.banner {
-       background-color:#66CC00;
-       text-align:center;
-       width:100%;
-       height:45px;
-       background:#66CC00 url(../img/squash.gif) no-repeat 30px 50%;
-}
-
-.footer {
-       background-color:#66CC00;
-       text-align:center;
-       background:#66CC00 url(../img/gplogobottomright.gif) no-repeat 100%;
-}
-
-.bottomimage {
-       background: #FFFFFF url(../img/gp1.gif) no-repeat 95% 95%;
-       float:right;
-       width:300px;
-       height:146px;
-}
-
 /* index mass delete */
 .massdelete {
        /*position:absolute;*/
@@ -247,15 +238,6 @@ tr.logentry_header {
 }
 
 
-/* general stuff : */
-a {
-       color:#003300;
-}
-
-a:hover {
-       color:#FF6600;
-}
-
 /* users: user list/form wrapper */
 .white_border {
        float:left;
@@ -287,21 +269,15 @@ a:hover {
 }
 
 /* login page */
-.loginbody .wrapper {
-       width: 240px;
-       height: 160px;
-       margin: 10% auto;
-}
-
-.loginbody .container {
+.loginbody .wrappercontainer {
        position:relative;
        width: 240px;
        height: 160px;
+       margin: 10% auto;
        border:5px solid;
        border-color:#FFFFFF;
        color:#FFFFFF;
        background: #C7F09E;
-       left:auto;
 }
 
 .loginbody .login {
index 0366e8e516094dc525bf251e840ed5758ce60532..26aa327a5417ed4e584d77b330c762226e3439a2 100644 (file)
@@ -5,45 +5,28 @@
 <link rel=stylesheet href="css/squasher.css">
 <title>Squasher</title>
 <style>
-{foreach item=style_row from=$style}{$style_row}{/foreach}
+{foreach item=style_row from=$style}
+{$style_row}
+{/foreach}
 </style>
 </head>
-<body align="center" style="min-width:1000px;">
-<div class="wrapper">
-<div class="container">
-       <div class="banner">&nbsp;<div class="control">{if $user_level > 99}<a href="?">home</a>&nbsp;|&nbsp;<a href="?tools=access">access</a>&nbsp;|{/if}{if $user_level > 99}&nbsp;<a href="?tools=users">users</a>&nbsp;|&nbsp;<a href="?tools=logs">logs</a>&nbsp;|{/if}&nbsp;<a href="index.php?tools=logout">
-logout({$user_name})</a>&nbsp;</div></div>
+<body>
+<div class="wrappercontainer">
 
-       <div class="spacer"></div>
+       <div class="banner">&nbsp;<div class="control">{if $user_level > 99}<a href="?">home</a>&nbsp;|&nbsp;<a href="?tools=access">access</a>&nbsp;|&nbsp;<a href="?tools=users">users</a>&nbsp;|&nbsp;<a href="?tools=logs">logs</a>&nbsp;|{/if}&nbsp;<a href="index.php?tools=logout">logout({$user_name})</a>&nbsp;</div></div>
 
        <div class="menucontainer">
 
-       <div class="menu">
+               <div class="menu">
 
-       <div class="menuhead">users</div>
+                       <div class="menuhead">users</div>
 
-       {foreach item=user key=user_id from=$users}<div {if $user_id eq $edited_user}class="menuitem_selected"{else}class="menuitem"{/if} onClick="location.href='?tools=access&user={$user.id}'" style="cursor:pointer" >{$user.name}</div>{/foreach}
+                       {foreach item=user key=user_id from=$users}<a {if $user_id eq $edited_user}class="selected"{/if} href="?tools=access&user={$user.id}">{$user.name}</a>{/foreach}
 
-       </div>
-
-       <div class="clear"></div>
-
-       <div class="menu">
-
-{*
-       <div class="menuhead">subfolders</div>
-
-       {foreach item=folder key=folderpath from=$subfolders}<div class="menuitem" onClick="location.href='?path={$folderpath}'" style="cursor:pointer" >{$folder}</div>{/foreach}*}
+               </div>
 
        </div>
 
-
-       <div class="clear"></div>
-
-       </div>
-
-       <div class="spacer"></div>
-
 <div class="content">
 {if $layout}
 
@@ -65,13 +48,8 @@ logout({$user_name})</a>&nbsp;</div></div>
 {/if}  </div>
 
        <div class="bottomimage"></div>
-
-       <div class="clear"></div>
-
-       <div class="spacer"></div>
        <div class="footer">&nbsp;</div>
 </div>
-</div>
 {if $debug}{debug}{/if}
 </body>
 </html>
index 223b17a711c89ae4ce60b102dd2e1c7606cbb2f1..2f999f0b44b8300f06296894c6fc491196a57f63 100644 (file)
    }
 {/literal}</script>
 </head>
-<body style="min-width:1000px;">
-<div class="wrapper">
-<div class="container">
+<body>
+<div class="wrappercontainer">
 
-       <div class="banner">&nbsp;<div class="control">{if $user_level > 99}<a href="?">home</a>&nbsp;|&nbsp;<a href="?tools=access">access</a>&nbsp;|{/if}{if $user_level > 99}&nbsp;<a href="?tools=users">users</a>&nbsp;|&nbsp;<a href="?tools=logs">logs</a>&nbsp;|{/if}&nbsp;<a href="index.php?tools=logout">logout({$user_name})</a>&nbsp;</div></div>
-
-       <div class="spacer"></div>
+       <div class="banner">&nbsp;<div class="control">{if $user_level > 99}<a href="?">home</a>&nbsp;|&nbsp;<a href="?tools=access">access</a>&nbsp;|&nbsp;<a href="?tools=users">users</a>&nbsp;|&nbsp;<a href="?tools=logs">logs</a>&nbsp;|{/if}&nbsp;<a href="index.php?tools=logout">logout({$user_name})</a>&nbsp;</div></div>
 
        <div class="menucontainer">
 
-       <div class="menu">
-       
-       <div class="menuhead">current folder</div>
-       
-       {foreach item=crumb key=cookie from=$base}<div class="menuitem" onClick="location.href='?path={$cookie}'" style="cursor:pointer" >{$crumb}</div>{/foreach}
-       
-       </div>
-       
-       <div class="clear"></div>
-       
-       <div class="menu">
-       
-       <div class="menuhead">subfolders</div>
+               <div class="menu">
        
-       {foreach item=folder key=folderpath from=$subfolders}<div class="menuitem" onClick="location.href='?path={$folderpath}'" style="cursor:pointer" >{$folder}</div>{/foreach}
+                       <div class="menuhead">current folder</div>
        
-       </div>
-       
-       <div class="clear"></div>
-{*     
-       <div class="menu">
+                       {foreach item=crumb key=cookie from=$base}<a href="?path={$cookie}">{$crumb}</a>{/foreach}
        
-       {foreach item=dir key=path from=$paths}{if $path!=$currentfolder}<div class="menuitem" onClick="location.href='squasher.php?path={$path}'" style="cursor:pointer" >{$dir}</div>{/if}{/foreach}
+               </div>
        
-       </div>
+               <div class="menu">
        
+                       <div class="menuhead">subfolders</div>
        
+                       {foreach item=folder key=folderpath from=$subfolders}<a href="?path={$folderpath}">{$folder}</a>{/foreach}
        
-       <div class="clear"></div>*}
+               </div>
        
        </div>
        
-       <div class="spacer"></div>
-
-<div class="content">
+       <div class="content">
 {assign var=mass_delete_size value=count($squashed)}
 {foreach item=item key=id from=$squashed}
 {if $item.squashed}{*These items are in chunks / uploaded by the squasher tool*}
 {if $item.hidden eq false OR $user_level > 99 }
                <div class={if $item.finished==true}"status3"{elseif $item.finished!=true && $item.embedable==true}"status2"{elseif $item.finished!=true && $item.embedable!=true}"status1"{else}"item"{/if}>
 
-                               <div class="name">{$item.name} {if $user_level > 99}{if $item.hidden}<font color=red>|<a href='?tools=unhide&h={$id}'>publish</a>|</font>{else}<font color=green>|<a href='?tools=hide&h={$id}'>hide</a>|</font>{/if}{if $user_level > 100}<font color=red>|<a href='?tools=delete&h={$id}' onClick="javascript:return confirm('Are you sure you want to permanently delete {$item.name}?')">delete</a>|</font>{/if}{/if}</div>
+                       <div class="name">{$item.name} {if $user_level > 99}{if $item.hidden}<font color=red>|<a href='?tools=unhide&h={$id}'>publish</a>|</font>{else}<font color=green>|<a href='?tools=hide&h={$id}'>hide</a>|</font>{/if}{if $user_level > 100}<font color=red>|<a href='?tools=delete&h={$id}' onClick="javascript:return confirm('Are you sure you want to permanently delete {$item.name}?')">delete</a>|</font>{/if}{/if}</div>
 
-                               <div class="status">status: {$item.status}</div>
+                       <div class="status">status: {$item.status}</div>
 
-               <div class="clear"></div>
+                       <div class="clear"></div>
 
-               <div class="added">added: {$item.date}</div>
+                       <div class="added">added: {$item.date}</div>
                
-                               <div class="size">size:&nbsp;{if $item.size>(1024*1024)}{math equation="((x / 1024) / 1024) * (y / z)" x=$item.size y=$item.chunks_finished z=$item.chunks format="%.2f"}&nbsp;/&nbsp;{math equation="(x / 1024) / 1024" x=$item.size format="%.2f"}mb{elseif $item.size>(1024)}{math equation="(x / 1024) * (y / z)" x=$item.size y=$item.chunks_finished z=$item.chunks format="%.2f"}&nbsp;/&nbsp;{math equation="(x / 1024)" x=$item.size format="%.2f"}kb{else}{math equation="x * (y / z)" x=$item.size y=$item.chunks_finished z=$item.chunks format="%.0f"}&nbsp;/&nbsp;{$item.size}b{/if}({math equation="(y / x) * 100" x=$item.chunks y=$item.chunks_finished format="%.0f"}%)</div>
+                       <div class="size">size:&nbsp;{if $item.size>(1024*1024)}{math equation="((x / 1024) / 1024) * (y / z)" x=$item.size y=$item.chunks_finished z=$item.chunks format="%.2f"}&nbsp;/&nbsp;{math equation="(x / 1024) / 1024" x=$item.size format="%.2f"}mb{elseif $item.size>(1024)}{math equation="(x / 1024) * (y / z)" x=$item.size y=$item.chunks_finished z=$item.chunks format="%.2f"}&nbsp;/&nbsp;{math equation="(x / 1024)" x=$item.size format="%.2f"}kb{else}{math equation="x * (y / z)" x=$item.size y=$item.chunks_finished z=$item.chunks format="%.0f"}&nbsp;/&nbsp;{$item.size}b{/if}({math equation="(y / x) * 100" x=$item.chunks y=$item.chunks_finished format="%.0f"}%)</div>
 
-               <div class="clear"></div>
+                       <div class="clear"></div>
 
-               <div class="updated">last updated: {$item.lastchange}</div>
+                       <div class="updated">last updated: {$item.lastchange}</div>
 
 
 {if $item.finished==true}
-                               <div class="download"><a href='?f={$id}'>download</a></div>
+                       <div class="download"><a href='?f={$id}'>download</a></div>
 {/if}
 {if $item.embedable eq true and $item.finished eq false}
        {if $item.mime=='video/mpeg'}
-                               <div class="stream"><a href='?f={$id}'>download ({math equation="(y / x) * 100" x=$item.chunks y=$item.chunks_partial format="%.0f"}%)</a></div>
+                       <div class="stream"><a href='?f={$id}'>download ({math equation="(y / x) * 100" x=$item.chunks y=$item.chunks_partial format="%.0f"}%)</a></div>
        {/if}
 {/if}
 
-               <div class="clear"></div>
+                       <div class="clear"></div>
                </div>
        
                <div class="clear"></div>
 {if $item.hidden eq false OR $user_level > 99 }
                <div class={if $item.finished==true}"status3"{elseif $item.finished!=true && $item.embedable==true}"status2"{elseif $item.finished!=true && $item.embedable!=true}"status1"{else}"item"{/if}>
 
-                               <div class="name">{$item.name} {if $user_level > 99}{if $item.hidden}<font color=red>|<a href='?tools=unhide&h={$id}'>publish</a>|</font>{else}<font color=green>|<a href='?tools=hide&h={$id}'>hide</a>|</font>{/if}{if $user_level > 199}<font color=red>|<a href='?tools=delete&h={$id}' onClick="javascript:return confirm('Are you sure you want to permanently delete {$item.name}?')">delete</a>|</font>{/if}{/if}</div>
+                       <div class="name">{$item.name} {if $user_level > 99}{if $item.hidden}<font color=red>|<a href='?tools=unhide&h={$id}'>publish</a>|</font>{else}<font color=green>|<a href='?tools=hide&h={$id}'>hide</a>|</font>{/if}{if $user_level > 199}<font color=red>|<a href='?tools=delete&h={$id}' onClick="javascript:return confirm('Are you sure you want to permanently delete {$item.name}?')">delete</a>|</font>{/if}{/if}</div>
 
-                               <div class="status">status: {$item.status}</div>
+                       <div class="status">status: {$item.status}</div>
 
-               <div class="clear"></div>
+                       <div class="clear"></div>
 
-               <div class="added">added: {$item.date}</div>
+                       <div class="added">added: {$item.date}</div>
 
-                               <div class="size">size:&nbsp;{if $item.size>(1024*1024)}{math equation="(x / 1024) / 1024" x=$item.size format="%.2f"}mb{elseif $item.size>(1024)}{math equation="(x / 1024)" x=$item.size format="%.2f"}kb{else}{$item.size}b{/if}</div>
+                       <div class="size">size:&nbsp;{if $item.size>(1024*1024)}{math equation="(x / 1024) / 1024" x=$item.size format="%.2f"}mb{elseif $item.size>(1024)}{math equation="(x / 1024)" x=$item.size format="%.2f"}kb{else}{$item.size}b{/if}</div>
 
-               <div class="clear"></div>
+                       <div class="clear"></div>
 
-               <div class="updated">last updated: {$item.lastchange}</div>
+                       <div class="updated">last updated: {$item.lastchange}</div>
 
 
 {if $item.finished==true}
-                               <div class="download"><a href='?f={$id}'>download</a></div>
+                       <div class="download"><a href='?f={$id}'>download</a></div>
 {/if}
 {if $item.embedable eq true and $item.finished eq false}
        {if $item.mime=='video/mpeg'}
-                               <div class="stream"><a href='?f={$id}'>download (partial)</a></div>
+                       <div class="stream"><a href='?f={$id}'>download (partial)</a></div>
        {/if}
 {/if}
 
-
-               <div class="clear"></div>
+                       <div class="clear"></div>
                </div>
        
                <div class="clear"></div>
 {/if}
 {/if}
 {/foreach}
-
        </div>
 
        <div class="filler">
-       <div class="bottomimage"></div>
 {if $user_level > 100 and $mass_delete_size > 1}
                <div class="massdelete"><br>
-<div class="deletebox" id="deletebox">
-       <form name="deletetool" action="?tools=delete&h=multiple" method="post" onSubmit='return confirm("Are you sure you want to delete the selected files? \nThis page may take a while to reload while the files are removed.");'>
-               <select multiple="" size="{$mass_delete_size}" id="h" name="h[]" width="300px">
-{foreach item=item key=id from=$squashed}
-                       <option value="{$id}" title="{$item.name}">{$item.name|truncate:39}</option>
-{/foreach}
-               </select>
-               <input type="button" value="Select All" OnClick="selectAllList();" ><input type="reset" value="Clear"><input type="submit" value="Delete Selected Items">
-       </form>
-</div>
-{*<br><input type="button" value=":show deletion tool:" OnClick="toggle_id('deletebox');" >*}
-       </div>
+                       <div class="deletebox" id="deletebox">
+                               <form name="deletetool" action="?tools=delete&h=multiple" method="post" onSubmit='return confirm("Are you sure you want to delete the selected files? \nThis page may take a while to reload while the files are removed.");'>
+                                       <select multiple="" size="{$mass_delete_size}" id="h" name="h[]" width="300px">
+                                               {foreach item=item key=id from=$squashed}
+                                               <option value="{$id}" title="{$item.name}">{$item.name|truncate:39}</option>
+                                               {/foreach}
+                                       </select>
+                                       <input type="button" value="Select All" OnClick="selectAllList();" ><input type="reset" value="Clear"><input type="submit" value="Delete Selected Items">
+                               </form>
+                       </div>
+               </div>
 {/if}
        </div>
-       <div class="clear"></div>
-
-       <div class="spacer"></div>
 
+       <div class="bottomimage"></div>
        <div class="footer">&nbsp;</div>
-
-</div>
 </div>
 {if $debug}{debug}{/if}
 </body>
index 574e212711293d24f6811da9b5669342c0db5e2b..9188ce462e6af914d15ff4d7d462327c6d02a64a 100644 (file)
@@ -11,9 +11,8 @@ function hasher(){ldelim}
        document.loginform.pass.value=hex_md5(hex_md5(document.loginform.pass.value)+salt);
 {rdelim}
 </script>
-<body align="center" style="min-width:400px;min-height:300px;" class=loginbody>
-<div class="wrapper">
-<div class="container">
+<body class=loginbody>
+<div class="wrappercontainer">
 
        <div class="loginheader">&nbsp;</div>
 
@@ -27,7 +26,6 @@ function hasher(){ldelim}
 
        <div class="loginfooter">&nbsp;</div>
 
-</div>
 </div>
 {if $debug}{debug}{/if}
 </body>
index 632483f72b0ce4f01a405e5802a742a10dc238e5..4d7b810545b557effb80d4f50c1ef315cf3b9e50 100644 (file)
@@ -5,42 +5,31 @@
 <link rel=stylesheet href="css/squasher.css">
 <title>Squasher</title>
 </head>
-<body align="center" style="min-width:1000px;">
-<div class="wrapper">
-<div class="container">
+<body>
+<div class="wrappercontainer">
 
-       <div class="banner">&nbsp;<div class="control">{if $user_level > 99}<a href="?">home</a>&nbsp;|&nbsp;<a href="?tools=access">access</a>&nbsp;|{/if}{if $user_level > 99}&nbsp;<a href="?tools=users">users</a>&nbsp;|&nbsp;<a href="?tools=logs">logs</a>&nbsp;|{/if}&nbsp;<a href="index.php?tools=logout">logout({$user_name})</a>&nbsp;</div></div>
-
-       <div class="spacer"></div>
+       <div class="banner">&nbsp;<div class="control">{if $user_level > 99}<a href="?">home</a>&nbsp;|&nbsp;<a href="?tools=access">access</a>&nbsp;|&nbsp;<a href="?tools=users">users</a>&nbsp;|&nbsp;<a href="?tools=logs">logs</a>&nbsp;|{/if}&nbsp;<a href="index.php?tools=logout">logout({$user_name})</a>&nbsp;</div></div>
 
        <div class="menucontainer">
 
-       <div class="menu">
-
-       <div class="menuhead">&nbsp;logs&nbsp;</div>
-
-       <div {if $logtype eq "all"     }class="menuitem_selected"{else}class="menuitem"{/if} onClick="location.href='?tools=logs&logtype=all'"      style="cursor:pointer" >&nbsp;all&nbsp;</div>
-       <div {if $logtype eq "delete"  }class="menuitem_selected"{else}class="menuitem"{/if} onClick="location.href='?tools=logs&logtype=delete'"   style="cursor:pointer" >&nbsp;delete&nbsp;</div>
-       <div {if $logtype eq "download"}class="menuitem_selected"{else}class="menuitem"{/if} onClick="location.href='?tools=logs&logtype=download'" style="cursor:pointer" >&nbsp;download&nbsp;</div>
-       <div {if $logtype eq "login"   }class="menuitem_selected"{else}class="menuitem"{/if} onClick="location.href='?tools=logs&logtype=login'"    style="cursor:pointer" >&nbsp;login&nbsp;</div>
-       <div {if $logtype eq "debug"   }class="menuitem_selected"{else}class="menuitem"{/if} onClick="location.href='?tools=logs&logtype=debug'"    style="cursor:pointer" >&nbsp;squasher&nbsp;</div>
+               <div class="menu">
 
-       </div>
-
-       <div class="clear"></div>
+                       <div class="menuhead">logs</div>
 
-       <div class="menu"></div>
+                       <a {if $logtype eq "all"     }class="selected"{/if} href="?tools=logs&logtype=all"     >all</a>
+                       <a {if $logtype eq "delete"  }class="selected"{/if} href="?tools=logs&logtype=delete"  >delete</a>
+                       <a {if $logtype eq "download"}class="selected"{/if} href="?tools=logs&logtype=download">download</a>
+                       <a {if $logtype eq "login"   }class="selected"{/if} href="?tools=logs&logtype=login"   >login</a>
+                       <a {if $logtype eq "debug"   }class="selected"{/if} href="?tools=logs&logtype=debug"   >squasher</a>
 
-       <div class="clear"></div>
+               </div>
 
        </div>
 
-       <div class="spacer"></div>
-
 <div class="content">
-  <table style="border-spacing:0;spacing:0;padding:0;width:990px;background-color:#C7F09E;">
+  <table class="log">
 
-   <tr class="logentry_header" align="center">
+   <tr class="logentry_header">
     <td width='*' colspan="5">Today</td>
    </tr>
 
     <td width='*' title="{$entry.file|substr:10}{if $entry.ip eq 'retry'}\n : This file did not pass validation. A request was mailed to the RO to restart the upload.{/if}{if $entry.ip eq 'cleanup'}\n : This file entry was missing all chunks. This entry was removed.{/if}">&nbsp;{$entry.file|substr:10:64}</td>
    </tr>
 {foreachelse}
-   <tr style="background-color:#C7F09E;" align="center">
+   <tr class="logentry_empty">
     <td width='*' colspan="3"><hr></td>
     <td width='120px'>Log is empty</td>
     <td width='*'><hr></td>
    </tr>
 {/foreach}
 
-   <tr class="logentry_header" align="center">
+   <tr class="logentry_header">
     <td width='*' colspan="5">Yesterday</td>
    </tr>
 
     <td width='*' title="{$entry.file|substr:10}{if $entry.ip eq 'retry'}\n : This file did not pass validation. A request was mailed to the RO to restart the upload.{/if}{if $entry.ip eq 'cleanup'}\n : This file entry was missing all chunks. This entry was removed.{/if}">&nbsp;{$entry.file|substr:10:64}</td>
    </tr>
 {foreachelse}
-   <tr style="background-color:#C7F09E;" align="center">
+   <tr class="logentry_empty">
     <td width='*' colspan="3"><hr></td>
     <td width='120px'>Log is empty</td>
     <td width='*'><hr></td>
    </tr>
 {/foreach}
 
-   <tr class="logentry_header" align="center">
+   <tr class="logentry_header">
     <td width='*' colspan="5">Last week</td>
    </tr>
 
     <td width='*' title="{$entry.file|substr:10}{if $entry.ip eq 'retry'}\n : This file did not pass validation. A request was mailed to the RO to restart the upload.{/if}{if $entry.ip eq 'cleanup'}\n : This file entry was missing all chunks. This entry was removed.{/if}">&nbsp;{$entry.file|substr:10:64}</td>
    </tr>
 {foreachelse}
-   <tr style="background-color:#C7F09E;" align="center">
+   <tr class="logentry_empty">
     <td width='*' colspan="3"><hr></td>
     <td width='120px'>Log is empty</td>
     <td width='*'><hr></td>
    </tr>
 {/foreach}
 
-   <tr class="logentry_header" align="center">
+   <tr class="logentry_header">
     <td width='*' colspan="5">Older</td>
    </tr>
 
     <td width='*' title="{$entry.file|substr:10}{if $entry.ip eq 'retry'}\n : This file did not pass validation. A request was mailed to the RO to restart the upload.{/if}{if $entry.ip eq 'cleanup'}\n : This file entry was missing all chunks. This entry was removed.{/if}">&nbsp;{$entry.file|substr:10:64}</td>
    </tr>
 {foreachelse}
-   <tr style="background-color:#C7F09E;" align="center">
+   <tr class="logentry_empty">
     <td width='*' colspan="3"><hr></td>
     <td width='120px'>Log is empty</td>
     <td width='*'><hr></td>
   </table>
 </div>
 
-       <div class="spacer"></div>
-
        <div class="bottomimage"></div>
-
-       <div class="clear"></div>
-
-       <div class="spacer"></div>
-
        <div class="footer">&nbsp;</div>
 </div>
-</div>
 {if $debug}{debug}{/if}
 </body>
 </html>
index d2534a2a3527dee3d3c1a3fc58235962062f2347..77074501fae1442f45abdee55c3d35dc731cc19e 100644 (file)
    }
    {/literal}</script>
 </head>
-<body align="center" style="min-width:1000px;">
-<div class="wrapper">
-<div class="container">
+<body>
+<div class="wrappercontainer">
 
-       <div class="banner">&nbsp;<div class="control">{if $user_level > 99}<a href="?">home</a>&nbsp;|&nbsp;<a href="?tools=access">access</a>&nbsp;|{/if}{if $user_level > 99}&nbsp;<a href="?tools=users">users</a>&nbsp;|&nbsp;<a href="?tools=logs">logs</a>&nbsp;|{/if}&nbsp;<a href="index.php?tools=logout">logout({$user_name})</a>&nbsp;</div></div>
-
-       <div class="spacer"></div>
-
-       <div class="menucontainer">
-
-       <div class="menu">
-
-       {*<div class="menuhead">users</div>
-
-       {foreach item=user key=user_id from=$users}<div class="menuitem" onClick="location.href='?tools=access&user={$user.id}'" style="cursor:pointer" >{$user.name}</div>{/foreach}
-
-       </div>*}
-
-       <div class="clear"></div>
-
-       <div class="menu">
-{*     
-       <div class="menuhead">subfolders</div>
-       
-       {foreach item=folder key=folderpath from=$subfolders}<div class="menuitem" onClick="location.href='?path={$folderpath}'" style="cursor:pointer" >{$folder}</div>{/foreach}
-*}     
-       </div>
-       
-       <div class="clear"></div>
-       
-       </div>
-       
-       <div class="spacer"></div>
+       <div class="banner">&nbsp;<div class="control">{if $user_level > 99}<a href="?">home</a>&nbsp;|&nbsp;<a href="?tools=access">access</a>&nbsp;|&nbsp;<a href="?tools=users">users</a>&nbsp;|&nbsp;<a href="?tools=logs">logs</a>&nbsp;|{/if}&nbsp;<a href="index.php?tools=logout">logout({$user_name})</a>&nbsp;</div></div>
 
        <div class="content">
 
        </div>
 
        <div class="bottomimage"></div>
-       
-       <div class="clear"></div>
-
-       <div class="spacer"></div>
-
        <div class="footer">&nbsp;</div>
 
-</div>
 </div>
 {if $debug}{debug}{/if}
 </body>