<form id="qw-edit-settings" action='admin.php?page=query-wrangler&action=save_settings&noheader=true' method='post'>
<input class="button-primary" type="submit" value="Save Settings" />

<div id="qw-settings-page" class="ui-corner-all">
  <div class="qw-setting">
    <label class="qw-label">Editor Theme:</label>
    <select name="qw-theme">
      <?php
        foreach($edit_themes as $key => $edit_theme)
        {
          $selected = ($theme == $key) ? 'selected="selected"': '';
          ?>
          <option value="<?php print $key; ?>" <?php print $selected; ?>>
            <?php print $edit_theme['title']; ?>
          </option>
          <?php
        }
      ?>
    </select>
    <p class="description">Choose the Query Wrangler editor theme.</p>
  </div>
  
  <div class="qw-setting">
    <div>
      <label>
        <input type="checkbox" name="qw-widget-theme-compat" <?php print ($widget_theme_compat == "on") ? "checked='checked'" : ""; ?> />
        <strong>Widget Theme Compatibility</strong>
      </label>
    </div>
    <p class="description">If you're having trouble with the way Query Wrangler Widgets appear in your sidebar, select this option.</p>
  </div>
  
  <div class="qw-setting">
    <div>
      <label>
        <input type="checkbox" name="qw-live-preview" <?php print ($live_preview == "on") ? "checked='checked'" : ""; ?> />
        <strong>Live Preview</strong>
      </label>
    </div>
    <p class="description">Default setting for live preview during query editing.</p>
  </div>  
</div>
</form>