-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhomeUser.php
138 lines (137 loc) · 7.41 KB
/
homeUser.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
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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="assets/css/css.css">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css"
integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
<title></title>
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"
integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo"
crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js"
integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49"
crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js"
integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy"
crossorigin="anonymous"></script>
<script src="assets/js/homeUser.js"></script>
<title>HelpDesk - Aluno</title>
</head>
<body>
<?php
echo '<div class="col-md-12 mt-header" style="display: inline-flex;text-align: center; border-bottom: 1px solid #313234; position: fixed; z-index: 2;background-color: white;border-width: initial;"><div class="col-md-2" style="margin-right: -20px">Chamado</div><div class="col-md-5" style="text-align: left;margin-right: -30px;padding-left: 4.57%;">Descrição</div><div class="col-md-2">Status</div><div class="col-md-2">Última atualização</div></div>';
?>
<?php
require('navbar.php');?>
<div class="container-fluid">
<div class="row col-md">
<?php
echo '<div class="panel-group col-md-11 mt-panel" id="accordion">';
getNovosChamadosOrEmAndamento($user);
echo '</div>';
?>
</div>
</div>
<btn class="fab" onclick='openModal(<?php echo json_encode($user) ?>,null)'> +</btn>
<div class="modal fade" data-backdrop="static" id="modalChamado" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog" style="max-width: 60%;" role="document">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title">Chamado</h4>
<button class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
</div>
<form action="homeCtrlPost.php" onsubmit="habiliteToSend()" method="post">
<div class="modal-body">
<div class="form-group">
<div class="row">
<div class="col-md-3">
RA
<input id="inputRa" name="inputRa" class="form-control" type="text" placeholder="RA" disabled>
</div>
<div class="col-md-6">
Email
<input id="inputEmail" name="inputEmail" type="email" class="form-control" aria-describedby="emailHelp" placeholder="Email" disabled>
</div>
<div class="col-md">
Status
<select class="form-control" id="inputStatus" name="inputStatus">
<option>Selecione</option>
<?php
getStatusOrTipo("status");
?>
</select>
</div>
</div>
<div class="row mt-4">
<div class="col-md-4">
Numero do Chamado
<input id="inputChamado" name="inputChamado" class="form-control" type="text" placeholder="Número do chamado" disabled>
</div>
<div class="col-md-5">
Sala
<select class="form-control" id="inputSala" name="inputSala">
<option>Selecione</option>
<?php
getSalas();
?>
</select>
</div>
<div class="col-md-3">
Tipo
<select class="form-control" id="inputTipo" name="inputTipo">
<option>Selecione</option>
<?php
getStatusOrTipo("tipo");
?>
</select>
</div>
</div>
<div class="row">
<div class="col-md">
<div class="form-group mt-2">
<label for="descricao">Descricão</label>
<textarea maxlength="280" class="form-control text-description" id="inputDescricao" name="inputDescricao" rows="3"></textarea>
</div>
</div>
</div>
<div class="row">
<div class="col-md">
Solicitante
<input id="inputSolicitante" name="inputSolicitante" class="form-control" type="text" placeholder="Nome" disabled>
</div>
<div class="col-md">
Técnico
<input id="inputTecnico" name="inputTecnico" class="form-control" type="text" placeholder="">
</div>
</div>
<div class="row mt-3">
<div class="col-sm">
Data do chamado
<input class="form-control" id="inputDatachamado" name="inputDatachamado" type="date" disabled>
</div>
<div class="col-sm">
Data finalização
<input class="form-control" id="inputDatafinal" name="inputDatafinal" type="date" disabled>
</div>
<div class="col-md-5">
Prioridade
<select class="form-control" id="inputPrioridade" name="inputPrioridade" required>
<option selected>Selecione</option>
<?php
getStatusOrTipo("prioridade");
?>
</select>
</div>
</div>
</div>
</div>
<div class="modal-footer">
<button class="btn btn-default" data-dismiss="modal">Fechar</button>
<button type="submit" id="realizarInsert" class="btn btn-primary">Abrir Chamado</button>
</div>
</form>
</div>
</div>
</div>
</body>
</html>