function myFunction(id) {
		var r = confirm("Desea Eliminar el Servicio?");
	    if (r == true) {
	       	location.href='../common/valid-eliminar-servicio.php?id='+id;
	    }
	}
	</script>
<?php 
include 'header.php';
?>
   
<?php 
if (isset($_SESSION['estado']) && $_SESSION['estado'] == '1') {
    include '../common/dbConnection.php';
    $connexion = new Connect();
    $usuario = $connexion->getServicios();
    ?>
 
 	<div class="container">
		<section>
			<hr>
			<h2>Servicio.<small> Te ayudamos a administrar tu informacion.</small></h2><hr>
           <table  class="table">
	        <thead>
	            <tr>
	                <th>Id</th>
	                <th>Titulo</th>
	                <th>Contenido</th>
	                <th>Imagen</th>
	                <th>Actualizar</th>
	                <th>Eliminar</th>
<?php

include 'dbConnection.php';
$connexion = new Connect();
$servicios = $connexion->getServicios();
echo json_encode($servicios);