예제 #1
0
파일: week.php 프로젝트: dalinhuang/sutoj
             echo "</font></td>\n";
         }
         echo "</tr>\n";
         echo "<tr>\n";
         echo "<td colspan=\"2\">\n";
         echo "<table width=\"100%\" border=\"0\" cellpadding=\"1\" cellspacing=\"0\">\n";
         echo "<tr>\n";
         echo '<td class="eventbg_' . $event_calno . '">';
         $event_end = $this_time_arr[$event_length[$thisday][$i]["key"]]["end_unixtime"];
         if (isset($this_time_arr[$event_length[$thisday][$i]["key"]]['display_end'])) {
             $event_end = strtotime($this_time_arr[$event_length[$thisday][$i]["key"]]['display_end']);
         }
         $event_end = date($timeFormat, $event_end);
         $event_calna = $this_time_arr[$event_length[$thisday][$i]["key"]]['calname'];
         $event_url = $this_time_arr[$event_length[$thisday][$i]["key"]]['url'];
         openevent("{$event_calna}", "{$event_start}", "{$event_end}", $this_time_arr[$event_length[$thisday][$i]["key"]], $week_events_lines, 25, "<font class=\"V10W\">", "</font>", "psf", $event_url);
         echo "</td></tr>\n";
         echo "</table>\n";
         echo "</td>\n";
         echo "</tr>\n";
         echo "</table>\n";
         echo "</td>\n";
         break;
     case "started":
         break;
     case "ended":
         echo "<td bgcolor=\"#ffffff\" colspan=\"" . $drawWidth . "\" {$class}>&nbsp;</td>\n";
         break;
 }
 $event_length[$thisday][$i]["length"]--;
 if ($event_length[$thisday][$i]["length"] == 0) {
예제 #2
0
         echo '<tr>' . "\n";
         echo '<td class="eventborder"><font class="eventfont"><b>' . $event_start . '</b> - ' . $event_end . '</font></td>' . "\n";
         if ($event_status != '') {
             echo '<td class="eventborder" width="9" align="right" valign="center"><font class="eventfont">';
             echo '<img src="images/' . $event_status . '.gif" width="9" height="9" alt="" border="0" hspace="0" vspace="0">';
             echo '</font></td>' . "\n";
         }
         echo '</tr>' . "\n";
         echo '<tr>' . "\n";
         echo '<td colspan="2">' . "\n";
         echo '<table width="100%" border="0" cellpadding="1" cellspacing="0">' . "\n";
         echo '<tr>' . "\n";
         echo '<td class="eventbg_' . $event_calno . '">';
         $event_calna = $this_time_arr[$event_length[$i]['key']]['calname'];
         $event_url = $this_time_arr[$event_length[$i]['key']]['url'];
         openevent($event_calna, $event_start, $event_end, $this_time_arr[$event_length[$i]['key']], '', 0, '<font class="eventfont">', '</font>', 'psf', $event_url);
         echo '</td></tr>' . "\n";
         echo '</table>' . "\n";
         echo '</td>' . "\n";
         echo '</tr>' . "\n";
         echo '</table>' . "\n";
         echo '</td>' . "\n";
         break;
     case 'started':
         break;
     case 'ended':
         echo '<td bgcolor="#ffffff" colspan="' . $drawWidth . '" ' . $class . '>&nbsp;</td>' . "\n";
         break;
 }
 $event_length[$i]['length']--;
 if ($event_length[$i]['length'] == 0) {
예제 #3
0
                            $event_start = date($timeFormat, strtotime("{$event_start}"));
                            $event_end = date($timeFormat, strtotime("{$event_end}"));
                            $event_start2 = $event_start;
                        } else {
                            $event_start = "{$all_day_lang}";
                            $event_start2 = '';
                            $event_end = '';
                        }
                        echo "<tr align=\"left\" valign=\"top\">\n";
                        echo "<td width =\"155\" class=\"{$fontclass}\" nowrap><a class=\"psf\" href=\"day.php?cal={$cal}&amp;getdate={$key}\">{$dayofmonth}</a> <font class=\"V9G\">({$event_start})</font></td>\n";
                        if ($first_time == TRUE) {
                            echo "<td width=\"5\" class=\"montheventline\" rowspan=\"{$num_of_events2}\"></td>";
                            $first_time = FALSE;
                        }
                        echo "<td>\n";
                        openevent($event_calna, $event_start, $event_end, $new_val2, 0, 65, '<font class="G10B">', '</font>', 'psf', $event_url);
                        echo "</td>\n";
                        echo "</tr>\n";
                    }
                }
            }
        }
    }
    ?>
			</table>		
<?php 
}
?>
</center>
<?php 
include BASE . 'includes/footer.inc.php';
예제 #4
0
 function monthbottom()
 {
     global $template, $getdate, $master_array, $this_year, $this_month, $cal, $timeFormat, $timeFormat_small, $dateFormat_week_list, $lang;
     preg_match("!<\\!-- loop showbottomevents_odd on -->(.*)<\\!-- loop showbottomevents_odd off -->!is", $this->page, $match1);
     preg_match("!<\\!-- loop showbottomevents_even on -->(.*)<\\!-- loop showbottomevents_even off -->!is", $this->page, $match2);
     $loop[0] = trim($match1[1]);
     $loop[1] = trim($match2[1]);
     $m_start = $this_year . $this_month . '01';
     $u_start = strtotime($m_start);
     $i = 0;
     do {
         if (isset($master_array[$m_start])) {
             foreach ($master_array[$m_start] as $cal_time => $event_times) {
                 $switch['CAL'] = $cal;
                 $switch['START_DATE'] = localizeDate($dateFormat_week_list, $u_start);
                 foreach ($event_times as $uid => $val) {
                     $switch['CALNAME'] = $val['calname'];
                     if (!isset($val['event_start'])) {
                         $switch['START_TIME'] = $lang['l_all_day'];
                         $switch['EVENT_TEXT'] = openevent($m_start, $cal_time, $uid, $val, $month_event_lines, 15, 'psf');
                         $switch['DESCRIPTION'] = urldecode($val['description']);
                     } else {
                         $event_start = $val['start_unixtime'];
                         $event_end = isset($val['display_end']) ? $val['display_end'] : $val["event_end"];
                         $event_start = date($timeFormat, $val['start_unixtime']);
                         $event_end = date($timeFormat, @strtotime($event_end));
                         $switch['START_TIME'] = $event_start . ' - ' . $event_end;
                         $switch['EVENT_TEXT'] = openevent($m_start, $cal_time, $uid, $val, 0, 15, 'psf');
                         $switch['DESCRIPTION'] = urldecode($val['description']);
                     }
                     if ($switch['EVENT_TEXT'] != '') {
                         $switch['DAYLINK'] = $m_start;
                         $temp = $loop[$i];
                         foreach ($switch as $tag => $data) {
                             $temp = str_replace('{' . $tag . '}', $data, $temp);
                         }
                         $middle .= $temp;
                         $i = $i == 1 ? 0 : 1;
                     }
                 }
             }
         }
         $u_start = strtotime("+1 day", $u_start);
         $m_start = date('Ymd', $u_start);
         $check_month = date('m', $u_start);
         unset($switch);
     } while ($this_month == $check_month);
     $this->page = preg_replace('!<\\!-- loop showbottomevents_odd on -->(.*)<\\!-- loop showbottomevents_even off -->!is', $middle, $this->page);
 }
예제 #5
0
                $event_text2 = rawurlencode(addslashes($val['event_text']));
                $description = addslashes(urlencode($val['description']));
                $event_start = @$val["event_start"];
                $event_end = @$val["event_end"];
                $event_calna = @$val["calname"];
                $event_url = @$val["url"];
                $event_start = date($timeFormat, @strtotime($event_start));
                $event_end = date($timeFormat, @strtotime($event_end));
                $event_text = word_wrap($event_text, 21, $tomorrows_events_lines);
                if (!isset($val["event_start"])) {
                    $event_start = $all_day_lang;
                    $event_end = '';
                    openevent($event_calna, $event_start, $event_end, $val, $tomorrows_events_lines, 21, '<i>', '</i>', 'psf', $event_url);
                    echo "<br>\n";
                } else {
                    openevent($event_calna, $event_start, $event_end, $val, $tomorrows_events_lines, 21, '<font class="G10B">&#149; ', '</font>', 'psf', $event_url);
                    echo "<br>\n";
                }
            }
        }
    }
    echo "</td>\n";
    echo "</tr>\n";
    ?>
			</table>
		</td>
	</tr>
	<tr>
		<td colspan="3" bgcolor="#FFFFFF"><img src="images/spacer.gif" width="148" height="6" alt=" "></td>
	</tr>
</table>