-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtesti.php
67 lines (56 loc) · 2.33 KB
/
testi.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
<?php
$conexao = mysql_connect("localhost","root",""); //abre a conexao com banco
if(!$conexao){
echo "Erro ao se conectar ao banco";
exit;
}
$banco = mysql_select_db("trabalho"); // seleciona o banco a ser usado
if(!$banco){
echo "Erro ao se conectar com o banco trabalho";
exit;
}
?>
<!DOCTYPE html>
<html>
<head>
<title>Venda</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
<link rel="stylesheet" type="text/css" href="estilo.css">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/all.css" integrity="sha384-mzrmE5qonljUremFsqc01SB46JvROS7bZs3IO2EmfFsd15uHvIt+Y8vEf7N7fWAU" crossorigin="anonymous">
<script src="js/jquery-3.3.1.min.js"></script>
<script src="js/validator.min.js"></script>
<meta charset="utf-8">
</head>
<body class="corpo">
<!-- Navbar -->
<nav class="navbar navbar-light bg-primary teste">
<a class="navbar-brand" href="home.html">Home <i class="fas fa-home"></i></a>
</nav>
<nav class="navbar navbar-light bg-primary">
<a class="navbar-brand" href="listarProdutos.php">Produtos <i class="fas fa-archive"></i></a>
</nav>
<nav class="navbar navbar-light bg-primary">
<a class="navbar-brand" href="cliente.html">Clientes <i class="fas fa-users"></i></a>
</nav>
<nav class="navbar navbar-light bg-primary">
<a class="navbar-brand" href="#">Vendas <i class="fas fa-shopping-cart"></i></a>
</nav>
<nav class="navbar navbar-light bg-primary">
<a class="navbar-brand" href="loginAdmin.html">Admin <i class="fas fa-user-tie"></i></a>
</nav>
<div class="corpoVenda">
<h1>Vendas</h1>
<form id="venda.html" name="venda.html" method="POST" action="carrinho.php">
<label class="form-group" >ID:</label>
<input type="text" id="txtid" name="txtid" class="form-group form-control col-md-3" placeholder="Digite o codigo do produto">
<div class="form-group">
<input type="submit" id="botaoEnviar" name="botaoEnviar" class="btn btn-success bt-lg"
value="Buscar">
</div>
<div>
<? php if() ?>
</div>
</form>
</div>
</body>
</html>