{include file="$admintemplatepath/header.template"}
{include file="$admintemplatepath/navigation.template" showOpt=feedReader title=$locale->tr("feedReader")}
<div id="list_nav_bar">
<div id="list_nav_select">
<form id="viewLinks" action="admin.php" method="post">
 <fieldset>
  <legend>{$locale->tr("show_by")}</legend>
   <div class="list_nav_option">
    <label for="showCategory">{$locale->tr("category")}</label>
	<br />
	 <select name="showCategory" id="showCategory">
      <option value="0">{$locale->tr("category_all")}</option>
      {foreach from=$linkscategories item=category}
      <option value="{$category->getId()}" {if $currentcategory == $category->getId()} selected="selected" {/if}>{$category->getName()}</option>
      {/foreach}
    </select>
   </div>
   <div class="list_nav_option">
    <br />
    <input type="hidden" name="op" value="feedReader">
    <input type="submit" name="Show" value="{$locale->tr("show")}">
   </div>
  </fieldset> 
 </form> 
 </div>
 <br style="clear:both">
 </div>
<div id="list">
 {if $viewIsSuccess}
  {include file="$admintemplatepath/successmessage.template" message=$viewSuccessMessage}<br/>
 {/if}
 {if $viewIsError}
  {include file="$admintemplatepath/errormessage.template" message=$viewErrorMessage}<br/>
 {/if}
<table class="info">
 <thead>
  <tr>
   <th style="width:20px;">{$locale->tr("read")}</th>
   <th style="width:570px;">{$locale->tr("name")}</th>
   <th style="widht:185px";>{$locale->tr("last_read")}</th>
  </tr>
 </thead>
 <tbody>
 {foreach from=$feeds item=feed}
   {assign var=link value=$feed->getMyLink()}
   {if $link->getRssFeed() != ""}
    <td><a href="?op=readFeed&amp;feedId={$link->getId()}"><img src="imgs/rss_logo_small.gif" style="border:0px;" alt="Read" /></td>
    {else}
     <td>&nbsp;</td>
    {/if}
    <td class="col_highlighted">
     <a href="{$link->getUrl()}" title="{$link->getDescription()}">{$link->getName()}</a><br/>
    </td>
    <td>
     {assign var=lastRead value=$feed->getLastRead()}
     {if $lastRead == ""}
      <i>{$locale->tr("never_read")}</i>
     {else} 
      {$locale->formatDate($lastRead)}
     {/if} 
    </td>
   </tr>
 {/foreach}
</tbody>
</table>
</div>
{include file="$admintemplatepath/footernavigation.template"}
{include file="$admintemplatepath/footer.template"}