Newer
Older
ournorth2021 / views / cuenta.php
LuisOlaya on 13 Apr 2021 3 KB avatar cambios
<?php
$query = mysqli_query($connect, "SELECT * FROM Asistentes WHERE id = '" . $_SESSION['id_user'] . "' ");
$data = mysqli_fetch_array($query);

?>

<div class="container" style="margin-top: 20px">

	<div class="row">
		<div class="col-md-8" align="left">

			<div class="card">
				<div class="card-header">
					Mis datos personales
				</div>
				<div class="card-body">

					<div class="row">
						<div class="col-md-6">
							<label>Nombres*</label>
							<input type="text" class="form-control form-control-sm inputs" name="nombre" required value="<?php echo $data["nombre"] ?>" disabled>
						</div>

						<div class="col-md-6">
							<label>Apellidos*</label>
							<input type="text" class="form-control form-control-sm inputs" name="apellidos" required value="<?php echo $data["apellidos"] ?>" disabled>
						</div>

						<div class="col-md-6">
							<label>Correo Electronico*</label>
							<input type="text" class="form-control form-control-sm inputs" name="correo" value="<?php echo $data["correo"] ?>" disabled>
						</div>

						<div class="col-md-6">
							<label>Pais*</label>
							<input type="text" class="form-control form-control-sm inputs" name="pais" required value="<?php echo $data["pais"] ?>" disabled>
						</div>



					</div>



					<div style="color: #000000; line-height: 18px; text-align: left; margin: 25px 0px;">

						<table width="100%" style="font-size: 12px;line-height: 14px;">
							<tr>
								<td width="50">
									<?php
									if ($data["tratamientos"] == "") {
										echo '<input type="checkbox" style="width: 30px; height: 30px" name="tratamientos" required disabled>';
									} else {
										echo '<input type="checkbox" style="width: 30px; height: 30px" name="tratamientos" required checked disabled>';
									}
									?>
								</td>
								<td>
									Acepto tratamiento de datos personales
								</td>
							</tr>

						</table>


					</div>




				</div>
			</div>


			<a href="<?php echo $url; ?>/app/controllers/close_sesion.php">
				<button type="submit" class="btn btn-primary btn-block btn_item_menu" style="margin-top: 15px">
					Cerrar SesiĆ³n
				</button>
			</a>


		</div>

		<div class="col-md-4" align="left">

			<div class="card">
				<div class="card-header">
					Avatar
				</div>
				<div class="card-body">

					<div>
						<img class="avatar" src="<?php echo $_SESSION['imagen']; ?>" alt="">
					</div>
					<div class="text-center">
						<a href="/avatar/actualizar">
						<button type="button" class="btn btn-danger btn-hover" style="border-radius: 30px; margin-bottom: 15px; padding: 10px 30px; color: #000; font-size: 20px; background-color: #fdd300; border: 0; font-family: S-Core-CoreSansBold;">
							Actualizar <i class="fa fa-arrow-right" aria-hidden="true"></i>
						</button>
					</a>
					</div>
					



				</div>
			</div>





		</div>
	</div>

</div>
<script>
	$(document).ready(function() {
		$("#bt_ingreso").addClass("btn_item_menu_active");
	});
</script>
<style>
	label {
		margin-top: 10px;
		color: #eb5a23;
	}

	.btn-primary:hover {
		background-color: #d91e49;
	}
	.btn-hover:hover {
    color: #d91e49 !important;
}
</style>