OSSP CVS Repository

ossp - Check-in [2072]
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [Patchset]  [Tagging/Branching

Check-in Number: 2072
Date: 2002-Apr-16 14:09:46 (local)
2002-Apr-16 12:09:46 (UTC)
User:ps
Branch:
Comment: Appended two textfields
Tickets:
Inspections:
Files:
ossp-pkg/tabea/tabea.cgi      1.4 -> 1.5     35 inserted, 1 deleted

ossp-pkg/tabea/tabea.cgi 1.4 -> 1.5

--- tabea.cgi    2002/04/16 08:51:02     1.4
+++ tabea.cgi    2002/04/16 12:09:46     1.5
@@ -1,4 +1,4 @@
-#!/cw/bin/perl -w
+#!/usr/opkg/bin/perl -w
 ##
 ##  OSSP tabea - Web Configuration Editor
 ##  Copyright (c) 2001-2002 The OSSP Project <http://www.ossp.org/>
@@ -43,14 +43,48 @@
 $MY->{TEMPLATE} .= $_ while (<$fh>);
 $fh->close();
 
+
 #   establish CGI query object
 my $Q = new CGI;
 
 my $page = '';
 $page .= "fuck";
+my $page2 ='';
+$page2 .= "Welcher auch";
 
 my $out = $MY->{TEMPLATE};
 $out =~ s|%%BODY%%|$page|s;
+$out =~ s|%%TITLE%%|$page2|s;
+
+
+
+ #   generate "ADD" form
+ $out .= $Q->startform( -method => "POST", -action => $Q->url()) .
+          "<tr bgcolor=\"#9999cc\">\n" .
+#          "<td align=right>" .
+#          "<b>" . $Q->submit(-name => 'form', -value => 'Add') . "</b>" .
+#          "</td>" .
+          "<td>" .
+          "Username:" .
+          $Q->textfield(
+              -name => 'username',
+              -default => '',
+              -size => 20,
+              -maxlength => 80
+           ) .
+          "<td>" .
+          "<p>&#013</p>" .
+          "</td>" .
+          "Password:" .
+          $Q->textfield(
+              -name => 'password',
+              -default => '',
+              -size => 20,
+              -maxlength => 80
+           ) .
+          "</td>" .
+         $Q->endform;
+
 print $Q->header(-expires => '+1s') . $out;
 
 exit (0);

CVSTrac 2.0.1