Skip to content

Commit

Permalink
Fixati gli ultimi problemi
Browse files Browse the repository at this point in the history
  • Loading branch information
criss02-cs committed Jan 7, 2021
1 parent 649e681 commit 1d7d860
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 9 deletions.
9 changes: 5 additions & 4 deletions visualizza/modificaAzienda.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,18 @@
<?php
include_once "../mysql_configuration/connection.php";
$conn = $GLOBALS['mysqli'];
$partitaIVA = $_POST['pa'];
$partitaIVA = $_POST['PartitaIva'];
$ragioneSociale = $_POST['RagioneSociale'];
$rappresentanteLegale = $_POST['RappresentanteLegale'];
$indirizzoAzienda = $_POST['IndirizzoAzienda'];
$telefonoAzienda = $_POST['TelefonoAzienda'];
$mailAzienda = $_POST['MailAzienda'];
$indirizzoAzienda = $_POST['Indirizzo'];
$telefonoAzienda = $_POST['Telefono'];
$mailAzienda = $_POST['Mail'];
$sql = "
UPDATE `aziende`
SET `RagioneSociale` = '$ragioneSociale', `RappresentanteLegale` = '$rappresentanteLegale', `IndirizzoAzienda` = '$indirizzoAzienda', `TelefonoAzienda` = '$telefonoAzienda', `MailAzienda` = '$mailAzienda'
WHERE `PartitaIva` = '$partitaIVA'
";
echo $sql."<br>";
if ($conn->query($sql) === TRUE) {
echo "Successo";
} else {
Expand Down
2 changes: 1 addition & 1 deletion visualizza/modificaStudente.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<?php
include_once "../mysql_configuration/connection.php";
$conn = $GLOBALS['mysqli'];
$matricola = $_POST['ma'];
$matricola = $_POST['Matricola'];
$nome = $_POST['Nome'];
$cognome = $_POST['Cognome'];
$dataNascita = $_POST['DataNascita'];
Expand Down
2 changes: 1 addition & 1 deletion visualizza/modificaTutorS.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<?php
include_once "../mysql_configuration/connection.php";
$conn = $GLOBALS['mysqli'];
$id_tutorscolastico = $_POST['id'];
$id_tutorscolastico = $_POST['id_tutorscolastico'];
$nome = $_POST['Nome'];
$cognome = $_POST['Cognome'];
$sql = "
Expand Down
3 changes: 2 additions & 1 deletion visualizza/modificaValoriA.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,12 @@
<title>Modifca dell'azienda</title>
<link rel="stylesheet" href="../Materials/style.css">
<link rel="stylesheet" href="../inserimenti/style.css">
<link rel="stylesheet" href="style.css">
</head>
<body>
<?php include("../Materials/menu.php"); ?>
<div class="container">
<form id="contact" action="inserimentoAziende.php" method="post">
<form id="contact" action="modificaAzienda.php" method="post">
<h3>Modifica Azienda</h3>
<fieldset>
<input type="text" name="PartitaIva" placeholder="Partita Iva" value='<?php echo $row["PartitaIva"]; ?>' tabindex="1">
Expand Down
3 changes: 2 additions & 1 deletion visualizza/modificaValoriS.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,12 @@
<title>Modifca dell'azienda</title>
<link rel="stylesheet" href="../Materials/style.css">
<link rel="stylesheet" href="../inserimenti/style.css">
<link rel="stylesheet" href="style.css">
</head>
<body>
<?php include("../Materials/menu.php"); ?>
<div class="container">
<form id="contact" action="inserimentoStudenti.php" method="post">
<form id="contact" action="modificaStudente.php" method="post">
<h3>Modifica studente</h3>
<fieldset>
<input type="text" name="Matricola" value="<?php echo $row["Matricola"]; ?>" placeholder="Codice Matricola" tabindex="1">
Expand Down
3 changes: 2 additions & 1 deletion visualizza/modificaValoriTS.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,14 @@
<title>Modifca dell'azienda</title>
<link rel="stylesheet" href="../Materials/style.css">
<link rel="stylesheet" href="../inserimenti/style.css">
<link rel="stylesheet" href="style.css">
</head>
<body>
<?php include("../Materials/menu.php"); ?>
<div class="container">
<form id="contact" action="modificaTutorS.php" method="post">
<h3>Modifica Tutor Scolastico</h3>
<input type="hidden" name="id_tutorscolastico" value='<?php echo $row["id_tutorscolastico"]; ?>' disabled>
<input type="hidden" name="id_tutorscolastico" value='<?php echo $row["id_tutorscolastico"]; ?>'>
<fieldset>
<input type="text" name="Nome" value="<?php echo $row["Nome"]; ?>" placeholder="Nome" tabindex="1">
</fieldset>
Expand Down
12 changes: 12 additions & 0 deletions visualizza/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -91,4 +91,16 @@ input[type="submit"]:hover {

input[type="submit"]:active {
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
}
.footer {
position: fixed;
left: 0;
bottom: 0;
height: 30px;
width: 100%;
background-color: #4caf50;
color: white;
text-align: center;
font-family: Arial, Helvetica, sans-serif;
vertical-align: middle;
}

0 comments on commit 1d7d860

Please sign in to comment.