ispman/ispman-web/cgi-bin/tmpl login.tmpl,1.6,1.7
Joerg Delker <[email protected]>
| Newsgroups | gmane.comp.isp.ispman.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/ispman/ispman/ispman-web/cgi-bin/tmpl
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8929/ispman-web/cgi-bin/tmpl
Modified Files:
login.tmpl
Log Message:
preselect configured default language
(thanks to Mads Kiilerich)
Index: login.tmpl
===================================================================
RCS file: /cvsroot/ispman/ispman/ispman-web/cgi-bin/tmpl/login.tmpl,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- login.tmpl 28 Apr 2003 14:46:59 -0000 1.6
+++ login.tmpl 20 Jun 2004 08:54:17 -0000 1.7
@@ -37,7 +37,8 @@
<perl>
$options="";
for (sort keys %{$nls{'languages'}}){
- $options.= "<option value=$_>";
+ $selected = $_ eq $nls{'defaults'}{'language'} ? "selected" : "";
+ $options.= "<option value=$_ $selected>";
$options.= $nls{'languages'}{$_};
$options.= "</option>";
}
-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND