forked from rudineirossales/reteste
-
Notifications
You must be signed in to change notification settings - Fork 0
/
baixa_ped.php
256 lines (180 loc) · 9.73 KB
/
baixa_ped.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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
<?php
include "conn.php";
session_start();
if(!isset($_SESSION["login"]) && !isset($_SESSION["senha"]) )
{
header("Location: index.html");
exit;
}
$protocolo =$_GET['protocolo'];
$sql = mysql_query ("select * from cliente where protocolo = '$protocolo'" );
$row = mysql_num_rows($sql);
if (mysql_num_rows($sql) > 0)
{
while ($dado = mysql_fetch_assoc($sql))
{
$cliente = $dado["cliente"];
$ccto = $dado["ccto"];
$nome_tec = $dado["nome_tec"];
$nome_ga = $dado["nome_ga"];
$data_rep = $dado["data_rep"];
$obs_unidade = $dado["obs_unidade"];
$area = $dado["area"];
}
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="icon" href="img/serede.png">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<style>
#loading
{
width:70px;
height:70px;
}
</style>
<link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">
<script src="//code.jquery.com/jquery-1.10.2.js"></script>
<script src="//code.jquery.com/ui/1.11.4/jquery-ui.js"></script>
<link rel="stylesheet" href="/resources/demos/style.css">
<script type="text/javascript" src="js/jquery-ui.js"></script>
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/jquery.maskedinput.js"></script>
<script type="text/javascript" src="validacaoid.js"></script>
<script type="text/javascript" src="js/jquery-ui.min.js"></script>
<script type="text/javascript" src="js/jquery-ui.js"></script>
<meta name="description" content="Vali is a responsive and free admin theme built with Bootstrap 4, SASS and PUG.js. It's fully customizable and modular.">
<!-- Twitter meta-->
<meta property="twitter:card" content="summary_large_image">
<meta property="twitter:site" content="@pratikborsadiya">
<meta property="twitter:creator" content="@pratikborsadiya">
<!-- Open Graph Meta-->
<meta property="og:type" content="website">
<meta property="og:site_name" content="Vali Admin">
<meta property="og:title" content="Vali - Free Bootstrap 4 admin theme">
<meta property="og:url" content="http://pratikborsadiya.in/blog/vali-admin">
<meta property="og:image" content="http://pratikborsadiya.in/blog/vali-admin/hero-social.png">
<meta property="og:description" content="Vali is a responsive and free admin theme built with Bootstrap 4, SASS and PUG.js. It's fully customizable and modular.">
<title>Reteste</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Main CSS-->
<link rel="stylesheet" type="text/css" href="css/main.css">
<!-- Font-icon css-->
<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
</head>
<body class="app sidebar-mini rtl">
<!-- Navbar-->
<header class="app-header"><a class="app-header__logo" href="dashboard.php">Serede</a>
<!-- Sidebar toggle button--><a class="app-sidebar__toggle" href="#" data-toggle="sidebar" aria-label="Hide Sidebar"></a>
<!-- Navbar Right Menu-->
<ul class="app-nav">
<!--Notification Menu-->
<!-- User Menu-->
<li class="dropdown"><a class="app-nav__item" href="#" data-toggle="dropdown" aria-label="Open Profile Menu"><i class="fa fa-user fa-lg"></i></a>
<ul class="dropdown-menu settings-menu dropdown-menu-right">
<li><a class="dropdown-item" href="logout.php"><i class="fa fa-sign-out fa-lg"></i> Logout</a></li>
</ul>
</li>
</ul>
</header>
<!-- Sidebar menu-->
<div class="app-sidebar__overlay" data-toggle="sidebar"></div>
<aside class="app-sidebar">
<div class="app-sidebar__user"><img class="app-sidebar__user-avatar" style="width:38px; height:40px;" src="img/serede.jpg" alt="User Image">
<div>
<p class="app-sidebar__user-name"><?php echo $_SESSION['nome'];?> </p>
<p class="app-sidebar__user-designation"><?php echo $_SESSION['area'];?></p>
</div>
</div>
<ul class="app-menu">
<li><a class="app-menu__item active" href="dashboard.php"><i class="app-menu__icon fa fa-dashboard"></i><span class="app-menu__label">Dashboard</span></a></li>
<ul class="treeview-menu">
<li><a class="treeview-item" href="bootstrap-components.html"><i class="icon fa fa-circle-o"></i> Bootstrap Elements</a></li>
<li><a class="treeview-item" href="https://fontawesome.com/v4.7.0/icons/" target="_blank" rel="noopener"><i class="icon fa fa-circle-o"></i> Font Icons</a></li>
<li><a class="treeview-item" href="ui-cards.html"><i class="icon fa fa-circle-o"></i> Cards</a></li>
<li><a class="treeview-item" href="widgets.html"><i class="icon fa fa-circle-o"></i> Widgets</a></li>
</ul>
</li>
</aside>
<main class="app-content">
<div class="app-title">
<div>
<h1><i class="fa fa-edit"></i> Registro Reteste</h1>
<p></p>
</div>
<ul class="app-breadcrumb breadcrumb">
<li class="breadcrumb-item"><i class="fa fa-home fa-lg"></i></li>
<li class="breadcrumb-item">Forms</li>
<li class="breadcrumb-item"><a href="#">Form Components</a></li>
</ul>
</div>
<div class="row">
<div class="col-md-12">
<div class="tile">
<div class="row">
<div class="col-lg-6">
<form method="post" enctype="multipart/form-data" action="enviar_baixa.php">
<input class="form-control" id="exampleInputEmail1" readonly name="protocolo" value="<?php echo $protocolo;?>" type="hidden" aria-describedby="emailHelp" >
<div class="form-group">
<label for="exampleInputEmail1">ccto</label>
<input class="form-control" id="exampleInputEmail1" readonly name="ccto" value="<?php echo $ccto;?>" type="text" aria-describedby="emailHelp" >
</div>
<div class="form-group">
<label for="exampleInputEmail1">Cliente</label>
<input class="form-control" readonly id="exampleInputEmail1" name="cliente" value="<?php echo $cliente;?>" type="text" aria-describedby="emailHelp" >
</div>
<div class="form-group">
<label for="exampleInputEmail1">Técnico</label>
<input class="form-control" readonly id="exampleInputEmail1" name="tecnico" value="<?php echo $nome_tec;?>" type="text" aria-describedby="emailHelp" >
</div>
<div class="form-group">
<label for="exampleInputEmail1">Ga</label>
<input class="form-control" readonly id="exampleInputEmail1" name="ga" value="<?php echo $nome_ga;?>" type="text" aria-describedby="emailHelp" >
</div>
<div class="form-group">
<label for="exampleInputEmail1">Data de cadastro</label>
<input class="form-control" readonly id="exampleInputEmail1" name="data_rep" value="<?php echo $data_rep;?>" type="text" aria-describedby="emailHelp" >
</div>
<div class="form-group">
<label for="exampleInputEmail1">Área ofensora</label>
<input class="form-control" readonly value="<?php echo $area;?>"maxlength="45" id="exampleInputEmail1" type="text" name="contato" aria-describedby="emailHelp" >
</div>
<div class="form-group">
<label for="exampleTextarea">Observação</label>
<textarea class="form-control" readonly maxlength="2000" id="exampleTextarea" name="desc" rows="6"><?php echo $obs_unidade;?></textarea>
</div>
<div class="form-group">
<label for="exampleInputEmail1">Contato</label>
<input class="form-control" maxlength="45" id="exampleInputEmail1" type="text" name="contato" aria-describedby="emailHelp" >
</div>
<div class="form-group">
<label for="exampleTextarea">Descrição do reteste</label>
<textarea class="form-control" maxlength="500" id="exampleTextarea" name="desc" rows="3"></textarea>
</div>
</div>
</div>
</div>
<div class="tile-footer">
<button class="btn btn-primary" type="submit">Enviar</button>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</main>
<!-- Essential javascripts for application to work-->
<script src="js/popper.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/main.js"></script>
<!-- The javascript plugin to display page loading on top-->
<script src="js/plugins/pace.min.js"></script>
<!-- Page specific javascripts-->
<!-- Google analytics script-->
<script type="text/javascript">
if(document.location.hostname == 'pratikborsadiya.in') {