CVS: phpweather/config make_config.php,1.2,1.3 make_db.php,1.2,1.3 ma...
Brought to you by:
iridium
|
From: Martin G. <gim...@us...> - 2002-05-29 20:43:01
|
Update of /cvsroot/phpweather/phpweather/config
In directory usw-pr-cvs1:/tmp/cvs-serv13795
Modified Files:
make_config.php make_db.php make_stations.php
pw_option_text.php pw_optiongroup.php
Log Message:
Hmm, the validator is quite picky...
Index: make_config.php
===================================================================
RCS file: /cvsroot/phpweather/phpweather/config/make_config.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- make_config.php 29 May 2002 20:12:35 -0000 1.2
+++ make_config.php 29 May 2002 20:42:56 -0000 1.3
@@ -346,7 +346,7 @@
</head>
<body>
-<script language="JavaScript1.2">
+<script type="text/javascript">
function update(accepted, error, value, output) {
if (accepted) {
document.getElementById(output).innerHTML = "<font color=\"green\">Input accepted.</font>";
@@ -401,11 +401,11 @@
options might appear. Continue to change the options until they all
say <span style="color: green">Input accepted.</span></p>
-<form action="<? echo $PHP_SELF . '?' . SID ?>" method="POST">
+<form action="<? echo $PHP_SELF . '?' . SID ?>" method="post">
<p>You can <input type="submit" name="download" value="Download the
-Configuration"> or <input type="reset" value="Reset Everything"
-onclick="document.location='reset_session.php'"></p>
+Configuration" /> or <input type="reset" value="Reset Everything"
+onclick="document.location='reset_session.php'" /></p>
<dl>
<?php
Index: make_db.php
===================================================================
RCS file: /cvsroot/phpweather/phpweather/config/make_db.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- make_db.php 29 May 2002 20:12:35 -0000 1.2
+++ make_db.php 29 May 2002 20:42:56 -0000 1.3
@@ -37,7 +37,7 @@
remove any cached METARs from the database, but they would have been
removed sooner or later anyway, so this isn't a problem.</p>
-<form action="make_db.php" method="POST">
+<form action="make_db.php" method="post">
<input type="submit" name="do_sql" value="Create or Recreate Tables" />
</form>
Index: make_stations.php
===================================================================
RCS file: /cvsroot/phpweather/phpweather/config/make_stations.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- make_stations.php 29 May 2002 20:12:35 -0000 1.2
+++ make_stations.php 29 May 2002 20:42:56 -0000 1.3
@@ -66,7 +66,7 @@
<p>Click the button below to download the updated
<code>stations.csv</code>:</p>
-<form action="make_stations.php" method="POST">
+<form action="make_stations.php" method="post">
<input type="submit" name="make_stations" value="Download stations.cvs" />
</form>
Index: pw_option_text.php
===================================================================
RCS file: /cvsroot/phpweather/phpweather/config/pw_option_text.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -3 -r1.2 -r1.3
--- pw_option_text.php 9 Apr 2002 23:21:37 -0000 1.2
+++ pw_option_text.php 29 May 2002 20:42:56 -0000 1.3
@@ -12,7 +12,7 @@
echo '<input type="text" name="' . $this->name .
'_value" value="' . htmlentities($this->value) .
'" onkeyup="' . $this->validator->get_javascript($this->name) .
- "\"></dt>\n";
+ "\" /></dt>\n";
echo '<dd><p>' . $this->description . "</p>\n";
if ($this->is_valid()) {
echo '<p id="' . $this->name . '"><font color="green">Input accepted.</font></p>';
Index: pw_optiongroup.php
===================================================================
RCS file: /cvsroot/phpweather/phpweather/config/pw_optiongroup.php,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- pw_optiongroup.php 14 Apr 2002 18:27:40 -0000 1.3
+++ pw_optiongroup.php 29 May 2002 20:42:56 -0000 1.4
@@ -79,12 +79,12 @@
$style = 'block';
$text = 'Hide options.';
echo '<input id="' . $this->id . '_input" type="hidden" name="' .
- $this->id . '_visible" value="1">' . "\n";
+ $this->id . '_visible" value="1" />' . "\n";
} else {
$style = 'none';
$text = 'Show options.';
echo '<input id="' . $this->id . '_input" type="hidden" name="' .
- $this->id . '_visible" value="0">' . "\n";
+ $this->id . '_visible" value="0" />' . "\n";
}
echo "<dt>$this->title</dt>\n";
echo "<dd><p>$this->description</p>\n";
|