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/designer/templates/module_show.htm | 84 +++++++++++++++--------------------------
1 files changed, 31 insertions(+), 53 deletions(-)
diff --git a/interface/web/designer/templates/module_show.htm b/interface/web/designer/templates/module_show.htm
index 099a830..ffdfe9b 100644
--- a/interface/web/designer/templates/module_show.htm
+++ b/interface/web/designer/templates/module_show.htm
@@ -1,53 +1,31 @@
-<script language="JavaScript">
-<!--
-function del_module(link) {
- if(window.confirm("{tmpl_var name='module_del_txt'}")) {
- location.href = link;
- }
-}
-function del_menu(link) {
- if(window.confirm("{tmpl_var name='menu_del_txt'}")) {
- location.href = link;
- }
-}
-function del_menuitem(link) {
- if(window.confirm("{tmpl_var name='item_del_txt'}")) {
- location.href = link;
- }
-}
-
-//-->
-</script>
-<form name="myform" action="module_show.php" method="POST">
-<div class="frmTextHead"><tmpl_var name="header_txt"></div><br />
-<fieldset style="width:250px;"><legend class="frmText11"><b>{tmpl_var name='module_txt'}</b></legend>
-<table border="0" cellspacing="0" cellpadding="2">
- <tr>
- <td width="126" class="frmText11"><tmpl_var name="title_txt">:</td>
- <td width="366" class="frmText11">{tmpl_var name='title'}</td>
- </tr>
- <tr>
- <td width="126" class="frmText11"><tmpl_var name="name_txt">:</td>
- <td width="366" class="frmText11">{tmpl_var name='name'}</td>
- </tr>
- <tr>
- <td colspan="2" class="frmText11"> </td>
- </tr>
- <tr>
- <td colspan="2" class="frmText11">
- <input type="button" name="ed1" value="{tmpl_var name='properties_txt'}" onClick="location.href='module_edit.php?id={tmpl_var name='name'}'" class="button" />
- <input type="button" name="ed2" value="{tmpl_var name='delete_txt'}" onClick="del_module('module_del.php?id={tmpl_var name='name'}');" class="button" />
- <input type="button" name="ed3" value="{tmpl_var name='new_menu_txt'}" onClick="location.href='module_nav_edit.php?module_name={tmpl_var name='name'}'" class="button" /></td>
- </tr>
-</table>
-</fieldset>
-<table width="500" border="0" cellspacing="0" cellpadding="2">
- <tr>
- <td colspan="2" class="frmText11"> </td>
- </tr>
- <tmpl_var name="nav">
- <tr>
- <td colspan="2" class="frmText11"> </td>
- </tr>
-</table>
-</form>
\ No newline at end of file
+<div class="frmTextHead"><tmpl_var name="header_txt"></div><br />
+<fieldset style="width:250px;"><legend class="frmText11"><b>{tmpl_var name='module_txt'}</b></legend>
+<table border="0" cellspacing="0" cellpadding="2">
+ <tr>
+ <td width="126" class="frmText11"><tmpl_var name="title_txt">:</td>
+ <td width="366" class="frmText11">{tmpl_var name='title'}</td>
+ </tr>
+ <tr>
+ <td width="126" class="frmText11"><tmpl_var name="name_txt">:</td>
+ <td width="366" class="frmText11">{tmpl_var name='name'}</td>
+ </tr>
+ <tr>
+ <td colspan="2" class="frmText11"> </td>
+ </tr>
+ <tr>
+ <td colspan="2" class="frmText11">
+ <input type="button" name="ed1" value="{tmpl_var name='properties_txt'}" onClick="loadContent('designer/module_edit.php?id={tmpl_var name='name'}')" class="button" /><div class="buttonEnding"></div>
+ <input type="button" name="ed2" value="{tmpl_var name='delete_txt'}" onClick="del_record('designer/module_del.php?id={tmpl_var name='name'}');" class="button" /><div class="buttonEnding"></div>
+ <input type="button" name="ed3" value="{tmpl_var name='new_menu_txt'}" onClick="loadContent('designer/module_nav_edit.php?module_name={tmpl_var name='name'}')" class="button" /><div class="buttonEnding"></div></td>
+ </tr>
+</table>
+</fieldset>
+<table width="500" border="0" cellspacing="0" cellpadding="2">
+ <tr>
+ <td colspan="2" class="frmText11"> </td>
+ </tr>
+ <tmpl_var name="nav">
+ <tr>
+ <td colspan="2" class="frmText11"> </td>
+ </tr>
+</table>
\ No newline at end of file
--
Gitblit v1.9.1