Version 1.1.1

This commit is contained in:
Neo committed 2025-12-19 00:16:25 -08:00
1 parent aabfdc1f57
commit 7ef3d1712a
179 files changed
+57457 -44972

No files matched your search

+42 -19
View File
@@ -22,42 +22,65 @@ function Render_row_form($votes, $id, $answer) {
global $ibforums;
return <<<EOF
<tr>
<td id='row1' colspan='3'><INPUT type="radio" name="poll_vote" value="$id">&nbsp;<b>$answer</b></td>
<td class='row1' colspan='3'><INPUT type="radio" name="poll_vote" value="$id">&nbsp;<b>$answer</b></td>
</tr>
EOF;
}
function ShowPoll_header($tid, $edit, $delete) {
function ShowPoll_header($tid, $poll_q, $edit, $delete) {
global $ibforums;
return <<<EOF
<form action="{$ibforums->vars['board_url']}/index.{$ibforums->vars['php_ext']}?s={$ibforums->session_id}" method="post">
<input type='hidden' name='act' value='Poll'>
<input type='hidden' name='s' value='{$ibforums->session_id}'>
<input type='hidden' name='t' value='$tid'>
<br>
<table cellpadding='0' cellspacing='0' border='0' width='{$ibforums->skin['tbl_width']}' bgcolor='{$ibforums->skin['tbl_border']}' align='center'>
<table cellpadding='0' cellspacing='0' border='0' width='100%' align='center'>
<tr>
<td>
<table cellpadding='5' cellspacing='1' border='0' width='100%'>
<table cellpadding='4' cellspacing='1' border='0' width='100%'>
<tr>
<td align='right' colspan='3' id='titlemedium'>$edit &nbsp; $delete</td>
<td align='right' colspan='3' width='99%' class='titlemedium'><form action="{$ibforums->base_url}&act=Poll&t=$tid" method="post"> $edit &nbsp; $delete</td>
</tr>
<tr>
<td id='row1' valign='middle' align='left' width='50%'><b>{$ibforums->lang['poll_s_choices']}</b></td>
<td id='row1' valign='middle' align='left' width='10%'><b>{$ibforums->lang['poll_s_votes']}</b></td>
<td id='row1' valign='middle' align='left' width='40%'><b>{$ibforums->lang['poll_s_stats']}</b></td>
<td class='row1'>
<table cellpadding='4' cellspacing='1' border='0' align='center'>
<tr>
<td colspan='3' align='center'><b>$poll_q</b></td>
</tr>
EOF;
}
function ShowPoll_Form_header($tid, $poll_q, $edit, $delete) {
global $ibforums;
return <<<EOF
<table cellpadding='0' cellspacing='0' border='0' width='100%' align='center'>
<tr>
<td>
<table cellpadding='4' cellspacing='1' border='0' width='100%'>
<tr>
<td align='right' colspan='3' width='99%' class='titlemedium'><form action="{$ibforums->base_url}&act=Poll&t=$tid" method="post"> $edit &nbsp; $delete</td>
</tr>
<tr>
<td class='row1'>
<table cellpadding='4' cellspacing='1' border='0' align='center'>
<tr>
<td colspan='3' align='center'><b>$poll_q</b></td>
</tr>
EOF;
}
function ShowPoll_footer($vote_button) {
global $ibforums;
return <<<EOF
</table>
</td>
<tr>
<td id='row2' align='center' colspan='3'>
$vote_button
<td class='titlemedium' align='center' colspan='3'>
$vote_button</form>
</td></tr></table>
</td></tr></table>
</form>
<td class='mainbg'>
</tr>
<tr>
<td class='mainbg'>
EOF;
}
@@ -65,9 +88,9 @@ function Render_row_results($votes, $id, $answer, $percentage, $width) {
global $ibforums;
return <<<EOF
<tr>
<td id='row1'><b>$answer</b></td>
<td id='row1'><b>$votes</b></td>
<td id='row1'><img src='{$ibforums->vars['img_url']}/bar_left.gif' border='0' width='4' height='11' align='middle' alt=''><img src='{$ibforums->vars['img_url']}/bar.gif' border='0' width='$width' height='11' align='middle' alt=''><img src='{$ibforums->vars['img_url']}/bar_right.gif' border='0' width='4' height='11' align='middle' alt=''>&nbsp;[$percentage%]</td>
<td class='row1'>$answer</td>
<td class='row1'> [ <b>$votes</b> ] </td>
<td class='row1'><img src='{$ibforums->vars['img_url']}/bar_left.gif' border='0' width='4' height='11' align='middle' alt=''><img src='{$ibforums->vars['img_url']}/bar.gif' border='0' width='$width' height='11' align='middle' alt=''><img src='{$ibforums->vars['img_url']}/bar_right.gif' border='0' width='4' height='11' align='middle' alt=''>&nbsp;[$percentage%]</td>
</tr>
EOF;
}