left-align tables properly

git-svn-id: file:///home/shish/svn/shimmie2/trunk@436 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
shish 2007-08-06 19:24:42 +00:00
parent 461e56eb00
commit 4573150131
3 changed files with 4 additions and 8 deletions

View File

@ -122,10 +122,6 @@ A:hover {text-decoration: underline;}
.withleft { .withleft {
margin-left: 160px; margin-left: 160px;
} }
#body TABLE {
width: 90%;
margin: auto;
}
.paginator { .paginator {
margin: 16px; margin: 16px;
text-align: center; text-align: center;

View File

@ -33,7 +33,7 @@ class UserPageTheme extends Themelet {
$html .= " $html .= "
<form action='".make_link("user_admin/create")."' method='POST'> <form action='".make_link("user_admin/create")."' method='POST'>
<table style='width: 300px;' border='1'> <table style='width: 300px;'>
<tr><td>Name</td><td><input type='text' name='name'></td></tr> <tr><td>Name</td><td><input type='text' name='name'></td></tr>
<tr><td>Password</td><td><input type='password' name='pass1'></td></tr> <tr><td>Password</td><td><input type='password' name='pass1'></td></tr>
<tr><td>Repeat Password</td><td><input type='password' name='pass2'></td></tr> <tr><td>Repeat Password</td><td><input type='password' name='pass2'></td></tr>
@ -75,7 +75,7 @@ class UserPageTheme extends Themelet {
} }
public function display_ip_list($page, $uploads, $comments) { public function display_ip_list($page, $uploads, $comments) {
$html = "<table id='ip-history'>"; $html = "<table id='ip-history' style='width: 400px;'>";
$html .= "<tr><td>Uploaded from: "; $html .= "<tr><td>Uploaded from: ";
foreach($uploads as $ip => $count) { foreach($uploads as $ip => $count) {
$html .= "<br>$ip ($count)"; $html .= "<br>$ip ($count)";
@ -140,7 +140,7 @@ class UserPageTheme extends Themelet {
<form action='".make_link("user_admin/change_pass")."' method='POST'> <form action='".make_link("user_admin/change_pass")."' method='POST'>
<input type='hidden' name='name' value='{$duser->name}'> <input type='hidden' name='name' value='{$duser->name}'>
<input type='hidden' name='id' value='{$duser->id}'> <input type='hidden' name='id' value='{$duser->id}'>
<table style='width: 300px;' border='1'> <table style='width: 300px;'>
<tr><td colspan='2'>Change Password</td></tr> <tr><td colspan='2'>Change Password</td></tr>
<tr><td>Password</td><td><input type='password' name='pass1'></td></tr> <tr><td>Password</td><td><input type='password' name='pass1'></td></tr>
<tr><td>Repeat Password</td><td><input type='password' name='pass2'></td></tr> <tr><td>Repeat Password</td><td><input type='password' name='pass2'></td></tr>

View File

@ -103,7 +103,7 @@ class ViewTheme extends Themelet {
<div id='imgdata'><form action='".make_link("tag_edit/set")."' method='POST'> <div id='imgdata'><form action='".make_link("tag_edit/set")."' method='POST'>
<input type='hidden' name='image_id' value='$i_image_id'> <input type='hidden' name='image_id' value='$i_image_id'>
<input type='hidden' name='query' value='$h_query'> <input type='hidden' name='query' value='$h_query'>
<table style='width: 500px; margin: 0px;'> <table style='width: 500px;'>
<tr><td width='50px'>Tags</td><td width='300px'><input type='text' name='tags' value='$h_tags'></td></tr> <tr><td width='50px'>Tags</td><td width='300px'><input type='text' name='tags' value='$h_tags'></td></tr>
<tr><td>Source</td><td><input type='text' name='source' value='$h_source'></td></tr> <tr><td>Source</td><td><input type='text' name='source' value='$h_source'></td></tr>
<tr><td>&nbsp;</td><td><input type='submit' value='Set'></td></tr> <tr><td>&nbsp;</td><td><input type='submit' value='Set'></td></tr>