-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathverPedido.php
66 lines (62 loc) · 2.99 KB
/
verPedido.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
<?php
include('session.php');
if($user_rank == 'C'){
header('Location: menu.php');
}
?>
<section class="wrapper">
<h3><i class="fa fa-angle-right"></i> Lista de Pedidos</h3>
<div class="row mt">
<div class="col-lg-12">
<div class="input-group stylish-input-group">
<input type="text" id="texto" class="form-control" placeholder="Procurar Pedidos" >
<span class="input-group-addon">
<button type="submit" onclick="doIt()" value="Procurar">
<span class="glyphicon glyphicon-search"></span>
</button>
</span>
</div>
</div>
</div>
<div class="row mt">
<form class="form-horizontal style-form" method="post" action="eliminarPedido.php" onsubmit="return checkForm(this);">
<div class="col-md-12">
<div class="content-panel">
<table class="table">
<thead>
<tr>
<th>#</th>
<th>ID</th>
<th>Motivo</th>
<th>Problemas e aspectos a melhorar</th>
<th>email</th>
</tr>
</thead>
<tbody>
<?php
$query = "SELECT * FROM pedidos";
$results = mysqli_query($connection, $query);
while($row = mysqli_fetch_assoc($results)) {
$ref = $row['id_pedido'];
?>
<tr>
<td><input type="radio" name="selecionado" value="<?php echo $ref; ?>"/></td>
<td><?php echo $row['id_pedido'];?></td>
<td><?php echo $row['titulo_pedido']?></td>
<td><?php echo $row['descricao_pedido']?></td>
<td><?php echo $row['mail_pedido']?></td>
</tr>
<?php
}
?>
</tbody>
<?php if(($user_rank == 'F') || ($user_rank == 'A')){ ?>
<button type="submit" name="eliminar" class="btn btn-theme" style="background-color: #f44336;">Eliminar</button>
<?php } ?>
</table>
</div>
</div>
</form>
</div>
</section>