php //// FILTER FUNCTIONS //// $nf = getfgroups(); $GLOBALS['filters'] = array(); foreach($nf as $nfk => $nfv){ $GLOBALS['filters']['0'][] = array('gid' => $nfk, 'gname' => $nfv , 'gopts' => getgopts($nfk)); } function findfgname($name){ $query = "SELECT * FROM [|PREFIX|]filter_groups WHERE `gname`='".$name."' LIMIT 1"; $result = $GLOBALS['ISC_CLASS_DB']->Query($query); while ($row = $GLOBALS['ISC_CLASS_DB']->Fetch($result)) { $fgname = $row['gname']; } if(isset($fgname)){ return $fgname; } } function findoname($name, $gid){ $query = "SELECT * FROM [|PREFIX|]filter_group_options WHERE `oname`='".$name."' AND `gid`='".$gid."' LIMIT 1"; $result = $GLOBALS['ISC_CLASS_DB']->Query($query); while ($row = $GLOBALS['ISC_CLASS_DB']->Fetch($result)) { $oname = $row['oname']; } if(isset($oname)){ return $oname; } } function getfoname($gid, $oid){ $query = "SELECT * FROM [|PREFIX|]filter_group_options WHERE `oid`='".$oid."' AND `gid`='".$gid."' LIMIT 1"; $result = $GLOBALS['ISC_CLASS_DB']->Query($query); while ($row = $GLOBALS['ISC_CLASS_DB']->Fetch($result)) { $foname = $row['oname']; } if(isset($foname)){ return $foname; } } function getfgname($id){ $query = "SELECT * FROM [|PREFIX|]filter_groups WHERE `gid`='".$id."' LIMIT 1"; $result = $GLOBALS['ISC_CLASS_DB']->Query($query); while ($row = $GLOBALS['ISC_CLASS_DB']->Fetch($result)) { $fgname = $row['gname']; } if(isset($fgname)){ return $fgname; } } function getfgid($name){ $query = "SELECT * FROM [|PREFIX|]filter_groups WHERE `gname`='".$name."' LIMIT 1"; $result = $GLOBALS['ISC_CLASS_DB']->Query($query); while ($row = $GLOBALS['ISC_CLASS_DB']->Fetch($result)) { $fgid = $row['gid']; } if(isset($fgid)){ return $fgid; } } function getoptid($oname, $gid){ $query = "SELECT * FROM [|PREFIX|]filter_group_options WHERE `oname`='".$oname."' AND `gid`='".$gid."' LIMIT 1"; $result = $GLOBALS['ISC_CLASS_DB']->Query($query); while ($row = $GLOBALS['ISC_CLASS_DB']->Fetch($result)) { $optid = $row['oid']; } if(isset($optid)){ return $optid; } } function getfgroups(){ $fgroups = array(); $query = "SELECT * FROM [|PREFIX|]filter_groups"; $result = $GLOBALS['ISC_CLASS_DB']->Query($query); while ($row = $GLOBALS['ISC_CLASS_DB']->Fetch($result)) { $fgroups[$row['gid']] = $row['gname']; } if(isset($fgroups)){ return $fgroups; } } function getgopts($gid){ $fgopts = array(); $query = "SELECT * FROM [|PREFIX|]filter_group_options WHERE `gid`='".$gid."'"; $result = $GLOBALS['ISC_CLASS_DB']->Query($query); while ($row = $GLOBALS['ISC_CLASS_DB']->Fetch($result)) { $fgopts[$row['oid']] = $row['oname']; } if(isset($fgopts)){ return $fgopts; } } //////// NEW /* function getfoname($gid, $oid){ foreach($GLOBALS['filters'] as $filter){ if($filter['gid'] == $gid){ $foname = $filter['gopts'][$oid]; } } if(isset($foname)){ return $foname; } } function getfgname($id){ foreach($GLOBALS['filters'] as $filter){ if($filter['gid'] == $id){ $fgname = $filter['gname']; } } return $fgname; } function getgopts($gid){ $fgopts = array(); foreach($GLOBALS['filters'] as $filter){ if($filter['gid'] == $gid){ $fgopts = $filter['gopts']; } } return $fgopts; } */ if(isset($_POST['fload']) && $_POST['fload'] == 'fgroups'){ $fgroups = getfgroups(); $fg = array(); foreach($fgroups as $k => $v){ $fg[] = array('gid' => $k, 'gname' => $v, 'gopts' => getgopts($k)); } if($fg){ header('Cache-Control: no-cache, must-revalidate'); header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); header('Content-type: application/json'); echo json_encode($fg); } exit; } if(isset($_POST['fload']) && $_POST['fload'] == 'fopts'){ $gid = $_POST['gid']; $filteroptions = array(); header('Cache-Control: no-cache, must-revalidate'); header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); header('Content-type: application/json'); $filteroptions = array('gid' =>$gid, 'opts' => getgopts($gid)); if($filteroptions){ echo json_encode($filteroptions); } exit; } if(isset($_POST['addfiltru']) && $_POST['addfiltru'] == 'adauga'){ $fgname = $_POST['fgname']; if($fgname){ if(findfgname($fgname) == $fgname){ echo 'duplicate'; }else{ $query = "INSERT INTO [|PREFIX|]filter_groups (gname) VALUES ('".$fgname."');"; $result = $GLOBALS['ISC_CLASS_DB']->Query($query); echo $result; } } exit; } if(isset($_POST['addfiltru']) && $_POST['addfiltru'] == 'getid'){ $fgname = $_POST['fgname']; $id = getfgid($fgname); if($id){ echo $id; } exit; } if(isset($_POST['addoptiune']) && $_POST['addoptiune'] == 'adauga'){ $oname = $_POST['oname']; $gid = $_POST['gid']; if($oname && $gid){ if(findoname($oname, $gid) == $oname){ echo 'duplicate'; }else{ $query = "INSERT INTO [|PREFIX|]filter_group_options (oname, gid) VALUES ('".$oname."','".$gid."');"; $result = $GLOBALS['ISC_CLASS_DB']->Query($query); echo $result; } } exit; } if(isset($_POST['addoptiune']) && $_POST['addoptiune'] == 'getid'){ $oname = $_POST['oname']; $gid = $_POST['gid']; $id = getoptid($oname, $gid); if($id){ echo $id; } exit; } //// FILTER FUNCTIONS //// ?> Bec xenon D2S - garantie 12 luni. Cumpara On-line pret soc
  Incarca... Va rugam asteptati...
Bine ai venit!Intra in cont
 
 

Bec xenon D2S

  • Imagine 1




discount
Pret final:
75 Lei
Producator:
Greutate:
0,2 KGS
Culoare:
Cantitate:



Descriere produs

Bec xenon D2S pentru inlocuirea becului ars a instalatiilor xenon cu care sunt echipate autoturismele din fabrica. Compatibil cu toate modelele de instalatii xenon D2S

Garantie 12 luni

Becul xenon D2S este folosit la urmatoarele autoturisme:
BWM- 5/7 3Serier
BWM- X5
BWM- 4Seres
BWM- 5Seres
BWM- 730Li
BWM- 728
BENZ- E240
BENZ- ESK350
LEXUS- 430

Produsul bec xenon D2S exista in stoc permanent in variantele:

  • bec D2S culoare 4300k
  • bec D2S culoare 6000k
  • bec D2S culoare 8000k

Scrieti-va parerea dumneavoastra despre acest produs

Nu ne puneti intrebari aici nu veti primi nici un raspuns folositi formularul din pagina de contact sau cel din dreapta jos. Aici puteti scrie o parere despre acest produs.

La acest produs nu exista inca comentarii. Fi primul care isi spune parerea despre acest produs!


Clientii care au vazut acest produs au mai mai fost interesati si de:

Produse relationate

Produse vizualizate