From 78a9cd6f89912c31dd30f4ba979d252566a29eb5 Mon Sep 17 00:00:00 2001
From: redray <redray@ispconfig3>
Date: Sun, 09 Nov 2008 10:53:55 -0500
Subject: [PATCH] added iso-country table and integrated it into client form

---
 interface/web/client/form/client.tform.php |   17 +++++++++--------
 1 files changed, 9 insertions(+), 8 deletions(-)

diff --git a/interface/web/client/form/client.tform.php b/interface/web/client/form/client.tform.php
index c7696c3..bdac77b 100644
--- a/interface/web/client/form/client.tform.php
+++ b/interface/web/client/form/client.tform.php
@@ -184,14 +184,15 @@
 		),
 		'country' => array (
 			'datatype'	=> 'VARCHAR',
-			'formtype'	=> 'TEXT',
-			'default'	=> '',
-			'value'		=> '',
-			'separator'	=> '',
-			'width'		=> '30',
-			'maxlength'	=> '255',
-			'rows'		=> '',
-			'cols'		=> ''
+
+			'formtype'	=> 'SELECT',
+			'default'	=> 'DE',
+			'datasource'	=> array ( 	'type'	=> 'SQL',
+										'querystring' => 'SELECT iso,printable_name FROM country ORDER BY printable_name',
+										'keyfield'=> 'iso',
+										'valuefield'=> 'printable_name'
+									 ),
+			'value'		=> ''
 		),
 		'telephone' => array (
 			'datatype'	=> 'VARCHAR',

--
Gitblit v1.9.1