<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>
<table>
<tr>
<td>
 <form method="post" action="{actionurl}" ENCTYPE="multipart/form-data">
 <table>
  <tr>
   <td colspan="4">{message}&nbsp;</td>
  </tr>
  <tr>
   <td colspan="4">{lang_original}:&nbsp;{oldfile}&nbsp;</td>
  </tr>
  <tr>
  <tr>
   <td colspan="4">{lang_current}:&nbsp;{picfile}&nbsp;{detailstr}&nbsp;</td>
  </tr>

  <tr>
   <td><input type="hidden" name="oldfile"   value="{oldfile}"></td>
   <td><input type="hidden" name="picture"   value="{picfile}"></td>
   <td><input type="hidden" name="img_id"    value="{img_id}"></td>
   <td><input type="hidden" name="thumbnail" value="{thumb}"></td>
  </tr>

  <tr>
   <td colspan="3">{lang_load_new}:&nbsp;<input name="picturefile" TYPE="file" size="40">&nbsp;*.gif,*.jpg,*.png,*.bmp</td>
   <td>&nbsp;</td>
  </tr>

  <tr>
   <td>{lang_convert_to}:</td>
   <td>
    <select name="conTo">
{convert_rows}
    </select>
   </td>
   <td><input type="submit" name="convert" value="{lang_convert}"></td>
  </tr>

  <tr>
   <td>{lang_rotate}:</td>
   <td><select name="angle">
{rotate_rows}
    </select></td>
   <td><input type="submit" name="rotate" value="{lang_rotate}"></td>
  </tr>

  <tr>
   <td>{lang_resize}:</td>
   <td>{lang_target_width}&nbsp;<input name="dstW" size="6">&nbsp;{lang_target_height}&nbsp;<input name="dstH" size="6"></td>
   <td><input type="submit" name="resize" value="{lang_resize}"></td>
  </tr>

  <tr>
   <td colspan="2">&nbsp;</td>
   <td><input type="submit" name="save" value="{lang_save}"></td>
   </form>
  </tr>

  <tr>
   <form method="post" action="{cancelurl}">
   <td colspan="2">&nbsp;</td>
   <td><input type="submit" name="back" value="{lang_cancel}"></td>
   </form>
  </tr>

  <tr>
   <td colspan="4">{lang_thumb}:&nbsp;
    <a href="javascript:openwindow('{picurl}','{imgwidth}','{imgheight}')"><img src="{thumb}" border="1" align="middle" alt="{img_file} {detailstr}"></a>&nbsp;{detailstr}
   </td>
  </tr>

 </table>
</td>
</tr>
</table>
</center>
