Update of /cvsroot/phpweather/phpweather/config
In directory sc8-pr-cvs1:/tmp/cvs-serv23382
Modified Files:
make_config.php pw_optiongroup.php
Log Message:
Added extra 'Update options' buttons and reformatted the bottom
'Download the Configuration' bottom so that value attribute is no
longer split between two lines - this confused Mozilla.
Index: make_config.php
===================================================================
RCS file: /cvsroot/phpweather/phpweather/config/make_config.php,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -3 -r1.7 -r1.8
--- make_config.php 28 Dec 2002 00:52:54 -0000 1.7
+++ make_config.php 28 Dec 2002 14:15:47 -0000 1.8
@@ -326,10 +326,6 @@
array('time' => 'Leave out the time part',
'wind' => 'Leave out the wind part',
'runway' => 'Leave out information about runways'));
-
-
- /* Finally - we register all the options with the session. */
- //session_register('options');
}
/* The options should now be ready - they might come from a restored
@@ -471,8 +467,6 @@
?>
</dl>
-<p><input type="submit" value="Update options" /></p>
-
<p>This is a configuration file bases on your answers above:</p>
<?php highlight_string($config); ?>
@@ -485,8 +479,9 @@
respectively. There should be no blank lines outside these two
tags.</p>
-<p>You can also <input type="submit" name="download" value="Download
-the Configuration"> or <input type="reset" value="Reset Everything"
+<p>You can also <input type="submit" name="download"
+value="Download the Configuration"> or <input type="reset"
+value="Reset Everything"
onclick="document.location='reset_session.php'"></p>
</form>
Index: pw_optiongroup.php
===================================================================
RCS file: /cvsroot/phpweather/phpweather/config/pw_optiongroup.php,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- pw_optiongroup.php 28 Dec 2002 00:52:54 -0000 1.5
+++ pw_optiongroup.php 28 Dec 2002 14:15:47 -0000 1.6
@@ -88,7 +88,7 @@
echo '<input id="' . $this->id . '_input" type="hidden" name="' .
$this->id . '_visible" value="0" />' . "\n";
}
- echo "<dt>$this->title</dt>\n";
+ echo "<dt>$this->title <input type=\"submit\" value=\"Update options\" /></dt>\n";
echo "<dd><p>$this->description</p>\n";
echo "<p><a href=\"javascript:toggle_group('$this->id')\" id=\"" .
$this->id . "_text\">$text</a></p>\n";
|