Files
Testing/templates/d58b042c
sean 0e8a8b3028
Some checks are pending
deploy-testing / deploy (push) Waiting to run
Initial testing snapshot
2026-11-17 16:15:01 -05:00

172 lines
5.9 KiB
Plaintext

{include file='header.tpl'}
{* $Id: user_poll_new.tpl 12 2009-01-11 06:04:12Z john $ *}
<table cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td valign='top'>
<!--<img src='./images/icons/poll_poll48.gif' border='0' class='icon_big'>-->
<div class='page_header'><span style="font-size:20pt; font-weight:bold;text-transform:uppercase;">{lang_print id=2500075}</span></div>
<div>If you're asking a question with this poll, you should put it in your title.</div>
</td>
<td valign='top' align='right'>
<table cellpadding='0' cellspacing='0' width='130'>
<tr><td class='button' nowrap='nowrap'><a href='user_poll.php'><!--<img src='./images/icons/back16.gif' border='0' class='button'>-->{lang_print id=2500070}</a></td></tr>
</table>
</td>
</tr>
</table>
<br />
{* SHOW ERROR MESSAGE *}
{if !empty($is_error)}
<table cellpadding='0' cellspacing='0'><tr>
<td class='error'><img src='./images/error.gif' border='0' class='icon'>
{if !empty($is_error_sprintf_1)}
{lang_sprintf id=$is_error 1=$is_error_sprintf_1}
{else}
{lang_print id=$is_error}
{/if}
</td>
</tr></table>
<br />
{/if}
{* JAVASCRIPT FOR ADDING OPTIONS *}
{lang_javascript ids=2500079,2500098}
<script type='text/javascript' src="./include/js/class_poll.js"></script>
<script type='text/javascript'>
<!--
SocialEngine.Polls = new SocialEngineAPI.Polls();
SocialEngine.RegisterModule(SocialEngine.Polls);
//-->
</script>
<div id="sePollsOptionTemplate" style="display: none;">
<div class="sePollsOption" style='margin-top: 5px;'>
{lang_print id=2500079} <span class="sePollsIndex"></span>:<br />
<input type='text' class='text' name='poll_options[]' maxlength='200' style='width: 300px; margin-top: 3px;' />
</div>
</div>
{* CREATE POLL *}
<form action='user_poll_new.php' method='post'>
<table cellpadding='0' cellspacing='0'>
<tr>
<td class='form1'>{lang_print id=2500059}</td>
<td class='form2'><input type='text' name='poll_title' class='text' maxlength='200' value='{$poll_title}' style='width: 300px;'></td>
</tr>
<tr>
<td class='form1'>{lang_print id=2500060}</td>
<td class='form2'>
<textarea name='poll_desc' rows='5' cols='50' class='text' style='width: 300px;'>{$poll_desc}</textarea>
<br>
{* SHOW SETTINGS LINK IF NECESSARY *}
{if $privacy_options|@count > 1 OR $comment_options|@count > 1}
<div id='settings_show' class='poll_settings_link'>
<a href="javascript:void(0);" onclick="javascript:$('entry_settings').style.display='block';$('settings_show').style.display='none';">{lang_print id=2500061}</a>
</div>
{/if}
<div id='entry_settings' class='poll_settings' style='display: none; margin-top: 7px;'>
{* SHOW SEARCH PRIVACY OPTIONS IF ALLOWED BY ADMIN *}
{if $user->level_info.level_poll_search == 1}
<b>{lang_print id=2500062}</b>
<table cellpadding='0' cellspacing='0'>
<tr>
<td><input type='radio' name='poll_search' id='poll_search_1' value='1' {if $poll_search} checked='checked'{/if}></td>
<td><label for='poll_search_1'>{lang_print id=2500063}</label></td>
</tr>
<tr>
<td><input type='radio' name='poll_search' id='poll_search_0' value='0' {if !$poll_search} checked='checked'{/if}></td>
<td><label for='poll_search_0'>{lang_print id=2500064}</label></td>
</tr>
</table>
{/if}
{* ADD SPACE IF BOTH OPTIONS ARE AVAILABLE *}
{if $user->level_info.level_poll_search == 1 AND ($privacy_options|@count > 1 OR $comment_options|@count > 1)}<br>{/if}
{* SHOW PRIVACY OPTIONS *}
{if $privacy_options|@count > 1}
<b>{lang_print id=2500065}</b>
<table cellpadding='0' cellspacing='0'>
{foreach from=$privacy_options key=k item=v name=privacy_loop}
<tr>
<td><input type='radio' name='poll_privacy' id='privacy_{$k}' value='{$k}'{if $poll_privacy == $k} checked='checked'{/if}></td>
<td><label for='privacy_{$k}'>{lang_print id=$v}</label></td>
</tr>
{/foreach}
</table>
{/if}
{* ADD SPACE IF BOTH OPTIONS ARE AVAILABLE *}
{if $privacy_options|@count > 1 AND $comment_options|@count > 1}<br>{/if}
{* SHOW COMMENT OPTIONS *}
{if $comment_options|@count > 1}
<b>{lang_print id=2500066}</b>
<table cellpadding='0' cellspacing='0'>
{foreach from=$comment_options key=k item=v name=comment_loop}
<tr>
<td><input type='radio' name='poll_comments' id='comments_{$k}' value='{$k}'{if $poll_comments == $k} checked='checked'{/if}></td>
<td><label for='comments_{$k}'>{lang_print id=$v}</label></td>
</tr>
{/foreach}
</table>
{/if}
</div>
</td>
</tr>
<tr>
<td class='form1'>{lang_print id=2500078}</td>
<td class='form2'>
<div id='sePollOptions' style="margin-top: 2px;">
{section name=poll_options_loop loop=$poll_options}
<div id="sePolls_option_{$smarty.section.poll_options_loop.iteration}" class="sePollsOption"{if $smarty.section.poll_options_loop.first != true} style='margin-top: 5px;'{/if}>
{lang_print id=2500079} {$smarty.section.poll_options_loop.iteration}:<br>
<input type='text' name='poll_options[]' value='{$poll_options[poll_options_loop]}' class='text' maxlength='200' style='width: 300px; margin-top: 3px;'>
</div>
{/section}
</div>
<div style='margin-top: 3px;'>
<a href='javascript:void(0);' onClick="SocialEngine.Polls.newPollOption();">{lang_print id=2500080}</a>
</div>
</td>
</tr>
<tr>
<td class='form1'>&nbsp;</td>
<td class='form2'>
<table cellpadding='0' cellspacing='0'>
<tr>
<td>
{lang_block id=2500081 var=langBlockTemp}<input type='submit' class='button' value='{$langBlockTemp}'>{/lang_block}&nbsp;
<input type='hidden' name='task' value='doadd'>
</form>
</td>
<td>
<form action='user_poll.php' method='get'>{lang_block id=39 var=langBlockTemp}<input type='submit' class='button' value='{$langBlockTemp}'>{/lang_block}
</form>
</td>
</tr>
</table>
</td>
</tr>
</table>
{include file='footer.tpl'}