Parse error: parse error, unexpected T_STRING, expecting '&' or T_VARIABLE or T_CONST in /home/pyma/pyma.alfaspace.net/skin_cache/cacheid_2/skin_poll.php on line 191
<?php
/*--------------------------------------------------*/
/* FILE GENERATED BY INVISION POWER BOARD */
/* CACHE FILE: Skin set id: 2 */
/* CACHE FILE: Generated: Fri, 04 Feb 2005 09:12:45 GMT */
/* DO NOT EDIT DIRECTLY - THE CHANGES WILL NOT BE */
/* WRITTEN TO THE DATABASE AUTOMATICALLY */
/*--------------------------------------------------*/
class skin_poll {
//===========================================================================
// button_null_vote
//===========================================================================
function button_null_vote() {
global $ibforums;
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
<input type="submit" name="nullvote" value="{$ibforums->lang['poll_null_vote']}" title="{$ibforums->lang['tt_poll_null']}" />
EOF;
//--endhtml--//
return $IPBHTML;
}
//===========================================================================
// button_show_results
//===========================================================================
function button_show_results() {
global $ibforums;
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
<input type="button" value="{$ibforums->lang['pl_show_results']}" title="{$ibforums->lang['tt_poll_show']}" onclick="go_gadget_show()" />
EOF;
//--endhtml--//
return $IPBHTML;
}
//===========================================================================
// button_show_voteable
//===========================================================================
function button_show_voteable() {
global $ibforums;
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
<input type="button" name="viewresult" value="{$ibforums->lang['pl_show_vote']}" title="{$ibforums->lang['tt_poll_svote']}" onclick="go_gadget_vote()" />
EOF;
//--endhtml--//
return $IPBHTML;
}
//===========================================================================
// button_vote
//===========================================================================
function button_vote() {
global $ibforums;
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
<input type="submit" name="submit" value="{$ibforums->lang['poll_add_vote']}" title="{$ibforums->lang['tt_poll_vote']}" />
EOF;
//--endhtml--//
return $IPBHTML;
}
//===========================================================================
// delete_link
//===========================================================================
function delete_link($tid="",$fid="",$key="") {
global $ibforums;
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
<a href="{$ibforums->base_url}act=Mod&CODE=22&f=$fid&t=$tid&auth_key=$key"><{P_DELETE}></a>
EOF;
//--endhtml--//
return $IPBHTML;
}
//===========================================================================
// edit_link
//===========================================================================
function edit_link($tid="",$fid="",$key="") {
global $ibforums;
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
<a href="{$ibforums->base_url}act=Mod&CODE=20&f=$fid&t=$tid&auth_key=$key"><{P_EDIT}></a>
EOF;
//--endhtml--//
return $IPBHTML;
}
//===========================================================================
// poll_answerpublic
//===========================================================================
function poll_answerpublic() {
global $ibforums;
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
<tr>
<td class="row1" colspan="3"><input type="checkbox" name="display_votepublic" value="1" class="radiobutton" checked="checked" /> <b>{$ibforums->lang['make_answerpublic']}</b></td>
</tr>
EOF;
//--endhtml--//
return $IPBHTML;
}
//===========================================================================
// poll_header
//===========================================================================
function poll_header($tid="",$poll_q="",$edit="",$delete="") {
global $ibforums;
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
<!--IBF.POLL_JS-->
<form action="{$ibforums->base_url}act=Poll&t=$tid&st={$ibforums->input['st']}" method="post">
<table cellspacing="1">
<tr>
<th colspan="3" align="center"><b>$poll_q</b></th>
</tr>
<tr>
<td colspan="3" class="formsubtitle" align="right">$edit $delete</td>
</tr>
EOF;
//--endhtml--//
return $IPBHTML;
}
//===========================================================================
// poll_javascript
//===========================================================================
function poll_javascript($tid="",$fid="") {
global $ibforums;
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
<script type="text/javascript">
function go_gadget_show()
{
window.location = "{$ibforums->base_url}&act=ST&f=$fid&t=$tid&mode=show&st={$ibforums->input['start']}";
}
function go_gadget_vote()
{
window.location = "{$ibforums->base_url}&act=ST&f=$fid&t=$tid&st={$ibforums->input['start']}";
}
function show_uservotes() {
url = "index.{$ibforums->vars['php_ext']}?act=who_voted&tid={$tid}&s={$ibforums->session_id}";
window.open(url,'ViewVoteHistory','width=600,height=700,resizable=yes,scrollbars=yes');
}
</script>
EOF;
//--endhtml--//
return $IPBHTML;
}
//===========================================================================
// Render_multirow_form
//===========================================================================
function Render_multirow_form($votes="",id="",answer="") {
global $ibforums;
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
<tr>
<td class="row1" colspan="3"><input type="checkbox" name="poll_vote_{$id}" value="1" class="radiobutton" /> <strong>$answer</strong></td>
</tr>
EOF;
//--endhtml--//
return $IPBHTML;
}
//===========================================================================
// Render_row_form
//===========================================================================
function Render_row_form($votes="",$id="",$answer="") {
global $ibforums;
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
<tr>
<td class="row1" colspan="3"><input type="radio" name="poll_vote" value="$id" class="radiobutton" /> <b>$answer</b></td>
</tr>
EOF;
//--endhtml--//
return $IPBHTML;
}
//===========================================================================
// Render_row_results
//===========================================================================
function Render_row_results($votes="",$id="",$answer="",$percentage="",$width="") {
global $ibforums;
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
<tr>
<td class="row1">$answer</td>
<td class="row1"> [ <b>$votes</b> ] </td>
<td class="row1"><{BAR_LEFT}><img src="{$ibforums->vars['img_url']}/bar.gif" width="$width" height="11" align="middle" alt="" /><{BAR_RIGHT}> [$percentage%]</td>
</tr>
EOF;
//--endhtml--//
return $IPBHTML;
}
//===========================================================================
// show_total_votes
//===========================================================================
function show_total_votes($total_votes="") {
global $ibforums;
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
<tr>
<td class="row1" colspan="3" align="center"><b>{$ibforums->lang['pv_total_votes']}: $total_votes</b></td>
</tr>
EOF;
//--endhtml--//
return $IPBHTML;
}
//===========================================================================
// show_users_votes
//===========================================================================
function show_users_votes() {
global $ibforums;
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
<tr>
<td class="row1" colspan="3" align="center"><a href="javascript:show_uservotes();"><b>{$ibforums->lang['view_uservotes']}</b></a></td>
</tr>
EOF;
//--endhtml--//
return $IPBHTML;
}
//===========================================================================
// ShowPoll_footer
//===========================================================================
function ShowPoll_footer() {
global $ibforums;
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
<tr>
<td colspan="3" class="formbuttonrow"><!--IBF.VOTE--> <!--IBF.SHOW--></td>
</tr>
<tr>
<td class="catend" colspan="3"><!-- no content --></td>
</tr>
</table>
</form>
EOF;
//--endhtml--//
return $IPBHTML;
}
}
/*--------------------------------------------------*/
/*<changed bits>
</changed bits>*/
/* END OF FILE */
/*--------------------------------------------------*/
?>
Находясь на нашем сайте, вы соглашаетесь на использование файлов cookie, а также с нашим положением о конфиденциальности Политика конфиденциальности и пользовательским соглашением Условия использования.
Вопрос
Koznov
Кунул весь файлик! ОШИБКА ТАКАЯ ВЫЛАЗИТ!
Ссылка на комментарий
Поделиться на других сайтах
10 ответов на этот вопрос
Рекомендуемые сообщения
Присоединиться к обсуждению
Вы можете ответить сейчас, а зарегистрироваться позже. Если у вас уже есть аккаунт, войдите, чтобы ответить от своего имени.