~pablocapeluto/cds-php/devel-3.1

« back to all changes in this revision

Viewing changes to index.php

  • Committer: pcapeluto at gmail
  • Date: 2010-08-20 17:51:08 UTC
  • Revision ID: pcapeluto@gmail.com-20100820175108-jyi8dbyj15uy9p4i
Initial import

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php
 
2
 
 
3
/* ------------------------------------------------------------------------------
 
4
 * Copyright (C) 2005-2008 Pablo Capeluto
 
5
 * Correo: pcapeluto@gmail.com
 
6
 * MSN:    pcapeluto@hotmail.com
 
7
 * WEB:    http://cdsphp.sourceforge.net
 
8
 * Skype:  idepuntonet
 
9
 * Montevideo - Uruguay
 
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
 * ------------------------------------------------------------------------------
 
15
 */
 
16
 
 
17
 
 
18
$GLOBALS['egw_info'] = array(
 
19
                'flags' => array(
 
20
                        'noheader'                => False,
 
21
                        'nonavbar'                => False,
 
22
                        'currentapp'              => 'CDS-PhP',
 
23
                        'enable_network_class'    => False,
 
24
                        'enable_contacts_class'   => True,
 
25
                        'enable_nextmatchs_class' => False
 
26
)
 
27
);
 
28
include('../header.inc.php');
 
29
 
 
30
 
 
31
//Selecciono el tema que va a cargar el jscalendar a la hora de mostrar la fecha
 
32
echo "
 
33
<link rel=\"stylesheet\" type=\"text/css\" media=\"all\" href=\"jscalendar/calendar-blue.css\" title=\"win2k-cold-1\" />
 
34
<!--
 
35
<script type=\"text/javascript\" src=\"gears_init.js\"></script>
 
36
<script type=\"text/javascript\" src=\"sample.js\"></script>-->
 
37
";
 
38
 
 
39
 
 
40
// Comienza mi modificación
 
41
 
 
42
//$GLOBALS['egw']->common->display_fullname();
 
43
$var['user_info'] = '<b>'.$GLOBALS['egw']->common->display_fullname() .'</b>'. ' - ';
 
44
 
 
45
//echo $var['user_info'];
 
46
$lid       = $GLOBALS['egw_info']['user']['account_lid'];
 
47
//echo $lid;
 
48
session_start();
 
49
$idioma=$_GET['idioma'];
 
50
$_SESSION['pais'] = $idioma;
 
51
 
 
52
if ($idioma == ""){
 
53
        $idioma="uy";
 
54
}
 
55
 
 
56
include ('templates/default/formularios.php');
 
57
include ('templates/default/formulariosRMA.php');
 
58
include ("templates/default/menu-$idioma.php");
 
59
include ('conex.php');
 
60
$link=Conectarse();
 
61
//$linkEGW=ConectarseEGW();
 
62
 
 
63
 
 
64
$accion=$_GET['acc'];
 
65
$service=$_GET['service'];
 
66
$id=$_SERVER['HTTP_USER_AGENT'];
 
67
 
 
68
echo "<div align=\"center\">$id</div>";
 
69
 
 
70
function inicio($link,$accion,$idioma,$service){
 
71
if ($accion == ""){
 
72
        echo "
 
73
        <table style=\"text-align: left; width: 100%;\" border=\"0\">
 
74
        <tr><td style=\"vertical-align: top;width: 150px;\">";
 
75
        menu($link,$idioma);
 
76
        echo "
 
77
        </td>
 
78
        <td style=\"vertical-align: top;\">";
 
79
        foreach($_GET as $indice => $valor){
 
80
                eval("\$" . $indice . " = \"" . $valor . "\";");
 
81
        }
 
82
        estadoService($link,$idioma="uy");}
 
83
 
 
84
        switch ($accion) { //Comienza el Case para seleccionar las acciones
 
85
                case ingresoService:
 
86
 
 
87
                        echo "
 
88
        <table style=\"text-align: left; width: 100%;\" border=\"0\">
 
89
        <tr><td style=\"vertical-align: top;width: 150px;\">";
 
90
                        menu($link,$idioma);
 
91
                        echo "
 
92
        </td>
 
93
        <td style=\"vertical-align: top;\">";
 
94
                        foreach($_GET as $indice => $valor){
 
95
                                eval("\$" . $indice . " = \"" . $valor . "\";");
 
96
                        }
 
97
                        ingresoService($cliente,$direccion,$telefono,$inventario,$link);
 
98
                        break;
 
99
 
 
100
                case modificarService:
 
101
                        if ($service != "vacio"){
 
102
                                echo "
 
103
        <table style=\"text-align: left; width: 100%;\" border=\"0\">
 
104
        <tr><td style=\"vertical-align: top;width: 150px;\">";
 
105
                                menu($link);
 
106
                                echo "
 
107
        </td>
 
108
        <td style=\"vertical-align: top;\">";
 
109
                                foreach($_GET as $indice => $valor){
 
110
                                        eval("\$" . $indice . " = \"" . $valor . "\";");
 
111
                                }
 
112
                                modificarService($link);}
 
113
 
 
114
                                if ($service == "vacio"){
 
115
                                        echo "
 
116
        <table style=\"text-align: left; width: 100%;\" border=\"0\">
 
117
        <tr><td style=\"vertical-align: top;width: 150px;\">";
 
118
                                        menu($link);
 
119
                                        echo "
 
120
        </td>
 
121
        <td style=\"vertical-align: top;\">";
 
122
                                        foreach($_GET as $indice => $valor){
 
123
                                                eval("\$" . $indice . " = \"" . $valor . "\";");
 
124
                                        }
 
125
                                        buscarService($link);}
 
126
                                        break;
 
127
 
 
128
                case buscarService:
 
129
 
 
130
                        echo "
 
131
        <table style=\"text-align: left; width: 100%;\" border=\"0\">
 
132
        <tr><td style=\"vertical-align: top;width: 150px;\">";
 
133
                        menu($link);
 
134
                        echo "
 
135
        </td>
 
136
        <td style=\"vertical-align: top;\">";
 
137
                        foreach($_GET as $indice => $valor){
 
138
                                eval("\$" . $indice . " = \"" . $valor . "\";");
 
139
                        }
 
140
                        buscarService($link);
 
141
                        break;
 
142
 
 
143
 
 
144
                case listadoClientes:
 
145
                        echo "
 
146
        <table style=\"text-align: left; width: 100%;\" border=\"0\">
 
147
        <tr><td style=\"vertical-align: top;width: 150px;\">";
 
148
                        menu($link);
 
149
                        echo "
 
150
        </td>
 
151
        <td style=\"vertical-align: top;\">";
 
152
                        foreach($_GET as $indice => $valor){
 
153
                                eval("\$" . $indice . " = \"" . $valor . "\";");
 
154
                        }
 
155
                        listadoClientes($link);
 
156
                        break;
 
157
 
 
158
 
 
159
                case estadoService:
 
160
                        echo "
 
161
        <table style=\"text-align: left; width: 100%;\" border=\"0\">
 
162
        <tr><td style=\"vertical-align: top;width: 150px;\">";
 
163
                        menu($link);
 
164
                        echo "
 
165
        </td>
 
166
        <td style=\"vertical-align: top;\">";
 
167
                        foreach($_GET as $indice => $valor){
 
168
                                eval("\$" . $indice . " = \"" . $valor . "\";");
 
169
                        }
 
170
                        estadoService($link);
 
171
                        break;
 
172
 
 
173
 
 
174
 
 
175
                case codigoBarra:
 
176
                        include ('templates/default/etiquetas.php');
 
177
                        echo "
 
178
        <table style=\"text-align: left; width: 100%;\" border=\"0\">
 
179
        <tr><td style=\"vertical-align: top;width: 150px;\">";
 
180
                        menu($link);
 
181
                        echo "
 
182
        </td>
 
183
        <td style=\"vertical-align: top;\">";
 
184
                        foreach($_GET as $indice => $valor){
 
185
                                eval("\$" . $indice . " = \"" . $valor . "\";");
 
186
                        }
 
187
                        pestanas($cliente,$link);
 
188
                        break;
 
189
 
 
190
 
 
191
 
 
192
                case ingresoRMA:
 
193
                        echo "
 
194
        <table style=\"text-align: left; width: 100%;\" border=\"0\">
 
195
        <tr><td style=\"vertical-align: top;width: 150px;\">";
 
196
                        menu($link);
 
197
                        echo "
 
198
        </td>
 
199
        <td style=\"vertical-align: top;\">";
 
200
                        foreach($_GET as $indice => $valor){
 
201
                                eval("\$" . $indice . " = \"" . $valor . "\";");
 
202
                        }
 
203
                        ingresoRMA($link);
 
204
                        break;
 
205
 
 
206
                case buscarRMA:
 
207
                        echo "
 
208
        <table style=\"text-align: left; width: 100%;\" border=\"0\">
 
209
        <tr><td style=\"vertical-align: top;width: 150px;\">";
 
210
                        menu($link);
 
211
                        echo "
 
212
        </td>
 
213
        <td style=\"vertical-align: top;\">";
 
214
                        foreach($_GET as $indice => $valor){
 
215
                                eval("\$" . $indice . " = \"" . $valor . "\";");
 
216
                        }
 
217
                        buscarRMA($link);
 
218
                        break;
 
219
 
 
220
 
 
221
                case listadoRMA:
 
222
                        echo "
 
223
        <table style=\"text-align: left; width: 100%;\" border=\"0\">
 
224
        <tr><td style=\"vertical-align: top;width: 150px;\">";
 
225
                        menu($link);
 
226
                        echo "
 
227
        </td>
 
228
        <td style=\"vertical-align: top;\">";
 
229
                        foreach($_GET as $indice => $valor){
 
230
                                eval("\$" . $indice . " = \"" . $valor . "\";");
 
231
                        }
 
232
                        listadoRMA($link);
 
233
                        break;
 
234
 
 
235
                case modificarRMA:
 
236
                        echo "
 
237
        <table style=\"text-align: left; width: 100%;\" border=\"0\">
 
238
        <tr><td style=\"vertical-align: top;width: 150px;\">";
 
239
                        menu($link);
 
240
                        echo "
 
241
        </td>
 
242
        <td style=\"vertical-align: top;\">";
 
243
                        foreach($_GET as $indice => $valor){
 
244
                                eval("\$" . $indice . " = \"" . $valor . "\";");
 
245
                        }
 
246
                        modificarRMA($ID,$link);
 
247
                        break;
 
248
 
 
249
 
 
250
                case informacionCliente:
 
251
                        include ('templates/default/formulariosClientes.php');
 
252
                        echo "
 
253
        <table style=\"text-align: left; width: 100%;\" border=\"0\">
 
254
        <tr><td style=\"vertical-align: top;width: 150px;\">";
 
255
                        menu($link);
 
256
                        echo "
 
257
        </td>
 
258
        <td style=\"vertical-align: top;\">";
 
259
                        foreach($_GET as $indice => $valor){
 
260
                                eval("\$" . $indice . " = \"" . $valor . "\";");
 
261
                        }
 
262
                        informacionCliente($cliente,$link);
 
263
                        break;
 
264
 
 
265
                case buscarCliente:
 
266
                        include ('templates/default/formulariosClientes.php');
 
267
                        echo "
 
268
        <table style=\"text-align: left; width: 100%;\" border=\"0\">
 
269
        <tr><td style=\"vertical-align: top;width: 150px;\">";
 
270
                        menu($link);
 
271
                        echo "
 
272
        </td>
 
273
        <td style=\"vertical-align: top;\">";
 
274
                        foreach($_GET as $indice => $valor){
 
275
                                eval("\$" . $indice . " = \"" . $valor . "\";");
 
276
                        }
 
277
                        buscarCliente($cliente,$link);
 
278
                        break;
 
279
 
 
280
                case celulares:
 
281
                        include ('templates/default/celulares.php');
 
282
                        echo "
 
283
        <table style=\"text-align: left; width: 100%;\" border=\"0\">
 
284
        <tr><td style=\"vertical-align: top;width: 150px;\">";
 
285
                        menu($link);
 
286
                        echo "
 
287
        </td>
 
288
        <td style=\"vertical-align: top;\">";
 
289
                        foreach($_GET as $indice => $valor){
 
290
                                eval("\$" . $indice . " = \"" . $valor . "\";");
 
291
                        }
 
292
                        celulares();
 
293
                        break;
 
294
 
 
295
                case correoClientes:
 
296
                        include ('templates/default/correoClientes.php');
 
297
                        echo "
 
298
        <table style=\"text-align: left; width: 100%;\" border=\"0\">
 
299
        <tr><td style=\"vertical-align: top;width: 150px;\">";
 
300
                        menu($link);
 
301
                        echo "
 
302
        </td>
 
303
        <td style=\"vertical-align: top;\">";
 
304
                        foreach($_GET as $indice => $valor){
 
305
                                eval("\$" . $indice . " = \"" . $valor . "\";");
 
306
                        }
 
307
                        correoClientes($link);
 
308
                        break;
 
309
 
 
310
                case crearFactura:
 
311
                        //include ('templates/default/formulariosFacturacion.php');
 
312
                        echo "
 
313
        <table style=\"text-align: left; width: 100%;\" border=\"0\">
 
314
        <tr><td style=\"vertical-align: top;width: 150px;\">";
 
315
                        menu($link);
 
316
                        echo "
 
317
        </td>
 
318
        <td style=\"vertical-align: top;\">";
 
319
                        foreach($_GET as $indice => $valor){
 
320
                                eval("\$" . $indice . " = \"" . $valor . "\";");
 
321
                        }
 
322
                        echo "
 
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);
 
325
 
 
326
                        break;
 
327
 
 
328
                case estadoDeCuenta:
 
329
                        include ('templates/default/formulariosFacturacion.php');
 
330
                        echo "
 
331
        <table style=\"text-align: left; width: 100%;\" border=\"0\">
 
332
        <tr><td style=\"vertical-align: top;width: 150px;\">";
 
333
                        menu($link);
 
334
                        echo "
 
335
        </td>
 
336
        <td style=\"vertical-align: top;\">";
 
337
                        foreach($_GET as $indice => $valor){
 
338
                                eval("\$" . $indice . " = \"" . $valor . "\";");
 
339
                        }
 
340
                        estadoDeCuenta($link,$ID);
 
341
                        break;
 
342
 
 
343
                case listadoAbonados:
 
344
                        include ('templates/default/formulariosFacturacion.php');
 
345
                        echo "
 
346
        <table style=\"text-align: left; width: 100%;\" border=\"0\">
 
347
        <tr><td style=\"vertical-align: top;width: 150px;\">";
 
348
                        menu($link);
 
349
                        echo "
 
350
        </td>
 
351
        <td style=\"vertical-align: top;\">";
 
352
                        foreach($_GET as $indice => $valor){
 
353
                                eval("\$" . $indice . " = \"" . $valor . "\";");
 
354
                        }
 
355
                        listadoAbonados($link,$ID);
 
356
                        break;
 
357
 
 
358
                case listadoFacturasPendientes:
 
359
                        include ('templates/default/formulariosFacturacion.php');
 
360
                        echo "
 
361
        <table style=\"text-align: left; width: 100%;\" border=\"0\">
 
362
        <tr><td style=\"vertical-align: top;width: 150px;\">";
 
363
                        menu($link);
 
364
                        echo "
 
365
        </td>
 
366
        <td style=\"vertical-align: top;\">";
 
367
                        foreach($_GET as $indice => $valor){
 
368
                                eval("\$" . $indice . " = \"" . $valor . "\";");
 
369
                        }
 
370
                        listadoFacturasPendientes($link,$ID);
 
371
                        break;
 
372
 
 
373
                case listadoCuentasCobrar:
 
374
                        include ('templates/default/formulariosFacturacion.php');
 
375
                        echo "
 
376
        <table style=\"text-align: left; width: 100%;\" border=\"0\">
 
377
        <tr><td style=\"vertical-align: top;width: 150px;\">";
 
378
                        menu($link);
 
379
                        echo "
 
380
        </td>
 
381
        <td style=\"vertical-align: top;\">";
 
382
                        foreach($_GET as $indice => $valor){
 
383
                                eval("\$" . $indice . " = \"" . $valor . "\";");
 
384
                        }
 
385
                        listadoCuentasCobrar($link,$ID);
 
386
                        break;
 
387
 
 
388
                case facturacionNuevoServicio:
 
389
                        include ('templates/default/formulariosFacturacion.php');
 
390
                        echo "
 
391
        <table style=\"text-align: left; width: 100%;\" border=\"0\">
 
392
        <tr><td style=\"vertical-align: top;width: 150px;\">";
 
393
                        menu($link);
 
394
                        echo "
 
395
        </td>
 
396
        <td style=\"vertical-align: top;\">";
 
397
                        foreach($_GET as $indice => $valor){
 
398
                                eval("\$" . $indice . " = \"" . $valor . "\";");
 
399
                        }
 
400
                        facturacionNuevoServicio($link,$ID,$codigo,$codigobarras,$descripcion,$precioProveedor,$precioPublico,$precioUnitario);
 
401
                        break;
 
402
 
 
403
 
 
404
                case mapa:
 
405
                        //include ('templates/default/formularios.php');
 
406
                        echo "
 
407
        <table style=\"text-align: left; width: 100%;\" border=\"0\">
 
408
        <tr><td style=\"vertical-align: top;width: 150px;\">";
 
409
                        menu($link);
 
410
                        echo "
 
411
        </td>
 
412
        <td style=\"vertical-align: top;\">";
 
413
                        mapa($link);
 
414
                        break;
 
415
                
 
416
                 case mapa2:
 
417
                        //include ('templates/default/formularios.php');
 
418
                        echo "
 
419
        <table style=\"text-align: left; width: 100%;\" border=\"0\">
 
420
        <tr><td style=\"vertical-align: top;width: 150px;\">";
 
421
                        menu($link);
 
422
                        echo "
 
423
        </td>
 
424
        <td style=\"vertical-align: top;\">";
 
425
                        mapa2($link);
 
426
                        break;
 
427
 
 
428
 
 
429
                case wikipedia:
 
430
                        echo "
 
431
        <table style=\"text-align: left; width: 100%;\" border=\"0\">
 
432
        <tr><td style=\"vertical-align: top;width: 150px;\">";
 
433
                        menu($link);
 
434
                        echo "
 
435
        </td>
 
436
        <td style=\"vertical-align: top;\">";
 
437
                        echo "
 
438
<IFRAME src=\"http://es.wikipedia.org/\" width=\"100%\" height=\"1200\"
 
439
       scrolling=\"auto\" frameborder=\"0\">
 
440
</IFRAME>";
 
441
                        break;
 
442
 
 
443
                case ingresarCliente:
 
444
                        include ('templates/default/listadoeIngresoClientes.php');
 
445
                        echo "
 
446
        <table style=\"text-align: left; width: 100%;\" border=\"0\">
 
447
        <tr><td style=\"vertical-align: top;width: 150px;\">";
 
448
                        menu($link);
 
449
                        echo "
 
450
        </td>
 
451
        <td style=\"vertical-align: top;\">";
 
452
                        foreach($_GET as $indice => $valor){
 
453
                                eval("\$" . $indice . " = \"" . $valor . "\";");
 
454
                        }
 
455
                        ingresarCliente($link,$ID);
 
456
                        break;
 
457
 
 
458
                case ventasEquipoNuevo:
 
459
                        include ('templates/default/formulariosArmados.php');
 
460
                        echo "
 
461
        <table style=\"text-align: left; width: 100%;\" border=\"0\">
 
462
        <tr><td style=\"vertical-align: top;width: 150px;\">";
 
463
                        menu($link);
 
464
                        echo "
 
465
        </td>
 
466
        <td style=\"vertical-align: top;\">";
 
467
                        foreach($_GET as $indice => $valor){
 
468
                                eval("\$" . $indice . " = \"" . $valor . "\";");
 
469
                        }
 
470
                        ingresarArmado($link);
 
471
                        break;
 
472
 
 
473
                case ingresarProducto:
 
474
                        include ('templates/default/formularioProductos.php');
 
475
                        echo "
 
476
        <table style=\"text-align: left; width: 100%;\" border=\"0\">
 
477
        <tr><td style=\"vertical-align: top;width: 150px;\">";
 
478
                        menu($link);
 
479
                        echo "
 
480
        </td>
 
481
        <td style=\"vertical-align: top;\">";
 
482
                        foreach($_GET as $indice => $valor){
 
483
                                eval("\$" . $indice . " = \"" . $valor . "\";");
 
484
                        }
 
485
                        ingresarProducto($link);
 
486
                        break;
 
487
 
 
488
                case listadoProductos:
 
489
                        include ('templates/default/formularioProductos.php');
 
490
                        echo "
 
491
        <table style=\"text-align: left; width: 100%;\" border=\"0\">
 
492
        <tr><td style=\"vertical-align: top;width: 150px;\">";
 
493
                        menu($link);
 
494
                        echo "
 
495
        </td>
 
496
        <td style=\"vertical-align: top;\">";
 
497
                        foreach($_GET as $indice => $valor){
 
498
                                eval("\$" . $indice . " = \"" . $valor . "\";");
 
499
                        }
 
500
                        listadoProductos($link);
 
501
                        break;
 
502
 
 
503
                case listadoCuentasCorrientes:
 
504
                        include ('templates/default/formularioCuentasCorrientes.php');
 
505
                        echo "
 
506
        <table style=\"text-align: left; width: 100%;\" border=\"0\">
 
507
        <tr><td style=\"vertical-align: top;width: 150px;\">";
 
508
                        menu($link);
 
509
                        echo "
 
510
        </td>
 
511
        <td style=\"vertical-align: top;\">";
 
512
                        foreach($_GET as $indice => $valor){
 
513
                                eval("\$" . $indice . " = \"" . $valor . "\";");
 
514
                        }
 
515
                        listadoCuentasCorrientes($link);
 
516
                        break;
 
517
 
 
518
                case pedirPiezas:
 
519
                        include ('templates/default/formularioVentas.php');
 
520
                        echo "
 
521
        <table style=\"text-align: left; width: 100%;\" border=\"0\">
 
522
        <tr><td style=\"vertical-align: top;width: 150px;\">";
 
523
                        menu($link);
 
524
                        echo "
 
525
        </td>
 
526
        <td style=\"vertical-align: top;\">";
 
527
                        foreach($_GET as $indice => $valor){
 
528
                                eval("\$" . $indice . " = \"" . $valor . "\";");
 
529
                        }
 
530
                        facturacionVentas($link,$ID,$codigo,$codigobarras,$descripcion,$precioProveedor,$precioPublico,$precioUnitario);
 
531
                        break;
 
532
 
 
533
                case armarPresupuesto:
 
534
                        include ('templates/default/formularioPresupuesto.php');
 
535
                        echo "
 
536
        <table style=\"text-align: left; width: 100%;\" border=\"0\">
 
537
        <tr><td style=\"vertical-align: top;width: 150px;\">";
 
538
                        menu($link);
 
539
                        echo "
 
540
        </td>
 
541
        <td style=\"vertical-align: top;\">";
 
542
                        foreach($_GET as $indice => $valor){
 
543
                                eval("\$" . $indice . " = \"" . $valor . "\";");
 
544
                        }
 
545
                        formularioPresupuesto($link);
 
546
                        break;
 
547
 
 
548
                case listadoPresupuesto:
 
549
                        include ('templates/default/formularioPresupuesto.php');
 
550
                        echo "
 
551
        <table style=\"text-align: left; width: 100%;\" border=\"0\">
 
552
        <tr><td style=\"vertical-align: top;width: 150px;\">";
 
553
                        menu($link);
 
554
                        echo "
 
555
        </td>
 
556
        <td style=\"vertical-align: top;\">";
 
557
                        foreach($_GET as $indice => $valor){
 
558
                                eval("\$" . $indice . " = \"" . $valor . "\";");
 
559
                        }
 
560
                        listadoPresupuestos($link);
 
561
                        break;
 
562
 
 
563
                case listadoArmados:
 
564
                        include ('templates/default/estadoArmados.php');
 
565
                        echo "
 
566
        <table style=\"text-align: left; width: 100%;\" border=\"0\">
 
567
        <tr><td style=\"vertical-align: top;width: 150px;\">";
 
568
                        menu($link);
 
569
                        echo "
 
570
        </td>
 
571
        <td style=\"vertical-align: top;\">";
 
572
                        foreach($_GET as $indice => $valor){
 
573
                                eval("\$" . $indice . " = \"" . $valor . "\";");
 
574
                        }
 
575
                        Listado($link);
 
576
                        break;
 
577
 
 
578
                case modificarArmados:
 
579
                        include ('templates/default/formulariosArmados.php');
 
580
                        echo "
 
581
        <table style=\"text-align: left; width: 100%;\" border=\"0\">
 
582
        <tr><td style=\"vertical-align: top;width: 150px;\">";
 
583
                        menu($link);
 
584
                        echo "
 
585
        </td>
 
586
        <td style=\"vertical-align: top;\">";
 
587
                        foreach($_GET as $indice => $valor){
 
588
                                eval("\$" . $indice . " = \"" . $valor . "\";");
 
589
                        }
 
590
                        modificarArmados($link);
 
591
                        break;
 
592
 
 
593
                case definirClavesAbonados:
 
594
                        include ('templates/default/formulariosClientes.php');
 
595
                        echo "
 
596
        <table style=\"text-align: left; width: 100%;\" border=\"0\">
 
597
        <tr><td style=\"vertical-align: top;width: 150px;\">";
 
598
                        menu($link);
 
599
                        echo "
 
600
        </td>
 
601
        <td style=\"vertical-align: top;\">";
 
602
                        foreach($_GET as $indice => $valor){
 
603
                                eval("\$" . $indice . " = \"" . $valor . "\";");
 
604
                        }
 
605
                        definirClavesAbonados($link);
 
606
                        break;
 
607
 
 
608
                case armadosTerminados:
 
609
                        include ('templates/default/listadoArmados.php');
 
610
                        echo "
 
611
        <table style=\"text-align: left; width: 100%;\" border=\"0\">
 
612
        <tr><td style=\"vertical-align: top;width: 150px;\">";
 
613
                        menu($link);
 
614
                        echo "
 
615
        </td>
 
616
        <td style=\"vertical-align: top;\">";
 
617
                        foreach($_GET as $indice => $valor){
 
618
                                eval("\$" . $indice . " = \"" . $valor . "\";");
 
619
                        }
 
620
                        armadosTerminados($link);
 
621
                        break;
 
622
 
 
623
                case armadosPendientes:
 
624
                        include ('templates/default/listadoArmados.php');
 
625
                        echo "
 
626
        <table style=\"text-align: left; width: 100%;\" border=\"0\">
 
627
        <tr><td style=\"vertical-align: top;width: 150px;\">";
 
628
                        menu($link);
 
629
                        echo "
 
630
        </td>
 
631
        <td style=\"vertical-align: top;\">";
 
632
                        foreach($_GET as $indice => $valor){
 
633
                                eval("\$" . $indice . " = \"" . $valor . "\";");
 
634
                        }
 
635
                        armadosPendientes($link);
 
636
                        break;
 
637
 
 
638
                case armadosEnMesa:
 
639
                        include ('templates/default/listadoArmados.php');
 
640
                        echo "
 
641
        <table style=\"text-align: left; width: 100%;\" border=\"0\">
 
642
        <tr><td style=\"vertical-align: top;width: 150px;\">";
 
643
                        menu($link);
 
644
                        echo "
 
645
        </td>
 
646
        <td style=\"vertical-align: top;\">";
 
647
                        foreach($_GET as $indice => $valor){
 
648
                                eval("\$" . $indice . " = \"" . $valor . "\";");
 
649
                        }
 
650
                        armadosEnMesa($link);
 
651
                        break;
 
652
 
 
653
                case mtech:
 
654
//                      include ('templates/default/listadoArmados.php');
 
655
                        echo "
 
656
        <table style=\"text-align: left; width: 100%;\" border=\"0\">
 
657
        <tr><td style=\"vertical-align: top;width: 150px;\">";
 
658
                        menu($link);
 
659
                        echo "
 
660
        </td>
 
661
        <td style=\"vertical-align: top;\">";
 
662
                        foreach($_GET as $indice => $valor){
 
663
                                eval("\$" . $indice . " = \"" . $valor . "\";");
 
664
                        }
 
665
                        echo "
 
666
<IFRAME src=\"http://support.microsoft.com/?LN=es-uy&x=15&y=11\" width=\"100%\" height=\"900\"
 
667
         scrolling=\"auto\" frameborder=\"0\">
 
668
 </IFRAME>";
 
669
                        break;
 
670
 
 
671
                case uguide:
 
672
                        
 
673
echo "
 
674
        <table style=\"text-align: left; width: 100%;\" border=\"0\">
 
675
        <tr><td style=\"vertical-align: top;width: 150px;\">";
 
676
                        menu($link);
 
677
                        echo "
 
678
        </td>
 
679
        <td style=\"vertical-align: top;\">";
 
680
                        echo "
 
681
<IFRAME src=\"http://www.guia-ubuntu.org/index.php\" width=\"100%\" height=\"1200\"
 
682
       scrolling=\"auto\" frameborder=\"0\">
 
683
</IFRAME>";
 
684
 
 
685
                        break;
 
686
 
 
687
                case listadoProveedores:
 
688
                        include ('templates/default/formularioProveedores.php');
 
689
                        echo "
 
690
        <table style=\"text-align: left; width: 100%;\" border=\"0\">
 
691
        <tr><td style=\"vertical-align: top;width: 150px;\">";
 
692
                        menu($link);
 
693
                        echo "
 
694
        </td>
 
695
        <td style=\"vertical-align: top;\">";
 
696
                        foreach($_GET as $indice => $valor){
 
697
                                eval("\$" . $indice . " = \"" . $valor . "\";");
 
698
                        }
 
699
                        listadoProveedores($link);
 
700
                        break;
 
701
 
 
702
                case ingresarProveedores:
 
703
                        include ('templates/default/formularioProveedores.php');
 
704
                        echo "
 
705
        <table style=\"text-align: left; width: 100%;\" border=\"0\">
 
706
        <tr><td style=\"vertical-align: top;width: 150px;\">";
 
707
                        menu($link);
 
708
                        echo "
 
709
        </td>
 
710
        <td style=\"vertical-align: top;\">";
 
711
                        foreach($_GET as $indice => $valor){
 
712
                                eval("\$" . $indice . " = \"" . $valor . "\";");
 
713
                        }
 
714
                        ingresarProveedores($link);
 
715
                        break;
 
716
 
 
717
                case administrarFamilias:
 
718
                        include ('templates/default/formularioProductos.php');
 
719
                        echo "
 
720
        <table style=\"text-align: left; width: 100%;\" border=\"0\">
 
721
        <tr><td style=\"vertical-align: top;width: 150px;\">";
 
722
                        menu($link);
 
723
                        echo "
 
724
        </td>
 
725
        <td style=\"vertical-align: top;\">";
 
726
                        foreach($_GET as $indice => $valor){
 
727
                                eval("\$" . $indice . " = \"" . $valor . "\";");
 
728
                        }
 
729
                        administrarFamilias($link);
 
730
                        break;
 
731
 
 
732
                case buscarProducto:
 
733
                        include ('templates/default/formularioProductos.php');
 
734
                        echo "
 
735
        <table style=\"text-align: left; width: 100%;\" border=\"0\">
 
736
        <tr><td style=\"vertical-align: top;width: 150px;\">";
 
737
                        menu($link);
 
738
                        echo "
 
739
        </td>
 
740
        <td style=\"vertical-align: top;\">";
 
741
                        foreach($_GET as $indice => $valor){
 
742
                                eval("\$" . $indice . " = \"" . $valor . "\";");
 
743
                        }
 
744
                        buscarProducto($link);
 
745
                        break;
 
746
 
 
747
                case codeka:
 
748
                        
 
749
        echo "
 
750
        <table style=\"text-align: left; width: 100%;\" border=\"0\">
 
751
        <tr><td style=\"vertical-align: top;width: 150px;\">";
 
752
                        menu($link);
 
753
                        echo "
 
754
        </td>
 
755
        <td style=\"vertical-align: top;\">";
 
756
                        echo "
 
757
        <IFRAME src=\"http://localhost/egroupware/CDS-PhP/codeka/\" width=\"100%\" height=\"1200\"
 
758
       scrolling=\"auto\" frameborder=\"0\">
 
759
        </IFRAME>";
 
760
                        break;
 
761
 
 
762
                case googleDocs:
 
763
 
 
764
        echo "
 
765
        <table style=\"text-align: left; width: 100%;\" border=\"0\">
 
766
        <tr><td style=\"vertical-align: top;width: 150px;\">";
 
767
                        menu($link);
 
768
                        echo "
 
769
        </td>
 
770
        <td style=\"vertical-align: top;\">";
 
771
                        echo "
 
772
        <IFRAME src=\"http://hostedtalkgadget.google.com/a/ng.com.uy/talkgadget/popout\" width=\"100%\" height=\"1200\"
 
773
       scrolling=\"auto\" frameborder=\"0\">
 
774
        </IFRAME>";
 
775
        break;
 
776
 
 
777
 
 
778
 
 
779
}
 
780
 
 
781
                        // Termina mi modificación
 
782
                        //_debug_array($GLOBALS['egw_info']['user']['preferences']);
 
783
 
 
784
                        //$GLOBALS['egw']->common->debug_phpgw_info();
 
785
                        //$GLOBALS['egw']->common->debug_list_core_functions();
 
786
                        $GLOBALS['egw']->common->egw_footer();
 
787
 
 
788
}//Final de la función inicio
 
789
 
 
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 //)
 
796
 
 
797
// {inicio($link,$accion,$idioma,$service);}
 
798
 
 
799
/*
 
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
 
802
 
 
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
 
805
 
 
806
 
 
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
 
809
 
 
810
 
 
811
else { mensajeNavegador();}
 
812
 
 
813
function mensajeNavegador(){
 
814
echo "
 
815
<div style=\"text-align: center;\"><big
 
816
 style=\"font-weight: bold;\"><big>Su navegador no est&aacute; 100% soportado</big></big><br>
 
817
<br>
 
818
Se requiere <span style=\"font-weight: bold;\">Prism 0.9</span>
 
819
para obtener un m&aacute;ximo rendimiento <br>
 
820
Instale la versi&oacute;n acompa&ntilde;a el paquete en el CD-ROM o desc&aacute;rguelo desde
 
821
este enlace:<br>
 
822
<br>
 
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>
 
825
</div>
 
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
 
830
*/
 
831
inicio($link,$accion,$idioma,$service);
 
832
 
 
833
?>