Add files via upload

This commit is contained in:
Fernando Méndez
2021-05-11 23:07:30 +02:00
committed by GitHub
parent 3515a4a583
commit b6ea25caa1
12 changed files with 220 additions and 246 deletions

View File

@ -313,7 +313,7 @@
text-transform: uppercase;
font-weight: bold;
font-size: 90%;
color: #00020f;
color: #d3ebff;
}
.code label{
color: #d3ebff;
@ -553,8 +553,8 @@
width: 100%;
height: 30px;
border: 1px solid #dadada;
background-color: #dadada;
color: #00020f;
background-color: #00020f;
color: #dadada;
padding: 5px;
margin-top: 5px;
font-size: 12px;

View File

@ -1,12 +1,3 @@
function cambiarCSS(nuevo){
let highContrast;
if(highContrast === true){
highContrast = false;
} else {
highContrast = true;
}
//window.location.href += "?highContrast=" + highContrast;
document.getElementById('estilo').setAttribute('href', nuevo);
document.getElementById('estilo').setAttribute('href', nuevo);
}

View File

@ -81,12 +81,24 @@
//Returns a query to get the user's data.
public function userData($id){
$id = $this->mysqli->real_escape_string($id);
$sql = sprintf( "SELECT * FROM users WHERE id = '%d'", $id );
$resul = mysqli_query($this->mysqli, $sql) or die ('Error into query database');
return $resul;
}
//Search a user by name.
public function selectUserName($username){
$username = $this->mysqli->real_escape_string($username);
$sql = sprintf( "SELECT * FROM users WHERE name = '%s'", $username );
$resul = mysqli_query($this->mysqli, $sql);
return $resul;
}
//Change username by id.
public function changeUserName($id, $username){
$id = $this->mysqli->real_escape_string($id);

View File

@ -458,14 +458,12 @@
function print_footer(){
$prefix = $this->prefix;
if (isset($_GET["highContrast"]) && $_GET["highContrast"] === true) {
$css = "{$prefix}assets/css/main.css";
$nameCSS = "Contraste Normal";
} else {
$css = "{$prefix}assets/css/highContrast.css";
$nameCSS = "Alto Contraste";
}
/* TODO */
$css = "{$prefix}assets/css/highContrast.css";
$nameCSS = "Alto Contraste";
//$css = "{$prefix}assets/css/main.css";
//$nameCSS = "Contraste Normal";
echo"<footer>
<div class='footer'>
<p>© Práctica 2 | Sistemas Web 2021 </p>