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

http://www.simple-groupware.de
-->
<html>
<head>
	<title>Webmail by Thomas Bley - Simple Groupware Solutions - more.groupware</title>
    <meta http-equiv="content-type" content="text/html; charset={$charset}">
	<link rel="SHORTCUT ICON" href="{$imgpathmaster}/favicon.ico">
	<link rel="icon" href="{$imgpathmaster}/favicon.ico" type="image/ico">
<style type="text/css">
{literal}
<!--
body {scrollbar-face-color: #E4E4E4; scrollbar-shadow-color: #000000;scrollbar-highlight-color: #FFFFFF; scrollbar-3dlight-color: #999999;scrollbar-darkshadow-color: #999999; scrollbar-track-color: #F3F3F3;scrollbar-arrow-color: #000000;
  BORDER-LEFT:#434343 1px solid;
}
td {  font-family: Arial, Helvetica,sans-serif; font-size: 10pt; font-variant: normal; text-transform: none; color: #000000}
a:hover {  color: #CC0000; text-decoration: underline}
.styletextfield { font-family: Arial, Helvetica, sans-serif; font-size: 10pt; font-style: normal; line-height: normal; font-weight: normal; font-variant: normal; text-transform: none; text-decoration: none; width: 350px}

.submit {
    background:#D1D1D1;
    color:#333333;
    font-size:8pt;
    font-family:Verdana, Arial, Helvetica, sans-serif;
    font-weight:bold;
}

-->
{/literal}
</style>
<script language="JavaScript">
{literal}
function submitonce(theform){
  if (document.all||document.getElementById){
    for (i=0;i<theform.length;i++){
      var tempobj=theform.elements[i]
        if(tempobj.type.toLowerCase()=="submit")
        tempobj.disabled=true
    }
  }
}

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

{/literal}
</script>
</head>

<body leftmargin="0" topmargin="0" rightmargin="0" bottommargin="0" marginwidth="0" marginheight="0" link="#1F4687" vlink="#1F4687" alink="#1F4687" bgcolor="#F3F3F3">

<center>

<table border="0" cellpadding="0" cellspacing="0" height="100%" width="98%"><tr><td>
<script>
document.write('<img src="templates/default/media/spacer.gif" width="1" height="'+return_height()+'">');
</script>
</td><td valign="top" align="center">

<img src="templates/default/media/spacer.gif" alt="" width="1" height="5" border="0"><br>

<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr bgcolor="#D1D1D1"><td>
&nbsp;<font color="#4E4E4E"><b> {$username} - {$hashmap.attachments_compose_a_new_mail}</b></font>
</td></tr></table>
<br>

<table width='500' border='0' cellspacing='0' cellpadding='1' align='center'>
<tr bgcolor='#999999'>
  <td>
    <table width='100%' border='0' cellspacing='0' cellpadding='0' height='200'>
    <tr bgcolor='#DFDFDF'>
      <td height='20' width='4%'>&nbsp;</td>
      <td height='20' width='92%'>&nbsp;</td>
      <td height='20' width='4%'>&nbsp;</td>
    </tr>
    <tr bgcolor='#DFDFDF'>
      <td height='25' width='4%'>&nbsp;</td>
      <td height='25' width='92%'>
        <form enctype="multipart/form-data" action="attachments_funcs.php" method="post" onSubmit="submitonce(this)">
		<input type="hidden" name="{$SESSIONNAME}" value="{$SESSIONID}">			
        <input type="hidden" name="function" value="upload">
        <input name="userfile" type="file" size="30"><br>
        <input type="submit" class="submit" value="{$hashmap.attachments_add_to_list}" name="submit">
        </form>
      </td>
      <td height='25' width='4%'>&nbsp;</td>
    </tr>
    <tr bgcolor='#DFDFDF'>
      <td width='4%'>&nbsp;</td>
      <td width='92%' valign='top'>
      <hr size='1'>
      <form method="post" action="attachments_funcs.php" onSubmit="submitonce(this)">
        <select name='slcsil' size='5'>
          <option value='0'>-- {$hashmap.attachments_attaches} --</option>
		  {section name=attachment loop=$attaches}
		  {$attaches[attachment]|smarty:nodefaults}
		  {/section}
        </select>
		<input type="hidden" name="{$SESSIONNAME}" value="{$SESSIONID}">			
        <input type="hidden" name="function" value="delete">
        <input type="submit" class="submit" value="{$hashmap.attachments_delete_attachment}">
      </form>
      <form method="post" action="sendmail.php" onSubmit="submitonce(this)">
		<input type="hidden" name="{$SESSIONNAME}" value="{$SESSIONID}">			

        <input type="submit" class="submit" value='{$hashmap.attachments_go_back}'>
      </form>
      </td>
      <td width='4%'>&nbsp;</td>
    </tr>

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

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

</center>

</body>
</html>
