<form action="gallery.php" method="post" name="ws_gallery">
  <table width="100%" border="0" cellspacing="1" cellpadding="2" bgcolor="$border">
    <tr> 
      <td class="title" align="center" bgcolor="$bghead">edit picture</td>
    </tr>
    <tr> 
      <td bgcolor="$pagebg"></td>
    </tr>
    <tr> 
      <td bgcolor="$bg1"><table width="100%" border="0" align="center" cellpadding="2" cellspacing="0" class="formtable">
          <tr> 
            <td align="right">Name:</td>
            <td><input name="name" type="text" value="$ds[name]" size="35" class="form_off" onFocus="this.className='form_on'" onBlur="this.className='form_off'"></td>
          </tr>
          <tr> 
            <td align="right">Comment:</td>
            <td><textarea name="comment" cols="70" rows="2" class="form_off" onFocus="this.className='form_on'" onBlur="this.className='form_off'">$ds[comment]</textarea></td></td>
          </tr>
          <tr> 
            <td align="right"></td>
            <td><input type="checkbox" name="reset" value="1"> Reset views</td>
          </tr>
          <tr> 
            <td align="right"><input type="hidden" name="picID" value="$picID"></td>
            <td><input name="saveedit" type="submit" value="update picture"></td>
          </tr>
        </table></td>
    </tr>
  </table>
</form>

