{assign var="page_title" value="Bibliothek"}
{assign var="page_title_long" value="Bibliothek"}
{assign var="page_title_site" value="Bibliothek"}

<form action="library.php" method="get">
	<input type="hidden" name="sid" value="{$SID_SHORT}" />
    <b>Buchstabe:</b>
    <select name="char" class="list_form">
    	{html_options values=$charlist output=$charlist selected=$char}
    </select>
    <input type="submit" name="set_char" value="GO" class="button_form" />
</form>

<table>
    <tr bgcolor="{$style.bg_2}">
    	<th>Titel</th>
        <th>Eintrag</th>
    </tr>
    {foreach from=$entries item=item}
    <tr>
        <td>
            <a href="library.php?entryID={$item.entryID}&{$SID}"><b>{$item.title|stripslashes}</b></a> 
	    </td>
        <td>
        	{$item.entry|stripslashes|truncate:75:"..."}
        </td>
    </tr>
    {/foreach}
</table>
<br />
{$page_navigation}
<p></p>
{if isset( $user ) && $user->can_access("library")}
<a href="library.php?new_entry=1&{$SID}">Neuer Bibliotheks-Eintrag</a>
{/if}