aboutsummaryrefslogtreecommitdiffstats
path: root/preferences.php
diff options
context:
space:
mode:
authorChad Little <clittle@users.sourceforge.net>2002-11-18 01:30:29 +0000
committerChad Little <clittle@users.sourceforge.net>2002-11-18 01:30:29 +0000
commiteebd65da9cfcec7695684c7677a15f14c7dae0f7 (patch)
treede39e0186fcbd2baa1bed2145a789ecbb330d8c9 /preferences.php
parentb90c1acfc85a5b7f6c544967063d911f3e34ea6b (diff)
downloadphpicalendar-eebd65da9cfcec7695684c7677a15f14c7dae0f7.tar.gz
phpicalendar-eebd65da9cfcec7695684c7677a15f14c7dae0f7.tar.bz2
phpicalendar-eebd65da9cfcec7695684c7677a15f14c7dae0f7.zip
Now able to set start time for calendars.
Diffstat (limited to 'preferences.php')
-rw-r--r--preferences.php18
1 files changed, 16 insertions, 2 deletions
diff --git a/preferences.php b/preferences.php
index d004de6..83363cd 100644
--- a/preferences.php
+++ b/preferences.php
@@ -13,10 +13,11 @@ if ($action == 'setcookie') {
$cookie_view = $HTTP_POST_VARS['cookie_view'];
$cookie_style = $HTTP_POST_VARS['cookie_style'];
$cookie_startday = $HTTP_POST_VARS['cookie_startday'];
- $the_cookie = array ("cookie_language" => "$cookie_language", "cookie_calendar" => "$cookie_calendar", "cookie_view" => "$cookie_view", "cookie_startday" => "$cookie_startday", "cookie_style" => "$cookie_style");
+ $cookie_time = $HTTP_POST_VARS['cookie_time'];
+ $the_cookie = array ("cookie_language" => "$cookie_language", "cookie_calendar" => "$cookie_calendar", "cookie_view" => "$cookie_view", "cookie_startday" => "$cookie_startday", "cookie_style" => "$cookie_style", "cookie_time" => "$cookie_time");
$the_cookie = serialize($the_cookie);
setcookie("phpicalendar","$the_cookie",time()+(60*60*24*7*12*10) ,"/","$cookie_uri",0);
- unset ($cookie_language, $cookie_calendar, $cookie_view, $cookie_style,$cookie_startday);
+ #unset ($cookie_language, $cookie_calendar, $cookie_view, $cookie_style,$cookie_startday);
}
if ($HTTP_COOKIE_VARS['phpicalendar']) {
@@ -26,6 +27,7 @@ if ($HTTP_COOKIE_VARS['phpicalendar']) {
$cookie_view = $phpicalendar['cookie_view'];
$cookie_style = $phpicalendar['cookie_style'];
$cookie_startday = $phpicalendar['cookie_startday'];
+ $cookie_time = $phpicalendar['cookie_time'];
}
#echo "$cookie_uri";
#print_r(unserialize($HTTP_COOKIE_VARS['phpicalendar']));
@@ -162,6 +164,18 @@ include(BASE.'functions/ical_parser.php');
print "</select>\n";
echo '<br><br>';
+ // Begin Time Selection
+ //
+ echo 'Select your default start time:<br><br>';
+ print "<select name=\"cookie_time\" class=\"query_style\">\n";
+ print "<option value=\"0500\">0500</option>\n";
+ print "<option value=\"0600\">0600</option>\n";
+ print "<option value=\"0700\">0700</option>\n";
+ print "<option value=\"0800\">0800</option>\n";
+ print "<option value=\"0900\">0900</option>\n";
+ print "</select>\n";
+ echo '<br><br>';
+
// Begin Day Start Selection
//
echo 'Select your start day of week:<br><br>';

© 2014-2024 Faster IT GmbH | imprint | privacy policy