From cf71a4677eff547c9cedeb1871fc109ae181b0c2 Mon Sep 17 00:00:00 2001 From: tbrehm <t.brehm@ispconfig.org> Date: Sat, 17 Mar 2007 16:30:41 -0400 Subject: [PATCH] Rebuild the complete interface to use ajax. --- interface/web/mail/templates/mail_forward_list.htm | 30 ++++++++++++++---------------- 1 files changed, 14 insertions(+), 16 deletions(-) diff --git a/interface/web/mail/templates/mail_forward_list.htm b/interface/web/mail/templates/mail_forward_list.htm index b14c1be..76242c9 100644 --- a/interface/web/mail/templates/mail_forward_list.htm +++ b/interface/web/mail/templates/mail_forward_list.htm @@ -1,30 +1,28 @@ -<form name="myform" action="mail_forward_list.php" method="POST"> <div class="frmTextHead"><tmpl_var name="list_head_txt"></div><br /> -<input type="button" value="{tmpl_var name="add_new_record_txt"}" onClick="location.href='mail_forward_edit.php'" /><br /><br /> -<table width="100%" border="0" cellspacing="0" cellpadding="4"> +<input type="button" value="{tmpl_var name="add_new_record_txt"}" class="button" onClick="loadContent('mail/mail_forward_edit.php');" /><div class="buttonEnding"></div><br /><br /> +<table width="100%" border="0" cellspacing="0" cellpadding="4" class="listTable"> <tr> - <td class="tblHead"><tmpl_var name="active_txt"></td> - <td class="tblHead"><tmpl_var name="source_txt"></td> - <td class="tblHead"><tmpl_var name="destination_txt"></td> + <td class="tblHead"><tmpl_var name="active_txt"></td> + <td class="tblHead"><tmpl_var name="source_txt"></td> + <td class="tblHead"><tmpl_var name="destination_txt"></td> <td class="tblHead"> </td> </tr> <tr> - <td class="frmText11"><select name="search_active" onChange="document.myform.submit();">{tmpl_var name='search_active'}</select></td> - <td class="frmText11"><input type="text" name="search_source" value="{tmpl_var name='search_source'}" class="text" /></td> - <td class="frmText11"><input type="text" name="search_destination" value="{tmpl_var name='search_destination'}" class="text" /></td> - <td class="frmText11" align="right"><input name="Filter" type="submit" id="Filter" value="{tmpl_var name="filter_txt"}"></td> + <td class="frmText11"><select name="search_active" onChange="submitForm('pageForm','mail/mail_forward_list.php');">{tmpl_var name='search_active'}</select></td> + <td class="frmText11"><input type="text" name="search_source" value="{tmpl_var name='search_source'}" class="text" /></td> + <td class="frmText11"><input type="text" name="search_destination" value="{tmpl_var name='search_destination'}" class="text" /></td> + <td class="frmText11" align="right"><input name="Filter" type="button" id="Filter" value="{tmpl_var name="filter_txt"}" class="button" onClick="submitForm('pageForm','mail/mail_forward_list.php');"><div class="buttonEnding"></div></td> </tr> <tmpl_loop name="records"> <tr bgcolor="{tmpl_var name="bgcolor"}"> - <td class="frmText11"><a href="mail_forward_edit.php?id={tmpl_var name='id'}" class="frmText11">{tmpl_var name="active"}</a></td> - <td class="frmText11"><a href="mail_forward_edit.php?id={tmpl_var name='id'}" class="frmText11">{tmpl_var name="source"}</a></td> - <td class="frmText11"><a href="mail_forward_edit.php?id={tmpl_var name='id'}" class="frmText11">{tmpl_var name="destination"}</a></td> - <td class="frmText11" align="right">[<a href="javascript: del_record('mail_forward_del.php?id={tmpl_var name='id'}&phpsessid={tmpl_var name='phpsessid'}');" class="frmText11">{tmpl_var name='delete_txt'}</a>]</td> + <td class="frmText11"><a href="#" onClick="loadContent('mail/mail_forward_edit.php?id={tmpl_var name='id'}');" class="frmText11">{tmpl_var name="active"}</a></td> + <td class="frmText11"><a href="#" onClick="loadContent('mail/mail_forward_edit.php?id={tmpl_var name='id'}');" class="frmText11">{tmpl_var name="source"}</a></td> + <td class="frmText11"><a href="#" onClick="loadContent('mail/mail_forward_edit.php?id={tmpl_var name='id'}');" class="frmText11">{tmpl_var name="destination"}</a></td> + <td class="frmText11" align="right">[<a href="javascript: del_record('mail/mail_forward_del.php?id={tmpl_var name='id'}&phpsessid={tmpl_var name='phpsessid'}');" class="frmText11">{tmpl_var name='delete_txt'}</a>]</td> </tr> </tmpl_loop> <tr> <td colspan="4" height="40" align="center" class="tblFooter"><tmpl_var name="paging"></td> </tr> -</table> -</form> \ No newline at end of file +</table> \ No newline at end of file -- Gitblit v1.9.1