-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinicio.php
778 lines (592 loc) · 53.8 KB
/
inicio.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
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
<?php
require_once("conexion.php");
session_start();
?>
<!DOCTYPE html>
<html lang="en">
<head>
<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">
<link rel="stylesheet" href="font.css">
<link rel="stylesheet" href="main.css">
<!-- 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>KModa - Inicio</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">
<!-- Navbar-->
<header class="app-header"><a class="app-header__logo" href="inicio.php">KModa</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">
<!-- INICIO Menu Usuario-->
<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">
</ul>
</li>
</ul>
</header>
<!-- FIN Menu Usuario-->
<!-- INICIO 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" img src="logo.png" alt="User Image">
<div>
<p class="app-sidebar__user-name">
<p>
<?php echo $_SESSION['nombre'].' '.$_SESSION['apellidos']; ?>
</p>
<p class="app-sidebar__user-designation">Propietaria</p>
</div>
</div>
<!-- Inicio -->
<ul class="app-menu">
<li><a class="app-menu__item active" href="inicio.php"><i class="app-menu__icon fa fa-dashboard"></i><span class="app-menu__label">Inicio</span></a></li>
<!-- Productos -->
<li class="treeview"><a class="app-menu__item" href="#" data-toggle="treeview"><i class="app-menu__icon fa fa-shopping-cart"></i><span class="app-menu__label">Productos</span><i class="treeview-indicator fa fa-angle-right"></i></a>
<ul class="treeview-menu">
<li><a class="treeview-item" href="productos.php"><i class="icon fa fa-circle-o"></i> Listar Productos</a></li>
<li><a class="treeview-item" href="productosbaja.php" rel="noopener"><i class="icon fa fa-circle-o"></i> Dados de Baja</a></li>
</ul>
</li>
<!-- Compras -->
<li class="treeview"><a class="app-menu__item" href="#" data-toggle="treeview"><i class="app-menu__icon fa fa-usd"></i><span class="app-menu__label">Cotizar Compras</span><i class="treeview-indicator fa fa-angle-right"></i></a>
<ul class="treeview-menu">
<li><a class="treeview-item" href="compras.php" rel="noopener"><i class="icon fa fa-circle-o"></i> Comprar </a></li>
<li><a class="treeview-item" href="capital.php"><i class="icon fa fa-circle-o"></i> Capital </a></li>
</ul>
</li>
<!-- Clientes -->
<li class="treeview"><a class="app-menu__item" href="#" data-toggle="treeview"><i class="app-menu__icon fa fa-user-circle"></i><span class="app-menu__label">Clientes</span><i class="treeview-indicator fa fa-angle-right"></i></a>
<ul class="treeview-menu">
<li><a class="treeview-item" href="clientes.php"><i class="icon fa fa-user-circle"></i> Lista de Clientes</a></li>
</ul>
</li>
<!-- Categorias -->
<li class="treeview"><a class="app-menu__item" href="#" data-toggle="treeview"><i class="app-menu__icon fa fa-th-list"></i><span class="app-menu__label">Categorias</span><i class="treeview-indicator fa fa-angle-right"></i></a>
<ul class="treeview-menu">
<li><a class="treeview-item" href="categorias.php"><i class="icon fa fa-folder-o"></i> Lista de Categorias</a></li>
<li><a class="treeview-item" href="categoriasbaja.php"><i class="icon fa fa-circle-o"></i> Dados de Baja</a></li>
</ul>
</li>
<!-- Proveedores -->
<li class="treeview"><a class="app-menu__item" href="#" data-toggle="treeview"><i class="app-menu__icon fa fa-address-book-o"></i><span class="app-menu__label">Proveedores</span><i class="treeview-indicator fa fa-angle-right"></i></a>
<ul class="treeview-menu">
<li><a class="treeview-item" href="proveedores.php"><i class="icon fa fa-circle-o"></i> Lista de Proveedores</a></li>
<li><a class="treeview-item" href="proveedoresbaja.php"><i class="icon fa fa-circle-o"></i> Dados de Baja</a></li>
</ul>
</li>
<!-- Transacciones -->
<li class="treeview"><a class="app-menu__item" href="#" data-toggle="treeview"><i class="app-menu__icon fa fa-file-text"></i><span class="app-menu__label">Transaccion</span><i class="treeview-indicator fa fa-angle-right"></i></a>
<ul class="treeview-menu">
<li><a class="treeview-item" href="pedidos.php"><i class="icon fa fa-circle-o"></i> Pedidos</a></li>
<li><a class="treeview-item" href="boleta.php"><i class="icon fa fa-circle-o"></i> Boletas </a></li>
</ul>
</li>
<li><a class="app-menu__item" href="principal.php"> <i class=" fa fa-sign-out fa-lg"> </i> <span class="app-menu__label"> Cerrar Sesión </span></i></a>
</ul>
</aside>
<!-- FIN Menu-->
<!-- INICIO Contenido Pagina-->
<main class="app-content">
<div class="app-title">
<div>
<h3><i class="fa fa-dashboard"></i> Bienvenido al Sistema Web </h3>
<h4><p> KModa</p></h4>
</div>
<ul class="app-breadcrumb breadcrumb">
<li class="breadcrumb-item"><i class="fa fa-home fa-lg"></i></li>
<li class="breadcrumb-item"><a>Inicio</a></li>
</ul>
</div>
<div class="social-bar">
<a href="https://www.facebook.com/KModasYAccesorios/?modal=admin_todo_tour" class="icon icon-facebook" target="_blank"></a>
<!--
<a href="" class="icon icon-twitter" target="_blank"></a>
<a href="" class="icon icon-youtube" target="_blank"></a>
-->
<a href="" class="icon icon-instagram" target="_blank"></a>
</div>
</div>
<?php
$sqlcount="SELECT count(*) cant FROM cliente";
$resultcount = $cnx->query($sqlcount) or die ("error");
$regc=$resultcount->fetchObject()
?>
<div class="row">
<div class="col-md-6 col-lg-3">
<a href="clientes.php" > <div class="widget-small warning coloured-icon"><i class="icon fa fa-user fa-3x"></i></a>
<div class="info">
<h4>Clientes</h4>
<p><?php echo $regc->cant ?></p>
</div>
</div>
</div>
<?php
$sqlcount="SELECT count(*) cant FROM producto where estado=1";
$resultcount = $cnx->query($sqlcount) or die ("error");
$regc=$resultcount->fetchObject()
?>
<div class="col-md-6 col-lg-3">
<a href="productos.php" > <div class="widget-small info coloured-icon"><i class="icon fa fa-cart-plus fa-3x"></i></a>
<div class="info">
<h4> Productos</h4>
<p><?php echo $regc->cant ?></p>
</div>
</div>
</div>
<?php
$sqlcount="SELECT count(*) cant FROM proveedor where estado=1";
$resultcount = $cnx->query($sqlcount) or die ("error");
$regc=$resultcount->fetchObject()
?>
<div class="col-md-6 col-lg-3">
<a href="proveedores.php" ><div class="widget-small primary coloured-icon"><i class="icon fa fa fa-users fa-3x"></i></a>
<div class="info">
<h4> Proveedores</h4>
<p><?php echo $regc->cant ?></p>
</div>
</div>
</div>
<?php
$sqlcount="SELECT count(*) cant FROM pedido pe
inner join estado_venta ven on pe.id_estado_venta = ven.id_estado_venta
where ven.id_estado_venta=1";
$resultcount = $cnx->query($sqlcount) or die ("error");
$regc=$resultcount->fetchObject()
?>
<div class="col-md-6 col-lg-3">
<a href="pedidos.php" ><div class="widget-small info coloured-icon"><i class="icon fa fa fa-edit fa-3x"></i></a>
<div class="info">
<h4>Pedidos</h4>
<p><?php echo $regc->cant ?></p>
</div>
</div>
</div>
<div class="col-md-12">
<div class="tile">
<h3 class="tile-title">Pedidos Pagados por Entregar</h3>
<?php
$sqlcount="SELECT count(*) cant FROM pedido WHERE id_estado_pedido=1 and id_estado_pago=2 and id_estado_venta=1";
$resultcount = $cnx->query($sqlcount) or die ("error");
$regc=$resultcount->fetchObject()
?>
<label>Cantidad de registros: <span><?php echo "$regc->cant"; ?></label>
<table class="table table-hover table-bordered" id="sampleTable">
<thead>
<tr>
<th style="text-align: center">N° Pedido</th>
<th style="text-align: center">Fecha de Compra</th>
<th style="text-align: center">Producto</th>
<th style="text-align: center">Cliente</th>
<th style="text-align: center">Estado de Pago</th>
<th style="text-align: center">Estado de Pedido</th>
<th style="text-align: center">Acciones</th>
</tr>
</thead>
<tbody style="cursor:pointer">
<!-- INICIO ENLAZAR TABLAS PARA CAMBIAR EL CODIGO POR NOMBRE DE PROVEEDOR Y CATEGORIA -->
<?php
$sql="SELECT pe.id_pedido , p.nombre_producto , c.nombres, pe.fecha, pa.nombre_pago, e.nombre, pe.cantidad_pago
from pedido pe
inner join producto p on pe.id_producto = p.id_producto
inner join cliente c on pe.id_cliente = c.id_cliente
inner join estado_pago pa on pe.id_estado_pago = pa.id_estado_pago
inner join estado_pedido e on pe.id_estado_pedido = e.id_estado_pedido
inner join estado_venta ven on pe.id_estado_venta = ven.id_estado_venta
WHERE e.id_estado_pedido=1 and pa.id_estado_pago=2 and ven.id_estado_venta = 1
order by pe.fecha desc";
$result = $cnx->query($sql) or die("error");
while($reg=$result->fetchObject()){
echo "<tr>
<td align=center>$reg->id_pedido</td>
<td align=center >$reg->fecha</td>
<td>$reg->nombre_producto</td>
<td align=center >$reg->nombres</td>
<td align=center>$reg->nombre_pago</td>
<td align=center>$reg->nombre</td>
<td align=center >
<a onclick='entregado($reg->id_pedido)' data-toggle='modal' data-target='#myModal1'><button class=' btn btn-success'><i class='fa fa-check-square-o'></i>Entregar</button></a>
<!-- <a onclick='verDetalle($reg->id_pedido)' data-toggle='modal' data-target='#myModal2'><button type='button' class = 'btn btn-info'><i class='fa fa-search'></i>Ver</button></a>
-->
<a onclick='anular($reg->id_pedido)' data-toggle='modal' data-target='#myModal3'><button type='button' class = 'btn btn-danger'><i class='fa fa-close'></i>Anular</button></a>
</tr>";
}?>
</tbody>
<!-- FIN ENLAZAR TABLAS PARA CAMBIAR EL CODIGO POR NOMBRE DE PROVEEDOR Y CATEGORIA -->
</table>
<!-- INICIO MODAL VER-->
<form action="entregado.php" method="post">
<div class="modal fade" id="myModal1" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title">Confirmación de Entrega</h4>
<button class="close" type="button" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<div class="panel-body">
<div class="row">
<div class="col-lg-8">
</div>
</div>
</div>
</div>
<div class="modal-body">
<form role="form">
<div style="width: 120px" class="form-group">
<input name="ped" id="ped" class="form-control" readonly hidden
>
</div>
<div class="form-row">
<div class="col" class="form-group">
<label>El Producto</label>
<!-- Para cambiar tamañao de combo box se usa en el div: style="width: 120px" -->
<select style="width: 210px" name="pro" id="pro" class="form-control" disabled>
<?php
$sql="SELECT * FROM producto";
$result = $cnx->query($sql) or die("error");
?>
<?php foreach ($result as $opciones): ?>
<option value="<?php echo $opciones['id_producto']?>"> <?php echo $opciones['nombre_producto']?></option>
<?php endforeach
?>
</select>
</div>
<div class= "col" class="form-group">
<label for="exampleInputPassword1">Unidades:</label>
<input name="cantidad" id="cantidad" class="form-control" id="exampleInputPassword1" type="number" min='1'
value="1"
readonly
required>
</div>
</div>
<br/>
<div class="form-row">
<div class= "col" class="form-group">
<label for="exampleInputPassword1">Costo Total (S/.):</label>
<input name="total" id="total" class="form-control" id="exampleInputPassword1" type="number" min='1'
value="1"
readonly
required>
</div>
<div class="col" class="form-group">
<label>Se le entregó a: </label>
<select name="cli" id="cli" style="width: 300px" class="form-control" disabled>
<?php
$sql="SELECT * FROM cliente";
$result = $cnx->query($sql) or die("error");
?>
<?php foreach ($result as $opciones): ?>
<option value="<?php echo $opciones['id_cliente']?>"> <?php echo $opciones['nombres']?></option>
<?php endforeach
?>
</select>
</div>
</div>
<br/>
</form>
</div>
<div class="modal-footer">
<h6> El pedido está listo para entregar? </h6>
<button type="submit" class="btn btn-success">Si, Entregar</button>
<button type="button" class="btn btn-danger" data-dismiss="modal">Cancelar</button>
</div>
</div>
</div>
</div>
</form>
<!-- FIN MODAL VER -->
<!--------------------------------------------------------------------------------------------------------------------------------------------------->
<!-- INICIO MODAL ANULAR PEDIDO-->
<form action="anularpedido.php" method="post">
<div class="modal fade" id="myModal3" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered"> <!-- para modal mas ancho es modal-lg y para modal mas estrecho es modal-sm, dentro del class modal dialog-->
<div class="modal-content">
<div class="modal-header">
<p><h3 class="modal-title"> Anular Pedido</h3></p>
<button class="close" type="button" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<div class="panel-body">
<div class="row">
<div class="col-lg-8">
</div>
<!-- /.col-lg-6 (nested) -->
<!-- /.col-lg-6 (nested) -->
</div>
<!-- /.row (nested) -->
</div>
</div>
<div class="modal-body">
<form role="form">
<div class="form-row">
<div class="col" class="form-group">
<label>N° Pedido</label>
<input style="width: 150px" type= "text" name="numped" id="numped" class="form-control" readonly >
</div>
<div class="col" class="form-group">
<label for="exampleInputPassword1">Con fecha del:</label>
<input name="fechapedid" id="fechapedid" class="form-control" id="exampleInputPassword1" disabled
value="<?php echo $reg->fecha?>" >
</div>
</div>
<br/>
<div class="form-row">
<div class="col" class="form-group">
<label>Para el Producto: </label>
<select style="width: 300px" name="products" id="products" class="form-control" readonly>
<?php
$sql="SELECT * FROM producto";
$result = $cnx->query($sql) or die("error");
?>
<?php foreach ($result as $opciones): ?>
<option value="<?php echo $opciones['id_producto']?>"> <?php echo $opciones['nombre_producto']?></option>
<?php endforeach ?>
</select>
</div>
<div class= "col" class="form-group">
<label for="exampleInputPassword1">N° de Prendas:</label>
<input style="width: 110px" name="numpre" id="numpre" class="form-control" id="exampleInputPassword1" type="number" min='1' readonly
>
</div>
</div>
<br/>
<div class="form-group">
<label><h5> Cuál es el motivo por el cual desea anular el pedido? </h5> </label>
<input name="mot" id="mot" class="form-control" type="text"
required>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-danger" data-dismiss="modal">Cancelar</button>
<button type="submit" class="btn btn-success">Anular Pedido</button>
</div>
</div>
</div>
</div>
</form>
<!-- FIN MODAL ANULAR PEDIDO -->
<!--------------------------------------------------------------------------------------------------------------------------------------------------->
<!-- INICIO MODAL DETALLE PEDIDO-->
<form action="pago.php" method="post">
<div class="modal fade" id="myModal2" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered"> <!-- para modal mas ancho es modal-lg y para modal mas estrecho es modal-sm, dentro del class modal dialog-->
<div class="modal-content">
<div class="modal-header">
<p><h3 class="modal-title">Detalle de Pedido</h3></p>
<button class="close" type="button" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<div class="panel-body">
<div class="row">
<div class="col-lg-8">
</div>
<!-- /.col-lg-6 (nested) -->
<!-- /.col-lg-6 (nested) -->
</div>
<!-- /.row (nested) -->
</div>
</div>
<div class="modal-body">
<form role="form">
<div class="form-row">
<div class="col" class="form-group">
<label>N° Pedido</label>
<input style="width: 150px" type= "text" name="idped" id="idped" class="form-control" readonly >
</div>
<div class="col" class="form-group">
<label for="exampleInputPassword1">Con fecha del:</label>
<input name="dateped" id="dateped" class="form-control" id="exampleInputPassword1" disabled
value="<?php echo $reg->fecha?>" >
</div>
</div>
<br/>
<div class="form-group">
<label>Producto: </label>
<select name="nomproduct" id="nomproduct" class="form-control" disabled>
<?php
$sql="SELECT * FROM producto";
$result = $cnx->query($sql) or die("error");
?>
<?php foreach ($result as $opciones): ?>
<option value="<?php echo $opciones['id_producto']?>"> <?php echo $opciones['nombre_producto']?></option>
<?php endforeach ?>
</select>
</div>
<div class="form-row">
<div class= "col" class="form-group">
<label>Color</label>
<SELECT name="colors" id="colors" class="form-control" disabled>
<?php
$sql="SELECT * FROM producto";
$result = $cnx->query($sql) or die("error");
?>
<?php foreach ($result as $opciones): ?>
<option value="<?php echo $opciones['id_producto']?>"> <?php echo $opciones['color']?></option>
<?php endforeach ?>
</select>
</div>
<div class= "col" class="form-group">
<label>Talla</label>
<SELECT name="talas" id="talas" class="form-control" disabled>
<?php
$sql="SELECT * FROM producto";
$result = $cnx->query($sql) or die("error");
?>
<?php foreach ($result as $opciones): ?>
<option value="<?php echo $opciones['id_producto']?>"> <?php echo $opciones['talla']?></option>
<?php endforeach ?>
</select>
</div>
</div>
<br/>
<div class="form-row">
<div class= "col" class="form-group">
<label for="exampleInputPassword1">Precio Unidad (S/.):</label>
<select name="pagpro" id="pagpro" class="form-control" disabled >
<?php
$sql="SELECT * FROM producto";
$result = $cnx->query($sql) or die("error");
?>
<?php foreach ($result as $opciones): ?>
<option value="<?php echo $opciones['id_producto']?>"> <?php echo $opciones['precio']?></option>
<?php endforeach ?>
</select>
</div>
<div class= "col" class="form-group">
<label for="exampleInputPassword1">N° de Prendas:</label>
<input name="numpr" id="numpr" class="form-control" id="exampleInputPassword1" type="number" min='1'readonly
required>
</div>
<div class= "col" class="form-group">
<label for="exampleInputPassword1">Total a Pagar(S/.):</label>
<input name="totpag" id="totpag" class="form-control" id="exampleInputPassword1" type="number" min='1'readonly
value="0.00"
required>
</div>
</div>
<br/>
<div class="form-row">
<div class= "col" class="form-group">
<label for="exampleInputPassword1">A Cuenta:</label>
<input style="width: 120px" name="cantidpagos" id="cantidpagos" class="form-control" id="exampleInputPassword1" type="number" min='1'
step="0.5"
readonly
required>
</div>
<div class="col" class="form-group">
<label>Modalidad de Pago</label>
<select style="width: 185px" name="modpag" id="modpag" class="form-control" >
<?php
$sql="SELECT * FROM estado_pago";
$result = $cnx->query($sql) or die("error");
?>
<?php foreach ($result as $opciones): ?>
<option value="<?php echo $opciones['id_estado_pago']?>"> <?php echo $opciones['nombre_pago']?></option>
<?php endforeach ?>
</select>
</div>
<div class="col" class="form-group">
<label>Estado de Pedido</label>
<select style="width: 140px" name="estped" id="estped" class="form-control" disabled >
<?php
$sql="SELECT * FROM estado_pedido";
$result = $cnx->query($sql) or die("error");
?>
<?php foreach ($result as $opciones): ?>
<option value="<?php echo $opciones['id_estado_pedido']?>"> <?php echo $opciones['nombre']?></option>
<?php endforeach ?>
</select>
</div>
</div>
<br/>
<div class="form-row">
<div class="col" class="form-group">
<label>Le Atendió</label>
<select style="width: 185px" name="datusu" id="datusu" class="form-control" disabled>
<?php
$sql="SELECT * FROM usuario";
$result = $cnx->query($sql) or die("error");
?>
<?php foreach ($result as $opciones): ?>
<option value="<?php echo $opciones['id_usuario']?>"> <?php echo $opciones['nombre_usuario']. ' ' . $opciones['apellidos'] ?></option>
<?php endforeach ?>
</select>
</div>
<div class= "col" class="form-row">
<div class="col" class="form-group">
<label>Cliente</label>
<select name="datcli" id="datcli" style="width: 240px" disabled class="form-control" >
<?php
$sql="SELECT * FROM cliente";
$result = $cnx->query($sql) or die("error");
?>
<?php foreach ($result as $opciones): ?>
<option value="<?php echo $opciones['id_cliente']?>"> <?php echo $opciones['nombres']?></option>
<?php endforeach
?>
</select>
</div>
</div>
</div>
<br/>
<div class="form-group">
<label>Comentario (Opcional) </label>
<textarea name="coment" id="coment" class="form-control" type="text" readonly ></textarea>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-danger" data-dismiss="modal">Cerrar</button>
<button type="submit" class="btn btn-success">Grabar</button>
</div>
</form>
<!-- FIN MODAL DETALLE PEDIDO -->
</div>
<!--------------------------------------------------
</div>
</div>
<!--
<div>
<img align="right" src="img/ok.png">
</div>
-->
<!-- FIN Contenido Pagina-->
<!-- Essential javascripts for application to work-->
<script src="js/jquery-3.3.1.min.js"></script>
<script src="js/popper.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/main.js"></script>
<script src="proveedor.js"></script>
<script src="pedido.js"></script>
<script src="jqueryPedidos.js"></script>
<script src="pedido.js" type="text/javascript"></script>
<!-- The javascript plugin to display page loading on top-->
<script src="js/plugins/pace.min.js"></script>
<!-- Page specific javascripts-->
<!-- Data table plugin-->
<script type="text/javascript" src="js/plugins/jquery.dataTables.min.js"></script>
<script type="text/javascript" src="js/plugins/dataTables.bootstrap.min.js"></script>
<script type="text/javascript">$('#sampleTable').DataTable();</script>
<script src="proveedor.js" type="text/javascript"></script>
<!-- Google analytics script-->
<script type="text/javascript">
if(document.location.hostname == 'pratikborsadiya.in') {
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-72504830-1', 'auto');
ga('send', 'pageview');
}
</script>
</body>
</html>