-
Notifications
You must be signed in to change notification settings - Fork 0
/
telaSolicitarPassagem.php
121 lines (98 loc) · 8.53 KB
/
telaSolicitarPassagem.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
<html lang="pt">
<?php
include("banco/banco.php");
?>
<?php
$query2 = "select * from pessoa order by nome";
$rs2 = Select ($query2);
$row2 = mysql_fetch_array($rs2);
?>
<?php include("head.php");
$nomeUsuario = $_SESSION['UsuarioNome'];
$idUsuario = $_SESSION['UsuarioID'];
?>
<body>
<?php include("escolheCabecario.php"); ?>
<h3>Solicitação de Estagio</h3>
<div class="container panel panel-default">
</br></br>
<form action = "fachadaSolicitarPassagem.php" method = "POST">
<div class="panel panel-default jumbotron">
<div id="vpav"></div>
<div class="input-group">
<span class="input-group-addon" id="sizing-addon2">Solicitante</span>
<input type="text" required="required" class="form-control" id = "solicitante" name="solicitante" aria-describedby="sizing-addon2" readonly="true" value="<?php echo $nomeUsuario ?>">
</div>
<input type="hidden" name="idUsuario" id="idUsuario" value="<?php echo $idUsuario ?>">
<center>
<div class="input-group">
<span class="input-group-addon" id="sizing-addon2">Projetos</span>
<select id="programa" name="programa" required="required">
<option value="">--- Selecione---</option>
<?php
$query = "select * from programa order by nome";
$rs = Select ($query);
$row = mysql_fetch_array($rs);
echo ("<option value= ". $row['idPrograma'].">". $row['nome']." </option> ");
while($row = mysql_fetch_array($rs)) {
echo ("<option value= ". $row['idPrograma'].">". $row['nome']." </option> ");
} ?>
</select>
</div>
</center>
<div class="input-group">
<span class="input-group-addon" id="sizing-addon2">Nome</span>
<select id="pessoa" name="pessoa" required="required">
<option value="">--- Selecione---</option>
<?php
echo "<option value=' {$row2['cpf']} '> {$row2['nome']} </option> ";
while($row2 = mysql_fetch_assoc($rs2)) {
echo "<option value=' {$row2['cpf']} '> {$row2['nome']} </option> ";
} ?>
</select>
</div>
<div class="input-group">
<span class="input-group-addon" id="sizing-addon2">Tipo de passagem</span>
<select id="cargaHoraria" name="tipoPassagem" required="required">
<option value="">--- Selecione ---</option>
<option value="Aérea Nacional">Aérea Nacional</option>
<option value="Aérea Internacional">Aérea Internacional</option>
<option value="Terrestre">Terrestre</option>
</select>
</div>
<div class="input-group">
<span class="input-group-addon" id="sizing-addon2">Atividades a serem desenvolvidas no local</span>
<input type="text" required="required" class="form-control" id = "atividadeLocal" name="atividadeLocal" aria-describedby="sizing-addon2">
</div>
Trechos:
<div class="input-group">
<span class="input-group-addon" id="sizing-addon2">Cidade de Partida</span>
<input type="text" required="required" class="form-control" id = "cidadeOrigem" name="cidadeOrigem" placeholder="Digite o seu nome da instituição" aria-describedby="sizing-addon2">
<span class="input-group-addon" id="sizing-addon2">Cidade de Destino</span>
<input type="text" required="required" class="form-control" id = "cidadeDestino" name="cidadeDestino" placeholder="Digite o seu nome da instituição" aria-describedby="sizing-addon2">
</div>
<div class="input-group">
<span class="input-group-addon" id="sizing-addon2">Data de Ida</span>
<input type="date" required="required" class="form-control" maxlength="10" placeholder="YYYY/MM/DD" aria-describedby="sizing-addon2" id = "dataSaida" name="dataSaida">
<span class="input-group-addon" id="sizing-addon2">Hora Pretendida</span>
<input type="time" required="required" class="form-control" id = "horaPretendida" name="horaPretendida" placeholder="HH:MM" aria-describedby="sizing-addon2" maxlength="5">
<input type="checkbox" name="idaVolta"> Ida e Volta?
</div>
<div class="input-group">
<span class="input-group-addon" id="sizing-addon2">Data de Volta</span>
<input type="date" class="form-control" maxlength="10" placeholder="YYYY/MM/DD" aria-describedby="sizing-addon2" id = "dataRetorno" name="dataRetorno">
<span class="input-group-addon" id="sizing-addon2">Hora Pretendida</span>
<input type="time" class="form-control" id = "horaPretendida" name="horaRetorno" placeholder="HH:MM" aria-describedby="sizing-addon2" maxlength="5">
</div>
<div class="input-group">
<span class="input-group-addon" id="sizing-addon2">Observações</span>
<input type="text" class="form-control" id = "observacao" name="observacao" aria-describedby="sizing-addon2">
</div>
<input type="submit" id = "submit" class="btn btn-default topElementos" value="Salvar" />
</div>
</form>
</div>
<?php include("script.html"); ?>
<?php include("foot.html"); ?>
</body>
</html>