} else {
    $action = get_admin_url() . 'admin-post.php';
}
?>

<div class="wrap">

	<h1 id="bsr-title"><?php 
_e('Better Search Replace', 'better-search-replace');
?>
</h1>

	<div id="bsr-error-wrap"></div>

	<?php 
BSR_Admin::render_result();
?>

	<h2 class="nav-tab-wrapper">
	    <a href="?page=better-search-replace&tab=bsr_search_replace" class="nav-tab <?php 
echo $active_tab == 'bsr_search_replace' ? 'nav-tab-active' : '';
?>
"><?php 
_e('Search/Replace', 'better-search-replace');
?>
</a>
	    <a href="?page=better-search-replace&tab=bsr_settings" class="nav-tab <?php 
echo $active_tab == 'bsr_settings' ? 'nav-tab-active' : '';
?>
"><?php 
_e('Settings', 'better-search-replace');
 />
					<label for="case_insensitive"><span class="description"><?php 
_e('Searches are case-sensitive by default.', 'better-search-replace');
?>
</span></label>
				</td>
			</tr>

			<tr>
				<td><label for="replace_guids"><strong><?php 
_e('Replace GUIDs<a href="http://codex.wordpress.org/Changing_The_Site_URL#Important_GUID_Note" target="_blank">?</a>', 'better-search-replace');
?>
</strong></label></td>
				<td>
					<input id="replace_guids" type="checkbox" name="replace_guids" <?php 
BSR_Admin::prefill_value('replace_guids', 'checkbox');
?>
 />
					<label for="replace_guids"><span class="description"><?php 
_e('If left unchecked, all database columns titled \'guid\' will be skipped.', 'better-search-replace');
?>
</span></label>
				</td>
			</tr>

			<tr>
				<td><label for="dry_run"><strong><?php 
_e('Run as dry run?', 'better-search-replace');
?>
</strong></label></td>
				<td>