<script language="JavaScript" type="text/javascript">
<!--
function chkFormular() {
	if(document.post.filename.value == "") {
		alert("You have to enter a filename!");
		document.post.filename.focus();
   		return false;
	}
}
-->
</script>
$adminactions
<form action="index.php?site=files&action=saveedit" method="post" enctype="multipart/form-data" onSubmit="return chkFormular()">
  <table width="100%" border="0" cellspacing="1" cellpadding="2" bgcolor="$border">
    <tr> 
      <td class="title" align="center" bgcolor="$bghead">edit file</td>
    </tr>
    <tr> 
      <td bgcolor="$pagebg"></td>
    </tr>
    <tr>
      <td bgcolor="$bg1"><table align="center" cellpadding="2" cellspacing="0" class="formtable">
          <tr> 
            <td colspan="2"><b>File-Information:</b></td>
          </tr>
          <tr>
            <td>Category:</td>
            <td><select name="filecat">$filecats</select></td>
          </tr>
          <tr> 
            <td>Filename:</td>
            <td><input type="text" name="filename" size="30" value="$file[filename]" class="form_off" onFocus="this.className='form_on'" onBlur="this.className='form_off'"></td>
          </tr>
          <tr> 
            <td valign="top">Info:</td>
            <td><textarea name="info" cols="44" rows="7" class="form_off" onFocus="this.className='form_on'" onBlur="this.className='form_off'">$file[info]</textarea></td>
          </tr>
          <tr>
            <td>Accesslevel:</td>
            <td><select name="accesslevel">$access</select></td>
          </tr>
          <tr>
            <td valign="top">File-Upload:</td>
            <td><input type="file" name="upfile"> 
          <tr> 
            <td valign="top">Extern Link:</td>
            <td><input type="text" name="fileurl" size="40" value="$extern" class="form_off" onFocus="this.className='form_on'" onBlur="this.className='form_off'"></td>
          </tr>
          <tr> 
            <td>File-Size:</td>
            <td><input name="filesize" type="text" value="$filesize" class="form_off" onFocus="this.className='form_on'" onBlur="this.className='form_off'"> <select name="unit">$unit</select></td>
          </tr>
          <tr> 
            <td colspan="2"><b>File-Mirrors:</b></td>
          </tr>
          <tr> 
            <td valign="top">Primary Mirror:</td>
						<td><input type="text" name="mirror2" size="40" value="$mirror2" class="form_off" onFocus="this.className='form_on'" onBlur="this.className='form_off'"></td>
          </tr>
          <tr> 
            <td valign="top">Secondary Mirror:</td>
						<td><input type="text" name="mirror3" size="40" value="$mirror3" class="form_off" onFocus="this.className='form_on'" onBlur="this.className='form_off'"></td>
          </tr>
          <tr> 
            <td><input type="hidden" name="fileID" value="$fileID"></td>
            <td><input type="submit" value="update"></td>
          </tr>
        </table></td>
    </tr>
  </table>
</form>
