{include file="$gentemplates/_header.tpl" pagetitle=$detail_overview}
{include file="$gentemplates/_navi.tpl" pagetitle=$detail_overview}

{literal}
<script language="javascript">
function openSelector(id, sid){
  selectorUrl = "index.php?mod=contact&obj=crm&view=details&id="+id+"&"+sid;
  selector = open(selectorUrl,"selectorWindow","width=450,height=430,screenX=0,screenY=0,scrollbars=yes,resizable=yes");
  selector.focus();
}
</script>
{/literal}

<form action="index.php" method="POST">
<input type="hidden" name="mod" value="contact" />
<input type="hidden" name="obj" value="crm" />
<input type="hidden" name="op" value="qsearch" />
<input type="hidden" name="{$SESSIONNAME}" value="{$SESSIONID}" />
<table>
  <tr>
    <td>{$at|smarty:nodefaults}</td>
    <td class="stand">
      &nbsp; {$quicksearch}: <input type="text" size="20" name="searchterm">
      &nbsp;<input type="submit" value="{$search}" name="suchen">
    </td>
  </tr>
</table>
</form>

&nbsp;<a href="index.php?mod=contact&amp;obj=crm&amp;{$SESSION}" class="new">{$back}</a>
<table width="100%" class="contentback" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td>
	
      {* TABLE START *}
      {include file="$gentemplates/_th4.tpl" r1=$contact_date r2=$contact_person r3=$internalcontact r4=$action}
      {section name=inhalt1 loop=$td}
      {include file="$gentemplates/_tr4.tpl" r1=$td[inhalt1].contact_date|mgw_date r2=$td[inhalt1].contact_person r3=$td[inhalt1].contact_username r4=$urls[inhalt1]|smarty:nodefaults}
      {/section}
      {include file="$gentemplates/_tfx.tpl"}
      {* TABLE END *}	

    </td>
  </tr>
</table>

{include file="$gentemplates/_footer.tpl" aktUser=$username}