"; $table_name = "worlds"; if(isset($id)){ include("$rootpath/worlds/article.php"); $this_content=$output; echo standard_content($this_content); exit(); } $bodyClass = 'worldsIndex'; $headerBottom = "

".unlanguage("Миры###worlds")."

".unlanguage("Бориса Юхананова###Of Boris Yukhananov")."
"; $dom_ready_scripts[]=" $( window ).scroll(function() { var top=$(window).scrollTop(); //dbg(top); if(top<330){ $('body').removeClass('min'); $('body.worldsIndex div.header').height(420-top); } else { $('body').addClass('min'); } if(top>140){ $('body').addClass('fadeTitle'); } else { $('body').removeClass('fadeTitle'); } // dbg(top) }) "; if($user_level>=5){ $add_new="
".add_new('worlds', "Статью")."
"; } else { $search_pars[]="display=1"; } $search_pars[]=$TitleNotEmpty; ############# $fields = array('id', 'title', 'about', 'display', 'views'); $pars['page']=$page; $pars['order']='n'; $pars['items_on_page']=10; $pars['hidden_search_pars']=$search_pars; $pars['paging_pars']=$paging_pars; $pars['heads_on_page_var']='objects_on_page'; $pars['objects_type']='Objects'; $result_array=listalka($table_name, $fields, $pars); // echo "
".print_r($result_array, 1)."
"; //$this_content.="
".print_r($result_array['query'], 1)."
"; $found_items = $result_array['found_items']; $total_pages = $result_array['total_pages']; $i=1; if(is_array($result_array['fields'])){ foreach($result_array['fields'] as $array){ if($i>2) $i=1; unset($image, $logo); foreach($array as $k=>$v){ $$k=unlanguage($v); } if($user_level>=5){ $edit=controls($id, $table_name, $display); } $href="$htmlrootpath/worlds/?id=$id"; //#disqus_thread $thumbik = thumbnail($table_name, $id, "t"); if($thumbik['exists']) { $thumb="background-image: url(".$thumbik['src'].");"; $yashareImage=$thumbik['src']; } else { $thumb=$yashareImage=""; } $thumbik = thumbnail($table_name, $id, "l"); if($thumbik['exists']) { $logo=""; } else { $logo="
"; } if($user_level>=5){ $edit=controls($id, $table_name, $display).""; } $tdThumb="
"; $tdTitle=" $logo
$title
$about

"; $rows[]="
".($i==1?"$tdThumb$tdTitle":"$tdTitle$tdThumb")."
$edit
"; $i++; } } if(is_array($rows)){ $rowsList="
".join($rows, "")."
"; } if($total_pages>1){ $listalka = $result_array['listalka']; } $this_content="
$yashare
"; $afterMainblock="
$rowsList $listalka $add_new
"; //$content_page_title=$page_header; echo standard_content($this_content);