
{include file="../head.tpl"}
<script language="javascript">
<!--
function check(){ldelim}
 if(document.kform.name.value == ''){ldelim}
  alert('{$langadmin.errornoname}');
  document.kform.name.focus();
  return false;
 {rdelim}
 
  if(document.kform.full_name.value == ''){ldelim}
  alert('{$langadmin.errornofull_name}');
  document.kform.full_name.focus();
  return false;
 {rdelim}
 
{rdelim}
//-->
</script>
<form action="manufacturer.php" method="post" enctype="multipart/form-data" name="kform" onsubmit="return check();">
  <table width="100%"  border="0" cellpadding="4" cellspacing="1" class="tableborder">
    <tr>
      <td colspan="2" class="header">
	  {if $smarty.request.action=="new"}
	  {$langadmin.manufacturer_new}
	  {else}
	   {$langadmin.manufacturer_edit}
	  {/if}
	 </td>
    </tr>
    <tr>
      <td width="20%" class="firstrow">{$langadmin.name}</td>
      <td class="secondrow"><input name="name" type="text" id="name" value="{$row->name}" size="50"></td>
    </tr>
    <tr>
      <td width="20%" class="firstrow">{$langadmin.fullname}</td>
      <td class="secondrow"><input name="full_name" type="text" id="full_name" value="{$row->full_name}" size="50"></td>
    </tr>
    <tr>
      <td width="20%" class="firstrow">{$langadmin.company_start}</td>
      <td class="secondrow"><input name="s_year" type="text" id="s_year" value="{$row->s_year}" size="50"></td>
    </tr>
    <tr>
      <td width="20%" class="firstrow">{$langadmin.company_workers}</td>
      <td class="secondrow"><input name="people" type="text" id="people" value="{$row->people}" size="50"></td>
    </tr>
    <tr>
      <td width="20%" class="firstrow">{$langadmin.country_start}</td>
      <td class="secondrow"><input name="s_country" type="text" id="s_country" value="{$row->s_country}" size="50"></td>
    </tr>
    <tr>
      <td width="20%" class="firstrow">{$langadmin.companywebseite}</td>
      <td class="secondrow"><input name="url" type="text" id="url" value="{$row->url}" size="50"></td>
    </tr>
    <tr>
      <td width="20%" class="firstrow">{$langadmin.email}</td>
      <td class="secondrow"><input name="email" type="text" id="email" value="{$row->email}" size="50"></td>
    </tr>
    <tr>
      <td width="20%" valign="top" class="firstrow">{$langadmin.companyadress}</td>
      <td class="secondrow"><textarea name="adress" cols="50" rows="5" id="adress">{$row->adress|escape:"htmlall"}</textarea></td>
    </tr>
 {if $smarty.request.action=="edit"}
    <tr>
      <td class="firstrow">{$langadmin.companylogo} </td>
      <td class="secondrow">{if $img} <img src="../uploads/manufacturer/{$img}" alt="" />
        <input name="oldimage" type="hidden" id="oldimage" value="{$img}">
        <br />
{/if}</td>
    </tr>
    <tr>
      <td class="firstrow">{$langadmin.logodelete}</td>
      <td class="secondrow"><input name="imagedel" type="checkbox" id="imagedel" value="1"></td>
    </tr>
	{/if}
    <tr>
      <td class="firstrow">{$langadmin.logoupload}</td>
      <td class="secondrow"><input name="file" type="file" size="40"></td>
    </tr>
    <tr>
      <td colspan="2" class="theader">{$langadmin.descr}</td>
    </tr>
    <tr>
      <td style="padding:0px" colspan="2" class="secondrow">{$ed2}</td>
    </tr>
    <tr>
      <td colspan="2" class="secondrow">
	  {if $smarty.request.action=="edit"}
	  <input name="action" type="hidden" id="action" value="edit">
	  <input name="save" type="hidden" id="save" value="1">
	  <input name="id" type="hidden" id="id" value="{$smarty.request.id}">
	  <input name="charakter" type="hidden" id="charakter" value="{$smarty.request.charakter}">
	  <input name="page" type="hidden" id="page" value="{$smarty.request.page}">
	  <input name="pp" type="hidden" id="pp" value="{$smarty.request.pp}">
	  <input name="area" type="hidden" id="area" value="{$smarty.request.area}">
	  <input class="button" type="submit" value="{$langadmin.refresh}">
	  {else}
	  <input name="action" type="hidden" id="action" value="new">
	  <input name="save" type="hidden" id="save" value="1">
	  <input name="id" type="hidden" id="id" value="{$smarty.request.id}">
	  <input name="area" type="hidden" id="area" value="{$smarty.request.area}">
	  <input class="button"  type="submit" value="{$langadmin.save}">
	  {/if}
	  </td>
    </tr>
  </table>
</form>
{include file="../foot.tpl"}