File: /var/www/ilya/data/www/irkboard.ru/cache/cacheid_6/skin_poll.php
<?php
/*--------------------------------------------------*/
/* FILE GENERATED BY INVISION POWER BOARD */
/* CACHE FILE: Skin set id: 6 */
/* CACHE FILE: Generated: Sat, 12 Aug 2006 15:09:51 GMT */
/* DO NOT EDIT DIRECTLY - THE CHANGES WILL NOT BE */
/* WRITTEN TO THE DATABASE AUTOMATICALLY */
/*--------------------------------------------------*/
class skin_poll_6 {
var $ipsclass;
//===========================================================================
// <ips:button_null_vote:desc:>
//===========================================================================
function button_null_vote() {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
<input type="submit" name="nullvote" value="{$this->ipsclass->lang['poll_null_vote']}" title="{$this->ipsclass->lang['tt_poll_null']}" />
EOF;
//--endhtml--//
return $IPBHTML;
}
//===========================================================================
// <ips:button_show_results:desc:>
//===========================================================================
function button_show_results() {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
<input type="button" value="{$this->ipsclass->lang['pl_show_results']}" title="{$this->ipsclass->lang['tt_poll_show']}" onclick="go_gadget_show()" />
EOF;
//--endhtml--//
return $IPBHTML;
}
//===========================================================================
// <ips:button_show_voteable:desc:>
//===========================================================================
function button_show_voteable() {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
<input type="button" name="viewresult" value="{$this->ipsclass->lang['pl_show_vote']}" title="{$this->ipsclass->lang['tt_poll_svote']}" onclick="go_gadget_vote()" />
EOF;
//--endhtml--//
return $IPBHTML;
}
//===========================================================================
// <ips:button_vote:desc:>
//===========================================================================
function button_vote() {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
<input type="submit" name="submit" value="{$this->ipsclass->lang['poll_add_vote']}" title="{$this->ipsclass->lang['tt_poll_vote']}" />
EOF;
//--endhtml--//
return $IPBHTML;
}
//===========================================================================
// <ips:poll_footer:desc:>
//===========================================================================
function poll_footer() {
$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;
}
//===========================================================================
// <ips:poll_header:desc:>
//===========================================================================
function poll_header($tid="",$poll_q="") {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
<script type="text/javascript">
function go_gadget_show()
{
window.location = "{$this->ipsclass->base_url}&showtopic=$tid&mode=show&st={$this->ipsclass->input['start']}";
}
function go_gadget_vote()
{
window.location = "{$this->ipsclass->base_url}&showtopic=$tid&st={$this->ipsclass->input['start']}";
}
</script>
<form action="{$this->ipsclass->base_url}showtopic=$tid&st={$this->ipsclass->input['st']}&addpoll=1" method="post">
<table class='ipbtable' cellspacing="1">
<tr>
<th colspan="3" align="center"><b>$poll_q</b></th>
</tr>
EOF;
//--endhtml--//
return $IPBHTML;
}
//===========================================================================
// <ips:poll_show_form_choice:desc:>
//===========================================================================
function poll_show_form_choice($choice_id="",$votes="",$id="",$answer="") {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
<tr>
<td class="post2" colspan="3"><input type="radio" name="choice[{$id}]" value="$choice_id" class="radiobutton" /> <b>$answer</b></td>
</tr>
EOF;
//--endhtml--//
return $IPBHTML;
}
//===========================================================================
// <ips:poll_show_form_question:desc:>
//===========================================================================
function poll_show_form_question($id="",$question="",$choice_html="") {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
<tr>
<td colspan='3' class='row1'>
<div class='borderwrap'>
<div class='row1' style='padding:4px;'><span class='postdetails'><strong>{$question}</strong></span></div>
<table class='ipbtable' cellpadding='4' cellspacing='0'>
$choice_html
</table>
</div>
</td>
</tr>
EOF;
//--endhtml--//
return $IPBHTML;
}
//===========================================================================
// <ips:poll_show_rendered_choice:desc:>
//===========================================================================
function poll_show_rendered_choice($choice_id="",$votes="",$id="",$answer="",$percentage="",$width="") {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
<tr>
<td class="post2" width='25%'
EOF;
//startif
if ( $this->ipsclass->input['_low_act'] == 'home' )
{
$IPBHTML .= <<<EOF
colspan='2'
EOF;
}//endif
$IPBHTML .= <<<EOF
>$answer</td>
EOF;
//startif
if ( $this->ipsclass->input['_low_act'] == 'home' )
{
$IPBHTML .= <<<EOF
<td class="post2"> </td>
</tr>
<tr>
EOF;
}//endif
$IPBHTML .= <<<EOF
<td class="post2" width='10%' nowrap='nowrap'> [ <b>$votes</b> ] </td>
<td class="post2" width='70%' nowrap='nowrap'><{BAR_LEFT}><img src="{$this->ipsclass->vars['img_url']}/bar.gif" width="$width" height="11" align="middle" alt="" /><{BAR_RIGHT}> [$percentage%]</td>
EOF;
//startif
if ( $this->ipsclass->input['_low_act'] == 'home' )
{
$IPBHTML .= <<<EOF
<td class="post2"> </td>
EOF;
}//endif
$IPBHTML .= <<<EOF
</tr>
EOF;
//--endhtml--//
return $IPBHTML;
}
//===========================================================================
// <ips:poll_show_rendered_question:desc:>
//===========================================================================
function poll_show_rendered_question($id="",$question="",$choice_html="") {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
<tr>
<td colspan='3' class='row1'>
<div class='borderwrap'>
<div class='row1' style='padding:4px;'><span class='postdetails'><strong>{$question}</strong></span></div>
<table class='ipbtable' cellpadding='4' cellspacing='0'>
$choice_html
</table>
</div>
</td>
</tr>
EOF;
//--endhtml--//
return $IPBHTML;
}
//===========================================================================
// <ips:show_total_votes:desc:>
//===========================================================================
function show_total_votes($total_votes="") {
$IPBHTML = "";
//--starthtml--//
$IPBHTML .= <<<EOF
<tr>
<td class="row1" colspan="3" align="center"><b>{$this->ipsclass->lang['pv_total_votes']}: $total_votes</b></td>
</tr>
EOF;
//--endhtml--//
return $IPBHTML;
}
}
/*--------------------------------------------------*/
/*<changed bits>
</changed bits>*/
/* END OF FILE */
/*--------------------------------------------------*/
?>