CSS and consistency fixes for options.php

git-svn-id: http://svn.automattic.com/wordpress/trunk@4336 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
markjaquith 2006-10-04 12:58:05 +00:00
parent 88b1b44cae
commit 2c1907d29f
2 changed files with 6 additions and 5 deletions

View File

@ -116,10 +116,11 @@ default:
include('admin-header.php'); ?> include('admin-header.php'); ?>
<div class="wrap"> <div class="wrap">
<h2><?php _e('All options'); ?></h2> <h2><?php _e('All Options'); ?></h2>
<form name="form" action="options.php" method="post" id="all-options"> <form name="form" action="options.php" method="post" id="all-options">
<?php wp_nonce_field('update-options') ?> <?php wp_nonce_field('update-options') ?>
<input type="hidden" name="action" value="update" /> <input type="hidden" name="action" value="update" />
<p class="submit"><input type="submit" name="Update" value="<?php _e('Update Options &raquo;') ?>" /></p>
<table width="98%"> <table width="98%">
<?php <?php
$options = $wpdb->get_results("SELECT * FROM $wpdb->options ORDER BY option_name"); $options = $wpdb->get_results("SELECT * FROM $wpdb->options ORDER BY option_name");
@ -138,8 +139,8 @@ foreach ( (array) $options as $option) :
<th scope='row'><label for='$option->option_name'>$option->option_name</label></th> <th scope='row'><label for='$option->option_name'>$option->option_name</label></th>
<td>"; <td>";
if (stristr($value, "\n")) echo "<textarea name='$option->option_name' id='$option->option_name' cols='30' rows='5'>$value</textarea>"; if (stristr($value, "\n")) echo "<textarea class='all-options' name='$option->option_name' id='$option->option_name' cols='30' rows='5'>$value</textarea>";
else echo "<input type='text' name='$option->option_name' id='$option->option_name' size='30' value='" . $value . "' />"; else echo "<input class='all-options' type='text' name='$option->option_name' id='$option->option_name' size='30' value='" . $value . "' />";
echo "</td> echo "</td>
<td>$option->option_description</td> <td>$option->option_description</td>
@ -147,7 +148,7 @@ foreach ( (array) $options as $option) :
endforeach; endforeach;
?> ?>
</table> </table>
<p class="submit"><input type="submit" name="Update" value="<?php _e('Update Settings &raquo;') ?>" /></p> <p class="submit"><input type="submit" name="Update" value="<?php _e('Update Options &raquo;') ?>" /></p>
</form> </form>
</div> </div>

View File

@ -400,7 +400,7 @@ table .vers {
text-align: center; text-align: center;
} }
#all-options textarea, #all-options input { textarea.all-options, input.all-options {
width: 250px; width: 250px;
} }