<?php

if (isset($_GET['result'])) {
    echo "<p>" . $_GET['result'] . "</p>";
}
if (!isset($_GET['id']) || empty($_GET['id'])) {
    echo 'not found';
    return;
}
require_once PLUGIN_PATH . 'includes/My-slider-table.php';
$sl_obj = new My_slider();
$slider = $sl_obj->select($_GET['id'], 'name');
$slider = $slider[0];
?>
<h2>Add image to "<?php 
echo $slider['name'];
?>
"</h2>
<?php 
require_once PLUGIN_PATH . 'includes/My-images-table.php';
$images = new My_images();
$img_list = $images->find_images_slider($_GET['id']);
//var_dump($img_list);
?>
<div class="my-block">
	 <table class="wp-list-table widefat fixed striped">
	 	<caption><h3>List images.</h3></caption>
	 	<thead>
	 		<tr>
	 			<th>Id</th>
	 			<th>image</th>