Repository navigation
Expand file tree
/
Copy pathdisplay.php
More file actions
110 lines (81 loc) · 3.05 KB
/
Copy pathdisplay.php
File metadata and controls
110 lines (81 loc) · 3.05 KB
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css" type="text/css">
<link rel="stylesheet" href="main.css" type="text/css">
</head>
<body class="bg-faded">
<div class="p-1">
<div class="container">
<div class="row">
<div class="col-md-12">
<h1 class="text-center">infoMedicine</h1>
</div>
</div>
</div>
</div>
<div class="py-5 bg-faded">
<div class="container">
<div class="row">
<div class="col-md-12"><a href="crud.php" class="btn btn-block btn-primary btn-sm" data-toggle="">Voltar ao Menu</a></div>
</div>
</div>
</div>
<div class="">
<div class="container">
<div class="row">
<div class="col-md-12 bg-faded">
<?php
include 'conection.php';
if (isset($_GET['rem'])){
$displaym_query = "SELECT * FROM `medicamento`";
$medresult = mysqli_query($conn,$displaym_query);
while ($rowmed = $medresult->fetch_assoc()) {
$Urm = $rowmed['Imagem_URL'];
echo "<img src='$Urm' width=150 height=150 />"."</br>";
echo $rowmed['Nome']."</br>";
echo $rowmed['Fabricante'];
$shot1 = $rowmed['Codigo_de_Registro'];
echo "</br></br>";
echo "<a href='alterar.php?med=$shot1' class='btn btn-primary' style='float: right;'>Alterar</a>";
echo "<a href='confirmar.php?med=$shot1' class='btn btn-outline-primary'>Deletar</a>";
echo "</br><hr></br>";
}
}
if (isset($_GET['ref'])){
$displayf_query = "SELECT * FROM `fabricante`";
$fabrresult = mysqli_query($conn,$displayf_query);
while ($rowfr = $fabrresult->fetch_assoc()) {
$Urf = $rowfr['Imagem_URL'];
$shot2 = $rowfr['Nome'];
echo "<h3>".$rowfr['Nome']."</h3>"."</br>";
echo "<img src='$Urf' width=150 height=150 />"."</br>";
echo "</br></br>";
echo "<a href='alterar.php?fab=$shot2' class='btn btn-primary' style='float: right;'>Alterar</a>";
echo "<a href='confirmar.php?fab=$shot2' class='btn btn-outline-primary'>Deletar</a>";
echo "</br><hr></br>";
}
}
if (isset($_GET['rep'])){
$displayp_query = "SELECT * FROM `principio_ativo`";
$prresult = mysqli_query($conn,$displayp_query);
while ($rowpr = $prresult->fetch_assoc()) {
$shot3 = $rowpr['Nome'];
echo "<h3>".$shot3."</h3>";
echo "</br></br>";
echo "<a href='alterar.php?pi=$shot3' class='btn btn-primary' style='float: right;'>Alterar</a>";
echo "<a href='confirmar.php?pi=$shot3' class='btn btn-outline-primary'>Deletar</a>";
echo "</br><hr></br>";
}
}
?>
</div>
</div>
</div>
</div>
<script src="https://code.jquery.com/jquery-3.1.1.slim.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/tether/1.4.0/js/tether.min.js"></script>
<script src="https://pingendo.com/assets/bootstrap/bootstrap-4.0.0-alpha.6.min.js"></script>
</body>
</html>