mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 16:03:47 +01:00
ability to set default calendar view
This commit is contained in:
parent
d85327d46d
commit
c6b1c6daee
@ -23,6 +23,7 @@
|
||||
$phpgw->preferences->preferences_add($phpgw_info["user"]["account_id"],"weekdaystarts","calendar");
|
||||
$phpgw->preferences->preferences_add($phpgw_info["user"]["account_id"],"workdaystarts","calendar");
|
||||
$phpgw->preferences->preferences_add($phpgw_info["user"]["account_id"],"workdayends","calendar");
|
||||
$phpgw->preferences->preferences_add($phpgw_info["user"]["account_id"],"defaultcalendar","common");
|
||||
if ($mainscreen_showevents) {
|
||||
$phpgw->preferences->preferences_add($phpgw_info["user"]["account_id"],"mainscreen_showevents","calendar");
|
||||
}
|
||||
@ -99,6 +100,25 @@
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<?php
|
||||
$tr_color = $phpgw->nextmatchs->alternate_row_color($tr_color);
|
||||
?>
|
||||
<tr bgcolor="<?php echo $tr_color; ?>">
|
||||
<td><?php echo lang("default calendar view"); ?></td>
|
||||
<td align="center">
|
||||
<select name="defaultcalendar">
|
||||
<option value="year.php"<?php if($phpgw_info["user"]["preferences"]["common"]["defaultcalendar"] == "year.php") " selected"; ?>>Yearly</option>
|
||||
<?php
|
||||
echo "<option value=\"index.php\"";
|
||||
if(!isset($phpgw_info["user"]["preferences"]["common"]["defaultcalendar"]) || $phpgw_info["user"]["preferences"]["common"]["defaultcalendar"] == "index.php")
|
||||
echo " selected";
|
||||
echo ">Monthly</option>";
|
||||
?>
|
||||
<option value="week.php"<?php if($phpgw_info["user"]["preferences"]["common"]["defaultcalendar"] == "week.php") " selected"; ?>>Weekly</option>
|
||||
<option value="day.php"<?php if($phpgw_info["user"]["preferences"]["common"]["defaultcalendar"] == "day.php") " selected"; ?>>Daily</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td align="center"><input type="submit" name="submit" value="<?php echo lang("submit"); ?>"></td></tr>
|
||||
</table>
|
||||
</form>
|
||||
|
@ -33,6 +33,7 @@
|
||||
- Fixed problem with moving to prev/next msg in NNTP.
|
||||
- Fix possible problem connecting to LDAP server.
|
||||
- Fix home page display of calendar events.
|
||||
- Added ability to set users defaut calendar view of top icon.
|
||||
|
||||
[0.9.6] - Fix user permissions where not being checked properly.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user