<div class="wrap" id="fg-generator-admin" style="width: 800px;">
  <div class="icon32" id="icon-edit"><br/></div>
  <h2>Generator</h2>
  <br />
  <p class="description">You can use this generator to create galleries for external usage. Just adjust the gallery with your options and click 'Genereate code'!<br /><br />Select a gallery:</p>
  <form action="" method="post">
    <select name="gallery">
    <?php
	
	  $galleries = $this->wpdb->get_results("SELECT * FROM " . $this->gallery_table_name . "");
			  
	  foreach($galleries as $gallery) {
		  echo "<option value='" . $gallery->title . "'>" . $gallery->title . "</option>";
	  }
	  
	?>
    </select>
    
    <?php require_once( dirname(__FILE__)."/options-form.php" ); ?>
    
    <input type="submit" name="fg_generate" value="Generate Code" title="Generate Code" class="button-primary" />
  </form>
</div>