debugging = false; ?> $ajanlo) { unset($data,$onetag); $i++; $data['id'] = $ajanlo->get("id"); $data['title_hun'] = $ajanlo->get("title_hun"); $data['origin'] = $ajanlo->get("origin"); $data['birth'] = $ajanlo->get("birth"); $data['tags'] = $ajanlo->get("tagek"); foreach($data['tags'] as $key=>$tag) { $onetag=$tag[obj]->attribs; $data['tagsall'].=$onetag['name']." "; $data['tagsarray'][$onetag['id']]=$onetag['name']; } $data['tags']=$data['tagsall']; foreach($ajanlo->get("mufajok") as $key=>$mufaj) { $data['mufajok'].=$mufaj." "; } if($pic=='1') { $ret=""; if (is_file("common/images/movies/".ceil($data['id']/1000).'/'.$data['id']."/mains.jpg")) { $ret = "common/images/movies/".ceil($data['id']/1000).'/'.$data['id']."/mains.jpg"; } else { $ret = "common/images/movies/blank.jpg"; } $data['pic'] = $_CMSVARS['urlroot']."/".$ret; }else{ $data['pic'] = $_CMSVARS['urlroot']."/".$ajanlo->get("pic"); } $data['origins'] = $ajanlo->get("orig_lang_"); $data['description_hun'] = $ajanlo->get("description_hun"); $data['plot_hun'] = $ajanlo->get("plot_hun"); if(!$ertekeles) { $q="SELECT SUM(general) AS points, COUNT(id) AS votes, SUM(general)/COUNT(id) as atlag FROM fx_assess WHERE ref_movie=".$data['id']; $res = $database->db->Execute($q); $data['points'] =$res->fields; $data['points2'] = $ajanlo->get("general"); }else{ $data['general_egyedi']=$ertekeles[$i-1]; $data['general_txt'] = get_general_by_id($ertekeles[$i-1], $_CMSVARS['lng']); } $Movies[$data['title_hun']]=$data; } } return $Movies; } //############################################################################## //Szűrő előállítása bitmapmező lekérdezéshez //$vals: arrya, melyik helyértékeken van 1 es //$long: a mező hossza; //############################################################################## function GetBitmap($val, $arr, $long) { $long=$long-1; for($i=0;$i<=$long; $i++) { if(substr($val,$i,1)) { $effect.= $arr[$i]['name'].","; } } return $effect; } ?> array ( 'id' => 'comedy', 'name' => 'vĂ­gjátĂ©k', 'position' => 10 ), 1 => array ( 'id' => 'action', 'name' => 'akciĂł', 'position' => 20 ), 2 => array ( 'id' => 'fantasy', 'name' => 'fantasy', 'position' => 30 ), 3 => array ( 'id' => 'cartoon', 'name' => 'rajzfilm', 'position' => 40 ), 4 => array ( 'id' => 'animation', 'name' => 'animáciĂł', 'position' => 50 ), 5 => array ( 'id' => 'drollery', 'name' => 'bábfilm', 'position' => 60 ), 6 => array ( 'id' => 'familial', 'name' => 'családi', 'position' => 70 ), 7 => array ( 'id' => 'documentary', 'name' => 'dokumentum', 'position' => 80 ), 8 => array ( 'id' => 'drama', 'name'=> 'dráma', 'position' => 90 ), 9 => array ( 'id' => 'biographical', 'name' => 'Ă©letrajzi', 'position' => 100 ), 10 => array ( 'id' => 'erotic', 'name' => 'erotikus', 'position' => 110 ), 11 => array ( 'id' => 'thriller', 'name' => 'thriller', 'position' => 120 ), 12 => array( 'id' => 'wartime', 'name' => 'háborĂşs', 'position' => 130 ), 13 => array( 'id' => 'horror', 'name' => 'horror', 'position' => 140 ), 14 => array ( 'id' => 'sci-fi', 'name' => 'sci-fi', 'position' => 150 ), 15 => array ( 'id' => 'humor', 'name' => 'humor', 'position' => 160 ), 16 => array ( 'id' => 'concert', 'name' => 'koncert', 'position' => 170 ), 17 => array ( 'id' => 'picture', 'name' => 'játĂ©kfilm', 'position' => 180 ), 18 => array ( 'id' => 'adventure', 'name' => 'kalandfilm', 'position' => 190 ), 19 => array ( 'id' => 'farce', 'name' => 'komĂ©dia', 'position' => 200 ), 20 => array ( 'id' => 'detective', 'name' => 'krimi', 'position' => 210 ), 21 => array ( 'id' => 'mysterious', 'name' => 'misztikus', 'position' => 220 ), 22 => array ( 'id' => 'art', 'name' => 'művĂ©sz', 'position' => 230 ), 23 => array ( 'id' => 'musical', 'name' => 'musical', 'position' => 240 ), 24 => array ( 'id' => 'opera', 'name' => 'opera', 'position' => 250 ), 25 => array ( 'id' => 'romantic', 'name' => 'romantikus', 'position' => 260 ), 26 => array ( 'id' => 'sport', 'name' => 'sport', 'position' => 270 ), 27 => array ( 'id' => 'satire', 'name' => 'szatĂ­ra', 'position' => 280 ), 28 => array ( 'id' => 'historic', 'name' => 'törtĂ©nelmi', 'position' => 290 ), 29 => array ( 'id' => 'western', 'name' => 'western', 'position' => 300 ), 30 => array ( 'id' => 'nonfiction', 'name' => 'ismeretterjesztĹ‘', 'position' => 310 ), 31 => array ( 'id' => 'music', 'name' => 'zenĂ©s', 'position' => 320 ), 32 => array ( 'id' => 'pszthriller', 'name' => 'pszichotriller', 'position' => 330 ), 33 => array ( 'id' => 'operett', 'name' => 'operett', 'position' => 340 ), 34 => array ( 'id' => 'nature', 'name' => 'termĂ©szetfilm', 'position' => 350 ), 35 => array ( 'id' => 'parodia', 'name' => 'parĂłdia', 'position' => 360 ), 36 => array ( 'id' => 'dogma', 'name' => 'dogma film', 'position' => 370 ) ); ?> #text keresel."; $TEXT['hun']['veletlen_ajanlas_ebben_a_kategoriaban']="VĂ©letlen ajánlás ebben a kategĂłriában!"; $TEXT['hun']['kezdo_oldal']="KezdĹ‘ oldal"; $TEXT['hun']['sok_talalt']="Sok a találat. PontosĂ­tsd a keresĂ©st."; $TEXT['hun']['hasonlo_filmek']="HasonlĂł filmek"; $TEXT['hun']['keres']="Keres"; $TEXT['hun']['velemenyek']="VĂ©lemĂ©nyek"; $TEXT['hun']['tobb_lehetoseg']="Több lehetĹ‘sĂ©g"; $TEXT['hun']['keresd_az_interneten']="Keresd az Interneten"; $TEXT['hun']['lap_tetejere']="Lap tetejĂ©re"; $TEXT['hun']['altal_ertekelt_filmek']=" által Ă©rtĂ©kelt filmek"; $TEXT['hun']['szia']="Szia!"; $TEXT['hun']['vissza_a_foldalra']="Vissza a fĹ‘oldalra"; $TEXT['hun']['ujabb_ajanlas_ebben_a_kategoriaban']="Ăšjabb ajánlás ebben a kategĂłriában"; $TEXT['hun']['ertekelo_tobbi_filmje']="ÉrtĂ©kelĹ‘ többi filmje"; $TEXT['hun']['szerint_ez_a_film']="szerint ez a film"; //BetöltjĂĽk az aktuális nyelvet $TEXTLNG=$TEXT[$_SESSION['lng']]; $smarty->assign("TEXT",$TEXTLNG); ?> totalPages=ceil($numRows/$rowsPerPage); // Check that a valid page has been provided if ( $currentPage < 1 ) $currentPage=1; else if ( $currentPage > $this->totalPages ) $currentPage=$this->totalPages; // Calculate the row to start the select with $this->startRow=(($currentPage - 1) * $rowsPerPage); //what was the limit $this->Limit=$rowsPerPage; if($currentPage <= $this->PagersNum) { $end=$this->PagersNum*2; if($end>$this->totalPages)$end=$this->totalPages-1; for($i=0;$i<=$end;$i++){ $Pagers[$i]=$i+1; } $low_pagenum='1'; } if($currentPage>$this->PagersNum and $currentPage<$this->totalPages-$this->PagersNum) { for($i=0-$this->PagersNum;$i<=$this->PagersNum;$i++){ $Pagers[$i]=$i+$currentPage; } } if(($currentPage>=($this->totalPages-$this->PagersNum)) and $low_pagenum!='1') { $start=$this->totalPages-$this->PagersNum*2; if($start<1)$start=1; for($i=$start;$i<=$this->totalPages;$i++){ $Pagers[$i]=$i; } } $this->Pagers=$Pagers; // } function getTotalPages () { return $this->totalPages; } function getStartRow() { return $this->startRow; } function getLimit() { return $this->Limit; } } ?> getRelevList($params); $_REQUEST['all_num']=$res_count; //lekérdezés, kategória szerinti vilmek /* $query_count = "SELECT COUNT(id) AS darab FROM fx_movie WHERE SUBSTRING(fx_movie.cathegory, 1, 1)='1'"; $query="SELECT * FROM fx_movie WHERE SUBSTRING(fx_movie.cathegory, ".$ilyet.", 1)='1' ORDER BY fx_movie.title_hun ASC"; list($res, $res_count) = $film->getLista($query, $query_count, $_REQUEST['from'], $_CMSVARS['MovieStepLimit']); $_REQUEST['all_num']=$res_count; if ($res) { while (!$res->EOF) { $film = new tFilm(); /* betoltjuk az adatokat $film->load($res->fields("id")); $lista[] = $film; $res->MoveNext(); } } else { echo $query."\n".$query_count; } */ //Templéthez az adatok feldolgozása $Movies=getMovieListData($lista,'1'); $i=count($Movies); //léptetéshez if($i<$_CMSVARS['MovieStepLimit'] or ($_REQUEST['from']*$_CMSVARS['MovieStepLimit'])>=$_REQUEST['all_num']){unset($_REQUEST['next']);} //ha nincs több oldal előre //templétbe $smarty->assign("Movies",$Movies); //ezt a templétet kérjük $display='listmovies.tpl'; ?>