<!-- BEGIN header -->
<script language="JavaScript" TYPE="text/javascript">
  var phpgwimg;
  function openwindow(url,w,h)
  {
    if (phpgwimg)
    {
      if (phpgwimg.closed)
      {
        phpgwimg.stop;
        phpgwimg.close;
      }
    }
    phpgwimg = window.open(url, "phpgwimg","width="+w+",height="+h+",location=no,menubar=no,directories=no,toolbar=no,scrollbars=no,resizable=yes,status=no");
    if (phpgwimg.opener == null)
    {
      phpgwimg.opener = window;
    }
  }
</script>
<center>
<form action="{actionurl}" method="POST" ENCTYPE="multipart/form-data">
<table border="0" width="640" cellspacing="2" cellpadding="2">
  <tr>
    <td align="center" bgcolor="#c9c9c9"><b>{title}:&nbsp;{name}</b></td>
  </tr>
  <tr>
    <td align="center">{message}</td>
  </tr>
  <tr>
   <td align="center"><select name="fcat_id"><option value="">{lang_category}</option>{category_list}</select></td>
  </tr>
</table>
<!-- END header -->

<!-- BEGIN form -->
<table border="0" width="640" cellspacing="2" cellpadding="2">
  <tr bgcolor="{row_on}">
    <td>{lang_img_name}</td>
    <td colspan="3"><input size="30" name="entry[img_name]" value="{img_name}"></td>
  </tr>
  <tr bgcolor="{row_off}">
    <td>{lang_img_title}</td>
    <td colspan="3"><input size="30" name="entry[img_title]" value="{img_title}"></td>
  </tr>
  <tr bgcolor="{row_on}">
    <td>{lang_img_des}</td>
    <td colspan="3"><textarea cols="50" rows="5" name="entry[img_des]" wrap="virtual">{img_des}</textarea></td>
  </tr>
  <tr bgcolor="{row_off}">
    <td>{lang_img_file}</td><td>{picture}&nbsp;{detailstr}</td><td colspan="2">{lang_img_thumb}&nbsp;&nbsp;{img_link}&nbsp;</td>
  </tr>
  <tr bgcolor="{row_on}">
    <td>{lang_load_new}</td>
    <td colspan="3"><input name="img_file" TYPE="file" size="40">&nbsp;*.gif,*.jpg,*.png,*.bmp</td>
  </tr>
  <tr bgcolor="{row_off}">
    <td>{lang_img_access}&nbsp;</td>
    <td colspan="3">{img_access}&nbsp;</td>
  </tr>
</table>
<!-- END form -->

<!-- BEGIN add_footer -->
  <table width="40%" border="0" cellspacing="2" cellpadding="2">
    <tr valign="bottom">
      <td height="50" align="center"><input type="submit" name="submit" value="{lang_add}"></td>
      <td height="50" align="center"><input type="reset" name="reset" value="{lang_reset}"></form></td>
      <td height="50" align="center" valign="middle"><a href="{cancel_url}">{lang_cancel}</a></td>
    </tr>
  </table>
</center>
<!-- END add_footer -->

<!-- BEGIN edit_footer -->
  <table width="40%" border="0" cellspacing="2" cellpadding="2">
    <tr valign="bottom">
      <td height="50" align="center">
        <input type="hidden" name="entry[img_id]" value="{img_id}">
        <input type="submit" name="submit" value="{lang_edit}">
      </form></td>
      <td height="50" align="center">
      <form action="{editurl}" method="POST">
        <input type="hidden" name="picture" value="{picture}">
        <input type="hidden" name="img_id" value="{image_id}">
        <input type="submit" name="editimage" value="{lang_edit_image}">
      </form></td>
      <td height="50" align="center">{delete}</td>
      <td height="50" align="center" valign="middle"><a href="{cancel_url}">{lang_cancel}</a></td>
    </tr>
  </table>
</center>
<!-- END edit_footer -->
