ispman/ispman-web/cgi-bin/tmpl/vhosts add.tmpl, 1.21, 1.22

Joerg Delker <[email protected]> Sun, 21 Dec 2008 15:58:16 +0000
Newsgroups gmane.comp.isp.ispman.cvs
Message-ID <[email protected]>
Update of /cvsroot/ispman/ispman/ispman-web/cgi-bin/tmpl/vhosts
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv31441/ispman-web/cgi-bin/tmpl/vhosts

Modified Files:
	add.tmpl 
Log Message:
adjusted domain/vhost actions to user format "script|description[,script|description]*"

Index: add.tmpl
===================================================================
RCS file: /cvsroot/ispman/ispman/ispman-web/cgi-bin/tmpl/vhosts/add.tmpl,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -d -r1.21 -r1.22
--- add.tmpl	21 Dec 2008 13:44:14 -0000	1.21
+++ add.tmpl	21 Dec 2008 15:58:14 -0000	1.22
@@ -196,7 +196,7 @@
 	    $text.="<option VALUE=\"$_\">$_</option>";
           }
         }
-        
+
         $text
         </perl>
 	</select>
@@ -205,16 +205,15 @@
 <tr>
     <td>Vhost actions<br>(Optional)</td>
     <td>
-                <select name="vhostActions" MULTIPLE>
-                <perl>
-                        my @actions=split '\|',$ispman->getConf("vhostActions");
-                        my $out="";
-                        for (@actions) {
-                                $out .= qq|<option value="$_">$_</option>| unless $_ eq "none";
-                        }
-                        $out
-                </perl>
-        </select>
+        <perl>
+           my @actions=split ',',$ispman->getConf("vhostActions");
+           my $out="";
+           for (@actions) {
+              /(.*)\|(.*)/;
+              $out .= qq|<input type="checkbox" name="vhostActions" value="$1">$2<br>| unless $1 eq "none";
+           }
+           $out
+        </perl>
     </td>
 </tr>
 <tr>


------------------------------------------------------------------------------