
<table width="100%"  border="0" cellspacing="0" cellpadding="4">
  <tr>
    <td class="naviheader">{$lang.poll}</td>
  </tr>
  <tr>
    <td class="box_innerhead">{$message}
      {$title|escape:"htmlall"}</td>
  </tr>
  <tr>
    <td class="navibox"><table width="100%"  border="0" cellspacing="0" cellpadding="2">
        {foreach from=$hits item=hit}
        <tr>
          <td><small><strong>
            {$hit->title|escape:"htmlall"}
            </strong></small></td>
        </tr>
        <tr>
          <td width="90%"><div style="width: 100% height:5px; padding:0px;">
              <div style="width:{if $hit->percent!=""}{$hit->percent}%{else}0.5%{/if}; height: 5px; background-color: {$hit->color};"><img height="1px" width="1px" src="templates/{$theme}/img/page/pixel.gif" alt="" /></div>
            </div></td>
        </tr>
        <tr>
          <td><small>
            {$hit->all}&nbsp;
            {$hit->text}&nbsp;({$hit->percent}%)
			</small> </td>
        </tr>
        <tr>
          <td><img src="templates/{$theme}/img/page/pixel.gif" alt="" width="1" height="3" border="0" /></td>
        </tr>
        {/foreach}
        <tr>
          <td><div align="center">
              {if $end!=1}
              {if $pollnoperms==1}
              <small>
              {$lang.votenopermission}
              </small>
              {/if}
              <input onclick="location.href='index.php?p=poll&amp;poll_id={$poll->id}&amp;showresult=1&amp;area={$area}';" type="button" class="button" value="{$lang.view_poll_result} ({$sum})" />
              {else}
              {$lang.voteexpired}
              <input onclick="location.href='index.php?p=poll&amp;poll_id={$poll->id}&amp;showresult=1&amp;area={$area}';" type="button" class="button" value="{$lang.view_poll_result} ({$sum})" />
              {/if}
              <br />
              <br />
              <a href="index.php?p=poll&amp;show=archive&amp;area={$area}">
              {$lang.poll_archive}
              </a> </div></td>
        </tr>
      </table></td>
  </tr>
</table>
