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

<form name="f1" action="channels.php" method="post">
<input type="hidden" name="{$SESSIONNAME}" value="{$SESSIONID}">
<input type="hidden" name="id" value="{$td.id}">

{if $mode eq "edit"}
{include file="$gentemplates/_navi.tpl"}
{include file="$gentemplates/_contentheader.tpl" title="$editchannel"}
{else}
{include file="$gentemplates/_navi.tpl" submenu="2"}
{include file="$gentemplates/_contentheader.tpl" title="$newchannel"}
{/if}

<table border="0" cellpadding="0" cellspacing="0" width="100%">
  <tr><td class="lines2" height="2" width="1" colspan="3"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="2"></td></tr>						
  <tr align="left">
    <td class="tab" height="20"><img src="{$imgpathmaster}/space.gif" alt="" width="60" height="1"></td>
    <td class="tab">&nbsp;</td>
    <td class="tab">{if $showmess}<span style="color:#ff0000;">{$mess}</span>{else}&nbsp;{/if}</td>
  </tr>
  
  <tr><td class="lines2" height="1" width="1" colspan="3"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1"></td></tr>
  <tr align="left">
    <td class="tab" height="40"><img src="{$imgpathmaster}/space.gif" alt="" width="60" height="1"></td>
    <td class="formhead">{$name}:</td>
    <td class="formhead"><input type="text" name="channelname" size="20" maxlength="100" value="{$td.channelname}"></td>
  </tr>
  
  <tr><td class="lines" height="1" width="1" colspan="3"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1"></td></tr>
  <tr align="left">
    <td class="tab" height="40"><img src="{$imgpathmaster}/space.gif" alt="" width="60" height="1"></td>
    <td class="formhead">{$desc}:</td>
    <td class="formhead"><textarea name="description" cols="60" rows="5">{$td.description}</textarea></td>
  </tr>
    
  <tr><td class="lines" height="1" width="1" colspan="3"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1"></td></tr>
  <tr align="left">
    <td class="tab" height="40"><img src="{$imgpathmaster}/space.gif" alt="" width="60" height="1"></td>
    <td class="formhead">{$public}:</td>
    <td class="formhead"><input type="radio" name="ispublic" value="1"{$pubcheckedyes}>{$yes}<br><input type="radio" name="ispublic" value="0"{$pubcheckedno}>{$no}</td>
  </tr>
  {if $mode neq "edit"}
  	<INPUT type="hidden" name="numchan" value="{$numchan}" />
  {/if}
  <tr><td class="lines2" height="1" width="1" colspan="3"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1"></td></tr>
  <tr align="left">
    <td class="tab" height="40"><img src="{$imgpathmaster}/space.gif" alt="" width="60" height="1"></td>
    <td class="formhead">&nbsp;</td>
    <td class="formhead">
      {if $mode eq "edit"}
      <input type="submit" name="{$suname}" value="{$save}" class="{$suclass}">
      {else}
      <input type="submit" name="{$suname}" value="{$create}" class="{$suclass}">
      {/if}
    </td>
  </tr>
  <tr><td class="lines" height="1" width="1" colspan="3"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1"></td></tr>
</table>
	
</form>

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