{assign var="page_title" value="Questbausteine bearbeiten"}
{assign var="page_title_long" value="Mitglieder Bereich &raquo; Questbausteine bearbeiten"}
{assign var="page_title_site" value="Questbausteine bearbeiten"}


<fieldset>
	<legend>Questitems</legend>
	
	<p>
		<a href="qbausteine.php?new=1&amp;{$SID}">Neues Item</a><br />
	</p>
	
	<p>
	<form method="post" action="qbausteine.php">
	    <input type="hidden" name="sid" value="{$SID_SHORT}" />
		Questbaustein: <select name="list_id" class="list_form">
		    {html_options options=$lists selected=$formvalues.list_id}
		</select>
		<input type="submit" name="send_form" class="button_form" value="Anzeigen" />
	</form>
	<br />
	</p>
	
	<table>
	    <tr bgcolor="{$style.bg_2}">
	    	<th>Name</th>
	        <th>Menge</th>
			<th>Nimm</th>
	        <th>Aktion</th>
	    </tr>
	    {foreach from=$entries item=row}
	    <tr>
	    	<td><a href="qbausteine.php?edit={$row.herstellungsid}&amp;list={$row.questbausteine_id}&amp;{$SID}">{$row.name}</a></td>
	        <td>{$row.amount}</td>
			<td>{$row.nimm}</td>
	        <td><a href="qbausteine.php?del={$row.herstellungsid}&amp;list={$row.questbausteine_id}&amp;{$SID}">LĂ¶schen</a></td>
	    </tr>
	    {/foreach}
	</table>
</fieldset>
<br />
<fieldset>
	<legend>Questbausteine</legend>
	
	<p>
		<a href="qbausteine.php?newlist=1&amp;{$SID}">Neuer Questbaustein</a><br />
	</p>
	
	<table>
	    <tr bgcolor="{$style.bg_2}">
	    	<th>Name</th>
	        <th>Aktion</th>
	    </tr>
	    {foreach from=$lists item=row}
	    <tr>
	    	<td><a href="qbausteine.php?editlist={$row.id}&amp;{$SID}">{$row.name}</a></td>
	        <td><a href="qbausteine.php?dellist={$row.id}&amp;{$SID}">Löschen</a></td>
	    </tr>
	    {/foreach}
	</table>
</fieldset>