
<?php 


$num_count_query="
	 
		SELECT count(id) as id  FROM services WHERE `desc` LIKE '%".$_GET['search']."%' or `title` LIKE '%".$_GET['search']."%'
   ";		

//echo $num_count_query;
$num_count_result=mysqli_query($conn,$num_count_query);
$num_count_fetch=mysqli_fetch_row($num_count_result);
$num_rows=$num_count_fetch[0];




?>


<div id="num_container">
<a  rel='nofollow'  max='<?php echo $max_rows ?>' lang='<?php echo $table?>' search="<?php $_GET['search']; ?>"  depart=""  alt='0' id='prev_num_search' rel='nofollow'  class='inactive num_con fa las la-angle-right'></a>
	
<?php

//echo $num_rows;

for ($i=1;$i<=$num_rows;$i+=$max_rows){
	$num++;	
	if($i!=1){
	echo"<a  rel='nofollow'  max='$max_rows' lang='$table' search='$_GET[search]' depart='' alt='$num' id='num_con_search$num' rel='nofollow'  class='inactive num_con_search'>$num</a>";
	}else{
	echo"<a  rel='nofollow'  max='$max_rows' lang='$table' search='$_GET[search]' depart='' alt='$num' id='num_con_search$num' rel='nofollow'  class='inactive num_con_search num_active'>$num</a>";
	}
	
	if($num==$max_con){
	goto endloop ;
	}
}
endloop:
$num=$num+1;




?>	



<a  rel='nofollow'  max='<?php echo $max_rows?>' lang='<?php echo $table?>' search="<?php $_GET['search']; ?>" depart="" alt='2' id='next_num_search' rel='nofollow'  class='inactive num_con fa las la-angle-left'></a>

<?php if($num_rows>$max_rows){ ?>
	<div max='<?php echo $max_rows?>' current_con='1' lang='<?php echo $table?>' search="" depart="<?php echo $depart_id; ?>" alt='2' id='next_num_search_same' class='num_con'> المزيد </div>
<?php } ?>



<div style="display: none">
<div id="rows_range" style="float:right"><?php echo $max_rows; ?>-1</div>
<div style="float:right">/</div>
<div id ="total_rows" style="float:right"><?php echo $num_rows; ?></div>
</div>
<div id="total_con" style="display:none"><?php echo ceil($num_rows/$max_rows) ; ?></div>
<div id="max_con" style="display:none"><?php echo $max_con ; ?></div>
<div id="load_page" style="display:none"><?php echo 'load_search' ; ?></div>
</div>

