<h1>Olá <?php echo "{$user_name} {$user_lastname}"; ?> , atualize seu perfíl!</h1> <?php $ClienteData = filter_input_array(INPUT_POST, FILTER_DEFAULT); $UserId = $_SESSION['userlogin']['user_id']; if ($ClienteData && $ClienteData['SendPostForm']) { unset($ClienteData['SendPostForm']); extract($ClienteData); require '_models/AdminUsers.class.php'; $cadastra = new AdminUsers(); $ClienteData['user_level'] = null; $cadastra->ExeUpdate($UserId, $ClienteData); if ($cadastra->getResult()) { WSErro("Seus dados foram atualizados com sucesso! <i>O sistema será atualizado no próximo login!!!</i>", WS_ACCEPT); } else { WSErro($cadastra->getError()[0], $cadastra->getError()[1]); } } else { extract($_SESSION['userlogin']); } ?> <form action = "" method = "post" name = "UserEditForm"> <label class="label"> <span class="field">Nome:</span> <input type = "text"
<div class="content form_create"> <article> <h1>Cadastrar Usuário!</h1> <?php $ClienteData = filter_input_array(INPUT_POST, FILTER_DEFAULT); if ($ClienteData && $ClienteData['SendPostForm']) { unset($ClienteData['SendPostForm']); require_once '_models/AdminUsers.class.php'; $AdminUsers = new AdminUsers(); $AdminUsers->ExeCreate($ClienteData); if ($AdminUsers->getResult()) { header('Location: painel.php?exe=users/update&create=true&users=' . $AdminUsers->getResult()); } else { WSErro($AdminUsers->getError()[0], $AdminUsers->getError()[1]); } } ?> <form action = "" method = "post" name = "UserCreateForm"> <label class="label"> <span class="field">User:</span> <input type = "text" name = "user_nickname" value="<?php if (!empty($ClienteData['user_nickname'])) { echo $ClienteData['user_nickname']; }