Magellan Linux

Diff of /alx-src/branches/alx-web-060/show.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2601 by niro, Wed Jul 6 10:37:11 2011 UTC revision 2606 by niro, Wed Jul 6 14:15:18 2011 UTC
# Line 53  else Line 53  else
53   $drop['cfg_network_module'] = array('3c59x', '8139too', '8139cp', 'e100', 'ne2k-pci', 'pcnet32', 'sis900', 'via-rhine', 'zd1211', 'b44', 'bnx2', 'dl2k', 'e1000', 'forcedeth', 'r8169', 'sk98lin', 'tg3', 'via-velocity');   $drop['cfg_network_module'] = array('3c59x', '8139too', '8139cp', 'e100', 'ne2k-pci', 'pcnet32', 'sis900', 'via-rhine', 'zd1211', 'b44', 'bnx2', 'dl2k', 'e1000', 'forcedeth', 'r8169', 'sk98lin', 'tg3', 'via-velocity');
54  }  }
55  $drop['networking'] = array('dhcp', 'static');  $drop['networking'] = array('dhcp', 'static');
56  $drop['port'] = array('lpt1', 'usb1', 'usb2', 'com1', 'com2', 'lpd', 'socket', 'ipp');  // 0.6.0 does not support lpd, ipp and socket printing atm
57    if($alxos>='0.6.0')
58    {
59     $drop['cfg_printers_port'] = array('lpt1', 'usb1', 'usb2', 'com1', 'com2');
60     for ($i=0; $i<999; $i++) { $drop['cfg_printers_'.$i.'_ip'] = 'ignore'; }
61     $drop['cfg_printers_share'] = 'ignore';
62    }
63    else
64    {
65     $drop['cfg_printers_port'] = array('lpt1', 'usb1', 'usb2', 'com1', 'com2', 'lpd', 'socket', 'ipp');
66    }
67  $drop['location'] = sqlarr('SELECT location FROM client_locations', '', 'location');  $drop['location'] = sqlarr('SELECT location FROM client_locations', '', 'location');
68  $drop['id'] = 'hidden';  $drop['id'] = 'hidden';
69  $drop['flg_modified'] = '1';  $drop['flg_modified'] = '1';
# Line 285  function parsearrs($name, $arr) Line 295  function parsearrs($name, $arr)
295   .keytab, input, textarea, select, option { font-size:8pt; font-family:Tahoma }   .keytab, input, textarea, select, option { font-size:8pt; font-family:Tahoma }
296   .but { font-size:10pt; font-family:Tahoma; height:23px }   .but { font-size:10pt; font-family:Tahoma; height:23px }
297  </style>  </style>
298    <script type="text/javascript" src="js/jquery-1.2.6.min.js"></script>
299  <script language="JavaScript" src="openclose_ajax.js"></script>  <script language="JavaScript" src="openclose_ajax.js"></script>
300  <script language="JavaScript">  <script language="JavaScript">
301    
# Line 294  function parsearrs($name, $arr) Line 305  function parsearrs($name, $arr)
305   $.ajax({type:""+typ+"",url:$url[0],data:$url[1],cache:false,success:function(data){ alert(data); }});   $.ajax({type:""+typ+"",url:$url[0],data:$url[1],cache:false,success:function(data){ alert(data); }});
306   }   }
307    
308    /* ignore this atm, not always working, sometime open does not work
309   function openclose(nummer, act)   function openclose(nummer, act)
310   {   {
311   var bild = document.images['sch_bild_'+nummer];   var bild = document.images['sch_bild_'+nummer];
# Line 305  function parsearrs($name, $arr) Line 317  function parsearrs($name, $arr)
317   });   });
318   if(act<=1){ $("#sch_bild_"+nummer).attr({title:'CLOSE',src:'pics/minus.gif'}); }else{ $("#sch_bild_"+nummer).attr({title:'OPEN',src:'pics/plus.gif'}); };   if(act<=1){ $("#sch_bild_"+nummer).attr({title:'CLOSE',src:'pics/minus.gif'}); }else{ $("#sch_bild_"+nummer).attr({title:'OPEN',src:'pics/plus.gif'}); };
319   }   }
320    */
321     function openclose(nummer, act)
322     {
323     var bild = document.images['sch_bild_'+nummer];
324     var absatz = document.all['sch_absatz_'+nummer].style;
325     var senden = false;
326    
327     if(bild.title == 'OPEN')
328     {
329     if(act<=1)
330     {
331     absatz.visibility = 'visible';
332     absatz.position = '';
333     bild.title = 'CLOSE';
334     bild.src = 'pics/minus.gif';
335     senden = true;
336     act = 0;
337     }
338     }
339     else
340     {
341     if(act>=1)
342     {
343     absatz.visibility = 'hidden';
344     absatz.position = 'absolute';
345     bild.title = 'OPEN';
346     bild.src = 'pics/plus.gif';
347     senden = true;
348     act = 2;
349     }
350     }
351    
352     if(senden) sendopenclose(nummer,act);
353     }
354    
355   function showhelp(name)   function showhelp(name)
356   { window.open(name, 'HelpWin', 'width=620,height=500,scrollbars=yes'); }   { window.open(name, 'HelpWin', 'width=620,height=500,scrollbars=yes'); }

Legend:
Removed from v.2601  
changed lines
  Added in v.2606