mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 00:29:38 +01:00
fix for free/busy view
This commit is contained in:
parent
19a79c9735
commit
4066c6eb80
@ -253,7 +253,7 @@
|
||||
}
|
||||
|
||||
function date_to_epoch($d) {
|
||||
return $this->splitdate(mktime(2,0,0,intval(substr($d,4,2)),intval(substr($d,6,2)),intval(substr($d,0,4))));
|
||||
return $this->splitdate(mktime(0,0,0,intval(substr($d,4,2)),intval(substr($d,6,2)),intval(substr($d,0,4))));
|
||||
}
|
||||
|
||||
function overlap($starttime,$endtime,$participants,$groups,$owner=0,$id=0) {
|
||||
|
@ -56,23 +56,20 @@
|
||||
$phpgw->template->set_var("field",lang("Date"));
|
||||
|
||||
$day_html = "<select name=\"day\">";
|
||||
for ($i = 1; $i <= 31; $i++)
|
||||
$day_html .= "<option value=\"$i\"" . ($i == $thisday ? " selected" : "") . ">$i"
|
||||
. "</option>\n";
|
||||
for($i=1;$i<=31;$i++)
|
||||
$day_html .= "<option value=\"$i\"".($i==$thisday?" selected":"").">$i</option>\n";
|
||||
$day_html .= "</select>";
|
||||
|
||||
$month_html = "<select name=\"month\">";
|
||||
for ($i = 1; $i <= 12; $i++) {
|
||||
for($i=1;$i<=12;$i++) {
|
||||
$m = lang(date("F", mktime(0,0,0,$i,1,$thisyear)));
|
||||
$month_html .= "<option value=\"$i\"" . ($i == $thismonth ? " selected" : "") . ">$m"
|
||||
. "</option>\n";
|
||||
$month_html .= "<option value=\"$i\"".($i==$thismonth?" selected":"").">$m</option>\n";
|
||||
}
|
||||
$month_html .= "</select>";
|
||||
|
||||
$year_html = "<select name=\"year\">";
|
||||
for ($i = ($thisyear - 1); $i < ($thisyear + 5); $i++) {
|
||||
$year_html .= "<option value=\"$i\"" . ($i == $thisyear ? " selected" : "") . ">$i"
|
||||
. "</option>\n";
|
||||
for($i=($thisyear - 1);$i<($thisyear + 5);$i++) {
|
||||
$year_html .= "<option value=\"$i\"".($i==$thisyear?" selected":"").">$i</option>\n";
|
||||
}
|
||||
$year_html .= "</select>";
|
||||
|
||||
|
@ -36,9 +36,13 @@
|
||||
$thisyear = $phpgw->calendar->today["year"];
|
||||
else
|
||||
$thisyear = $year;
|
||||
$date = $thisyear;
|
||||
$date .= ($thismonth<=9?"0":"").$thismonth;
|
||||
$date .= ($thisday<=9?"0":"").$thisday;
|
||||
|
||||
}
|
||||
|
||||
$date = $thisyear.$thismonth.$thisday;
|
||||
// $date = $thisyear.$thismonth.$thisday;
|
||||
|
||||
if(isset($groups) && $groups) {
|
||||
for($i=0;$i<count($groups);$i++) {
|
||||
|
Loading…
Reference in New Issue
Block a user