3
/* ------------------------------------------------------------------------------
4
* Copyright (C) 2005-2008 Pablo Capeluto
5
* Correo: pcapeluto@gmail.com
6
* MSN: pcapeluto@hotmail.com
7
* WEB: http://cdsphp.sourceforge.net
10
* Este programa es software libre: usted puede redistribuirlo y/o modificarlo
11
* bajo los términos de la Licencia Pública General GNU publicada
12
* por la Fundación para el Software Libre, ya sea la versión 3
13
* de la Licencia, o (a su elección) cualquier versión posterior.
14
* ------------------------------------------------------------------------------
18
$GLOBALS['egw_info'] = array(
22
'currentapp' => 'CDS-PhP',
23
'enable_network_class' => False,
24
'enable_contacts_class' => True,
25
'enable_nextmatchs_class' => False
28
include('../header.inc.php');
31
//Selecciono el tema que va a cargar el jscalendar a la hora de mostrar la fecha
33
<link rel=\"stylesheet\" type=\"text/css\" media=\"all\" href=\"jscalendar/calendar-blue.css\" title=\"win2k-cold-1\" />
35
<script type=\"text/javascript\" src=\"gears_init.js\"></script>
36
<script type=\"text/javascript\" src=\"sample.js\"></script>-->
40
// Comienza mi modificación
42
//$GLOBALS['egw']->common->display_fullname();
43
$var['user_info'] = '<b>'.$GLOBALS['egw']->common->display_fullname() .'</b>'. ' - ';
45
//echo $var['user_info'];
46
$lid = $GLOBALS['egw_info']['user']['account_lid'];
49
$idioma=$_GET['idioma'];
50
$_SESSION['pais'] = $idioma;
56
include ('templates/default/formularios.php');
57
include ('templates/default/formulariosRMA.php');
58
include ("templates/default/menu-$idioma.php");
59
include ('conex.php');
61
//$linkEGW=ConectarseEGW();
65
$service=$_GET['service'];
66
$id=$_SERVER['HTTP_USER_AGENT'];
68
echo "<div align=\"center\">$id</div>";
70
function inicio($link,$accion,$idioma,$service){
73
<table style=\"text-align: left; width: 100%;\" border=\"0\">
74
<tr><td style=\"vertical-align: top;width: 150px;\">";
78
<td style=\"vertical-align: top;\">";
79
foreach($_GET as $indice => $valor){
80
eval("\$" . $indice . " = \"" . $valor . "\";");
82
estadoService($link,$idioma="uy");}
84
switch ($accion) { //Comienza el Case para seleccionar las acciones
88
<table style=\"text-align: left; width: 100%;\" border=\"0\">
89
<tr><td style=\"vertical-align: top;width: 150px;\">";
93
<td style=\"vertical-align: top;\">";
94
foreach($_GET as $indice => $valor){
95
eval("\$" . $indice . " = \"" . $valor . "\";");
97
ingresoService($cliente,$direccion,$telefono,$inventario,$link);
100
case modificarService:
101
if ($service != "vacio"){
103
<table style=\"text-align: left; width: 100%;\" border=\"0\">
104
<tr><td style=\"vertical-align: top;width: 150px;\">";
108
<td style=\"vertical-align: top;\">";
109
foreach($_GET as $indice => $valor){
110
eval("\$" . $indice . " = \"" . $valor . "\";");
112
modificarService($link);}
114
if ($service == "vacio"){
116
<table style=\"text-align: left; width: 100%;\" border=\"0\">
117
<tr><td style=\"vertical-align: top;width: 150px;\">";
121
<td style=\"vertical-align: top;\">";
122
foreach($_GET as $indice => $valor){
123
eval("\$" . $indice . " = \"" . $valor . "\";");
125
buscarService($link);}
131
<table style=\"text-align: left; width: 100%;\" border=\"0\">
132
<tr><td style=\"vertical-align: top;width: 150px;\">";
136
<td style=\"vertical-align: top;\">";
137
foreach($_GET as $indice => $valor){
138
eval("\$" . $indice . " = \"" . $valor . "\";");
140
buscarService($link);
144
case listadoClientes:
146
<table style=\"text-align: left; width: 100%;\" border=\"0\">
147
<tr><td style=\"vertical-align: top;width: 150px;\">";
151
<td style=\"vertical-align: top;\">";
152
foreach($_GET as $indice => $valor){
153
eval("\$" . $indice . " = \"" . $valor . "\";");
155
listadoClientes($link);
161
<table style=\"text-align: left; width: 100%;\" border=\"0\">
162
<tr><td style=\"vertical-align: top;width: 150px;\">";
166
<td style=\"vertical-align: top;\">";
167
foreach($_GET as $indice => $valor){
168
eval("\$" . $indice . " = \"" . $valor . "\";");
170
estadoService($link);
176
include ('templates/default/etiquetas.php');
178
<table style=\"text-align: left; width: 100%;\" border=\"0\">
179
<tr><td style=\"vertical-align: top;width: 150px;\">";
183
<td style=\"vertical-align: top;\">";
184
foreach($_GET as $indice => $valor){
185
eval("\$" . $indice . " = \"" . $valor . "\";");
187
pestanas($cliente,$link);
194
<table style=\"text-align: left; width: 100%;\" border=\"0\">
195
<tr><td style=\"vertical-align: top;width: 150px;\">";
199
<td style=\"vertical-align: top;\">";
200
foreach($_GET as $indice => $valor){
201
eval("\$" . $indice . " = \"" . $valor . "\";");
208
<table style=\"text-align: left; width: 100%;\" border=\"0\">
209
<tr><td style=\"vertical-align: top;width: 150px;\">";
213
<td style=\"vertical-align: top;\">";
214
foreach($_GET as $indice => $valor){
215
eval("\$" . $indice . " = \"" . $valor . "\";");
223
<table style=\"text-align: left; width: 100%;\" border=\"0\">
224
<tr><td style=\"vertical-align: top;width: 150px;\">";
228
<td style=\"vertical-align: top;\">";
229
foreach($_GET as $indice => $valor){
230
eval("\$" . $indice . " = \"" . $valor . "\";");
237
<table style=\"text-align: left; width: 100%;\" border=\"0\">
238
<tr><td style=\"vertical-align: top;width: 150px;\">";
242
<td style=\"vertical-align: top;\">";
243
foreach($_GET as $indice => $valor){
244
eval("\$" . $indice . " = \"" . $valor . "\";");
246
modificarRMA($ID,$link);
250
case informacionCliente:
251
include ('templates/default/formulariosClientes.php');
253
<table style=\"text-align: left; width: 100%;\" border=\"0\">
254
<tr><td style=\"vertical-align: top;width: 150px;\">";
258
<td style=\"vertical-align: top;\">";
259
foreach($_GET as $indice => $valor){
260
eval("\$" . $indice . " = \"" . $valor . "\";");
262
informacionCliente($cliente,$link);
266
include ('templates/default/formulariosClientes.php');
268
<table style=\"text-align: left; width: 100%;\" border=\"0\">
269
<tr><td style=\"vertical-align: top;width: 150px;\">";
273
<td style=\"vertical-align: top;\">";
274
foreach($_GET as $indice => $valor){
275
eval("\$" . $indice . " = \"" . $valor . "\";");
277
buscarCliente($cliente,$link);
281
include ('templates/default/celulares.php');
283
<table style=\"text-align: left; width: 100%;\" border=\"0\">
284
<tr><td style=\"vertical-align: top;width: 150px;\">";
288
<td style=\"vertical-align: top;\">";
289
foreach($_GET as $indice => $valor){
290
eval("\$" . $indice . " = \"" . $valor . "\";");
296
include ('templates/default/correoClientes.php');
298
<table style=\"text-align: left; width: 100%;\" border=\"0\">
299
<tr><td style=\"vertical-align: top;width: 150px;\">";
303
<td style=\"vertical-align: top;\">";
304
foreach($_GET as $indice => $valor){
305
eval("\$" . $indice . " = \"" . $valor . "\";");
307
correoClientes($link);
311
//include ('templates/default/formulariosFacturacion.php');
313
<table style=\"text-align: left; width: 100%;\" border=\"0\">
314
<tr><td style=\"vertical-align: top;width: 150px;\">";
318
<td style=\"vertical-align: top;\">";
319
foreach($_GET as $indice => $valor){
320
eval("\$" . $indice . " = \"" . $valor . "\";");
323
<input type=\"button\" onclick=\"abrir('templates/default/formulariosFacturacion.php',0,0,0,0,0,0,0,800,600,100,100,0);\" value=\"Calculadora\">";
324
//crearFactura($link);
329
include ('templates/default/formulariosFacturacion.php');
331
<table style=\"text-align: left; width: 100%;\" border=\"0\">
332
<tr><td style=\"vertical-align: top;width: 150px;\">";
336
<td style=\"vertical-align: top;\">";
337
foreach($_GET as $indice => $valor){
338
eval("\$" . $indice . " = \"" . $valor . "\";");
340
estadoDeCuenta($link,$ID);
343
case listadoAbonados:
344
include ('templates/default/formulariosFacturacion.php');
346
<table style=\"text-align: left; width: 100%;\" border=\"0\">
347
<tr><td style=\"vertical-align: top;width: 150px;\">";
351
<td style=\"vertical-align: top;\">";
352
foreach($_GET as $indice => $valor){
353
eval("\$" . $indice . " = \"" . $valor . "\";");
355
listadoAbonados($link,$ID);
358
case listadoFacturasPendientes:
359
include ('templates/default/formulariosFacturacion.php');
361
<table style=\"text-align: left; width: 100%;\" border=\"0\">
362
<tr><td style=\"vertical-align: top;width: 150px;\">";
366
<td style=\"vertical-align: top;\">";
367
foreach($_GET as $indice => $valor){
368
eval("\$" . $indice . " = \"" . $valor . "\";");
370
listadoFacturasPendientes($link,$ID);
373
case listadoCuentasCobrar:
374
include ('templates/default/formulariosFacturacion.php');
376
<table style=\"text-align: left; width: 100%;\" border=\"0\">
377
<tr><td style=\"vertical-align: top;width: 150px;\">";
381
<td style=\"vertical-align: top;\">";
382
foreach($_GET as $indice => $valor){
383
eval("\$" . $indice . " = \"" . $valor . "\";");
385
listadoCuentasCobrar($link,$ID);
388
case facturacionNuevoServicio:
389
include ('templates/default/formulariosFacturacion.php');
391
<table style=\"text-align: left; width: 100%;\" border=\"0\">
392
<tr><td style=\"vertical-align: top;width: 150px;\">";
396
<td style=\"vertical-align: top;\">";
397
foreach($_GET as $indice => $valor){
398
eval("\$" . $indice . " = \"" . $valor . "\";");
400
facturacionNuevoServicio($link,$ID,$codigo,$codigobarras,$descripcion,$precioProveedor,$precioPublico,$precioUnitario);
405
//include ('templates/default/formularios.php');
407
<table style=\"text-align: left; width: 100%;\" border=\"0\">
408
<tr><td style=\"vertical-align: top;width: 150px;\">";
412
<td style=\"vertical-align: top;\">";
417
//include ('templates/default/formularios.php');
419
<table style=\"text-align: left; width: 100%;\" border=\"0\">
420
<tr><td style=\"vertical-align: top;width: 150px;\">";
424
<td style=\"vertical-align: top;\">";
431
<table style=\"text-align: left; width: 100%;\" border=\"0\">
432
<tr><td style=\"vertical-align: top;width: 150px;\">";
436
<td style=\"vertical-align: top;\">";
438
<IFRAME src=\"http://es.wikipedia.org/\" width=\"100%\" height=\"1200\"
439
scrolling=\"auto\" frameborder=\"0\">
443
case ingresarCliente:
444
include ('templates/default/listadoeIngresoClientes.php');
446
<table style=\"text-align: left; width: 100%;\" border=\"0\">
447
<tr><td style=\"vertical-align: top;width: 150px;\">";
451
<td style=\"vertical-align: top;\">";
452
foreach($_GET as $indice => $valor){
453
eval("\$" . $indice . " = \"" . $valor . "\";");
455
ingresarCliente($link,$ID);
458
case ventasEquipoNuevo:
459
include ('templates/default/formulariosArmados.php');
461
<table style=\"text-align: left; width: 100%;\" border=\"0\">
462
<tr><td style=\"vertical-align: top;width: 150px;\">";
466
<td style=\"vertical-align: top;\">";
467
foreach($_GET as $indice => $valor){
468
eval("\$" . $indice . " = \"" . $valor . "\";");
470
ingresarArmado($link);
473
case ingresarProducto:
474
include ('templates/default/formularioProductos.php');
476
<table style=\"text-align: left; width: 100%;\" border=\"0\">
477
<tr><td style=\"vertical-align: top;width: 150px;\">";
481
<td style=\"vertical-align: top;\">";
482
foreach($_GET as $indice => $valor){
483
eval("\$" . $indice . " = \"" . $valor . "\";");
485
ingresarProducto($link);
488
case listadoProductos:
489
include ('templates/default/formularioProductos.php');
491
<table style=\"text-align: left; width: 100%;\" border=\"0\">
492
<tr><td style=\"vertical-align: top;width: 150px;\">";
496
<td style=\"vertical-align: top;\">";
497
foreach($_GET as $indice => $valor){
498
eval("\$" . $indice . " = \"" . $valor . "\";");
500
listadoProductos($link);
503
case listadoCuentasCorrientes:
504
include ('templates/default/formularioCuentasCorrientes.php');
506
<table style=\"text-align: left; width: 100%;\" border=\"0\">
507
<tr><td style=\"vertical-align: top;width: 150px;\">";
511
<td style=\"vertical-align: top;\">";
512
foreach($_GET as $indice => $valor){
513
eval("\$" . $indice . " = \"" . $valor . "\";");
515
listadoCuentasCorrientes($link);
519
include ('templates/default/formularioVentas.php');
521
<table style=\"text-align: left; width: 100%;\" border=\"0\">
522
<tr><td style=\"vertical-align: top;width: 150px;\">";
526
<td style=\"vertical-align: top;\">";
527
foreach($_GET as $indice => $valor){
528
eval("\$" . $indice . " = \"" . $valor . "\";");
530
facturacionVentas($link,$ID,$codigo,$codigobarras,$descripcion,$precioProveedor,$precioPublico,$precioUnitario);
533
case armarPresupuesto:
534
include ('templates/default/formularioPresupuesto.php');
536
<table style=\"text-align: left; width: 100%;\" border=\"0\">
537
<tr><td style=\"vertical-align: top;width: 150px;\">";
541
<td style=\"vertical-align: top;\">";
542
foreach($_GET as $indice => $valor){
543
eval("\$" . $indice . " = \"" . $valor . "\";");
545
formularioPresupuesto($link);
548
case listadoPresupuesto:
549
include ('templates/default/formularioPresupuesto.php');
551
<table style=\"text-align: left; width: 100%;\" border=\"0\">
552
<tr><td style=\"vertical-align: top;width: 150px;\">";
556
<td style=\"vertical-align: top;\">";
557
foreach($_GET as $indice => $valor){
558
eval("\$" . $indice . " = \"" . $valor . "\";");
560
listadoPresupuestos($link);
564
include ('templates/default/estadoArmados.php');
566
<table style=\"text-align: left; width: 100%;\" border=\"0\">
567
<tr><td style=\"vertical-align: top;width: 150px;\">";
571
<td style=\"vertical-align: top;\">";
572
foreach($_GET as $indice => $valor){
573
eval("\$" . $indice . " = \"" . $valor . "\";");
578
case modificarArmados:
579
include ('templates/default/formulariosArmados.php');
581
<table style=\"text-align: left; width: 100%;\" border=\"0\">
582
<tr><td style=\"vertical-align: top;width: 150px;\">";
586
<td style=\"vertical-align: top;\">";
587
foreach($_GET as $indice => $valor){
588
eval("\$" . $indice . " = \"" . $valor . "\";");
590
modificarArmados($link);
593
case definirClavesAbonados:
594
include ('templates/default/formulariosClientes.php');
596
<table style=\"text-align: left; width: 100%;\" border=\"0\">
597
<tr><td style=\"vertical-align: top;width: 150px;\">";
601
<td style=\"vertical-align: top;\">";
602
foreach($_GET as $indice => $valor){
603
eval("\$" . $indice . " = \"" . $valor . "\";");
605
definirClavesAbonados($link);
608
case armadosTerminados:
609
include ('templates/default/listadoArmados.php');
611
<table style=\"text-align: left; width: 100%;\" border=\"0\">
612
<tr><td style=\"vertical-align: top;width: 150px;\">";
616
<td style=\"vertical-align: top;\">";
617
foreach($_GET as $indice => $valor){
618
eval("\$" . $indice . " = \"" . $valor . "\";");
620
armadosTerminados($link);
623
case armadosPendientes:
624
include ('templates/default/listadoArmados.php');
626
<table style=\"text-align: left; width: 100%;\" border=\"0\">
627
<tr><td style=\"vertical-align: top;width: 150px;\">";
631
<td style=\"vertical-align: top;\">";
632
foreach($_GET as $indice => $valor){
633
eval("\$" . $indice . " = \"" . $valor . "\";");
635
armadosPendientes($link);
639
include ('templates/default/listadoArmados.php');
641
<table style=\"text-align: left; width: 100%;\" border=\"0\">
642
<tr><td style=\"vertical-align: top;width: 150px;\">";
646
<td style=\"vertical-align: top;\">";
647
foreach($_GET as $indice => $valor){
648
eval("\$" . $indice . " = \"" . $valor . "\";");
650
armadosEnMesa($link);
654
// include ('templates/default/listadoArmados.php');
656
<table style=\"text-align: left; width: 100%;\" border=\"0\">
657
<tr><td style=\"vertical-align: top;width: 150px;\">";
661
<td style=\"vertical-align: top;\">";
662
foreach($_GET as $indice => $valor){
663
eval("\$" . $indice . " = \"" . $valor . "\";");
666
<IFRAME src=\"http://support.microsoft.com/?LN=es-uy&x=15&y=11\" width=\"100%\" height=\"900\"
667
scrolling=\"auto\" frameborder=\"0\">
674
<table style=\"text-align: left; width: 100%;\" border=\"0\">
675
<tr><td style=\"vertical-align: top;width: 150px;\">";
679
<td style=\"vertical-align: top;\">";
681
<IFRAME src=\"http://www.guia-ubuntu.org/index.php\" width=\"100%\" height=\"1200\"
682
scrolling=\"auto\" frameborder=\"0\">
687
case listadoProveedores:
688
include ('templates/default/formularioProveedores.php');
690
<table style=\"text-align: left; width: 100%;\" border=\"0\">
691
<tr><td style=\"vertical-align: top;width: 150px;\">";
695
<td style=\"vertical-align: top;\">";
696
foreach($_GET as $indice => $valor){
697
eval("\$" . $indice . " = \"" . $valor . "\";");
699
listadoProveedores($link);
702
case ingresarProveedores:
703
include ('templates/default/formularioProveedores.php');
705
<table style=\"text-align: left; width: 100%;\" border=\"0\">
706
<tr><td style=\"vertical-align: top;width: 150px;\">";
710
<td style=\"vertical-align: top;\">";
711
foreach($_GET as $indice => $valor){
712
eval("\$" . $indice . " = \"" . $valor . "\";");
714
ingresarProveedores($link);
717
case administrarFamilias:
718
include ('templates/default/formularioProductos.php');
720
<table style=\"text-align: left; width: 100%;\" border=\"0\">
721
<tr><td style=\"vertical-align: top;width: 150px;\">";
725
<td style=\"vertical-align: top;\">";
726
foreach($_GET as $indice => $valor){
727
eval("\$" . $indice . " = \"" . $valor . "\";");
729
administrarFamilias($link);
733
include ('templates/default/formularioProductos.php');
735
<table style=\"text-align: left; width: 100%;\" border=\"0\">
736
<tr><td style=\"vertical-align: top;width: 150px;\">";
740
<td style=\"vertical-align: top;\">";
741
foreach($_GET as $indice => $valor){
742
eval("\$" . $indice . " = \"" . $valor . "\";");
744
buscarProducto($link);
750
<table style=\"text-align: left; width: 100%;\" border=\"0\">
751
<tr><td style=\"vertical-align: top;width: 150px;\">";
755
<td style=\"vertical-align: top;\">";
757
<IFRAME src=\"http://localhost/egroupware/CDS-PhP/codeka/\" width=\"100%\" height=\"1200\"
758
scrolling=\"auto\" frameborder=\"0\">
765
<table style=\"text-align: left; width: 100%;\" border=\"0\">
766
<tr><td style=\"vertical-align: top;width: 150px;\">";
770
<td style=\"vertical-align: top;\">";
772
<IFRAME src=\"http://hostedtalkgadget.google.com/a/ng.com.uy/talkgadget/popout\" width=\"100%\" height=\"1200\"
773
scrolling=\"auto\" frameborder=\"0\">
781
// Termina mi modificación
782
//_debug_array($GLOBALS['egw_info']['user']['preferences']);
784
//$GLOBALS['egw']->common->debug_phpgw_info();
785
//$GLOBALS['egw']->common->debug_list_core_functions();
786
$GLOBALS['egw']->common->egw_footer();
788
}//Final de la función inicio
790
// Control de navegadores
791
// Si bien cualquier navegador cumple con lo necesario para poder mostrar la aplicación
792
// es aconsejable utilizar Prism para ingresar, permite tener una aplicación en común
793
// y evita las diferencias de formato e interpretación de código.
794
// Si se quiere utilizar otro navegador comente las siguientes líneas hasta donde dice
795
// Fin del control del navegador e ingrese este código al final:(Sin el //)
797
// {inicio($link,$accion,$idioma,$service);}
800
if ($id == "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9b4pre) Gecko/2008030208 Prism/0.9")
801
{inicio($link,$accion,$idioma,$service);} // Comprueba que se ingrese con Prism desde Linux
803
if ($id == "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.1) Gecko/2008072820 prism/0.8")
804
{inicio($link,$accion,$idioma,$service);} // Comprueba que se ingrese con Prism 0.8 desde Linux
807
else if ($id == "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9b4pre) Gecko/2008030210 Prism/0.9")
808
{inicio($link,$accion,$idioma,$service);} // Comprueba que se ingrese con Prism desde Windows
811
else { mensajeNavegador();}
813
function mensajeNavegador(){
815
<div style=\"text-align: center;\"><big
816
style=\"font-weight: bold;\"><big>Su navegador no está 100% soportado</big></big><br>
818
Se requiere <span style=\"font-weight: bold;\">Prism 0.9</span>
819
para obtener un máximo rendimiento <br>
820
Instale la versión acompaña el paquete en el CD-ROM o descárguelo desde
823
<a href=\"https://wiki.mozilla.org/WebRunner#Latest_version\" target=\"_blank\"><big><big><span
824
style=\"font-weight: bold;\">Descarga</span></big></big></a><br><br>
826
<hr style=\"width: 100%; height: 2px;\"><br>
827
<div style=\"text-align: center;\"><img alt=\"\"
828
src=\"http://people.mozilla.com/%7Efaaborg/files/prism/announcement/prismLogo400.png\"><br>
829
</div>";}// Fin del control de navegador
831
inicio($link,$accion,$idioma,$service);