2000-10-12 19:36:47 +02:00
|
|
|
<?php
|
2001-01-17 13:35:43 +01:00
|
|
|
/**************************************************************************\
|
|
|
|
* phpGroupWare - Calendar *
|
|
|
|
* http://www.phpgroupware.org *
|
|
|
|
* Based on Webcalendar by Craig Knudsen <cknudsen@radix.net> *
|
|
|
|
* http://www.radix.net/~cknudsen *
|
|
|
|
* Modified by Mark Peters <skeeter@phpgroupware.org> *
|
|
|
|
* -------------------------------------------- *
|
|
|
|
* This program is free software; you can redistribute it and/or modify it *
|
|
|
|
* under the terms of the GNU General Public License as published by the *
|
|
|
|
* Free Software Foundation; either version 2 of the License, or (at your *
|
|
|
|
* option) any later version. *
|
|
|
|
\**************************************************************************/
|
|
|
|
|
2000-12-24 04:37:10 +01:00
|
|
|
/* $Id$ */
|
2000-11-10 23:49:48 +01:00
|
|
|
|
2000-12-31 04:49:33 +01:00
|
|
|
if (floor($PHP_VERSION ) == 4) {
|
|
|
|
global $date, $year, $month, $day, $thisyear, $thismonth, $thisday, $filter, $keywords;
|
2001-02-13 05:12:53 +01:00
|
|
|
global $matrixtype, $participants, $owner, $phpgw, $grants, $rights;
|
2000-12-31 04:49:33 +01:00
|
|
|
}
|
2000-11-19 18:01:30 +01:00
|
|
|
?>
|
2000-10-12 19:36:47 +02:00
|
|
|
|
2000-12-04 02:11:53 +01:00
|
|
|
<table border="0" width="100%" cols="8" cellpadding="0" cellspacing="0">
|
2000-08-18 05:24:22 +02:00
|
|
|
<tr>
|
|
|
|
<td width="2%">
|
|
|
|
|
|
|
|
</td>
|
|
|
|
<td width="2%">
|
2001-02-14 03:58:46 +01:00
|
|
|
<a href="<?php echo $phpgw->link('day.php','day='.$phpgw->calendar->today['day'].'&month='.$phpgw->calendar->today['month'].'&year='.$phpgw->calendar->today['year'].'&owner='.$owner); ?>">
|
|
|
|
<img src="<?php echo $phpgw_info['server']['app_images']; ?>/today.gif" alt="<?php echo lang('Today'); ?>" border="0">
|
2000-08-18 05:24:22 +02:00
|
|
|
</a>
|
|
|
|
</td>
|
|
|
|
<td width="2%" align="left">
|
2001-02-14 03:58:46 +01:00
|
|
|
<a href="<?php echo $phpgw->link('week.php','day='.$phpgw->calendar->today['day'].'&month='.$phpgw->calendar->today['month'].'&year='.$phpgw->calendar->today['year'].'&owner='.$owner); ?>">
|
|
|
|
<img src="<?php echo $phpgw_info['server']['app_images']; ?>/week.gif" alt="<?php echo lang('This week'); ?>" border="0">
|
2000-08-18 05:24:22 +02:00
|
|
|
</a>
|
|
|
|
</td>
|
|
|
|
<td width="2%" align="left">
|
2001-02-14 03:58:46 +01:00
|
|
|
<a href="<?php echo $phpgw->link('month.php','day='.$phpgw->calendar->today['day'].'&month='.$phpgw->calendar->today['month'].'&year='.$phpgw->calendar->today['year'].'&owner='.$owner); ?>">
|
|
|
|
<img src="<?php echo $phpgw_info['server']['app_images']; ?>/month.gif" alt="<?php echo lang('This month'); ?>" border="0">
|
2000-08-18 05:24:22 +02:00
|
|
|
</a>
|
|
|
|
</td>
|
2000-11-24 13:57:45 +01:00
|
|
|
<td width="2%" align="left">
|
2001-02-14 03:58:46 +01:00
|
|
|
<a href="<?php echo $phpgw->link('year.php','day='.$phpgw->calendar->today['day'].'&month='.$phpgw->calendar->today['month'].'&year='.$phpgw->calendar->today['year'].'&owner='.$owner); ?>">
|
|
|
|
<img src="<?php echo $phpgw_info['server']['app_images']; ?>/year.gif" alt="<?php echo lang('This year'); ?>" border="0">
|
2000-11-29 13:11:50 +01:00
|
|
|
</a>
|
|
|
|
</td>
|
|
|
|
<td width="2%" align="left">
|
2001-02-14 03:58:46 +01:00
|
|
|
<a href="<?php echo $phpgw->link('matrixselect.php','day='.$phpgw->calendar->today['day'].'&month='.$phpgw->calendar->today['month'].'&year='.$phpgw->calendar->today['year'].'&owner='.$owner); ?>">
|
|
|
|
<img src="<?php echo $phpgw_info['server']['app_images']; ?>/view.gif" alt="<?php echo lang('Daily Matrix View'); ?>" border="0">
|
2000-11-24 13:57:45 +01:00
|
|
|
</a>
|
|
|
|
</td>
|
2001-02-14 03:58:46 +01:00
|
|
|
<form action="<?php echo $phpgw->link('','owner='.$owner); ?>" method="POST" name="filtermethod">
|
2001-02-12 05:58:36 +01:00
|
|
|
<td width="45%" align="center" valign="center">
|
2001-02-14 03:58:46 +01:00
|
|
|
<b><?php echo lang('Filter'); ?>:</b>
|
2000-08-18 05:24:22 +02:00
|
|
|
<input type="hidden" name="from" value="<?php echo $PHP_SELF; ?>">
|
2000-12-10 17:03:08 +01:00
|
|
|
<?php if(isset($date) && $date) { ?>
|
2000-08-18 05:24:22 +02:00
|
|
|
<input type="hidden" name="date" value="<?php echo $date; ?>">
|
2000-12-10 17:03:08 +01:00
|
|
|
<?php } ?>
|
2000-08-18 05:24:22 +02:00
|
|
|
<input type="hidden" name="month" value="<?php echo $thismonth; ?>">
|
|
|
|
<input type="hidden" name="day" value="<?php echo $thisday; ?>">
|
|
|
|
<input type="hidden" name="year" value="<?php echo $thisyear; ?>">
|
2000-12-10 17:03:08 +01:00
|
|
|
<?php if(isset($keywords) && $keywords) { ?>
|
2000-12-04 02:11:53 +01:00
|
|
|
<input type="hidden" name="keywords" value="<?php echo $keywords; ?>">
|
2000-12-10 17:03:08 +01:00
|
|
|
<?php } ?>
|
|
|
|
<?php if(isset($matrixtype) && $matrixtype) { ?>
|
|
|
|
<input type="hidden" name="matrixtype" value="<?php echo $matrixtype; ?>">
|
2001-01-17 13:35:43 +01:00
|
|
|
<?php }
|
2000-12-10 17:03:08 +01:00
|
|
|
if(isset($participants) && $participants) {
|
|
|
|
for ($i=0;$i<count($participants);$i++) {
|
2001-02-14 03:58:46 +01:00
|
|
|
echo '<input type="hidden" name="participants[]" value="'.$participants[$i].'">';
|
2000-12-10 17:03:08 +01:00
|
|
|
}
|
|
|
|
} ?>
|
2000-12-04 02:11:53 +01:00
|
|
|
<select name="filter" onchange="document.filtermethod.submit()">
|
2001-02-14 03:58:46 +01:00
|
|
|
<option value="all"<?php if($filter=='all') echo ' selected'; ?>><?php echo lang('All'); ?></option>
|
|
|
|
<option value="private"<?php if((!isset($filter) || !$filter) || $filter=='private') echo ' selected'; ?>><?php echo lang('Private Only'); ?></option>
|
2001-02-26 13:23:48 +01:00
|
|
|
<!--
|
2001-02-14 03:58:46 +01:00
|
|
|
<option value="public"<?php if($filter=='public') echo ' selected'; ?>><?php echo lang('Global Public Only'); ?></option>
|
|
|
|
<option value="group"<?php if($filter=='group') echo ' selected'; ?>><?php echo lang('Group Public Only'); ?></option>
|
|
|
|
<option value="private+public"<?php if($filter=='private+public') echo ' selected'; ?>><?php echo lang('Private and Global Public'); ?></option>
|
|
|
|
<option value="private+group"<?php if($filter=='private+group') echo ' selected'; ?>><?php echo lang('Private and Group Public'); ?></option>
|
|
|
|
<option value="public+group"<?php if($filter=='public+group') echo ' selected'; ?>><?php echo lang('Global Public and Group Public'); ?></option>
|
2001-02-26 13:23:48 +01:00
|
|
|
-->
|
2000-12-04 02:11:53 +01:00
|
|
|
</select>
|
2001-02-14 03:58:46 +01:00
|
|
|
<NOSCRIPT><INPUT TYPE="submit" VALUE="<?php echo lang('Go!'); ?>"></NOSCRIPT></FONT>
|
2000-12-04 02:11:53 +01:00
|
|
|
</td>
|
|
|
|
</form>
|
2001-02-12 05:58:36 +01:00
|
|
|
<?php
|
|
|
|
if(count($grants) > 0)
|
|
|
|
{
|
|
|
|
?>
|
|
|
|
<form action="<?php echo $phpgw->link(); ?>" method="POST" name="setowner">
|
|
|
|
<td width="20%" align="center" valign="center">
|
2001-02-14 03:58:46 +01:00
|
|
|
<b><?php echo lang('User'); ?>:</b>
|
2001-02-12 05:58:36 +01:00
|
|
|
<input type="hidden" name="from" value="<?php echo $PHP_SELF; ?>">
|
|
|
|
<?php if(isset($date) && $date) { ?>
|
|
|
|
<input type="hidden" name="date" value="<?php echo $date; ?>">
|
|
|
|
<?php } ?>
|
|
|
|
<input type="hidden" name="month" value="<?php echo $thismonth; ?>">
|
|
|
|
<input type="hidden" name="day" value="<?php echo $thisday; ?>">
|
|
|
|
<input type="hidden" name="year" value="<?php echo $thisyear; ?>">
|
|
|
|
<?php if(isset($keywords) && $keywords) { ?>
|
|
|
|
<input type="hidden" name="keywords" value="<?php echo $keywords; ?>">
|
2001-02-19 05:33:25 +01:00
|
|
|
<?php } ?>
|
|
|
|
<?php if(isset($id) && $id != 0) { ?>
|
|
|
|
<input type="hidden" name="id" value="<?php echo $id; ?>">
|
2001-02-12 05:58:36 +01:00
|
|
|
<?php } ?>
|
|
|
|
<select name="owner" onchange="document.setowner.submit()">
|
|
|
|
<?php
|
2001-02-13 05:12:53 +01:00
|
|
|
while(list($grantor,$temp_rights) = each($grants))
|
2001-02-12 05:58:36 +01:00
|
|
|
{
|
|
|
|
?>
|
2001-02-14 03:58:46 +01:00
|
|
|
<option value="<?php echo $grantor; ?>"<?php if($grantor==$owner) echo ' selected'; ?>><?php echo $phpgw->common->grab_owner_name($grantor); ?></option>
|
2001-02-12 05:58:36 +01:00
|
|
|
<?php
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
</select>
|
2001-02-14 03:58:46 +01:00
|
|
|
<NOSCRIPT><INPUT TYPE="submit" VALUE="<?php echo lang('Go!'); ?>"></NOSCRIPT></FONT>
|
2001-02-12 05:58:36 +01:00
|
|
|
</td>
|
|
|
|
</form>
|
|
|
|
<?php
|
|
|
|
}
|
|
|
|
?>
|
2001-02-14 03:58:46 +01:00
|
|
|
<form action="<?php echo $phpgw->link('search.php','owner='.$owner); ?>" method="POST">
|
2000-12-04 02:11:53 +01:00
|
|
|
<td align="right" valign="center">
|
|
|
|
<input type="hidden" name="from" value="<?php echo $PHP_SELF; ?>">
|
|
|
|
<?php if(isset($date) && $date) { ?>
|
|
|
|
<input type="hidden" name="date" value="<?php echo $date; ?>">
|
|
|
|
<?php } ?>
|
|
|
|
<input type="hidden" name="month" value="<?php echo $thismonth; ?>">
|
|
|
|
<input type="hidden" name="day" value="<?php echo $thisday; ?>">
|
|
|
|
<input type="hidden" name="year" value="<?php echo $thisyear; ?>">
|
|
|
|
<?php if(isset($filter) && $filter) { ?>
|
|
|
|
<input type="hidden" name="filter" value="<?php echo $filter; ?>">
|
|
|
|
<?php } ?>
|
2001-02-14 03:58:46 +01:00
|
|
|
<input name="keywords"<?php if($keywords) echo ' value="'.$keywords.'"'; ?>>
|
|
|
|
<input type="submit" name="submit" value="<?php echo lang('Search'); ?>">
|
2000-12-04 02:11:53 +01:00
|
|
|
</td>
|
|
|
|
</form>
|
2000-08-18 05:24:22 +02:00
|
|
|
</tr>
|
|
|
|
</table>
|
2001-01-17 13:35:43 +01:00
|
|
|
<?php flush(); ?>
|