uri->segment(2); $url_month = ee()->uri->segment(3); $conditions = array(); $date_string = ''; if($url_year) { if($url_month) { $month_name = date('F', mktime(0, 0, 0, $url_month, 10)); $date_string .= ' held in '.$month_name.', '.$url_year; $conditions['other_date >'] = date('Y-m-d H:i:s', strtotime($url_year.'-'.$url_month.'-01 00:00:00')); $conditions['other_date <'] = date('Y-m-d H:i:s', strtotime($url_year.'-'.$url_month.'-01 00:00:00 +1 month')); } else { $date_string .= ' held in '.$url_year ; $conditions['other_date >'] = date('Y-m-d H:i:s', strtotime($url_year.'-01-01 00:00:00')); $conditions['other_date <'] = date('Y-m-d H:i:s', strtotime($url_year.'-01-01 00:00:00 +1 year')); } } $conditions['resource_type_id'] = 9; $db_config = new Database\DBConfig(ee('Config')->getFile('iris_edu_resource_database')); $db_config->getGroupConfig('iris_edu_resource'); $inclass_db = new Database\Database($db_config); ?>

Webinars

newQuery()->select('*')->from('resource')->where($conditions)->order_by('other_date', 'desc')->get(); ?> num_rows() > 0): ?> result() as $row): ?> other_date); ?>
DateTitle
resource_title ?> resource_author): ?> resource_author); $arr = json_decode($jsonStrng); if($arr) { $row->resource_author = $arr->name; } ?>
resource_author?>
No Webinars in this period.