addScript('js/jquery.js'); $maintemplate->addScript('js/events.js'); $maintemplate->addScript('js/ui.core.js'); $maintemplate->addScript('js/ui.datepicker.js'); $maintemplate->addScript('js/init_dp_'.$currlang.'.js'); $maintemplate->addCss('css/'.$currlang.'_style.css'); $maintemplate->addCss('css/ui.datepicker.css'); //filtri $ocont = TemplateManager::getObject('content'); $filters = $ocont->events_get_filters(); parse_str($_SERVER['QUERY_STRING'], $tmp); foreach($tmp as $k=>$v) if(array_key_exists($k, $filters)) $filters[$k]=$v; $filters['status']=2; //forzo il filtro sui pubblicati $filters['cnt']=3; //3 eventi per pagina $maintemplate->addView('HEADER', 'header'); $maintemplate->addView('MENU', 'menu', array('menuitem' => 'events')); $maintemplate->addView('COLONNA-SX', 'events_colonnasx', array( 'currlang' => $currlang, 'filters' => $filters )); $maintemplate->addView('COLONNA-CENTER', 'events_form', array('filters'=>$filters)); $maintemplate->addView('COLONNA-CENTER', 'events_list', array( 'eventscount' => array($ocont, 'event_list_count', $filters), 'events' => array($ocont, 'event_list', $filters, $currlang, 'e.dtainizio ASC'), 'filters' => $filters, 'currlang' => $currlang )); $maintemplate->addView('COLONNA-DX', "events_search", array('filters'=>$filters)); $maintemplate->addView('FOOTER', 'footer'); echo $maintemplate->show(); ?>