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

http://www.simple-groupware.de
-->
{include file="$gentemplates/_header.tpl" pagetitle="Webmail by Thomas Bley - Simple Groupware Solutions"}
{include file="$gentemplates/_navi.tpl"}

{literal}
<style>
  body {overflow-y:hidden;}
</style>

<script>
  
function change_flag(value) {
  if (value!="" && window.frames["rightframe"] && window.frames.rightframe.frames["maillist"]) {
	window.frames.rightframe.frames.maillist.change_flag(value);
  }
}

function return_height() {
  Browser = navigator.appName;
  if (navigator.appName.substring(0,9) == "Microsoft") Browser = 'MSIE';
  if (Browser != 'MSIE') {
      return (innerHeight-2);
  } else {
      return (document.body.clientHeight-2);
  }
}

function printit() {
  if (window.frames.rightframe && window.frames.rightframe.frames.mailview) {
	window.frames.rightframe.frames.mailview.printsubmit();
  } else {
    window.status=lang_top_nomailinview;
  }
}

function show_headers() {
  if (window.frames.rightframe && window.frames.rightframe.frames.mailview) {
	window.frames.rightframe.frames.mailview.printsubmit("headers");
  } else {
    window.status=lang_top_nomailinview;
  }
}

function exporttoword() {
  if (window.frames.rightframe && window.frames.rightframe.frames.mailview) {
	window.frames.rightframe.frames.mailview.printsubmit("word");
  } else {
    window.status=lang_top_nomailinview;
  }
}

function deleteit() {
  if (parent.frames.rightframe && parent.frames.rightframe.frames.maillist) {
	parent.frames.rightframe.frames.maillist.deletesubmit();
  }
}

function reply() {
  if (parent.frames.rightframe && parent.frames.rightframe.frames.maillist) {
	parent.frames.rightframe.frames.maillist.replysubmit();
  }
}

function reply2() {
  if (parent.frames.rightframe && parent.frames.rightframe.frames.maillist) {
	parent.frames.rightframe.frames.maillist.replysubmit2();
  }
}

function forwardit() {
  if (parent.frames.rightframe && parent.frames.rightframe.frames.maillist) {
	parent.frames.rightframe.frames.maillist.forwardsubmit();
  }
}

function forwardit2() {
  if (parent.frames.rightframe && parent.frames.rightframe.frames.maillist) {
	parent.frames.rightframe.frames.maillist.forward2submit();
  }
}

{/literal}

var lang_top_nomailinview = '{$hashmap.top_nomailinview}';
</script>

<script>
document.write('<table width="100%" height="'+(return_height()-{if $show_navi_images eq 4}95{else}71{/if})+'" border="0" cellpadding="0" cellspacing="0">');
</script>
<noscript>
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
</noscript>
{if $wm2_show_top_menu and $show_navi_images neq 4}
	<tr>
		<td colspan="3">
      <table height="15" border="0" cellpadding="0" cellspacing="0" width="100%" background="{$myimgpathmaster}/bg.gif">
	  <tr><td>
	  
		<table border="0" cellpadding="0" cellspacing="0">
		<tr align="left">

		  <td width="15" align="center"><img src="{$myimgpathmaster}/mini_spacer.gif" alt="" width="2" height="19" border="0"></td>
  		  <td><a href="sendmail.php?{$SESSION}" target="rightframe" class="subnavlink"><img name="na_mini_new" src="{$myimgpathmaster}/n_mini_new.gif" title="{$hashmap.top_new_email}" width="16" height="16" border="0"></a></td>
		  
		  <td width="20" align="center"><img src="{$myimgpathmaster}/mini_spacer.gif" alt="" width="2" height="19" border="0"></td>
  		  <td><a href="javascript:" onclick="if(this.blur)this.blur();if(this.blur)this.blur(); printit(); return false;" class="subnavlink"><img name="na_mini_print" src="{$myimgpathmaster}/n_mini_print.gif" title="{$hashmap.top_print}" width="16" height="16" border="0"></a></td>

		  <td width="10" align="center"><img src="{$myimgpathmaster}/spacer.gif" alt="" width="2" height="19" border="0"></td>
  		  <td><a href="javascript:" onclick="if(this.blur)this.blur();if(this.blur)this.blur(); exporttoword(); return false;" class="subnavlink"><img name="na_mini_export" src="{$myimgpathmaster}/exporttoword.gif" title="{$hashmap.exporttoword}" width="16" height="16" border="0"></a></td>

		  <td width="10"><img src="{$myimgpathmaster}/spacer.gif" alt="" width="1" height="1"></td>
  		  <td><a href="javascript:" onclick="if(this.blur)this.blur();if(this.blur)this.blur(); deleteit(); return false;" class="subnavlink"><img name="na_mini_delete" src="{$myimgpathmaster}/n_mini_delete.gif" title="{$hashmap.top_delete}" width="11" height="11" border="0"></a></td>

		  <td width="20" align="center"><img src="{$myimgpathmaster}/mini_spacer.gif" alt="" width="2" height="19" border="0"></td>
  		  <td><a href="javascript:" onclick="if(this.blur)this.blur();if(this.blur)this.blur(); reply(); return false;" class="subnavlink"><img name="na_mini_reply" src="{$myimgpathmaster}/n_mini_reply.gif" title="{$hashmap.top_reply}" width="14" height="14" border="0"></a></td>

		  <td width="10" align="center"><img src="{$myimgpathmaster}/spacer.gif" alt="" width="2" height="19" border="0"></td>
  		  <td><a href="javascript:" onclick="if(this.blur)this.blur();if(this.blur)this.blur(); reply2(); return false;" class="subnavlink"><img name="na_mini_reply2" src="{$myimgpathmaster}/n_mini_reply2.gif" title="{$hashmap.sendmail_reply_toall}" width="16" height="16" border="0"></a></td>

		  <td width="10"><img src="{$myimgpathmaster}/spacer.gif" alt="" width="1" height="1"></td>
  		  <td><a href="javascript:" onclick="if(this.blur)this.blur();if(this.blur)this.blur(); forwardit(); return false;" class="subnavlink"><img name="na_mini_forward" src="{$myimgpathmaster}/n_mini_forward.gif" title="{$hashmap.top_forward}" width="14" height="14" border="0"></a></td>

		  <td width="10"><img src="{$myimgpathmaster}/spacer.gif" alt="" width="1" height="1"></td>
  		  <td><a href="javascript:" onclick="if(this.blur)this.blur();if(this.blur)this.blur(); forwardit2(); return false;" class="subnavlink"><img name="na_mini_forward2" src="{$myimgpathmaster}/n_mini_forward2.gif" title="{$hashmap.top_forward_compl}" width="16" height="16" border="0"></a></td>

		  <td width="20" align="center"><img src="{$myimgpathmaster}/mini_spacer.gif" alt="" width="2" height="19" border="0"></td>
  		  <td><a href="fetchmail.php?action=indexer&new=yes&{$SESSION}" target="rightframe" onclick="if(this.blur)this.blur();if(this.blur)this.blur();" class="subnavlink"><img name="na_mini_receive" src="{$myimgpathmaster}/n_mini_receive.gif" id="receive_it" title="{$hashmap.top_receive_messages}" width="13" height="10" border="0"></a></td>
		  <td>&nbsp;</td>
  		  <td nowrap><a href="fetchmail.php?action=indexer&new=yes&{$SESSION}" target="rightframe" class="subnavlink" id="receive_it_2">{$hashmap.top_receive_messages}</a></td>

		</tr>
		</table>

		</td>
		<td align="right">

		<table border="0" cellpadding="0" cellspacing="0"><tr>
		  <td width="15"><img src="{$myimgpathmaster}/spacer.gif" alt="" width="1" height="1"></td>
		  <td width="20" align="center"><img src="{$myimgpathmaster}/mini_spacer.gif" alt="" width="2" height="19" border="0"></td>
  		  <td><font style="font-family:Verdana, Arial, Helvetica, sans-serif; font-size:10px; color: #333333;">{$hashmap.webmail2_top_mark_as}: &nbsp;</font></td> <td><select style="font-family:Verdana, Arial, Helvetica, sans-serif; font-size:10px;" onchange="change_flag(this.value);">
		  	<option>------
		  	<option value="-2">{$hashmap.webmail2_maillist_flagged}
		  	<option value="-1">{$hashmap.webmail2_top_read_unread}
		  	<option>------
		  	<option value="0">{$hashmap.webmail2_top_none}
		  	<option value="1">{$hashmap.webmail2_maillist_important}
		  	<option value="2">{$hashmap.webmail2_maillist_work}
		  	<option value="3">{$hashmap.webmail2_maillist_personal}
		  	<option value="4">{$hashmap.webmail2_maillist_todo}
		  	<option value="5">{$hashmap.webmail2_maillist_later}
			 </select></td>
		  <td width="5"><img src="{$myimgpathmaster}/spacer.gif" alt="" width="1" height="1"></td>
		  <td width="20" align="center"><img src="{$myimgpathmaster}/mini_spacer.gif" alt="" width="2" height="19" border="0"></td>
  		  <td><a href="settings.php?action=listaccounts&{$SESSION}" target="rightframe" onclick="if(this.blur)this.blur();if(this.blur)this.blur();" class="subnavlink"><img name="na_settings2" src="{$myimgpathmaster}/n_settings2.gif" title="{$hashmap.webmail2_settings_accounts}" width="16" height="16" border="0"></a></td>
		  <td>&nbsp;</td>
  		  <td nowrap><a href="settings.php?action=listaccounts&{$SESSION}" target="rightframe" class="subnavlink">{$hashmap.webmail2_settings_accounts}</a></td>
		  <td width="10"><img src="{$myimgpathmaster}/spacer.gif" alt="" width="1" height="1"></td>
		  <td width="20" align="center"><img src="{$myimgpathmaster}/mini_spacer.gif" alt="" width="2" height="19" border="0"></td>
  		  <td><a href="filters.php?{$SESSION}" target="rightframe" class="subnavlink"><img name="na_settings2" src="{$myimgpathmaster}/filters.gif" title="{$hashmap.webmail2_settings_filters}" width="16" height="16" border="0"></a></td>
		  <td>&nbsp;</td>
  		  <td nowrap><a href="filters.php?{$SESSION}" target="rightframe" class="subnavlink">{$hashmap.webmail2_settings_filters}</a></td>
		  <td width="15"><img src="{$myimgpathmaster}/spacer.gif" alt="" width="1" height="1"></td>
		</tr></table>
		
	  </td></tr></table>
		
		</td>
	</tr>
	<tr>
	  <td height="1"></td>
	</tr>
{/if}
	<tr>
		<td>
			<iframe marginheight="0" marginwidth="0" vspace="0" name="mailfolders" src="folders.php?{$SESSION}" scrolling="no" height="100%" frameborder="0" width="{$width_mailfolders}"></iframe>
		</td>
		<td>
			<iframe marginheight="0" marginwidth="0" vspace="0" name="treeframe" src="tree.php?{$SESSION}" scrolling="auto" height="100%" frameborder="0" width="{$width_treeframe}"></iframe>
		</td>
		<td width="100%" height="100%">
			<iframe marginheight="0" marginwidth="0" vspace="0" name="rightframe" src="{$rightframe}" scrolling="auto" height="100%" frameborder="0" width="100%"></iframe>
		</td>
	</tr>
</table>

{include file="$gentemplates/_footer.tpl" aktUser=$username hidespacer="yes"}