{assign var="do_not_display_add" value=true}
{form_errors error_list=$form_errors}
<table width="100%">
	<tr>
		<td valign="top">
			<table width="245" border="1" cellpadding="2">
				<tr>
					<td>
{if $char.mode == "activation" OR $viewchar===true}<img src="viewchar.php?action=staff&charid={$char.charid}" alt="Charakterbild {$char.name}" width="245" height="338" />{else}
<img src="viewchar.php?action=view_char&name={$name}" alt="Charakterbild {$char.name}" width="245" height="338" />{/if}</td>
				</tr>
				<tr>
					<td width="50%" valign="top" class="xsmall"><b>Festes Profil:</b> {$char.fix_profil} <hr />
					<b>Kurzfristiges Profil:</b> {$char.dyn_profil}
					</td>
				</tr>
			</table>
		</td>
		<td valign="top" width="100%">
			<table width="100%">
				<tr>
					<td valign="top"><b>Name:</b></td>
					<td nowrap valign="top" width="100%">{$char.name} ({$char.rp_alter}/{$char.geschlecht}) <a href="http://www.google.de/search?q=%22{$char.name}%22" accesskey="g" target="_blank"><img src="images/google.png" alt="G" title="Google-Suche" width="42" height="16" align="top" border="0" /></a>{if $char.mode == "activation"}<a href="javascript:open_popup( 'char_activation.php?action=add_forbidden_name&name={$char.name}', 'bla', 500, 180 );" accesskey="v"><img src="images/x.png" width="16" height="16" alt="X" title="Name zu verbotenen Namen hinzuf&uuml;gen" align="top" border="0" /></a><a href="char_list.php?action=query&op1=charid&op1v=&op2=charname&op2v=&op3=accountid&op3v={$char.accountid}&op4=accountname&op4v=&geschlecht=-1&volk=-1&aktiviert=-1&testserver=0&chartype=0&records=50&hatProfession=-1&sort=charname&Suchen=Suchen" target="_blank">C's</a>{/if}
					{if $char.chartype != player}<br /><font color="red"><b>{$char.chartype}</b>{/if}</td>
				</tr>
				<tr>
					<td><b>Volk:</b></td>
					<td>{$char.volk}</td>
				</tr>
				<tr>
					<td><b>Stufe:</b></td>
					{if $char.mode == "create"}<td>1 (0 Erfahrungspunkte)</td>
					{else}<td>{$char.level} ({$char.xp} Erfahrungspunkte)</td>{/if}
				</tr>
				<tr>
					<td valign="top"><b>Professionen:</b></td>
					<td>{$char.professionen}</td>
				</tr>
				<tr>
					<td colspan="2"><hr size="1" width="100%" noshade="noshade" style="color:{$style.bg_b}"></hr></td>
				</tr>
				{if $char.mode == "activation" || $canAdministrate }
				<tr>
					<td valign="top"><b>Geklaut?</b></td>
					<td><!--{$char.cst_images}<br/>Analysieren: [1]&nbsp&nbsp;[2]&nbsp&nbsp;[3]--> Funktion noch nicht implementiert</td>
				</tr>
				<tr>
					<td valign="top"><b>Zur&uuml;ckstellungen:</b></td>
					<td>{if $char.anzahl_zurueckstellungen > 0}{$char.anzahl_zurueckstellungen} ({$char.zuruecksteller}){else}-{/if}</td>
				</tr>
				<tr>
					<td valign="top"><b>Account:</b></td>
					<td>{$char.account_name} ({$char.accountid})</br>
					{if $char.testserver == 1}<font color="red"><b>TESTSERVER</b></font>{/if}</td>
				</tr>
				<tr>
					<td valign="top"><b>Freischalt-Akte:</b></td>
					<td>{$char.filed} Eintr&auml;ge{if $char.filed > 0} [<a href="jail.php" accesskey="a">Akte ansehen</a>]{/if}</td>
				</tr>
				<tr>
					<td valign="top"><b>Änderung?</b></td>
					<td>{$char.lastchange}</td>
				</tr>
				{if $char.anzahl_zurueckstellungen > 0}
				<tr>
					<td colspan="2"><hr size="1" width="100%" noshade="noshade" style="color:{$style.bg_b}"></hr></td>
				</tr>
				<tr>
					<td align="center"><b>Freischalterhinweise: </b></td>
				</tr>
				<tr>
					<td colspan="2" valign="top" class="xsmall"><iframe scrolling="auto" height="175" width="100%" src="char_activation.php?action=get_activation_text&charid={$char.charid}"></iframe></td>
				</tr>
				{/if}
				{else}
				<tr><td colspan="2"><b>Rucksack:</b>
					{assign var=first value=true}
					{foreach from=$char.unequipped_items key=key item=item}
						{if $first==true}{assign var=first value=false}{else},{/if}
						{if $item.anzahl > 1}{$item.anzahl}x {/if}
						{$item.her_info.name}
					{/foreach}
					<br /><br /><b>Am Körper getragen:</b>
					{assign var=first value=true}
					{foreach from=$char.equipped_items key=key item=item}
						{if isset($item.her_info.name)}
							{if $first==true}{assign var=first value=false}{else},{/if}
							{if $item.anzahl > 1}{$item.anzahl}x {/if}
							{$item.her_info.name}
						{/if}
					{/foreach}														
				</td></tr>
				{/if}
			</table>
		</td>
	</tr>
</table>
<hr size="1" width="100%" noshade="noshade" style="color:{$style.bg_b}" />
<table width="100%">
	{foreach from=$stats item=stat}
		<tr>
			<td>{$stat.bezeichnung}</td>
			<td>
				<table border="1" cellpadding="0" cellspacing="0"><tr><td>
				<table width="400" cellpadding="0" cellspacing="0" border="0">
					<tr>
						{if $stat.a > 0}<td bgcolor="Black" width="{$stat.a}"><img src="images/spacer.gif" height="8" width="{$stat.a}" title="{$stat.bezeichnung} - unteres Limit: {$stat.min}"></td>{/if}
						{if $stat.b > 0}<td bgcolor="Green" width="{$stat.b}"><img src="images/spacer.gif" height="8" width="{$stat.b}" title="Vergebene Punkte auf {$stat.bezeichnung}: {$stat.wert-$stat.min}"></td>{/if}
						{if $stat.c > 0}<td bgcolor="Silver" width="{$stat.c}"><img src="images/spacer.gif" height="8" width="{$stat.c}" title={$stat.bezeichnung}></td>{/if}
						{if $stat.d > 0}<td bgcolor="red" width="{$stat.d}"><img src="images/spacer.gif" height="8" width="{$stat.d}" title="{$stat.bezeichnung} - oberes Limit: {$stat.max}"></td>{/if}
					</tr>
				</table>
				</td></tr></table>
			</td>
			<td width="100%" nowrap align="right">{$stat.wert}</td><td nowrap>({$stat.min}-{$stat.max})</td>
		</tr>
	{/foreach}
	<tr>
		<td colspan="4"><hr size="1" width="100%" noshade="noshade" style="color:{$style.bg_b}" /></td>
	</tr>
	{foreach from=$skills item=skill}
		<tr>
			<td>{$skill.bezeichnung}</td>
			<td>
				<table border="1" cellpadding="0" cellspacing="0"><tr><td>
				<table width="400" cellpadding="0" cellspacing="0" border="0">
					<tr>
						{if $skill.a > 0}<td bgcolor="Black" width="{$skill.a}"><img src="images/spacer.gif" height="8" width="{$skill.a}" title="{$skill.bezeichnung} - unteres Limit: {$skill.min}"></td>{/if}
						{if $skill.b > 0}<td bgcolor="Green" width="{$skill.b}"><img src="images/spacer.gif" height="8" width="{$skill.b}" title="Vergebene Punkte auf {$skill.bezeichnung}: {$skill.wert-$skill.min}"></td>{/if}
						{if $skill.c > 0}<td bgcolor="Silver" width="{$skill.c}"><img src="images/spacer.gif" height="8" width="{$skill.c}" title={$skill.bezeichnung}></td>{/if}
						{if $skill.d > 0}<td bgcolor="red" width="{$skill.d}"><img src="images/spacer.gif" height="8" width="{$skill.d}" title="{$skill.bezeichnung} - oberes Limit: {$skill.max}"></td>{/if}
					</tr>
				</table>
				</td></tr></table>
			</td>
			<td width="100%" nowrap align="right">{$skill.wert}</td><td nowrap>({$skill.min}-{$skill.max})</td>
		</tr>
	{/foreach}
</table>
<hr size="1" width="100%" noshade="noshade" style="color:{$style.bg_b}" />
<b>Charaktergeschichte ({$clength} Zeichen):</b>
<div>{$char.charstory}</div>
{if $char.mode == "activation"}
	<table>
		<tr>
			<th>Vorläufige Fragesammlung</th>
		</tr>

		{foreach from=$fragensammlung item=frage}
	    	{if $frage.anzeige}
		    	<tr>
		    		<td bgcolor="{$style.bg_a}" ><b>Frage ({if $frage.pflicht == false}Kann-Frage{else}Muss-Frage{/if}):</b> {$frage.frage}</td>
		    	</tr>
		    	<tr>
		    		<td bgcolor="{$style.bg_a}" >{$frage.kriterium}</td>
		    	</tr>
		    	
		    	<tr>
		    		<td bgcolor="{$style.bg_a}" ><textarea rows="5" name="frage_{$frage.id}" cols="90" class="input_form">{$frage.antwort}</textarea></td>
		    	</tr>
		    	 <tr>
		            <td align="right">&nbsp</td>
		        </tr>
	    	{/if}
	    {/foreach}
	</table>
{/if}
<hr size="1" width="100%" noshade="noshade" style="color:{$style.bg_b}" />

{if $char.mode == "activation" AND ($char.aktiviert == 0 or $char.aktiviert == 2)}
<b>Text an den Spieler verfassen:</b><br />
<form action="char_activation.php" method="POST">
<input type="hidden" name="action" value="eval_actions">
<input type="hidden" name="charid" value="{$char.charid}">
<input type="hidden" name="lastchange" value="{$char.lastchange}">
<input type="hidden" name="aktivierungszeitpunkt" value="{$char.aktivierungszeitpunkt}">
<textarea accesskey="t" class="input_form" cols="100" name="aktivierungskommentar" rows="12">{$aktivierungskommentar}</textarea>
<p>{form_errors error_list=$form_errors}</p>
<table width="100%">
	<tr>
		<td bgcolor="{$style.bg_2}" align="center"><b>Annehmen</b></td>
		<td bgcolor="{$style.bg_2}" align="center"><b>Zur&uuml;ckstellen</b></td>
		<td bgcolor="{$style.bg_2}" align="center"><b>Ablehnen</b></td>
	</tr>
	<tr>
		<td bgcolor="{$style.bg_a}" align="center">{if $char.cst != 0}<input type="checkbox" name="warning_checkbox"><br />Warnung &uuml;ber geklaute Charstory konnte nicht bestätigt werden.<hr />{/if}
		<input type="checkbox" name="no_text"><br />Kein individueller Text an den Spieler.
		&nbsp;</td>
		<td bgcolor="{$style.bg_a}" align="center">&nbsp;</td>
		<td bgcolor="{$style.bg_a}" align="center"><table><tr><td><input type="checkbox" name="delete_checkbox" checked></td><td>Fall anlegen:</td></tr></table><textarea class="input_form" cols="50" name="short_report" rows="4">{$short_report}</textarea></td>
	</tr>
	<tr>
		<td bgcolor="{$style.bg_b}" align="center"><table><tr><td>PW:</td><td><input type="password" name="acc_password" class="input_form" size="20" maxlength="20"/></td></tr></table></td>
		<td bgcolor="{$style.bg_b}" align="center">-</td>
		<td bgcolor="{$style.bg_b}" align="center"><table><tr><td>PW:</td><td><input type="password" name="del_password" class="input_form" size="20" maxlength="20"/></td></tr></table></td>
	</tr>
	<tr>
		<td bgcolor="{$style.bg_a}" align="center"><input type="submit" value="Annehmen" name="send_form" class="button_form_green" /></td>
		<td bgcolor="{$style.bg_a}" align="center"><input type="submit" value="Zurückstellen" name="send_form" class="button_form" /></td>
		<td bgcolor="{$style.bg_a}" align="center"><input type="submit" value="Ablehnen" name="send_form" class="button_form_red" /></td>
	</tr>
	<tr>
		<td colspan="3">Bitte die Buttons benützen und nicht die Enter-Taste!</td>
	</tr>
</table>
<form>
{/if}
