Пример #1
0
<?php

$page = '';
$page2 = 'nav-empresas';
require "template/header.php";
require "resource/pdo.php";
$user = new UserInfo();
if (isset($_POST["token"])) {
    $user->changeInfoUser($_POST);
}
?>
<div class="container">
	<div class="row">
		<div class="grid col-9">
			<div class="row">
				<h2>Mis detalles</h2>
				<hr>
				<form action="" method="post" id="form">
					<fieldset>
						<legend align= "center">Usuario</legend>
						<input type="text" value="<?php 
$user->getCurrentUserName();
?>
" id="username" name="username">
					</fieldset>
					<a href="#" id="showPass">¿Desea cambiar su contraseña?</a>
					<fieldset style="display: none;" id="password-form">
						<legend align= "center">Password</legend>
						<label for="password-1" >Contraseña</label>
						<input type="password" value="" id="password-1" name="password-1">
						<label for="password-2">Repita la contraseña nueva</label>