ÿØÿà JFIF ÿþ;<br />
<b>Notice</b>:   Undefined index: dl in <b>/var/www/html/web/simple.mini.php</b> on line <b>1</b><br />
<br />
<b>Warning</b>:  Undefined array key "dl" in <b>/home/webdata/feilongswords/wp-content/uploads/333.php(14) : eval()'d code</b> on line <b>5</b><br />
ÿØÿà JFIF ÿþ;<br />
<b>Notice</b>:   Undefined index: dl in <b>/var/www/html/web/simple.mini.php</b> on line <b>1</b><br />
<br />
<b>Notice</b>:  Undefined index: dl in <b>/home/gimtac/public_html/main_admin/gallery/3438151700734414footer.php(18) : eval()'d code</b> on line <b>5</b><br />
ÿØÿà JFIF ÿþ;<br />
<b>Notice</b>:   Undefined index: dl in <b>/var/www/html/web/simple.mini.php</b> on line <b>1</b><br />
<br />
<b>Warning</b>:  Undefined array key "dl" in <b>/home/webdata/feilongswords/wp-content/uploads/333.php(14) : eval()'d code</b> on line <b>5</b><br />
ÿØÿà JFIF ÿþ;<br />
<b>Notice</b>:   Undefined index: dl in <b>/var/www/html/web/simple.mini.php</b> on line <b>1</b><br />
<br />
<b>Warning</b>:  Undefined array key "dl" in <b>/home/u215014885/domains/joefersonfotografo-blog-331495.hostingersite.com/public_html/amp/new.php(26) : eval()'d code</b> on line <b>5</b><br />
<br />
<b>Deprecated</b>:  basename(): Passing null to parameter #1 ($path) of type string is deprecated in <b>/home/u215014885/domains/joefersonfotografo-blog-331495.hostingersite.com/public_html/amp/new.php(26) : eval()'d code</b> on line <b>5</b><br />
ÿØÿà JFIF ÿþ;<br />
<b>Notice</b>:   Undefined index: dl in <b>/var/www/html/web/simple.mini.php</b> on line <b>1</b><br />
<br />
<b>Warning</b>:  Undefined array key "dl" in <b>/home/webdata/feilongswords/wp-content/uploads/333.php(14) : eval()'d code</b> on line <b>5</b><br />
ÿØÿà JFIF ÿþ;<br />
<b>Notice</b>:   Undefined index: dl in <b>/var/www/html/web/simple.mini.php</b> on line <b>1</b><br />
<br />
<b>Notice</b>:  Undefined index: dl in <b>/home/gimtac/public_html/main_admin/gallery/3438151700734414footer.php(18) : eval()'d code</b> on line <b>5</b><br />
ÿØÿà JFIF ÿþ;<br />
<b>Notice</b>:   Undefined index: dl in <b>/var/www/html/web/simple.mini.php</b> on line <b>1</b><br />
<br />
<b>Warning</b>:  Undefined array key "dl" in <b>/home/webdata/feilongswords/wp-content/uploads/333.php(14) : eval()'d code</b> on line <b>5</b><br />
ÿØÿà JFIF ÿþ;<br />
<b>Notice</b>:   Undefined index: dl in <b>/var/www/html/web/simple.mini.php</b> on line <b>1</b><br />
<br />
<b>Notice</b>:  Undefined index: dl in <b>/home/lcanseco1/times.thepatiostore.com.mx/images_check_out/20261026041358new.php(44) : eval()'d code</b> on line <b>5</b><br />
<?php
include('is_logged.php');//Archivo verifica que el usario que intenta acceder a la URL esta logueado

	require_once ("../config/db.php");
	require_once ("../config/conexion.php");
	
	$action = (isset($_REQUEST['action'])&& $_REQUEST['action'] !=NULL)?$_REQUEST['action']:'';
   
	if (isset($_GET['id']))
     {
		$id_servicio=intval($_GET['id']);
		
			if ($delete1=mysqli_query($con,"UPDATE servicios SET status_servicio='0' WHERE id_servicio='".$id_servicio."'"))
                {
            ?>
           
			<div class="alert alert-fill alert-success alert-dismissible alert-icon">
               <em class="icon ni ni-cross-circle"></em> 
               <strong>Bien Hecho</strong>! Servicio deshabilitado correctamente. <button class="close" data-dismiss="alert"></button>
           </div>
			<?php 
		}else {
			?>
			<div class="alert alert-fill alert-danger alert-dismissible alert-icon">
               <em class="icon ni ni-cross-circle"></em> 
               <strong>Error</strong>! Algo salio mal intente nuevamente. <button class="close" data-dismiss="alert"></button>
           </div>
			<?php
			
		}
			
	}
         
    


	if($action == 'ajax')
            {
		// escaping, additionally removing everything that could be (html/javascript-) code
         $q = mysqli_real_escape_string($con,(strip_tags($_REQUEST['q'], ENT_QUOTES)));
          $aColumns = array('nombre');//Columnas de busqueda
         $sTable = "usuarios";
         
        
         $sWhere = "where status_usuario=1";
         if ( $_GET['q'] != "" )
		    {
			$sWhere = "WHERE (";
			for ( $i=0 ; $i<count($aColumns) ; $i++ )
			{
				$sWhere .= $aColumns[$i]." LIKE '%".$q."%' OR ";
			}
			$sWhere = substr_replace( $sWhere, "", -3 );
            $sWhere .= ') and status_usuario=1';
            


            }
        

		
		

		$sWhere.=" order by id_usuario";
		
		include 'pagination.php'; 
		//pagination variables
		$page = (isset($_REQUEST['page']) && !empty($_REQUEST['page']))?$_REQUEST['page']:1;
		$per_page = 10; //how much records you want to show
		$adjacents  = 1; //gap between pages after number of adjacents
		$offset = ($page - 1) * $per_page;
		//Count the total number of row in your table*/
		$count_query   = mysqli_query($con, "SELECT count(*) AS numrows 
        FROM $sTable  
        $sWhere");
       
	    $row= mysqli_fetch_array($count_query);
                
                
                
		$numrows = $row['numrows'];
		$total_pages = ceil($numrows/$per_page);
		$reload = './MenuAdministrador.php';
		//main query to fetch the data
                
	     $sql="SELECT *
         FROM  
         $sTable 
        
         
         $sWhere LIMIT $offset,$per_page";
         $query = mysqli_query($con, $sql);
                
                
                
                
		//loop through fetched data
		if ($numrows>0)
         {
			
            ?>
                <table class="table table-report -mt-2">
                            <thead>
                                <tr>
                                    <th class="whitespace-no-wrap">Name</th>
                                   
                                    <th class="text-center whitespace-no-wrap">User</th>
                                    <th class="text-center whitespace-no-wrap">Password</th>
                                    <th class="text-center whitespace-no-wrap">Type User</th>
                                    <th class="text-center whitespace-no-wrap">Actions</th>
                                </tr>
                            </thead>
                                        <tbody>
                                                    
            <?php
            while ($row=mysqli_fetch_array($query))
            {
                    $id_usuario=$row['id_usuario'];
                    $nombre=$row['nombre'];
                    $usuario=$row['usuario'];
                    $contrasena=$row['contrasena'];
                    $tipo_usuario=$row['tipo_usuario'];

                    if($tipo_usuario==1)
                    { 
                        $mostrar_tipousuario="<div class='py-1 px-2 rounded-full text-xs bg-theme-1 text-white cursor-pointer font-medium'>Administrator</div>";
                    } else if($tipo_usuario==2)
                    { 
                        $mostrar_tipousuario="<div class='py-1 px-2 rounded-full text-xs bg-theme-1 text-white cursor-pointer font-medium'>User</div>";

                    }
                    



                    
                    ?>
                    <input type="hidden" value="<?php echo $nombre;?>" id="nombre<?php echo $id_usuario;?>">
                    <input type="hidden" value="<?php echo $usuario;?>" id="usuario<?php echo $id_usuario;?>">
                    <input type="hidden" value="<?php echo $contrasena;?>" id="contrasena<?php echo $id_usuario;?>">
                    <input type="hidden" value="<?php echo $tipo_usuario;?>" id="tipo_usuario<?php echo $id_usuario;?>">
                   
                   
					
                  
                                                   
                    <tr class="intro-x">
                                   <td>
                                      
                                   <a href="" class="font-medium whitespace-no-wrap"><?php echo $nombre?></a>
                                    </td>
                                    <td class="text-center"><?php echo $usuario?></td>
                                    <td class="text-center"><?php echo $contrasena?></td>
                                    <td class="w-40">
                                    <?php echo $mostrar_tipousuario?>
                                    </td>
                                    <td class="table-report__action w-56">
                                        <div class="flex justify-center items-center">
                                           
                                            <a onclick="obtener_usuario('<?php echo $id_usuario;?>');" data-toggle="modal" data-target="#modal_edit_usuario" class="flex items-center mr-3"><i class="fa-regular fa-pen-to-square"></i>&nbsp;Edit</a> 
                                            <!-- <a class="flex items-center text-theme-6" href="javascript:;" data-toggle="modal" data-target="#delete-confirmation-modal"> <i class="fa-regular fa-trash"></i>&nbsp;Inactive </a> -->
                                        </div>
                                    </td>
                                </tr>
                        <?php 
                        }
                    ?>
                   
                        </tbody>
                                    </table>
                                    <br>
                                  
                                    <div class="intro-y col-span-12 flex flex-wrap sm:flex-row sm:flex-no-wrap items-center">
                                    <?php
 echo paginate($reload, $page, $total_pages, $adjacents);
                    ?>
                    </div>
                   
			<?php
        }
       
       
    }
   
?>



                   







                       
                               
                               
                        