{include file="../head.tpl"}
<script language="javascript">
{literal}
	<!--
	function check(){
		if(document.kform.title.value == "" )
		{
			alert("{/literal}{$langadmin.newcatnoname}{literal}");
			document.kform.title.focus();
			return false;
		}
	}
	-->
{/literal}
</script>
<form 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">{$langadmin.newcat}</td>
    </tr>
    <tr>
      <td class="firstrow">{$langadmin.catname}</td>
      <td class="secondrow"><input name="title" type="text" id="title" size="35">
      </td>
    </tr>
    <tr>
      <td class="firstrow">{$langadmin.choosecateg}</td>
      <td class="secondrow">
	<select name="thegal" id="thegal">
	<option value="0"> {$langadmin.choosenewcat} </option>
	{foreach from=$news item=item} 
	{if $item->parent_id == 0}
	
	<option style="font-weight:bold;font-style:italic" value="{$item->catid}" {if $parent_id == $item->catid} selected="selectd" {/if}>{$item->visible_title}</option>
	
	{else}
	
	<option value="{$item->catid}" {if $parent_id == $item->catid} selected="selectd" {/if}>{$item->visible_title}</option>
	
	{/if} {/foreach}
	</select>
      </td>
    </tr>
   {*
    <tr>
      <td class="firstrow">{$langadmin.catdesc}</td>
      <td class="secondrow"><input name="autobr" type="checkbox" id="autobr" value="1">
        <span class="firstrow">{$langadmin.autobr}</span><br>
        <textarea name="descr" cols="75" rows="8" id="descr"></textarea></td>
    </tr>
	*}
    <tr>
      <td class="firstrow">{$langadmin.caticon}</td>
      <td class="secondrow"> <input name="file" type="file" size="40">
      </td>
    </tr>
 
    <tr>
      <td colspan="2" class="firstrow">
	  <input name="action" type="hidden" id="action" value="addcateg">
        <input name="save" type="hidden" id="save"  value="1">
        <input name="area" type="hidden" id="area" value="{$area}">
        <input type="submit" class="button" value="{$langadmin.newcat}">
      </td></tr>
  </table>
</form>
{include file="../foot.tpl"}