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/dns/templates/dns_wizard.htm |   25 ++++++++++++++++++++++++-
 1 files changed, 24 insertions(+), 1 deletions(-)

diff --git a/interface/web/dns/templates/dns_wizard.htm b/interface/web/dns/templates/dns_wizard.htm
index 4f926ba..49183c1 100644
--- a/interface/web/dns/templates/dns_wizard.htm
+++ b/interface/web/dns/templates/dns_wizard.htm
@@ -29,6 +29,14 @@
 				</select>
       </div>
       </tmpl_if>
+	  <tmpl_if name="is_reseller">
+	  <div class="ctrlHolder">
+      	<label for="client_group_id">{tmpl_var name='client_txt'}</label>
+        <select name="client_group_id" id="client_group_id" class="selectInput">
+					{tmpl_var name='client_group_id'}
+				</select>
+      </div>
+	  </tmpl_if>
 		  <tmpl_if name="DOMAIN_VISIBLE">
 	      <div class="ctrlHolder">
 	      	<label for="domain">{tmpl_var name='domain_txt'}</label>
@@ -65,8 +73,23 @@
     
     <div class="buttonHolder buttons">
       <button class="positive iconstxt icoPositive" type="button" value="{tmpl_var name='btn_save_txt'}" name="btn_create" onClick="document.pageForm.create.value=1; submitForm('pageForm','dns/dns_wizard.php');"><span>{tmpl_var name='btn_save_txt'}</span></button>
-      <button class="negative iconstxt icoNegative" type="button" value="{tmpl_var name='btn_cancel_txt'}" onClick="loadContent('dns/dns_wizard.php');"><span>{tmpl_var name='btn_cancel_txt'}</span></button>
+      <button class="negative iconstxt icoNegative" type="button" value="{tmpl_var name='btn_cancel_txt'}" onClick="loadContent('dns/dns_soa_list.php');"><span>{tmpl_var name='btn_cancel_txt'}</span></button>
     </div>
   </div>
   
 </div>
+<script language="JavaScript" type="text/javascript">
+		jQuery('#ip').ispconfigSearch({
+			dataSrc: '/dns/ajax_get_json.php?type=get_ipv4',
+			resultsLimit: '$ <tmpl_var name="globalsearch_resultslimit_of_txt"> % <tmpl_var name="globalsearch_resultslimit_results_txt">',
+			ResultsTextPrefix: '<tmpl_var name="globalsearch_suggestions_text_txt">',
+			noResultsText: '<tmpl_var name="globalsearch_noresults_text_txt">',
+			noResultsLimit: '<tmpl_var name="globalsearch_noresults_limit_txt">',
+			minChars: 0,
+			cssPrefix: 'df-',
+			fillSearchField: true,
+			fillSearchFieldWith: 'fill_text',
+			searchFieldWatermark: '',
+			resultBoxPosition: 'e'
+		});	
+</script>

--
Gitblit v1.9.1