<!--
Copyright by Thomas Bley 2002-2003
thomas.bley@simple-groupware.de

http://www.simple-groupware.de
-->
<html>
<head>
    <meta http-equiv="content-type" content="text/html; charset={$charset}">
	<title>Webmail by Thomas Bley - Simple Groupware Solutions - more.groupware</title>
    {literal}
    <style>
        ody {
             BORDER-RIGHT:#434343 1px solid;
        }
    </style>
    {/literal}
    <link rel="stylesheet" type="text/css" href="templates/default/css/tree.css" />

<script src="templates/default/js/tree.js"></script>
<script src="templates/default/tree/ua.js"></script>
<script>
var STARTALLOPEN = {$wm2_openallfolders};
var PERSERVESTATE = ({$wm2_openallfolders}?0:{$wm2_preserve_state});

</script>
<script src="templates/default/tree/ftiens4.js"></script>

<script>

var session='{$SESSION}';
var newfolder_str='{$hashmap.myfolders_new} {$hashmap.myfolders_folder_create}';
var newlink_str='{$hashmap.tree_create_new_link}';
var editlink_str='{$hashmap.tree_edit_link}';
var newsubfolder='{$hashmap.myfolders_new} {$hashmap.myfolders_sub}{$hashmap.myfolders_folder_create}';
var renamefolder_str='{$hashmap.myfolders_rename_folder}';
var admin2_accessmodule='{$admin2_accessmodule}';

{if $reload_sidebar eq "yes"}
  parent.mailfolders.location="folders.php?"+session;
//  if (parent.frames["rightframe"].frames["mailview"]) parent.rightframe.maillist.location.reload();
{/if}

foldersTree = gFld("{$username|addslash}",0,-1,true,false,false, "#",0,0);

fieldpublic1=false;

var sublink_of='{$hashmap.tree_sublink_of}';
var sublink_of2='{$hashmap.tree_sublink_of2}';

var subfolder_of='{$hashmap.tree_subfolder_of}';
var lang_open='{$hashmap.tree_open}';

var lang_sidebar_add_1='{$hashmap.tree_sidebar_add_1}';
var lang_sidebar_add_2='{$hashmap.tree_sidebar_add_2}';

var lang_sidebar_rem_1='{$hashmap.tree_sidebar_rem_1}';
var lang_sidebar_rem_2='{$hashmap.tree_sidebar_rem_2}';

var lang_cut='{$hashmap.tree_cut}';
var lang_copy='{$hashmap.tree_copy}';
var lang_paste='{$hashmap.tree_paste}';

var confirm_delete='{$hashmap.myfolders_delete_folder}';

var lang_copy_mails='{$hashmap.tree_copy_mails}';
var lang_move_mails='{$hashmap.tree_move_mails}';

var lang_delete='{$hashmap.tree_delete}';
var lang_empty_trash='{$hashmap.tree_empty_trash}';
var confirm_empty_trash='{$hashmap.tree_empty_trash_confirm}';

var lang_rename='{$hashmap.tree_rename}';
var lang_edit='{$hashmap.webmail2_settings_edit}';

var lang_newfolder='{$hashmap.tree_new_folder}';
var lang_newlink='{$hashmap.tree_new_link}';
var lang_properties='{$hashmap.tree_properties}';
var lang_rights='{$hashmap.tree_rights}';

var opentrash={$opentrash};

{section name=field loop=$fields}
{if $fields[field] neq ""} 
{$fields[field]}
{/if}
{/section}
{literal}

function start() {
{/literal}
findfirstfolder();

if (fieldpublic1 && !STARTALLOPEN && !fieldpublic.isOpen) clickOnNodeObj(fieldpublic);

if (opentrash && field_0_{$trashid} && !field_0_{$trashid}.isOpen) clickOnNodeObj(field_0_{$trashid});

if ({$wm2_auto_open_unread_folders} && !STARTALLOPEN) open_unread_folders(foldersTree);

show_new_folder({$newid});
is_loaded=true;

{literal}
}
{/literal}

</script>
</head>
<body background="templates/default/media/background2.gif" onload="start();">

<table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%"><tr><td valign="top">

<div id="popmenu" class="menuskin" onMouseover="clearhidemenu();highlightmenu(event,'on')" onMouseout="highlightmenu(event,'off');dynamichide(event)"></div>
<script>initializeDocument()</script>
<noscript>
Please enable javascript<br>on your browser.
</noscript>
</td></tr><tr><td valign="bottom" align="center">
  <br>
  <table border="0" cellpadding="0" cellspacing="0" background="templates/default/media/bg.gif" width="70%" style="BORDER:#434343 1px solid;">
    <tr>
      <td align="center"><a href="#" onclick="open_all(); return false;">{$hashmap.tree_open}</a> <a href="#" onclick="close_all(); return false;">{$hashmap.tree_close}</a> <a href="tree.php?imap_reload=true&{$SESSION}">{$hashmap.tree_reload}</a></td>
    </tr>
  </table>

</td></tr></table>

{literal}
<script>
  Browser = navigator.appName;
  if (navigator.appName.substring(0,9) == "Microsoft") Browser = 'MSIE';
  if (Browser != 'MSIE') {
    width=document.body.clientWidth;
    height=document.body.clientHeight+5;
  } else {
    width=document.body.clientWidth;
    height=document.body.clientHeight;
  }
  document.write('<div id="create_new_form" style="visibility: hidden; position: absolute; left: '+((width-164) / 2)+'px; top: '+(height-80)+'px;">');
</script>
{/literal}

<table width="164" bgcolor="#999999" border="0" cellpadding="1" cellspacing="0"><tr><td>
<table width="162" border="0" cellpadding="0" cellspacing="0" bgcolor="#DFDFDF"><tr><td>
<input type="Text" id="newfolder_field" class="newfolder" maxlength="" size="" readonly value="" style="width: 100%; text-align: center;"><br>
<script>getElById('newfolder_field').value=newfolder_str;</script>
<center><input type="text" id="newfolder_input" name="newfolder_input" style="font-size: 10px; width: 110px"><input type="button" value="{$hashmap.myfolders_ok}" class="submit" style="font-size: 11px;" onclick="do_rename_folder();"><input type="button" value="X" class="submit" style="font-size: 11px;" onclick="hide_folder_form();"></center>
<input type="Text" id="newfolder_field2" class="newfolder" maxlength="" size="" readonly value="" style="width: 100%; text-align: center;">
<script>getElById('newfolder_field2').value="("+subfolder_of+" \""+foldersTree.desc+"\")";</script>
</td></tr></table>
</td></tr></table> 
</div>

{literal}
<script>
  Browser = navigator.appName;
  if (navigator.appName.substring(0,9) == "Microsoft") Browser = 'MSIE';
  if (Browser != 'MSIE') {
    width=document.body.clientWidth;
    height=document.body.clientHeight+5;
  } else {
    width=document.body.clientWidth;
    height=document.body.clientHeight;
  }
  document.write('<div id="create_new_form_link" style="visibility: hidden; position: absolute; left: '+((width-164) / 2)+'px; top: '+(height-110)+'px;">');
</script>
{/literal}

<table width="164" bgcolor="#999999" border="0" cellpadding="1" cellspacing="0"><tr><td>
<table width="162" border="0" cellpadding="0" cellspacing="0" bgcolor="#DFDFDF"><tr><td style="font-size: 10px;">
<input type="Text" id="newlink_field" class="newfolder" maxlength="" size="" readonly value="" style="width: 100%; text-align: center;"><br>
<script>getElById('newlink_field').value=newlink_str;</script>
<center>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td style="font-size: 10px;">{$hashmap.tree_link}:&nbsp;</td>
<td><input type="text" id="newlink_input" name="newlink_input" style="font-size: 10px; width: 110px" value="http://"></td>
</tr>

<tr>
<td style="font-size: 10px;">{$hashmap.tree_desc}:&nbsp;</td>
<td><input type="text" id="newlink_input2" name="newlink_input2" style="font-size: 10px; width: 110px"></td>
</tr>

</table>

<input type="Checkbox" value="" name="newlink_input3" id="newlink_input3"> New Window
<input type="button" value="{$hashmap.myfolders_ok}" class="submit" style="font-size: 11px;" onclick="do_new_link();"><input type="button" value="X" class="submit" style="font-size: 11px;" onclick="hide_link_form();"></center>
<input type="Text" id="newlink_field2" class="newfolder" maxlength="" size="" readonly value="" style="width: 100%; text-align: center;">
<script>getElById('newlink_field2').value="("+sublink_of+" \""+foldersTree.desc+"\")";</script>
</td></tr></table>
</td></tr></table> 
</div>

</body>
</html>

