
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="box_newsticker">
  {section name=year loop=$curr_year step=-1 max=10}
  {assign var=year value=$smarty.section.year.index}
  {assign var=y_news value=$all_news.$year} {if count($y_news)}
  <tr>
    <td style="padding:2px"> <span class="time_ticker">{$lang.articlesfromyear} {$year} </span></td>
  </tr>
  <tr>
    <td >
	{section name=week loop=54 step=-1 max=53}
	  {assign var=week value=$smarty.section.week.index} 
	  {assign var=w_news value=$y_news.$week}
	     {if count($w_news)}
	      {section name=dow loop=8 step=-1 max=7}
		  {assign var=dow value=$smarty.section.dow.index}
		  {assign var=d_news value=$w_news.$dow}
		  {assign var=e_news value=$w_news.$dow}
		    {if count($d_news)}
      <table width="100%"  border="0" cellspacing="0" cellpadding="1">
        <tr>
          <td colspan="3" class="newsticker_header">
		  {foreach from=$e_news item=news name=datum}
		   {if $smarty.foreach.datum.first}
		    <span class="time_ticker">{$news->time_start|date_format:"%Y.%m.%d"}</span><br />
           {/if}
		  {/foreach}
		  </td>
        </tr>
      </table>
      {foreach from=$d_news item=news name=title}
      <table width="100%"  border="0" cellspacing="0" cellpadding="1">
        <tr>
          <td width="1%" valign="top"> {if $news->icon} <img src="uploads/articlecat_icons/{$news->icon}" alt="" hspace="3" /> {else} <img src="templates/{$theme}/img/page/rel.gif" alt="" hspace="3" border="0" /> {/if} </td>
          <td>
		 
		  <table width="100%"  border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td valign="top">
			   <a class="ticker" href="{$news->link}">{$news->title}</a>
		  &nbsp;{if $news->isontop=='yes'}<img class="absmiddle" src="templates/{$theme}/img/page/toparticle.gif" alt="" />{/if}
		  {if $news->subtitle}<br />
          <span class="text_ticker">{$news->subtitle}</span>
		  {/if}
			  </td>
              <td valign="top">
			  <div align="right">
		  <small>{$news->type} | <a href="{$news->userlink}">{$news->uname}</a> | {$news->hits}{$lang.xreaded} | {$news->ctime|date_format:"%H:%M"}</small>
		 
		  </div>
			  </td>
            </tr>
          </table>
		  {*
		  {if $news->boxshot}
		  <a href="{$news->link}"><img src="{$news->boxshot}" alt="" border="0" align="{$news->image_align}" /></a>
		  {/if}
		 *}
		 
		  {if $news->content}
		  <span class="intro"> {$news->content|truncate:300}</span>
		  {/if}
		  <br />
		  </td>
        </tr>
      </table>
     	 {if $smarty.foreach.title.last} <br />{/if}
	   {/foreach}
	  {/if}
    {/section}
  {/if}
{/section}
</td>
  </tr>
  {/if}
 {/section}
</table>
{if $num<1}
{$lang.no_docs_found}
{/if}
