-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconteinerAtualizar.php
73 lines (59 loc) · 2.89 KB
/
conteinerAtualizar.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<!DOCTYPE html>
<html lang="pt-br">
<head>
<?php include "configuracao.php"; ?>
<title>Atualizar Contêiner</title>
</head>
<body>
<?php include "cabecalho.php"; ?>
<?php?>
<main>
<?php
$servername = "localhost:3308";
$username = "root";
$password = "";
$dbname = "T2S";
$conn = mysqli_connect($servername, $username, $password, $dbname);
if (!$conn) {
die(mysqli_connect_error());
}
$sql = "SELECT * FROM conteiner WHERE numeroConteiner ='".$_GET['conteinerAtualizar']."'";
$result = mysqli_query($conn, $sql);
$row = mysqli_fetch_assoc($result);
?>
<div class="formulario">
<h1>Atualizar Informações do Contêiner</h1>
<form action="funcoes.php" method="post">
<input type="hidden" name="conteinerAtualizar" value="conteinerAtualizar">
<label for="">Número do contêiner:</label>
<input value="<?php echo $row['numeroConteiner']?>" disabled>
<input type="hidden" name="numeroConteiner" value="<?php echo $row['numeroConteiner']?>" required>
<label for="">Cliente:</label>
<input type="text" name="cliente" placeholder="Ex: Transpotes LTDA"
minlength="2" maxlength="30" value="<?php echo $row['cliente']?>" required >
<label for="">Tipo:</label>
<select name="tipo" required>
<option Value="<?php echo $row['tipo']?>"><?php echo $row['tipo']?></option>
<option Value="20">20</option>
<option value="40">40</option>
</select>
<label for="">Status:</label>
<select name="status" required>
<option Value="<?php echo $row['status']?>"><?php echo $row['status']?></option>
<option Value="cheio">Cheio</option>
<option value="vazio">Vazio</option>
</select>
<label for="">Categoria:</label>
<select name="categoria" required>
<option value="<?php echo $row['categoria']?>"><?php echo $row['categoria']?></option>
<option Value="importacao">Importação</option>
<option value="exportacao">Exportação</option>
</select>
<input type="submit" value="Enviar">
<a href="conteiner.php"><input type="button" value="Voltar"></a>
</form>
</div>
</main>
<?php include "rodape.php"; ?>
</body>
</html>