"; //$SearchArchivePars = $_SESSION['SearchArchivePars']; //if(is_array($SearchArchivePars)) extract($SearchArchivePars); if(isset($_GET['cat'])) $cat=$_GET['cat']; if(isset($_GET['yfrom'])) $yfrom=$_GET['yfrom']; if(isset($_GET['yto'])) $yto=$_GET['yto']; if(isset($_GET['projects'])) $projects=$_GET['projects']; if(isset($_GET['authors'])) $authors=$_GET['authors']; if(isset($_GET['page'])) $page=$_GET['page']; if(!isset($cat)) $cat='all'; $selectedCat=$cat; if($cat!='all'){ $search_pars[] = "cat = '$cat'"; $paging_pars[] = "cat=$cat"; $selectAuthor=" "; } $tabLabels[] = "".unlanguage("Все###All").""; foreach($arts_cats as $c=>$v){ if($c==2) continue; $tabLabels[] = "$v"; } $no_main_content_container=1; list($yfromMin, $ytoMax)=mysql_fetch_row(sql("select min(YEAR(created)), max(YEAR(created)) from items")); if($yfromMin < $yfromMininumMinimorum) $yfromMin =$yfromMininumMinimorum; if(!isset($yfrom)){ $yfrom = $yfromMin; } if($yfrom < $yfromMininumMinimorum) $yfrom =$yfromMininumMinimorum; if(!isset($yto)){ $yto = $ytoMax; } if(!isset($projects) or $projects=='all'){ $projects = 'all'; } else { // echo "
else=$else"; list($projectTitle, $projectDescription, $projectMTitle, $projectMDescription) = get_titles('projects', $projects, 'title, announce, mtitle, mdescription'); if($projectMTitle) $page_title = $this_page_title." / ".$projectMTitle; else $page_title = $this_page_title." / ".$projectTitle; if($projectMDescription) $this_page_description = $projectMDescription; else $this_page_description = $projectDescription; $meta_description=" "; $thumbik = thumbnail('projects', $projects, "t"); if($thumbik['exists']) { $meta_og_image=meta_og_image($thumbik); } $dom_ready_scripts[]=" $('.gadget[rel=projects]').siblings('a').html('".get_title('projects', $projects)."'); "; } if($cat!='all'){ if(!isset($authors) or $authors=='all'){ $authors = 'all'; } else { // если выбранный автор есть в выбранной категории //list($authorexists) = mysql_fetch_row(sql("select count(*) from authors where id in (select author from items where cat='$cat') and id='$authors'")); list($authorexists) = mysql_fetch_row(sql("select count(*) from authors where id in (select author from items_authors where item in (select id from items where cat='$cat')) and id='$authors'")); //echo "
select count(*) from authors where id in (select author from items where cat='$cat') and id='$authors'"; if($authorexists){ $dom_ready_scripts[]=" $('.gadget[rel=authors]').siblings('a').html('".get_title('authors', $authors)."'); "; } else { $authors = 'all'; } } } $navigation_script.=" "; $dom_ready_scripts[]=" $('.status .buttons').load('$htmlrootpath/archive/tune/getButtons.php?' + params); $( '#slider-range' ).slider({ range: true, min: $yfromMin, max: $ytoMax, values: [ $yfrom, $yto ], slide: function( event, ui ) { var yfrom=ui.values[ 0 ]; var yto=ui.values[ 1 ]; $( '.years .range' ).html( yfrom + '–' + yto); }, stop: function( event, ui ) { $('.gadget_tune').removeClass('open'); pars.yfrom = ui.values[ 0 ]; pars.yto = ui.values[ 1 ]; refreshContent(); }, create: function( event, ui ) { } }); $('.tabLabels a').click(function(){ var value = $(this).attr('rel'); pars.cat = value; $(this).siblings('a').removeClass('selected'); $(this).addClass('selected'); $('.gadget.authors').removeClass('loaded'); refreshContent() return false; }) $('.gadget_tune:not(.open) > a').click(function(){ if($(this).parent().is('.open')){ $(this).parent().removeClass('open'); return false; } params = $.param( pars ); $('.gadget_tune').removeClass('open'); $(this).parent().addClass('open'); var gadget=$(this).siblings('.gadget'); var module=gadget.attr('rel'); if(!gadget.hasClass('loaded')){ gadget.addClass(module).addClass('loaded').addClass('loading').find('.container') .load('$htmlrootpath/archive/tune/' + module + 'Settings.php?' + params + '&rand='+Math.floor(Math.random()*10000), function(){ gadget.removeClass('loading'); }); } return false; }) $('.gadget_tune a:not(.disabled)').live('click', function(){ var gadget=$(this).parents('.gadget'); var title = $(this).html(); var variable = gadget.attr('rel'); var value = $(this).attr('rel'); pars[variable] = value; gadget.siblings('a').html(title); $(this).parents('.gadget_tune').find('a').removeClass('active'); $(this).addClass('active'); $('.gadget_tune').removeClass('open'); refreshContent() return false; }) $('.status .buttons span a').live('click', function(){ var par = $(this).attr('rel'); if(par=='period'){ delete pars.yfrom; delete pars.yto; $('#slider-range').slider( 'values', [ $yfromMin, $ytoMax ] ); $( '.years .range' ).html( '$yfromMin–$ytoMax'); } if(par=='projects'){ pars.projects='all'; $('.gadget_tune.projects a').removeClass('active'); $('.gadget_tune.projects > a').html( $('.gadget_tune.projects .gadget a[rel=all]').addClass('active').find('b').html() ); } if(par=='authors'){ pars.authors='all'; $('.gadget_tune.authors a').removeClass('active'); $('.gadget_tune.authors > a').html( $('.gadget_tune.authors .gadget a[rel=all]').addClass('active').text() ); } /* var queryArr = $(this).attr('data').split('&'); pars = {}; for (var q = 0, qArrLength = queryArr.length; q < qArrLength; q++) { var qArr = queryArr[q].split('='); pars[qArr[0]] = qArr[1]; }*/ refreshContent() return false; }) $('.status > div.about, .announce .closer').live('click', function(){ if($('.aboutProject .announce').is('.show')){ $('.aboutProject .announce').slideUp(); } else { $('.aboutProject .announce').slideDown(); } $('.aboutProject .announce').toggleClass('show'); return false; }) "; $dom_ready_scripts[]=" var showItemCount = 0; $('#waterfall > div.item a.showItem').live('click', function(e){ e.preventDefault(); var id=$(this).parents('.item').attr('id').substr(1); var href=$(this).attr('href'); showItem(id, href); return false; }); function showItem(id, href){ //console.log(window.location.href); $('body').addClass('noScroll'); $('#Closeup').load('$htmlrootpath/archive/tune/getItem.php?id='+id, function(){ window.history.pushState(null, null, href); showItemCount++; $(this).liQuotes(); }).attr('data-referer', '$REQUEST_URI'); } "; if($showItem){ $dom_ready_scripts[]=" var href='$htmlrootpath/archive/item.htm?id=$showItem'; showItem($showItem, href); "; } if(isset($item)){ //попробуем прокрутить к f$item $scrollToItem =" console.log($('#f$item').length); if(!stopScrollToItem){ if ( $('#f$item').length ) { $('html, body').animate({ scrollTop: $('#f$item').offset().top-30 }, 500); stopScrollToItem = true; } else { $('html, body').animate({ scrollTop: $(document).height() }, 500); } } "; } $beforeMainblock="

".unlanguage("Архив Бориса Юхананова###Archive of Boris Yukhananov")." $yashare

".join($tabLabels)."
"; $content_page_title=$page_header; echo standard_content($this_content); ?>