{include file="$gentemplates/_header.tpl"}
{include file="$gentemplates/_navi.tpl"}

<table width="100%" class="contentback" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="2"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1"></td>
    <td>
      <table border="0" cellpadding="0" cellspacing="0" align="center">
	{section name=inhalt1 loop=$main}
	{if %inhalt1.index% is odd}
	<td width="80"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1"></td>
	<td valign="top">
	  {else}
	  <tr>
	    <td valign="top">
	{/if}
	  <table border="0" cellpadding="0" cellspacing="0" width="300">
	    <tr>
	      <td colspan="4">
		<table border="0" cellpadding="0" cellspacing="0" width="100%" class="contentback">
		  <tr valign="bottom">
		    <td height="30">
		      <table border="0" cellpadding="0" cellspacing="0">
			<tr>
			  <td class="category" width="3"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1"></td>
			  <td class="category" height="18" align="left" valign="middle">{$main[inhalt1]} [{$total}: {$count[inhalt1]}]</td>
			  <td class="category" width="3"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1"></td>
			</tr>
		      </table>
		    </td>
		  </tr>
		</table>
	      </td>
	    </tr>
		
	    <tr>
	      <td class="lines2" width="2" COLSPAN="2"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1"></td>
	      <td class="lines2" height="2" width="1"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1"></td>
	      <td class="lines2" width="2"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1"></td>
	    </tr>
	    
	    {section name=inhalt2 loop=$news[inhalt1]}
	    <tr align="left">
		
				<td class="lines2" width="2"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="20"></td>
				<td width="10" valign="middle" class="tab" >
				<a HREF="{$rooturl}modules/news/index.php?action=toggle&id={$ids[inhalt1][inhalt2]}&backurl={$backurl}&{$SESSION}">
				{if $not_read[inhalt1][inhalt2] neq ""}
					<img src="{$imgpath}/exclam.gif" BORDER="0" >
				{else}
					<img src="{$imgpathmaster}/space.gif" width="10" height="10" BORDER="0">
				{/if}
				</a>
				</td>

			    <td class="tab" width="298" style="padding:1ex;"><a href="index.php?id={$ids[inhalt1][inhalt2]}&action=details&{$SESSION}">{$news[inhalt1][inhalt2]}</a></td>
			    <td class="lines2" width="2"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="20"></td>
			
		</tr>
	    <tr>
	      <td class="lines2" width="2"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1"></td>
	      <td height="1" width="1" bgcolor="#ffffff"  COLSPAN="2"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1"></td>
	      <td class="lines2" width="2"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1"></td>
	    </tr>
	    {/section}
	    
	    <tr>
	      <td class="lines2" width="2" COLSPAN="2"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1"></td>
	      <td class="lines2" height="2" width="1"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1"></td>
	      <td class="lines2" width="2"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1"></td>
	    </tr>
	    <tr><td class="contentback" height="10" width="1" bgcolor="#c8c9d4" colspan="4"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1"></td></tr>
	  </table>
	  
	  {if %inhalt1.index% is odd}
	</td>
      </tr>
      {else}
    </td>
    {/if}
    {/section}
    <tr>
      <td colspan="2"><a href="index.php?action=newform&{$SESSION}" class="new">{$createnew}</a></td>
    </table>
    
  </td>
</tr>
</table>

{include file="$gentemplates/_footer.tpl" aktUser=$username}