ԲՈԼՈՐԸ"; $tNoItems = "Ոչինչ չկա։"; $queryLocation = "SELECT DISTINCT L.LocationID,L.Name".qLang.",T.Name".qLang." FROM location L INNER JOIN locationstructure LS ON L.LocationID = LS.LocationID INNER JOIN locationtypes T ON L.TypeID = T.TypeID WHERE LS.ParentID=".$parentID." ORDER BY 2"; } if($language == 2) { //$tAll = "ALL"; $tNoItems = "There is no items."; $queryLocation = "SELECT DISTINCT L.LocationID,L.Name".qLang.",T.Name".qLang." FROM location L INNER JOIN locationstructure LS ON L.LocationID = LS.LocationID INNER JOIN locationtypes T ON L.TypeID = T.TypeID WHERE LS.ParentID=".$parentID." ORDER BY 2"; } /* $resultLocation = mysql_query($queryLocation); if($resultLocation) { echo""; } */ ?> ">
"; } else { if(mysql_num_rows($resultLocation) != 0) { $name = "sLoc_".$ind; echo ""; $chCount++; } else { //echo""; } } } function CreateCheckboxes($arr, $lang, $ind, &$chCount) { $k = $chCount - $ind; echo ""; } echo ""; // foreach($_POST as $k => $v) // echo $k."----".$v."
"; $IsFirst = true; $arr = array(0); $i = 0; while(true) { $name = "sLoc_".$i; if(!$_POST[$name] || $_POST[$name] == 0) { if ($i == 0) $IsFirst = false; break; } else { $IsFirst = true; $arr[$i+1] = $_POST[$name]; } $i++; } echo"
$tNoItems
$locType
 
$tSelectiveSearch $tAll
"; for($i=0; $i
"; for($i=0; $i<$chCount; $i++) CreateCheckboxes($arr, $language, $i, $chCount); if($chCount != count($arr)) //echo""; echo"
 
"; $string = ""; for($i=0; $i document.getElementById('Locations').value = \"".str_replace("\"",""",$string)."\"; "; echo""; ?> selCh(); "; ?>