<tmpl_var header_template escape="none">

<script type="text/javascript">
<!--
   function update(realname, email) {
      document.newfromform.realname.value = realname;
      document.newfromform.email.value = email;
   }
//-->
</script>

<table cellpadding="1" cellspacing="0" border="0" align="center" width="90%">
<tr>
  <td class="titlebar">Edit Personal Email Addresses</td>
</tr>
<tr>
  <td class="menubar">
    <a href="<tmpl_var url_cgi escape="none">/openwebmail-prefs.pl?action=editprefs&amp;sessionid=<tmpl_var sessionid escape="url">&amp;folder=<tmpl_var folder escape="url">&amp;message_id=<tmpl_var message_id escape="url">&amp;sort=<tmpl_var sort escape="url">&amp;page=<tmpl_var page escape="url">&amp;longpage=<tmpl_var longpage escape="url">&amp;userfirsttime=<tmpl_var userfirsttime escape="url">&amp;prefs_caller=<tmpl_var prefs_caller escape="url">" accesskey="F" class="icon"><tmpl_if use_texticon>back to user preferences<tmpl_else><img src="<tmpl_var url_html escape="none">/images/iconsets/<tmpl_var iconset escape="html">/backtofolder.gif" title="back to user preferences" alt="back to user preferences" border="0" align="absmiddle"></tmpl_if></a>
  </td>
</tr>
</table>

&nbsp;

<table cellpadding="0" cellspacing="0" border="0" align="center" width="90%">
<tr>
  <td class="columnheader" nowrap>Real Name</td>
  <td class="columnheader" nowrap>Email Address (click to edit)</td>
  <td class="columnheader" align="center">Action</td>
</tr>

<form action="<tmpl_var url_cgi escape="none">/openwebmail-prefs.pl" method="post" name="newfromform">
<input type="hidden" name="action" value="addfrom">
<input type="hidden" name="sessionid" value="<tmpl_var sessionid escape="html">">
<input type="hidden" name="folder" value="<tmpl_var folder escape="html">">
<input type="hidden" name="message_id" value="<tmpl_var message_id escape="html">">
<input type="hidden" name="sort" value="<tmpl_var sort escape="html">">
<input type="hidden" name="page" value="<tmpl_var page escape="html">">
<input type="hidden" name="longpage" value="<tmpl_var longpage escape="html">">
<input type="hidden" name="userfirsttime" value="<tmpl_var userfirsttime escape="html">">
<input type="hidden" name="prefs_caller" value="<tmpl_var prefs_caller escape="html">">

<tr>
  <td class="rowlight" nowrap>
    <input type="text" size="20" name="realname" value="<tmpl_var realnametext escape="html">" <tmpl_if disablerealname>disabled="1"</tmpl_if>>
  </td>
  <td class="rowlight" nowrap>
    <input type="text" size="30" name="email" value="">
  </td>
  <td class="rowlight" align="center">
    <input type="submit" name="addmodifybutton" value="<tmpl_if frombook_for_realname_only>Modify<tmpl_else>Add/Modify</tmpl_if>" accesskey="W">
  </td>
</tr>

</form>

<tmpl_loop fromsloop>
<tr>
  <td class="<tmpl_if __odd__>rowdark<tmpl_else>rowlight</tmpl_if>"><tmpl_var realname escape="html"></td>
  <td class="<tmpl_if __odd__>rowdark<tmpl_else>rowlight</tmpl_if>"><a href="javascript:update('<tmpl_var realname escape="js">','<tmpl_var email escape="js">')"><tmpl_var email escape="html"></a></td>
  <td class="<tmpl_if __odd__>rowdark<tmpl_else>rowlight</tmpl_if>" align="center">
    <form action="<tmpl_var url_cgi escape="none">/openwebmail-prefs.pl" method="post" name="deletefromform">
    <input type="hidden" name="action" value="deletefrom">
    <input type="hidden" name="email" value="<tmpl_var email escape="html">">
    <input type="hidden" name="sessionid" value="<tmpl_var sessionid escape="html">">
    <input type="hidden" name="folder" value="<tmpl_var folder escape="html">">
    <input type="hidden" name="message_id" value="<tmpl_var message_id escape="html">">
    <input type="hidden" name="sort" value="<tmpl_var sort escape="html">">
    <input type="hidden" name="page" value="<tmpl_var page escape="html">">
    <input type="hidden" name="longpage" value="<tmpl_var longpage escape="html">">
    <input type="hidden" name="userfirsttime" value="<tmpl_var userfirsttime escape="html">">
    <input type="hidden" name="prefs_caller" value="<tmpl_var prefs_caller escape="html">">
    <input type="submit" name="deletebutton" value="Delete">
    </form>
  </td>
</tr>
</tmpl_loop>

</table>

<tmpl_var footer_template escape="none">
