| version 1.2, 2010/11/02 08:54:01 |
version 1.3, 2010/12/27 13:43:40 |
| Line 31 function getEventsOfMonth($date = NULL) |
|
| Line 31 function getEventsOfMonth($date = NULL) |
|
| while ($row = @mysql_fetch_array($result, MYSQL_ASSOC)) { |
while ($row = @mysql_fetch_array($result, MYSQL_ASSOC)) { |
| $day = date("j",strtotime($row['calendar_flag'])); |
$day = date("j",strtotime($row['calendar_flag'])); |
| //echo $day."<br>"; |
//echo $day."<br>"; |
| $return[$day][$row['id']] = $row['title']; |
$return[$day][$row['id']] = $row; |
| |
|
| } |
} |
| @mysql_free_result($result); |
@mysql_free_result($result); |
| Line 182 function getCalendar($position = NULL, $ |
|
| Line 182 function getCalendar($position = NULL, $ |
|
| $DATA_eventsOfDay .= "<ul>\n"; |
$DATA_eventsOfDay .= "<ul>\n"; |
| for ($c=0; $c<=count($keysOfEvents)-1; $c++ ) { |
for ($c=0; $c<=count($keysOfEvents)-1; $c++ ) { |
| $eventsIdOfArticle=$keysOfEvents[$c]; |
$eventsIdOfArticle=$keysOfEvents[$c]; |
| $eventsTitleOfArticle=$events[$eventsIdOfArticle]; |
$eventsTitleOfArticle=$events[$eventsIdOfArticle]['title']; |
| $eventsTitleOfArticle = str_replace('~', ' ', $eventsTitleOfArticle); |
$eventsTitleOfArticle = str_replace('~', ' ', $eventsTitleOfArticle); |
| |
|
| $DATA_eventsOfDay .= "<li>\n"; |
$DATA_eventsOfDay .= "<li>\n"; |
| $DATA_eventsOfDay .= "<a href=\"".$GLOBALS["calendar_linkForArticle"] |
if (strlen($events[$eventsIdOfArticle]['bodytext']) > 0) { |
| .$eventsIdOfArticle |
$DATA_eventsOfDay .= '<a href="'.$GLOBALS["calendar_linkForArticle"] |
| .$GLOBALS["calendar_linkForArticle_end"]."\">" |
.$eventsIdOfArticle |
| .$eventsTitleOfArticle."</a>\n"; |
.$GLOBALS["calendar_linkForArticle_end"].'">'; |
| |
} |
| |
$DATA_eventsOfDay .= $eventsTitleOfArticle; |
| |
if (strlen($events[$eventsIdOfArticle]['bodytext']) > 0) { |
| |
$DATA_eventsOfDay .= '</a>'; |
| |
} |
| |
$DATA_eventsOfDay .= "\n"; |
| $DATA_eventsOfDay .= "</li>\n"; |
$DATA_eventsOfDay .= "</li>\n"; |
| } |
} |
| $DATA_eventsOfDay .= "</ul>\n"; |
$DATA_eventsOfDay .= "</ul>\n"; |