<?php
 
//-->		
	$text 	= PHP_Secure($_POST['search_url']);
	$search = _Get_search($text);
 
?>
<?php if(count($search) == 0){ ?>
	<div class="div_table_url_admin">
		<div class="div_table_url_admin_1" style="text-align: center;">
			<img class="url_count_no_data_img" src="<?php echo $config['site_url'].'/'.$options_launcher['panel_address'];?>/images/sin_data_img.png"></img>
			<p class="url_count_no_data">error</p>
		</div>
	</div>
<?php }else{ ?>
	<!---->
	<div class="div_table_url_admin">
		<!---->
		<div class="div_table_url_admin_1">
			<div class="class_menu_div_table_url_admin_1">
				<div class="text_menu_table_url_1">
					#
				</div>
				<div class="text_menu_table_url_2">
					Url or Link
				</div>	
				<div class="text_menu_table_url_3">
					<svg class="icon_text_menu_table_url_3" xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-settings mx-2"><circle cx="12" cy="12" r="3"></circle><path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"></path></svg>
				</div>					
			</div>
			<!---->
			<div class="div_table_url_admin_1_data_urls">
				<!---->
				<?php foreach ($search as $key => $data) { ?>
				<div class="delate_url_admin_<?php echo $data['id'] ?> div_table_list_urls">
					<!---->
					<div class="div_table_list_urls_span">
						<span><?php echo $data['id'] ?></span>
					</div>
					<!---->
					<div class="div_table_list_urls_data">
						<p class="div_table_list_urls_data_p"><?php echo $config['site_url'];?>/s/<?php echo $data['id_url'] ?></p>
					</div>
					<!---->
					<div class="div_table_list__fucn_info">
						<div class="btn_more_url_admin size_admin_more_media bor_btn_1 click_load_url" data-id="<?php echo $data['id'] ?>">
							<span class="bor_btn_1_text_a" href="#"><p class="btn_more_url_admin_p bor_btn_1_text">more info</p></span>
						</div>
					</div>
				</div>
				<?php } ?>
			</div>
		</div>
	<!---->
	</div>
<?php } ?>	
<!---->
<script>
//--
    $('.click_load_url').on('click', function(){
		var data_id = $(this).data('id');

		$.ajax({
			url: "<?php echo $config['site_url'];?>/requests.php?upload=modal_url",
            type: 'POST',
            data: {id: data_id},   
            success: function(data){
                $("#modal_url_admin").html(data);//$('#more-info').html(data.html);
				$("#modal_url_admin").show();
			}
		});
    });
</script>