ispman/ispman-web/cgi-bin/tmpl/vhosts add.tmpl, 1.19, 1.20 edit.tmpl, 1.25, 1.26

Joerg Delker <[email protected]> Sat, 09 Jun 2007 15:44:53 +0000
Newsgroups gmane.comp.isp.ispman.cvs
Message-ID <[email protected]>
Update of /cvsroot/ispman/ispman/ispman-web/cgi-bin/tmpl/vhosts
In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv24749/ispman-web/cgi-bin/tmpl/vhosts

Modified Files:
	add.tmpl edit.tmpl 
Log Message:
added ispmanVhostFeature to web UI

Index: add.tmpl
===================================================================
RCS file: /cvsroot/ispman/ispman/ispman-web/cgi-bin/tmpl/vhosts/add.tmpl,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -d -r1.19 -r1.20
--- add.tmpl	9 Jul 2004 22:19:13 -0000	1.19
+++ add.tmpl	9 Jun 2007 15:44:51 -0000	1.20
@@ -181,6 +181,27 @@
     </td>
 </tr>
 
+<tr>
+    <td>Vhost features</td>
+    <td>
+	<select name=ispmanVhostFeature MULTIPLE>
+        <perl>
+        my $text="";
+        my @options=split ",",$ispman->getConf("apacheVhostsFeatures");
+
+        for (@options){
+	  if ($_ =~ s/^\*//) {
+	    $text.="<option VALUE=\"$_\" selected>$_</option>";
+          } else {
+	    $text.="<option VALUE=\"$_\">$_</option>";
+          }
+        }
+        
+        $text
+        </perl>
+	</select>
+    </td>
+</tr>
 
 <tr>
     <td valign=top>Extra configurations<br>(Optional)</td>

Index: edit.tmpl
===================================================================
RCS file: /cvsroot/ispman/ispman/ispman-web/cgi-bin/tmpl/vhosts/edit.tmpl,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -d -r1.25 -r1.26
--- edit.tmpl	6 Jun 2004 16:22:47 -0000	1.25
+++ edit.tmpl	9 Jun 2007 15:44:51 -0000	1.26
@@ -160,6 +160,32 @@
     </td>
 </tr>
 
+
+<tr>
+    <td>Vhost features</td>
+    <td>
+        <select name=ispmanVhostFeature MULTIPLE>
+	<perl>
+        my @all_features=split ",",$ispman->getConf("apacheVhostsFeatures");
+        my @vhost_features=$ispman->as_array($ispman->{'vhost'}->{"ispmanVhostFeature"});
+        my $selectedFeatures;
+        for (@vhost_features){
+          $selectedFeatures->{$_}++;
+        }
+        my $text="";
+        for (@all_features){
+          $_ =~ s/\*//;
+          $text.="	<option";
+          $text.=" selected" if $selectedFeatures->{$_};
+          $text.=">$_</option>\n";
+        }
+	
+        $text
+	</perl>
+	</select>
+    </td>
+</tr>
+
 <tr>
     <td valign=top>Extra configurations<br>(Optional)</td>
     <td colspan=2>


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/