init($year,$month,"",""); $Calendar->link_page = "event_view.html"; $Event = load("Event"); $sql = " select * from $Event->table_name where event_day like '{$ym}%' and company_id = '$_config[company_id]' order by event_day asc "; $rlt = $DB->query($sql); $rows = $DB->fetchAll($rlt); foreach($rows as $k=>$v) { $v[day] = substr($v[event_day],8,2); $v[day] = (int)$v[day]; if($v[category]=="EVENT") { $Calendar->days[$v[day]]['info'] = "
{$v[title]}
"; } else if($v[category]=="ALERT") { $Calendar->days[$v[day]]['info'] = "
{$v[title]}
"; } } $cal = $Calendar->getCalendarEvent($year,$month,"",""); ?>

THEME FILE ERROR!