1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-09 16:17:14 +02:00

Some CSS standardization.

This commit is contained in:
CaMer0n
2009-07-10 14:25:23 +00:00
parent b9b460a319
commit 62d5c8b49c
11 changed files with 365 additions and 266 deletions

View File

@@ -11,9 +11,9 @@
| GNU General Public License (http://gnu.org).
|
| $Source: /cvs_backup/e107_0.8/e107_plugins/poll/poll_class.php,v $
| $Revision: 1.14 $
| $Date: 2008-11-16 18:01:19 $
| $Author: e107steved $
| $Revision: 1.15 $
| $Date: 2009-07-10 14:25:23 $
| $Author: e107coders $
+----------------------------------------------------------------------------+
*/
if (!defined('e107_INIT')) { exit; }
@@ -473,16 +473,16 @@ class poll
<td colspan='2' class='nforumcaption2'>".LAN_4."</td>
</tr>
<tr>
<td colspan='2' class='forumheader3'>
<td colspan='2'>
<span class='smalltext'>".LAN_386."</span>
</td>
</tr>
<tr><td style='width:20%' class='forumheader3'><div class='normaltext'>".LAN_5."</div></td><td style='width:80%'class='forumheader3'><input class='tbox' type='text' name='poll_title' size='70' value='".$tp->post_toForm($_POST['poll_title'])."' maxlength='200' /></td></tr>";
<tr><td style='width:20%'><div class='normaltext'>".LAN_5."</div></td><td style='width:80%'class='forumheader3'><input class='tbox' type='text' name='poll_title' size='70' value='".$tp->post_toForm($_POST['poll_title'])."' maxlength='200' /></td></tr>";
$option_count = (count($_POST['poll_option']) ? count($_POST['poll_option']) : 1);
$text .= "<tr>
<td style='width:20%' class='forumheader3'>".LAN_391."</td>
<td style='width:80%' class='forumheader3'>
<td style='width:20%'>".LAN_391."</td>
<td style='width:80%'>
<div id='pollsection'>";
for($count = 1; $count <= $option_count; $count++)
@@ -501,20 +501,20 @@ class poll
<tr>
<td style='width:20%' class='forumheader3'>".POLL_506."</td>
<td style='width:80%' class='forumheader3'>
<td style='width:20%'>".POLL_506."</td>
<td style='width:80%'>
<input type='radio' name='multipleChoice' value='1'".($_POST['multipleChoice'] ? " checked='checked'" : "")." /> ".POLL_507."&nbsp;&nbsp;
<input type='radio' name='multipleChoice' value='0'".(!$_POST['multipleChoice'] ? " checked='checked'" : "")." /> ".POLL_508."
</td>
</tr>
<tr>
<td style='width:30%' class='forumheader3'>".POLLAN_16."</td>
<td class='forumheader3'>
<td style='width:30%'>".POLLAN_16."</td>
<td>
<input type='radio' name='storageMethod' value='0'".(!$_POST['storageMethod'] ? " checked='checked'" : "")." /> ".POLLAN_17."<br />
<input type='radio' name='storageMethod' value='1'".($_POST['storageMethod'] == 1 ? " checked='checked'" : "")." /> ".POLLAN_18."<br />
<input type='radio' name='storageMethod' value='2'".($_POST['storageMethod'] ==2 ? " checked='checked'" : "")." /> ".POLLAN_19."
</tr>
</td></tr>
";
@@ -525,17 +525,21 @@ class poll
$text = "<div style='text-align:center'>
<form method='post' action='$formgo'>
<table style='".ADMIN_WIDTH."' class='fborder'>
<table class='adminform' cellpadding='0' cellspacing='0'>
<colgroup span='2'>
<col class='col-label' />
<col class='col-control' />
</colgroup>
<tr>
<td style='width:30%' class='forumheader3'><div class='normaltext'>".POLLAN_3.":</div></td>
<td style='width:70%'class='forumheader3'>
<td style='width:30%'><div class='normaltext'>".POLLAN_3.":</div></td>
<td style='width:70%'>
<input class='tbox' type='text' name='poll_title' size='70' value='".$tp -> post_toForm($_POST['poll_title'])."' maxlength='200' />";
$option_count = (count($_POST['poll_option']) ? count($_POST['poll_option']) : 1);
$text .= "<tr>
<td style='width:30%;vertical-align:top' class='forumheader3'>".LAN_OPTIONS." :</td>
<td style='width:70%' class='forumheader3'>
$text .= "</td></tr><tr>
<td style='width:30%;vertical-align:top'>".LAN_OPTIONS." :</td>
<td style='width:70%'>
<div id='pollsection'>";
for($count = 1; $count <= $option_count; $count++)
@@ -553,45 +557,45 @@ class poll
</td></tr>
<tr>
<td style='width:30%' class='forumheader3'>".POLLAN_9."</td>
<td style='width:70%' class='forumheader3'>
<td style='width:30%'>".POLLAN_9."</td>
<td style='width:70%'>
<input type='radio' name='multipleChoice' value='1'".($_POST['multipleChoice'] ? " checked='checked'" : "")." /> ".POLLAN_10."&nbsp;&nbsp;
<input type='radio' name='multipleChoice' value='0'".(!$_POST['multipleChoice'] ? " checked='checked'" : "")." /> ".POLLAN_11."
</td>
</tr>
<tr>
<td style='width:30%' class='forumheader3'>".POLLAN_12."</td>
<td style='width:70%' class='forumheader3'>
<td style='width:30%'>".POLLAN_12."</td>
<td style='width:70%'>
<input type='radio' name='showResults' value='0'".(!$_POST['showResults'] ? " checked='checked'" : "")." /> ".POLLAN_13."<br />
<input type='radio' name='showResults' value='1'".($_POST['showResults'] ? " checked='checked'" : "")." /> ".POLLAN_14."
</td>
</tr>
<tr>
<td style='width:30%' class='forumheader3'>".POLLAN_15."</td>
<td class='forumheader3'>".r_userclass("pollUserclass", $_POST['pollUserclass'], 'off', "public,member,admin,classes,matchclass")."</td>
<td style='width:30%'>".POLLAN_15."</td>
<td>".r_userclass("pollUserclass", $_POST['pollUserclass'], 'off', "public,member,admin,classes,matchclass")."</td>
</tr>
<tr>
<td style='width:30%' class='forumheader3'>".POLLAN_16."</td>
<td class='forumheader3'>
<td style='width:30%'>".POLLAN_16."</td>
<td>
<input type='radio' name='storageMethod' value='0'".(!$_POST['storageMethod'] ? " checked='checked'" : "")." /> ".POLLAN_17."<br />
<input type='radio' name='storageMethod' value='1'".($_POST['storageMethod'] ==1 ? " checked='checked'" : "")." /> ".POLLAN_18."<br />
<input type='radio' name='storageMethod' value='2'".($_POST['storageMethod'] ==2 ? " checked='checked'" : "")." /> ".POLLAN_19."
</tr>
</td></tr>
<tr>
<td class='forumheader3'>".POLLAN_20.": </td><td class='forumheader3'>
<td>".POLLAN_20.": </td><td class='forumheader3'>
<input type='radio' name='poll_comment' value='1'".($_POST['poll_comment'] ? " checked='checked'" : "")." /> ".POLLAN_10."
<input type='radio' name='poll_comment' value='0'".(!$_POST['poll_comment'] ? " checked='checked'" : "")." /> ".POLLAN_11."
</td>
</tr>
<tr style='vertical-align:top'>
<td colspan='2' style='text-align:center' class='forumheader'>";
</table>
<div class='buttons-bar center'>";
if (isset($_POST['preview'])) {
$text .= "<input class='button' type='submit' name='preview' value='".POLLAN_21."' /> ";
@@ -607,7 +611,7 @@ class poll
$text .= "<input class='button' type='submit' name='reset' value='".POLLAN_25."' /> ";
}
$text .= "</td></tr></table>
$text .= "</div>
</form>
</div>";