Мероприятия[an error occurred while processing this directive] 0)) $defaultMonths = intval($_REQUEST['months']); $defaultMonthe = $defaultMonths + 1; if (isset($_REQUEST['monthe']) && (intval($_REQUEST['monthe']) > 0)) $defaultMonthe = intval($_REQUEST['monthe']); if ($defaultMonthe > 12) $defaultMonthe = 12; $defaultYears = date('Y',time()); if (isset($_REQUEST['years']) && (intval($_REQUEST['years']) > 0)) $defaultYears = intval($_REQUEST['years']); $defaultYeare = $defaultYears; if (isset($_REQUEST['yeare']) && (intval($_REQUEST['yeare']) > 0)) $defaultYeare = intval($_REQUEST['yeare']); $defaultReport = ''; if (isset($_REQUEST['report']) && ($_REQUEST['report'] == 'on')) $defaultReport = 'checked="checked"'; $defaultRegistration = ''; if (isset($_REQUEST['registration']) && ($_REQUEST['registration'] == 'on')) $defaultRegistration = 'checked="checked"'; $defaultType = 0; if (isset($_REQUEST['type']) && (intval($_REQUEST['type']) > 0)) $defaultType = intval($_REQUEST['type']); $defaultCity = 719; // Москва if (isset($_REQUEST['city']) && ( intval($_REQUEST['city']) > 0)) $defaultCity = intval($_REQUEST['city']); ?>
БудyщиеGetForeach('main.rus.events.$', $where, "-start", 12, true); foreach($xmls as $xml) { $start = $xml->Get("start"); $end = $xml->Get("end"); if ($end == '') $end = $start; if (date("j.n.Y", $start) == date("j.n.Y", $end)) $_Date = date("j", $start)." ".$mrs[date("n", $start) - 1]." ".date("Y", $start); else if (date("n.Y", $start) == date("n.Y", $end)) $_Date = date("j", $start)."–".date("j", $end)." ".$mrs[date("n", $start) - 1]." ".date("Y", $start); else if ((date("Y", $start) == date("Y", $end)) && (date("n", $start) != date("n", $end))) $_Date = date("j", $start)." ".$mrs[date("n", $start) - 1]."–".date("j", $end)." ".$mrs[date("n", $end) - 1]." ".date("Y", $end); else $_Date = date("j", $start)." ".$mrs[date("n", $start) - 1]."–".date("j", $end)." ".$mrs[date("n", $end) - 1]." ".date("Y", $end); //." ".date("Y", $start)." г." $cxml = false; if ($xml->Get("city") != "") $cxml = $djem->GetDocument($xml->Get("city")); $city = $cxml !== false ? $cxml->Get("_name") : $xml->Get("city_other") ; ?>| Get("preambula"); ?> ">Get("_name"); ?> Get("report_text")) { echo 'Отчет'; }?> Get("is_foto") == "on") { echo 'Фотоотчет'; }?> ПрошедшиеGetForeach('main.rus.events.$', $where, "-start", 12, true); foreach($xmls as $xml) { $start = $xml->Get("start"); $end = $xml->Get("end"); if ($end == '') $end = $start; if (date("j.n.Y", $start) == date("j.n.Y", $end)) $_Date = date("j", $start)." ".$mrs[date("n", $start) - 1]." ".date("Y", $start); else if (date("n.Y", $start) == date("n.Y", $end)) $_Date = date("j", $start)."–".date("j", $end)." ".$mrs[date("n", $start) - 1]." ".date("Y", $start); else $_Date = date("j", $start)." ".$mrs[date("n", $start) - 1]."–".date("j", $end)." ".$mrs[date("n", $end) - 1]." ".date("Y", $end); $cxml = false; if ($xml->Get("city") != "") $cxml = $djem->GetDocument($xml->Get("city")); $city = $cxml !== false ? $cxml->Get("_name") : $xml->Get("city_other") ; ?>| Get("preambula"); ?> ">Get("_name"); ?> Get("report_text")) { echo 'Отчет'; }?> Get("is_foto") == "on") { echo 'Фотоотчет'; }?> Все прошедшие мероприятия (1763) ';
echo '
'.$months[intval($_REQUEST['cmonth'])].' '.intval($_REQUEST['cyear']).''; foreach($xmls as $xml) { $start = $xml->Get("start"); $end = $xml->Get("end"); if ($end == '') $end = $start; if (date("j.n.Y", $start) == date("j.n.Y", $end)) $_Date = date("j", $start)." ".$mrs[date("n", $start) - 1]." ".date("Y", $start); else if (date("n.Y", $start) == date("n.Y", $end)) $_Date = date("j", $start)." — ".date("j", $end)." ".$mrs[date("n", $start) - 1]." ".date("Y", $start); else $_Date = date("j", $start)." ".$mrs[date("n", $start) - 1]." — ".date("j", $end)." ".$mrs[date("n", $end) - 1]." ".date("Y", $end); $cxml = false; if ($xml->Get("city") != "") $cxml = $djem->GetDocument($xml->Get("city")); $city = $cxml !== false ? $cxml->Get("_name") : $xml->Get("city_other") ; ?>| Get("preambula"); ?> ">Get("_name"); ?> Get("report_text")) { echo 'Отчет'; }?> Get("is_foto") == "on") { echo 'Фотоотчет'; }?>
0))
$page = intval($_REQUEST['page']);
$onPage = 10;
$limitSTART = $page*$onPage;
$limit = $limitSTART . ',' . $onPage;
switch($_REQUEST['show'])
{
case 'past': {
echo '
Прошедшие'; $where.= "&& end lt ".time(); $sort = "-start"; break; } case 'report': { echo 'Прошедшие c отчетом'; $where.= "&& end lt ".time().""; $where.= " && report_text!=' '"; $sort = "-start"; break; } case 'registration': { echo 'Открыта регистрация'; $where.= "&& reg_start lt ".time()." && reg_end gt ".time().""; $sort = "-start"; break; } case 'future': { echo 'Будущие'; $where.= "&& end gt ".time(); $sort = "start"; break; } case 'all': { echo 'Все'; $sort = "start"; break; } default: { echo 'Все'; $sort = "start"; break; } } // пока сделаем так (берем все (все равно от них каунт получать) и отрезаем лишнее) $xmls = $djem->GetForeach('main.rus.events.$', $where, $sort, 0, true); $count = count($xmls); array_splice($xmls, 0, $limitSTART); array_splice($xmls, $onPage); //$xmls = $djem->GetForeach('main.rus.events.$', $where, "-start", $limit, true); foreach($xmls as $xml) { $start = $xml->Get("start"); $end = $xml->Get("end"); if ($end == '') $end = $start; if (date("j.n.Y", $start) == date("j.n.Y", $end)) $_Date = date("j", $start)." ".$mrs[date("n", $start) - 1]." ".date("Y", $start); else if (date("n.Y", $start) == date("n.Y", $end)) $_Date = date("j", $start)."–".date("j", $end)." ".$mrs[date("n", $start) - 1]." ".date("Y", $start); else $_Date = date("j", $start)." ".$mrs[date("n", $start) - 1]."–".date("j", $end)." ".$mrs[date("n", $end) - 1]." ".date("Y", $end); $cxml = false; if ($xml->Get("city") != "") $cxml = $djem->GetDocument($xml->Get("city")); $city = $cxml !== false ? $cxml->Get("_name") : $xml->Get("city_other") ; ?>| Get("preambula"); ?> ">Get("_name"); ?> Get("report_text")) { echo 'Отчет'; }?> Get("is_foto") == "on") { echo 'Фотоотчет'; }?> Страницы:
'.$pageTmp.'';
if($i < $pageNum-1)
echo ' | ';
}
?>
Результаты поиска'; $where = "_publish_time != 0 "; $monthStart = $defaultMonths; if (isset($_REQUEST['months']) && (intval($_REQUEST['months']) > 0)) $monthStart = intval($_REQUEST['months']); $monthEnd = $defaultMonthe; if (isset($_REQUEST['monthe']) && (intval($_REQUEST['monthe']) > 0)) $monthEnd = intval($_REQUEST['monthe']); $yearStart = $defaultYears; if (isset($_REQUEST['years']) && (intval($_REQUEST['years']) > 0)) $yearStart = intval($_REQUEST['years']); $yearEnd = $defaultYeare; if (isset($_REQUEST['yeare']) && (intval($_REQUEST['yeare']) > 0)) $yearEnd = intval($_REQUEST['yeare']); $type = 0; if (isset($_REQUEST['type']) && (intval($_REQUEST['type']) > 0)) $type = intval($_REQUEST['type']); $city = 0; if (isset($_REQUEST['city']) && (intval($_REQUEST['city']) > 0)) $city = intval($_REQUEST['city']); $report = false; if (isset($_REQUEST['report']) && $_REQUEST['report'] == 'on') $report = true; $registration = false; if (isset($_REQUEST['registration']) && $_REQUEST['registration'] == 'on') $registration = true; if($yearStart!=0) $where .= ' && start gt '.mktime(0,0,0,$monthStart,1,$yearStart); if($yearEnd!=0) $where .= ' && end lt '.mktime(0,0,0,$monthEnd,31,$yearEnd); if($type!=0) $where .= ' && eventstype = '.$type; if($city!=0) $where .= ' && city = '.$city; if($report) $where .= ' && report_text!=" "'; if($registration) $where .= ' && reg_start lt '.time().' && reg_end gt '.time(); $sort = "-#start"; $xmls = $djem->GetForeach('main.rus.events.$', $where, $sort, 0, true); foreach($xmls as $xml) { $start = $xml->Get("start"); $end = $xml->Get("end"); if ($end == '') $end = $start; if (date("j.n.Y", $start) == date("j.n.Y", $end)) $_Date = date("j", $start)." ".$mrs[date("n", $start) - 1]." ".date("Y", $start); else if (date("n.Y", $start) == date("n.Y", $end)) $_Date = date("j", $start)."–".date("j", $end)." ".$mrs[date("n", $start) - 1]." ".date("Y", $start); else $_Date = date("j", $start)." ".$mrs[date("n", $start) - 1]."–".date("j", $end)." ".$mrs[date("n", $end) - 1]." ".date("Y", $end); $cxml = false; if ($xml->Get("city") != "") $cxml = $djem->GetDocument($xml->Get("city")); $city = $cxml !== false ? $cxml->Get("_name") : $xml->Get("city_other") ; ?>| Get("preambula"); ?> ">Get("_name"); ?> Get("report_text")) { echo 'Отчет'; }?> Get("is_foto") == "on") { echo 'Фотоотчет'; }?> Deprecated: Function split() is deprecated in /home/bitrix/ext_www/psypress.ru/htdocs/inc/djem.php on line 778 Deprecated: mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead. in /home/bitrix/ext_www/psypress.ru/htdocs/inc/djem.php on line 686 Fatal error: Call to a member function Get() on a non-object in /home/bitrix/ext_www/psypress.ru/htdocs/inc/service_bar.php on line 38 |