_e('wpDataTable Data source', 'wpdatatables');
?>
</strong></span></label><br/>
                                                                    <span class="description"><small><?php 
_e('Please pick a wpDataTable which will be used as a data source', 'wpdatatables');
?>
.</small></span>
                                                            </td>
                                                            <td>
                                                                <select id="wpdatatables_chart_source">
                                                                    <option value=""><?php 
_e('Pick a wpDataTable', 'wpdatatables');
?>
</option>
                                                                    <?php 
foreach (wdt_get_all_tables_nonpaged() as $table) {
    ?>
                                                                    <option value="<?php 
    echo $table['id'];
    ?>
"><?php 
    echo $table['title'];
    ?>
 (id: <?php 
    echo $table['id'];
    ?>
)</option>
                                                                    <?php 
}
?>
                                                                </select>
/**
 * List all tables in JSON
 */
function wpdatatable_list_all_tables()
{
    echo json_encode(wdt_get_all_tables_nonpaged());
    exit;
}