Cosmetics
authoroes <oes@users.sourceforge.net>
Sat, 6 Apr 2002 11:34:44 +0000 (11:34 +0000)
committeroes <oes@users.sourceforge.net>
Sat, 6 Apr 2002 11:34:44 +0000 (11:34 +0000)
doc/webserver/actions/index.php
doc/webserver/actions/step2.php
doc/webserver/actions/step3.php
doc/webserver/p_feedback.css

index 4527183..a949d63 100755 (executable)
@@ -8,15 +8,9 @@
               This file belongs in
               ijbswa.sourceforge.net:/home/groups/i/ij/ijbswa/htdocs/
 
-  $Id: index.php,v 1.10 2002/04/03 19:36:04 swa Exp $
+  $Id: index.php,v 1.8 2002/04/02 08:45:22 oes Exp $
 
   $Log: index.php,v $
-  Revision 1.10  2002/04/03 19:36:04  swa
-  consistent look
-
-  Revision 1.9  2002/04/02 19:32:45  oes
-  Adding temporary fix for missing curl support on SF (step 2 + 3 on oesterhelt.org)
-
   Revision 1.8  2002/04/02 08:45:22  oes
   Made script location indepandant
 
  -->
 
  <head>
-  <link rel="stylesheet" type="text/css" href="../p_feedback.css">
+  <meta http-equiv="Content-Style-Type" content="text/css">
+  <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
+  <style type="text/css">
+   body,td,th { font-family:helvetica,helv,arial,sans-serif; font-size:10px }
+   body { background-color: #ffffff; color: #000000 }
+   h1 { font-size: 140%; marign: 0px; }
+   h2 { font-size: 120%; marign: 0px; }
+   div.title    { background-color:#dddddd; border:solid black 1px; margin:20px; padding:20px; }
+   div.box      { background-color:#eeeeee; border:solid black 1px; margin:20px; padding:20px; }
+   div.infobox  { background-color:#ccccff; border:solid black 1px; margin:20px; padding:20px; width: 60%; }
+   div.errorbox { background-color:#ffdddd; border:solid black 1px; margin:20px; padding:20px; width: 60%; text-align: left; } 
+  </style>
+
 <?php
 
 /*
@@ -80,7 +86,7 @@ error_reporting(E_NONE);
  * Bookmarklet that leads here:
  */
 $my_address = "http://" . $HTTP_SERVER_VARS["HTTP_HOST"] . $PHP_SELF;
-$bookmarklet = "javascript:void(window.open('$my_address?url='+escape(location.href),'Feedback'," .
+$bookmarklet = "javascript:void(window.open('$my_address?url='+escape(location.href), 'Feedback', " .
                "'width=600,scrollbars=yes,toolbar=no,location=no,directories=no,status=no,menubar=no,copyhistory=no').focus());";
 
 
@@ -101,11 +107,10 @@ $headers = getallheaders();
 
 if (!isset($headers["X-Actions-File-Version"]) || $headers["X-Actions-File-Version"] < $required_actions_file_version)
 {
-   echo ("<title>Invalid Privoxy Action List Feedback</title>
-          </head>
-          <body><div class=\"title\">Invalid Feedback Submission</div>
-           <div align=\"center\">
-            <div class=\"errorbox\" align=\"left\"><p>As much as we welcome your feedback, please note that
+   echo ("<title>Invalid Privoxy Action List Feedback</title></head>
+          <body><div class=\"title\"><h1>Invalid Feedback Submission</h1></div>
+           <center>
+            <div class=\"errorbox\"><p>As much as we welcome your feedback, please note that
              we can only accept problem reports based on:
              <ul>
               <li><a href=\"http://www.privoxy.org/\">Privoxy</a> version $required_privoxy_version or later</li>
@@ -113,7 +118,8 @@ if (!isset($headers["X-Actions-File-Version"]) || $headers["X-Actions-File-Versi
              </ul>
              <p>We hope you will understand that we feel unable to maintain concurrent versions of the file.</p>
             </div>
-           </div>
+           </center>
+           <p>Valid <a href=\"http://validator.w3.org/\">HTML 4.01 Transitional</a></p>
           </body>
          </html>");
    exit;
@@ -125,7 +131,11 @@ if (!isset($headers["X-Actions-File-Version"]) || $headers["X-Actions-File-Versi
  </head>
 
  <body>
-  <div class="title"><a href="http://www.privoxy.org/" target="_blank">Privoxy</a> Action List Feedback - Step 1 of 2</div>
+  <div class="title">
+    <h1>
+      <a href="http://www.privoxy.org" target="_blank">Privoxy</a> Action List Feedback - Step 1 of 2
+    </h1>
+  </div>
 
   <div class="box">
    <p>
@@ -139,8 +149,7 @@ if (!isset($headers["X-Actions-File-Version"]) || $headers["X-Actions-File-Versi
   </div>
 
   <div class="box">
-   <!-- FIXME: This must become action="step2.php" as soon as SF supports curl in PHP -->
-   <form action="http://www.oesterhelt.org/actions/step2.php" method="post">
+   <form action="step2.php" method="post">
 
     <table border="0" cellpadding="0" cellspacing="4">
 
@@ -176,13 +185,9 @@ if (!isset($headers["X-Actions-File-Version"]) || $headers["X-Actions-File-Versi
    </form>
   </div>
 
-  <div align=center>
-   <div class="infobox" width="60%" align=\"left\">
-    <p>
-     <big>
-      <b>Using <a href="http://www.bookmarklets.com" target="_blank">Bookmarklets</a> for Feedback</b>
-     </big>
-    </p>
+  <center>
+   <div class="infobox">
+    <h2>Using <a href="http://www.bookmarklets.com" target="_blank">Bookmarklets</a> for Feedback</h2>
     <p>
      To make it even easier for you, we provide a bookmarklet which will not only take you here from
      any troubled page you might be surfing, but also pre-fill the form!
@@ -198,7 +203,9 @@ if (!isset($headers["X-Actions-File-Version"]) || $headers["X-Actions-File-Versi
      and submit feedback with a single click!</i>
     </p>
    </div>
-  </div>
+  </center>
+
+  <p>Valid <a href="http://validator.w3.org/">HTML 4.01 Transitional</a></p>
 
  </body>
 </html>
index 7572dfc..64303d1 100644 (file)
@@ -8,12 +8,9 @@
               This file belongs in
               ijbswa.sourceforge.net:/home/groups/i/ij/ijbswa/htdocs/
 
-  $Id: step2.php,v 1.7 2002/04/03 19:36:04 swa Exp $
+  $Id: step2.php,v 1.6 2002/04/02 07:22:19 oes Exp $
 
   $Log: step2.php,v $
-  Revision 1.7  2002/04/03 19:36:04  swa
-  consistent look
-
   Revision 1.6  2002/04/02 07:22:19  oes
   Elimnating duplicate images; using relative link for step3
 
  -->
 
  <head>
-  <link rel="stylesheet" type="text/css" href="../p_feedback.css">
-
-  <script language="javascript">
+  <meta http-equiv="Content-Style-Type" content="text/css">
+  <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
+  <style type="text/css">
+   body,td,th { font-family:helvetica,helv,arial,sans-serif; font-size:10px }
+   body { background-color: #ffffff; color: #000000 }
+   h1 { font-size: 140%; marign: 0px; }
+   h2 { font-size: 120%; marign: 0px; }
+   div.title    { background-color:#dddddd; border:solid black 1px; margin:20px; padding:20px; }
+   div.box      { background-color:#eeeeee; border:solid black 1px; margin:20px; padding:20px; }
+   div.infobox  { background-color:#ccccff; border:solid black 1px; margin:20px; padding:20px; width: 60%; }
+   div.errorbox { background-color:#ffdddd; border:solid black 1px; margin:20px; padding:20px; width: 60%; }
+  </style>
+
+  <script language="javascript" type="text/javascript">
+  <!--
    //
    // Could be as easy as style="max-wdith: 300px; max-height..." inside the
    // <img> tag, but IE doesn't do that. Setting the values directly also
          image.height = newheight
       }
    }
+  //-->
   </script>
 
 
@@ -113,12 +123,13 @@ if (!isset($referrer_url))
    echo ("  <title>Invalid Feedback Submission</title>
            </head>
            <body>
-            <div class=\"title\">Invalid Feedback Submission</div>
-            <div align=\"center\">
-             <div class=\"errorbox\" align=\"left\">When submitting your feedback please start with
+            <div class=\"title\"><h1>Invalid Feedback Submission</h1></div>
+            <center>
+             <div class=\"errorbox\">When submitting your feedback please start with
               <a href=\"index.php\">step 1</a>.
              </div>
-            </div>
+            </center>
+            <p>Valid <a href=\"http://validator.w3.org/\">HTML 4.01 Transitional</a></p>
            </body>
           </html>\n");
    exit; 
@@ -133,12 +144,13 @@ if (!isset($problem) || $problem == "INVALID")
    echo ("  <title>Invalid Feedback Submission</title>
            </head>
            <body>
-            <div class=\"title\">Invalid Feedback Submission</div>
-            <div align=\"center\">
-             <div class=\"errorbox\" align=\"left\">You need to select the nature of the problem in
+            <div class=\"title\"><h1>Invalid Feedback Submission</h1></div>
+            <center>
+             <div class=\"errorbox\">You need to select the nature of the problem in
               <a href=\"javascript:history.back();\">step 1</a>.
              </div>
-            </div>
+            </center>
+           <p>Valid <a href=\"http://validator.w3.org/\">HTML 4.01 Transitional</a></p>
            </body>
           </html>\n");
    exit; 
@@ -173,16 +185,17 @@ if (!$success)
    echo ("  <title>Invalid Feedback Submission</title>
            </head>
            <body>
-            <div class=\"title\">Invalid Feedback Submission</div>
-            <div align=\"center\">
-             <div class=\"errorbox\" align=\"left\">
+            <div class=\"title\"><h1>Invalid Feedback Submission</h1></div>
+            <center>
+             <div class=\"errorbox\">
               <p>The URL that you entered (<a href=\"$referrer_url\">$referrer_url</a>)
                <br>could not be retrieved.
               </p>
               <p>Make sure the URL is correct and publicly accessible.</p>
               <p><a href=\"javascript:history.back();\">Back to step 1</a></p>
              </div>
-            </div>
+            </center>
+            <p>Valid <a href=\"http://validator.w3.org/\">HTML 4.01 Transitional</a></p>
            </body>
           </html>\n");
    exit; 
@@ -208,7 +221,11 @@ switch($problem)
  </head>
  <body>
 
-  <div class="title"><a href="http://www.privoxy.org" target="_blank">Privoxy</a> Action List Feedback - Step 2 of 2</div>
+  <div class="title">
+   <h1>
+     <a href="http://www.privoxy.org" target="_blank">Privoxy</a> Action List Feedback - Step 2 of 2
+   </h1>
+  </div>
 
   <div class="box">
    <b>You are about to report that <?php echo ($problem_description) ?> on
@@ -302,7 +319,7 @@ else
           * Print the row(s):
           */
          echo ("       <tr>
-                        <td rowspan=2>
+                        <td rowspan=\"2\">
                          <input type=\"checkbox\" name=\"block_image[$i]\" value=\"off\">
                         </td>
                         <td>
@@ -390,12 +407,14 @@ else
 
      <dt>&nbsp;</dt>
      <dd>
-      <input type=submit value="Submit">
+      <input type="submit" value="Submit">
      </dd>
 
     </dl>
    </form>
   </div>
 
+  <p>Valid <a href="http://validator.w3.org/">HTML 4.01 Transitional</a></p>
+
  </body>
 </html>
index 8f7ba7e..441bb3b 100644 (file)
@@ -8,15 +8,9 @@
               This file belongs in
               ijbswa.sourceforge.net:/home/groups/i/ij/ijbswa/htdocs/
 
-  $Id: step3.php,v 1.7 2002/04/04 10:29:58 oes Exp $
+  $Id: step3.php,v 1.5 2002/04/02 07:22:43 oes Exp $
 
   $Log: step3.php,v $
-  Revision 1.7  2002/04/04 10:29:58  oes
-  Keeping feedback confidential
-
-  Revision 1.6  2002/04/03 19:36:04  swa
-  consistent look
-
   Revision 1.5  2002/04/02 07:22:43  oes
   Cosmetics
 
  -->
 
  <head>
-  <link rel="stylesheet" type="text/css" href="../p_feedback.css">
+  <style type="text/css">
+   body, div, p, h1, h2, ul, ol, li, td, th, dl, dt, dd { font-family:helvetica,helv,arial,sans-serif; font-size:10px }
+   body { background-color: #ffffff }
+   div.title    { background-color:#dddddd; border:solid black 1px; margin:20px; min-width: 80%; padding:20px; font-size:15px; font-weight:bold }
+   div.box      { background-color:#eeeeee; border:solid black 1px; margin:20px; min-width: 80%; padding:20px; font-size:10px }
+   div.infobox  { background-color:#ccccff; border:solid black 1px; margin:20px; min-width: 60%; max-width: 60%; padding:20px; font-size:10px; }
+   div.errorbox { background-color:#ffdddd; border:solid black 1px; margin:20px; min-width: 60%; max-width: 60%; padding:20px; font-size:10px; }
+  </style>
 
 <?php
 
-/* 
- * Config:
- */
-$logfile = "results/actions-feedback.txt";
-
 /* 
  * For testing:
  */
@@ -68,6 +64,7 @@ $logfile = "results/actions-feedback.txt";
 error_reporting(E_NONE);
 
 
+
 /* 
  * Cannot start with step 3:
  */
@@ -120,6 +117,7 @@ if (!isset($name) || ($name == ""))
 /* 
  * Open the logfile or fail:
  */
+$logfile = "feedback-data.txt";
 $fp = fopen($logfile, "a");
 
 if(!$fp)
@@ -223,7 +221,7 @@ fclose($fp);
    </p>
 
    <p>
-    The developers will review and use your submission to improve the
+    It will be reviewed by the developers and used to improve the
     distribution actions file.
    </p>
    
index e04f9a6..74a5062 100644 (file)
@@ -1,6 +1,8 @@
-body, div, p, h1, h2, ul, ol, li, td, th, dl, dt, dd { font-family:helvetica,helv,arial,sans-serif; font-size:10px }
-body { background-color: #ffffff }
-div.title    { background-color:#dddddd; border:solid black 1px; margin:20px; min-width: 80%; padding:20px; font-size:15px; font-weight:bold }
-div.box      { background-color:#eeeeee; border:solid black 1px; margin:20px; min-width: 80%; padding:20px; font-size:10px }
-div.infobox  { background-color:#ccccff; border:solid black 1px; margin:20px; min-width: 60%; max-width: 60%; padding:20px; font-size:10px; }
-div.errorbox { background-color:#ffdddd; border:solid black 1px; margin:20px; min-width: 60%; max-width: 60%; padding:20px; font-size:10px; }
+body,td,th { font-family:helvetica,helv,arial,sans-serif; font-size:10px }
+body { background-color: #ffffff; color: #000000 }
+h1 { font-size: 140%; marign: 0px; }
+h2 { font-size: 120%; marign: 0px; }
+div.title    { background-color:#dddddd; border:solid black 1px; margin:20px; padding:20px; }
+div.box      { background-color:#eeeeee; border:solid black 1px; margin:20px; padding:20px; }
+div.infobox  { background-color:#ccccff; border:solid black 1px; margin:20px; padding:20px; width: 60%; }
+div.errorbox { background-color:#ffdddd; border:solid black 1px; margin:20px; padding:20px; width: 60%; text-align: left; }