@@ -34,9 +34,9 @@ |
||
| 34 | 34 | if ($_POST['mode'] === 'add') { |
| 35 | 35 | $event = $eventHandler->getEvent((int) $_POST['event'], $xoopsUser); |
| 36 | 36 | $eventNotMemberHandler->createEventNotMember(array( |
| 37 | - 'event_id' => (int) $_POST['event'], |
|
| 38 | - 'uid' => $xoopsUser->getVar('uid'), |
|
| 39 | - )); |
|
| 37 | + 'event_id' => (int) $_POST['event'], |
|
| 38 | + 'uid' => $xoopsUser->getVar('uid'), |
|
| 39 | + )); |
|
| 40 | 40 | sendMail2member($mode, $event_id, $member_uid, _MD_EXTCAL_SUBJECT_3, _MD_EXTCAL_MSG_3); |
| 41 | 41 | $rediredtMessage = _MD_EXTCAL_WHOSNOT_GOING_ADDED_TO_EVENT; |
| 42 | 42 | |
@@ -65,8 +65,8 @@ |
||
| 65 | 65 | // Flag current day |
| 66 | 66 | $selectedDays = array( |
| 67 | 67 | new Calendar_Day(date('Y', xoops_getUserTimestamp(time(), $extcalTimeHandler->_getUserTimeZone($xoopsUser))), |
| 68 | - date('n', xoops_getUserTimestamp(time(), $extcalTimeHandler->_getUserTimeZone($xoopsUser))), |
|
| 69 | - date('j', xoops_getUserTimestamp(time(), $extcalTimeHandler->_getUserTimeZone($xoopsUser)))), |
|
| 68 | + date('n', xoops_getUserTimestamp(time(), $extcalTimeHandler->_getUserTimeZone($xoopsUser))), |
|
| 69 | + date('j', xoops_getUserTimestamp(time(), $extcalTimeHandler->_getUserTimeZone($xoopsUser)))), |
|
| 70 | 70 | ); |
| 71 | 71 | |
| 72 | 72 | // Build calendar object |
@@ -59,9 +59,9 @@ |
||
| 59 | 59 | $rediredtMessage = _MD_EXTCAL_MAX_MEMBER_REACHED; |
| 60 | 60 | } else { |
| 61 | 61 | $eventMemberHandler->createEventmember(array( |
| 62 | - 'event_id' => (int) $_POST['event'], |
|
| 63 | - 'uid' => $xoopsUser->getVar('uid'), |
|
| 64 | - )); |
|
| 62 | + 'event_id' => (int) $_POST['event'], |
|
| 63 | + 'uid' => $xoopsUser->getVar('uid'), |
|
| 64 | + )); |
|
| 65 | 65 | sendMail2member($mode, $event_id, $member_uid, _MD_EXTCAL_SUBJECT_1, _MD_EXTCAL_MSG_1); |
| 66 | 66 | $rediredtMessage = _MD_EXTCAL_WHOS_GOING_ADDED_TO_EVENT; |
| 67 | 67 | } |
@@ -85,10 +85,10 @@ discard block |
||
| 85 | 85 | echo "<td></td>\n"; |
| 86 | 86 | } elseif ($Day->isSelected()) { |
| 87 | 87 | echo '<td><anchor><strong><u>'.$Day->thisDay()."</u></strong>\n<go href=\"".$_SERVER['PHP_SELF'].'?viewday=true&y='.$Day->thisYear().'&m=' |
| 88 | - .$Day->thisMonth().'&d='.$Day->thisDay()."&mime=wml\" />\n</anchor></td>\n"; |
|
| 88 | + .$Day->thisMonth().'&d='.$Day->thisDay()."&mime=wml\" />\n</anchor></td>\n"; |
|
| 89 | 89 | } else { |
| 90 | 90 | echo '<td><anchor>'.$Day->thisDay()."\n<go href=\"?viewday=true&y=".$Day->thisYear().'&m='.$Day->thisMonth().'&d='.$Day->thisDay() |
| 91 | - ."&mime=wml\" /></anchor></td>\n"; |
|
| 91 | + ."&mime=wml\" /></anchor></td>\n"; |
|
| 92 | 92 | } |
| 93 | 93 | if ($Day->isLast()) { |
| 94 | 94 | echo "</tr>\n"; |
@@ -181,10 +181,10 @@ discard block |
||
| 181 | 181 | echo "<td></td>\n"; |
| 182 | 182 | } elseif ($Day->isSelected()) { |
| 183 | 183 | echo '<td><a href="'.$_SERVER['PHP_SELF'].'?viewday=true&y='.$Day->thisYear().'&m='.$Day->thisMonth().'&d='.$Day->thisDay().'&wml"><strong><u>' |
| 184 | - .$Day->thisDay()."</u></strong></a></td>\n"; |
|
| 184 | + .$Day->thisDay()."</u></strong></a></td>\n"; |
|
| 185 | 185 | } else { |
| 186 | 186 | echo '<td><a href="'.$_SERVER['PHP_SELF'].'?viewday=true&y='.$Day->thisYear().'&m='.$Day->thisMonth().'&d='.$Day->thisDay().'">'.$Day->thisDay() |
| 187 | - ."</a></td>\n"; |
|
| 187 | + ."</a></td>\n"; |
|
| 188 | 188 | } |
| 189 | 189 | if ($Day->isLast()) { |
| 190 | 190 | echo "</tr>\n"; |
@@ -42,13 +42,13 @@ discard block |
||
| 42 | 42 | public function testPrevMonth_Array() |
| 43 | 43 | { |
| 44 | 44 | $this->assertEqual(array( |
| 45 | - 'year' => 2002, |
|
| 46 | - 'month' => 12, |
|
| 47 | - 'day' => 1, |
|
| 48 | - 'hour' => 0, |
|
| 49 | - 'minute' => 0, |
|
| 50 | - 'second' => 0, |
|
| 51 | - ), $this->cal->prevMonth('array')); |
|
| 45 | + 'year' => 2002, |
|
| 46 | + 'month' => 12, |
|
| 47 | + 'day' => 1, |
|
| 48 | + 'hour' => 0, |
|
| 49 | + 'minute' => 0, |
|
| 50 | + 'second' => 0, |
|
| 51 | + ), $this->cal->prevMonth('array')); |
|
| 52 | 52 | } |
| 53 | 53 | |
| 54 | 54 | public function testThisMonth() |
@@ -69,13 +69,13 @@ discard block |
||
| 69 | 69 | public function testPrevDay_Array() |
| 70 | 70 | { |
| 71 | 71 | $this->assertEqual(array( |
| 72 | - 'year' => 2002, |
|
| 73 | - 'month' => 12, |
|
| 74 | - 'day' => 31, |
|
| 75 | - 'hour' => 0, |
|
| 76 | - 'minute' => 0, |
|
| 77 | - 'second' => 0, |
|
| 78 | - ), $this->cal->prevDay('array')); |
|
| 72 | + 'year' => 2002, |
|
| 73 | + 'month' => 12, |
|
| 74 | + 'day' => 31, |
|
| 75 | + 'hour' => 0, |
|
| 76 | + 'minute' => 0, |
|
| 77 | + 'second' => 0, |
|
| 78 | + ), $this->cal->prevDay('array')); |
|
| 79 | 79 | } |
| 80 | 80 | |
| 81 | 81 | public function testThisDay() |
@@ -71,13 +71,13 @@ |
||
| 71 | 71 | public function testPrevDay_Array() |
| 72 | 72 | { |
| 73 | 73 | $this->assertEqual(array( |
| 74 | - 'year' => 2003, |
|
| 75 | - 'month' => 10, |
|
| 76 | - 'day' => 8, |
|
| 77 | - 'hour' => 0, |
|
| 78 | - 'minute' => 0, |
|
| 79 | - 'second' => 0, |
|
| 80 | - ), $this->cal->prevDay('array')); |
|
| 74 | + 'year' => 2003, |
|
| 75 | + 'month' => 10, |
|
| 76 | + 'day' => 8, |
|
| 77 | + 'hour' => 0, |
|
| 78 | + 'minute' => 0, |
|
| 79 | + 'second' => 0, |
|
| 80 | + ), $this->cal->prevDay('array')); |
|
| 81 | 81 | } |
| 82 | 82 | |
| 83 | 83 | public function testThisDay() |
@@ -37,13 +37,13 @@ discard block |
||
| 37 | 37 | public function testPrevYear_Array() |
| 38 | 38 | { |
| 39 | 39 | $this->assertEqual(array( |
| 40 | - 'year' => 2002, |
|
| 41 | - 'month' => 1, |
|
| 42 | - 'day' => 1, |
|
| 43 | - 'hour' => 0, |
|
| 44 | - 'minute' => 0, |
|
| 45 | - 'second' => 0, |
|
| 46 | - ), $this->cal->prevYear('array')); |
|
| 40 | + 'year' => 2002, |
|
| 41 | + 'month' => 1, |
|
| 42 | + 'day' => 1, |
|
| 43 | + 'hour' => 0, |
|
| 44 | + 'minute' => 0, |
|
| 45 | + 'second' => 0, |
|
| 46 | + ), $this->cal->prevYear('array')); |
|
| 47 | 47 | } |
| 48 | 48 | |
| 49 | 49 | public function testThisYear() |
@@ -64,13 +64,13 @@ discard block |
||
| 64 | 64 | public function testPrevMonth_Array() |
| 65 | 65 | { |
| 66 | 66 | $this->assertEqual(array( |
| 67 | - 'year' => 2003, |
|
| 68 | - 'month' => 9, |
|
| 69 | - 'day' => 1, |
|
| 70 | - 'hour' => 0, |
|
| 71 | - 'minute' => 0, |
|
| 72 | - 'second' => 0, |
|
| 73 | - ), $this->cal->prevMonth('array')); |
|
| 67 | + 'year' => 2003, |
|
| 68 | + 'month' => 9, |
|
| 69 | + 'day' => 1, |
|
| 70 | + 'hour' => 0, |
|
| 71 | + 'minute' => 0, |
|
| 72 | + 'second' => 0, |
|
| 73 | + ), $this->cal->prevMonth('array')); |
|
| 74 | 74 | } |
| 75 | 75 | |
| 76 | 76 | public function testThisMonth() |
@@ -91,13 +91,13 @@ discard block |
||
| 91 | 91 | public function testPrevDay_Array() |
| 92 | 92 | { |
| 93 | 93 | $this->assertEqual(array( |
| 94 | - 'year' => 2003, |
|
| 95 | - 'month' => 10, |
|
| 96 | - 'day' => 24, |
|
| 97 | - 'hour' => 0, |
|
| 98 | - 'minute' => 0, |
|
| 99 | - 'second' => 0, |
|
| 100 | - ), $this->cal->prevDay('array')); |
|
| 94 | + 'year' => 2003, |
|
| 95 | + 'month' => 10, |
|
| 96 | + 'day' => 24, |
|
| 97 | + 'hour' => 0, |
|
| 98 | + 'minute' => 0, |
|
| 99 | + 'second' => 0, |
|
| 100 | + ), $this->cal->prevDay('array')); |
|
| 101 | 101 | } |
| 102 | 102 | |
| 103 | 103 | public function testThisDay() |
@@ -32,13 +32,13 @@ |
||
| 32 | 32 | public function testPrevDay_Array() |
| 33 | 33 | { |
| 34 | 34 | $this->assertEqual(array( |
| 35 | - 'year' => 2003, |
|
| 36 | - 'month' => 9, |
|
| 37 | - 'day' => 30, |
|
| 38 | - 'hour' => 0, |
|
| 39 | - 'minute' => 0, |
|
| 40 | - 'second' => 0, |
|
| 41 | - ), $this->cal->prevDay('array')); |
|
| 35 | + 'year' => 2003, |
|
| 36 | + 'month' => 9, |
|
| 37 | + 'day' => 30, |
|
| 38 | + 'hour' => 0, |
|
| 39 | + 'minute' => 0, |
|
| 40 | + 'second' => 0, |
|
| 41 | + ), $this->cal->prevDay('array')); |
|
| 42 | 42 | } |
| 43 | 43 | |
| 44 | 44 | public function testThisDay() |
@@ -27,13 +27,13 @@ |
||
| 27 | 27 | public function testPrevDay_Array() |
| 28 | 28 | { |
| 29 | 29 | $this->assertEqual(array( |
| 30 | - 'year' => 2003, |
|
| 31 | - 'month' => 10, |
|
| 32 | - 'day' => 24, |
|
| 33 | - 'hour' => 0, |
|
| 34 | - 'minute' => 0, |
|
| 35 | - 'second' => 0, |
|
| 36 | - ), $this->cal->prevDay('array')); |
|
| 30 | + 'year' => 2003, |
|
| 31 | + 'month' => 10, |
|
| 32 | + 'day' => 24, |
|
| 33 | + 'hour' => 0, |
|
| 34 | + 'minute' => 0, |
|
| 35 | + 'second' => 0, |
|
| 36 | + ), $this->cal->prevDay('array')); |
|
| 37 | 37 | } |
| 38 | 38 | } |
| 39 | 39 | |