1
0
mirror of https://github.com/e107inc/e107.git synced 2025-03-14 17:39:46 +01:00

Gui fixes in poll plugin

This commit is contained in:
Cameron 2012-11-27 23:39:18 -08:00
parent 6c49eddcba
commit 3bf5951bf5

View File

@ -576,7 +576,7 @@ class poll
$text .= "</span><br />";
}
$text .="</div><input class='button' type='button' name='addoption' value='".POLLAN_8."' onclick=\"duplicateHTML('pollopt','pollsection')\" /><br />
$text .="</div><input class='btn button' type='button' name='addoption' value='".POLLAN_8."' onclick=\"duplicateHTML('pollopt','pollsection')\" /><br />
</td></tr>
<tr>
@ -624,11 +624,13 @@ class poll
if (isset($_POST['preview']) || varset($_POST['edit']))
{
$text .= "<input class='button' type='submit' name='preview' value='".POLLAN_24."' /> ";
// $text .= "<input class='button' type='submit' name='preview' value='".POLLAN_24."' /> ";
$text .= $frm->admin_button('preview',POLLAN_24,'other');
if (POLLACTION == 'edit')
{
$text .= "<input class='button' type='submit' name='submit' value='".POLLAN_22."' />
$text .= $frm->admin_button('submit',POLLAN_22,'submit')."
<input type='hidden' name='poll_id' value='".intval($_POST['poll_id'])."' /> ";
}
else
@ -639,7 +641,7 @@ class poll
}
else
{
$text .= $frm->admin_button('preview','no-value','preview',POLLAN_24);
$text .= $frm->admin_button('preview','no-value','other',POLLAN_24);
// $text .= "<input class='button' type='submit' name='preview' value='".POLLAN_24."' /> ";
}