more forminess

This commit is contained in:
Shish 2012-03-13 15:23:56 +00:00
parent 947fbfd820
commit 8b78fce982
6 changed files with 21 additions and 16 deletions

View file

@ -29,8 +29,10 @@ class BulkAddTheme extends Themelet {
upload via FTP or something first. upload via FTP or something first.
<p>".make_form(make_link("bulk_add"))." <p>".make_form(make_link("bulk_add"))."
Directory to add: <input type='text' name='dir' size='40'> <table class='form'>
<input type='submit' value='Add'> <tr><th>Folder</th><td><input type='text' name='dir' size='40'></td></tr>
<tr><td colspan='2'><input type='submit' value='Add'></td></tr>
</table>
</form> </form>
"; ";
$page->add_block(new Block("Bulk Add", $html)); $page->add_block(new Block("Bulk Add", $html));

View file

@ -23,15 +23,15 @@ class RatingsTheme extends Themelet {
global $page; global $page;
$html = " $html = "
".make_form(make_link("admin/bulk_rate"))." ".make_form(make_link("admin/bulk_rate"))."
<table style='width: 300px'> <table class='form'>
<tr> <tr>
<td>Search</td> <th>Search</th>
<td> <td>
<input type='text' name='query'> <input type='text' name='query'>
</td> </td>
</tr> </tr>
<tr> <tr>
<td>Rating</td> <th>Rating</th>
<td> <td>
<select name='rating'> <select name='rating'>
<option value='s'>Safe</option> <option value='s'>Safe</option>

View file

@ -114,10 +114,12 @@ class Tag_HistoryTheme extends Themelet {
'.$validation_msg.' '.$validation_msg.'
<br><br>'.make_form(make_link("admin/bulk_revert"),'POST',false,'revert_ip_form')." <br><br>'.make_form(make_link("admin/bulk_revert"),'POST',false,'revert_ip_form')."
Username: <input type='text' name='revert_name' size='15'><br> <table class='form'>
IP Address: <input type='text' name='revert_ip' size='15'><br> <tr><th>Username</th> <td><input type='text' name='revert_name' size='15'></td></tr>
Date range: <input type='text' name='revert_date' size='15'><br><br> <tr><th>IP&nbsp;Address</th> <td><input type='text' name='revert_ip' size='15'></td></tr>
<input type='submit' value='Revert' onclick='return confirm(\"Revert all edits by this IP?\");'> <tr><th>Date&nbsp;range</th> <td><input type='text' name='revert_date' size='15'></td></tr>
<tr><td colspan='2'><input type='submit' value='Revert' onclick='return confirm(\"Revert all edits by this IP?\");'></td></tr>
</table>
</form> </form>
"; ";
$page->add_block(new Block("Revert By IP", $html)); $page->add_block(new Block("Revert By IP", $html));

View file

@ -9,9 +9,9 @@ class TagEditTheme extends Themelet {
global $page; global $page;
$html = " $html = "
".make_form(make_link("tag_edit/replace"))." ".make_form(make_link("tag_edit/replace"))."
<table style='width: 400px;'> <table class='form'>
<tr><td>Search</td><td><input type='text' name='search'></tr> <tr><th>Search</th><td><input type='text' name='search'></tr>
<tr><td>Replace</td><td><input type='text' name='replace'></td></tr> <tr><th>Replace</th><td><input type='text' name='replace'></td></tr>
<tr><td colspan='2'><input type='submit' value='Replace'></td></tr> <tr><td colspan='2'><input type='submit' value='Replace'></td></tr>
</table> </table>
</form> </form>

View file

@ -54,7 +54,7 @@ class UserPageTheme extends Themelet {
$html .= ' $html .= '
'.make_form(make_link("user_admin/create"))." '.make_form(make_link("user_admin/create"))."
<table style='width: 300px;' class='form'> <table class='form'>
<tbody> <tbody>
<tr><th>Name</th><td><input type='text' name='name'></td></tr> <tr><th>Name</th><td><input type='text' name='name'></td></tr>
<tr><th>Password</th><td><input type='password' name='pass1'></td></tr> <tr><th>Password</th><td><input type='password' name='pass1'></td></tr>
@ -87,7 +87,7 @@ class UserPageTheme extends Themelet {
global $config; global $config;
$html = ' $html = '
'.make_form(make_link("user_admin/login"))." '.make_form(make_link("user_admin/login"))."
<table class='form'> <table width='100%' class='form'>
<tbody> <tbody>
<tr> <tr>
<th><label for='user'>Name</label></th> <th><label for='user'>Name</label></th>
@ -163,7 +163,7 @@ class UserPageTheme extends Themelet {
$html .= " $html .= "
".make_form(make_link("user_admin/change_pass"))." ".make_form(make_link("user_admin/change_pass"))."
<input type='hidden' name='id' value='{$duser->id}'> <input type='hidden' name='id' value='{$duser->id}'>
<table style='width: 300px;' class='form'> <table class='form'>
<thead> <thead>
<tr><th colspan='2'>Change Password</th></tr> <tr><th colspan='2'>Change Password</th></tr>
</thead> </thead>
@ -179,7 +179,7 @@ class UserPageTheme extends Themelet {
<p>".make_form(make_link("user_admin/change_email"))." <p>".make_form(make_link("user_admin/change_email"))."
<input type='hidden' name='id' value='{$duser->id}'> <input type='hidden' name='id' value='{$duser->id}'>
<table style='width: 300px;' class='form'> <table class='form'>
<thead><tr><th colspan='2'>Change Email</th></tr></thead> <thead><tr><th colspan='2'>Change Email</th></tr></thead>
<tbody><tr><th>Address</th><td><input type='text' name='address' value='".html_escape($duser->email)."'></td></tr></tbody> <tbody><tr><th>Address</th><td><input type='text' name='address' value='".html_escape($duser->email)."'></td></tr></tbody>
<tfoot><tr><td colspan='2'><input type='Submit' value='Set'></td></tr></tfoot> <tfoot><tr><td colspan='2'><input type='Submit' value='Set'></td></tr></tfoot>

View file

@ -7,6 +7,7 @@ TD>INPUT[type="text"] {width: 100%;}
TD>INPUT[type="password"] {width: 100%;} TD>INPUT[type="password"] {width: 100%;}
TD>SELECT {width: 100%;} TD>SELECT {width: 100%;}
TABLE.form {width: 300px;}
TABLE.form TD, TABLE.form TH {vertical-align: middle;} TABLE.form TD, TABLE.form TH {vertical-align: middle;}
TABLE.form TBODY TD {text-align: left;} TABLE.form TBODY TD {text-align: left;}
TABLE.form TBODY TH {text-align: right; padding-right: 4px; width: 1%;} TABLE.form TBODY TH {text-align: right; padding-right: 4px; width: 1%;}