Move to html5 / utf8
[squasher.git] / templates / index.tpl
index cd5e8c7be4b7a12db56aa18d2babe7b0b12daf0e..ff8fac77bc8ccecd17c023e3c7658b6a9c60246d 100644 (file)
@@ -1,74 +1,64 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+<html>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
 <link rel=stylesheet href="css/squasher.css">
 <title>Squasher</title>
-<script type="text/javascript" language="JavaScript">{literal}
-   function toggle_id(hideshow){
-    if(document.getElementById(hideshow).style.visibility == 'visible') {
-     document.getElementById(hideshow).style.visibility = 'hidden';
-    }else{
-     document.getElementById(hideshow).style.visibility = 'visible';
-    }
-   }
-   function selectAllList() {
-    var aSelect = document.deletetool["h[]"];
-    var aSelectLen = aSelect.length;
-    for(i = 0; i < aSelectLen; i++) {
-     aSelect.options[i].selected = true;
-    }
-   }
-   function deleteFolder(foldername) {
-    if (!confirm('Are you sure you want to delete folder '+foldername+' ?'))
-     return;
-    document.rmdir.submit();
-   }
-   function deleteFolderNotEmpty(foldername) {
-    alert(foldername+' in not empty. Please empty it first');
-   }
-   function createFolder() {
-    var folder = prompt("New folder name");
-    if (folder == null)
-     return; // canceled
-    if (folder.indexOf('/')>=0 || folder=='.' || folder=='..') {
-     // detect the most common errors
-     alert('Invalid name');
-     return;
-    }
-    document.mkdir.newname.value = folder;
-    document.mkdir.submit();
-   }
-{/literal}</script>
-</head>
-<body>
+<script type="text/javascript" language="JavaScript">
+       {literal}
+       function toggle_id(hideshow){
+               if(document.getElementById(hideshow).style.visibility == 'visible') {
+                       document.getElementById(hideshow).style.visibility = 'hidden';
+               }else{
+                       document.getElementById(hideshow).style.visibility = 'visible';
+               }
+       }
+       function selectAllList() {
+               var aSelect = document.deletetool["h[]"];
+               var aSelectLen = aSelect.length;
+               for(i = 0; i < aSelectLen; i++) {
+                       aSelect.options[i].selected = true;
+               }
+       }
+       function deleteFolder(foldername) {
+               if (!confirm('Are you sure you want to delete folder '+foldername+' ?'))
+                       return;
+               document.rmdir.submit();
+       }
+       function deleteFolderNotEmpty(foldername) {
+               alert(foldername+' in not empty. Please empty it first');
+       }
+       function createFolder() {
+               var folder = prompt("New folder name");
+               if (folder == null)
+                       return; // canceled
+               if (folder.indexOf('/')>=0 || folder=='.' || folder=='..') {
+                       // detect the most common errors
+                       alert('Invalid name');
+                       return;
+               }
+               document.mkdir.newname.value = folder;
+               document.mkdir.submit();
+       }
+       {/literal}
+</script>
+
 <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;|&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|escape})</a>&nbsp;</div></div>
 
        <div class="menucontainer">
-
                <div class="menu">
-       
                        <div class="menuhead">current folder</div>
-       
                        {foreach item=crumb key=cookie from=$base}<a href="?path={$cookie|escape:'url'}">{$crumb|escape}</a>{/foreach}
-
                        {if $user_level > 99 AND count($base)>1 }
                                <form name=rmdir method=post>
                                <input type=hidden name=tools value=rmdir>
                                <a href="javascript:deleteFolder{if count($squashed)>0 || count($subfolders)>0}NotEmpty{/if}('{$currentfolder|escape:'javascript'|escape}');" class=tool>delete this folder</a>
                                </form>
                        {/if}
-
                </div>
-       
                <div class="menu">
-
                        <div class="menuhead">subfolders</div>
-
                        {foreach item=folder key=folderpath from=$subfolders}<a href="?path={$folderpath|escape:'url'}">{$folder|escape}</a>{/foreach}
-
                        {if $user_level > 99}
                                <form name=mkdir method=post>
                                <input type=hidden name=tools value=mkdir>
@@ -76,9 +66,7 @@
                                <a href="javascript:createFolder();" class=tool>new subfolder</a>
                                </form>
                        {/if}
-
                </div>
-
        </div>
        
        <div class="content">
        <div class="footer">&nbsp;</div>
 </div>
 {if $debug}{debug}{/if}
-</body>
-</html>
+{* vim: set syntax=smarty ts=4 sw=4 sts=4 sr noet: *}