<?php
if(!defined('ABSPATH')) {
    die();
}
?>
<?php
if($action == 'delete') {
    ?>
<h2>Bulk Delete Exports</h2>

<form method="post">
	<input type="hidden" name="action" value="bulk" />
	<input type="hidden" name="bulk-action" value="<?php echo esc_attr($action) ?>" />
	<?php foreach ($ids as $id): ?>
		<input type="hidden" name="items[]" value="<?php echo esc_attr($id) ?>" />
	<?php endforeach ?>
	
	<p><?php wp_kses_post(printf(__('Are you sure you want to delete <strong>%s</strong> selected %s?', 'pmxe_plugin'), $items->count(), _n('export', 'exports', $items->count(), 'pmxe_plugin'))) ?></p>
	
	<p class="submit">
		<?php wp_nonce_field('bulk-exports', '_wpnonce_bulk-exports') ?>
		<input type="hidden" name="is_confirmed" value="1" />
		<input type="hidden" name="bulk_action" value="<?php echo esc_attr($action); ?>" />
		<input type="submit" class="button-primary" value="Delete" />
	</p>
</form>

<?php }
else if ($action == 'allow_client_mode') {
    ?>
    <h2>Bulk Allow Client Mode</h2>

    <form method="post">
        <input type="hidden" name="action" value="bulk" />
        <input type="hidden" name="bulk-action" value="<?php echo esc_attr($action) ?>" />
        <?php foreach ($ids as $id): ?>
            <input type="hidden" name="items[]" value="<?php echo esc_attr($id) ?>" />
        <?php endforeach ?>

        <p><?php printf(__('Are you sure you want to toggle client mode for <strong>%s</strong> %s?', 'pmxe_plugin'), intval($items->count()), _n('export', 'exports', intval($items->count()), 'pmxe_plugin')) ?></p>

        <p class="submit">
            <?php wp_nonce_field('bulk-exports', '_wpnonce_bulk-exports') ?>
            <input type="hidden" name="is_confirmed" value="1" />
            <input type="hidden" name="bulk_action" value="<?php echo esc_attr($action); ?>" />
            <input type="submit" class="button-primary" value="Toggle" />
        </p>
    </form>

<?php
}
?>