From 2cb1563f63386b35a69e460051aa9b4a2851d104 Mon Sep 17 00:00:00 2001
From: ftimme <ft@falkotimme.com>
Date: Wed, 30 May 2012 07:30:44 -0400
Subject: [PATCH] - Added (clickable) placeholders to client messaging function. - Added check so that the client password isn't inserted into the message (for security reasons).

---
 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">&nbsp;</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">&nbsp;</td>
-  </tr>
-  <tmpl_var name="nav">
-  <tr>
-    <td colspan="2" class="frmText11">&nbsp;</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">&nbsp;</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">&nbsp;</td>
+  </tr>
+  <tmpl_var name="nav">
+  <tr>
+    <td colspan="2" class="frmText11">&nbsp;</td>
+  </tr>
+</table>
\ No newline at end of file

--
Gitblit v1.9.1