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

<p>
<a href="spawns.php?new=1&amp;{$SID}">Neuer Eintrag</a>
</p>

<p>
<form method="post" action="spawns.php">
    <input type="hidden" name="sid" value="{$SID_SHORT}" />
	Region: <select name="region_id" class="list_form">
	    {html_options options=$regions selected=$formvalues.region_id}
	</select>
	<input type="submit" name="send_form" class="button_form" value="Anzeigen" />
</form>
<br />
</p>

<p>
<form method="post" action="spawns.php">
    <input type="hidden" name="sid" value="{$SID_SHORT}" />
    <input type="hidden" name="region_id" value="{$formvalues.region_id}" />	

<table>
		<tr>
        	<th colspan="2" bgcolor="{$style.bg_2}">Regionendaten ({$formvalues.name_intern})</th>
        </tr>
        <tr>
	        <td align="right" bgcolor="{$style.bg_a}"><b>Max Spawn NPCs</b></td>
	        <td bgcolor="{$style.bg_a}"><input type="text" name="spawn_anzahl" size="30" maxlength="5" class="input_form" value="{$formvalues.spawn_anzahl}" /></td>
	    </tr>
	    <tr>
	        <td align="right" bgcolor="{$style.bg_b}"><b>Spawn Min Regeneration</b></td>
	        <td bgcolor="{$style.bg_b}"><input type="text" name="spawn_min_regeneration" size="30" maxlength="5" class="input_form" value="{$formvalues.spawn_min_regeneration}" /></td>
	    </tr>
	    <tr>
	        <td align="right" bgcolor="{$style.bg_a}"><b>Spawn Max Regeneration</b></td>
	        <td bgcolor="{$style.bg_a}"><input type="text" name="spawn_max_regeneration" size="30" maxlength="5" class="input_form" value="{$formvalues.spawn_max_regeneration}" /></td>
	    </tr>
	    <tr>
	        <td align="right" bgcolor="{$style.bg_b}"><b>Parent Region Override Spawn</b></td>
	        <td bgcolor="{$style.bg_b}">
	        	<select name="parent_region_override_spawn" class="list_form">
                    <option value="0">Nein</option>
                    <option value="1"{if $formvalues.parent_region_override_spawn} selected="selected"{/if}>Ja</option>
                </select>
	        </td>
	    </tr>
</table>

	<input type="submit" name="send_aendern" class="button_form" value="Ändern..." />
</form>
<br />
<br />
<br />
</p>

<table>
    <tr bgcolor="{$style.bg_2}">
    	<th>NPC Typ</th>
        <th>WKeit</th>
			<th>Max. Anzahl</th>
			<th>Aktion</th>
    </tr>
    {foreach from=$entries item=row}
    <tr>
    	<td><a href="spawns.php?edit={$row.spawn_npc_id}&amp;region={$row.region_id}&amp;{$SID}">{$row.npc_type}</a></td>
        <td>{$row.wkeit}</td>
			<td>{$row.max_anzahl}</td>
        <td><a href="spawns.php?del={$row.spawn_npc_id}&amp;region={$row.region_id}&amp;{$SID}">Löschen</a></td>
    </tr>
    {/foreach}
</table><br /><br />

Gesamtanzahl: {$sum[0].summe}