ispman/ispman-web/cgi-bin/tmpl/users add.tmpl,1.12,1.13

[email protected]
Newsgroups gmane.comp.isp.ispman.cvs
Message-ID <[email protected]>
Update of /cvsroot/ispman/ispman/ispman-web/cgi-bin/tmpl/users
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3684/ispman-web/cgi-bin/tmpl/users

Modified Files:
	add.tmpl 
Log Message:
fixed: fileserver selection didn't get preselected with domain's defaultFileserver

Index: add.tmpl
===================================================================
RCS file: /cvsroot/ispman/ispman/ispman-web/cgi-bin/tmpl/users/add.tmpl,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- add.tmpl	6 Feb 2004 22:17:46 -0000	1.12
+++ add.tmpl	18 Feb 2004 21:00:01 -0000	1.13
@@ -76,9 +76,14 @@
         <perl>
         my $text="";
         my @fileserverhosts=$ispman->getGroupMembers("fileservergroup");
+        my $filehost=$ispman->{'domain'}->{'ispmanDomainDefaultFileServer'};
         
         for (@fileserverhosts){
-            $text.="<option VALUE='$_'>$_</option>";        
+            if ($filehost eq $_) {
+               $text.="<option VALUE=$_ selected>$_</option>";
+            } else {
+               $text.="<option VALUE=$_>$_</option>";
+            }
         }
         
         if  ($#fileserverhosts<0){



-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.