@@ -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 |
@@ -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() |
@@ -102,8 +102,8 @@ |
||
102 | 102 | define('_EXTCAL_NAV_NEW_EVENT', 'new-event'); |
103 | 103 | |
104 | 104 | define('_EXTCAL_NAV_LIST', |
105 | - _EXTCAL_NAV_CALMONTH . "\n" . _EXTCAL_NAV_CALWEEK . "\n" . _EXTCAL_NAV_YEAR . "\n" . _EXTCAL_NAV_MONTH . "\n" . _EXTCAL_NAV_WEEK . "\n" . _EXTCAL_NAV_DAY . "\n" . _EXTCAL_NAV_AGENDA_WEEK . "\n" . _EXTCAL_NAV_AGENDA_DAY . "\n" |
|
106 | - . _EXTCAL_NAV_SEARCH . "\n" . _EXTCAL_NAV_NEW_EVENT); |
|
105 | + _EXTCAL_NAV_CALMONTH . "\n" . _EXTCAL_NAV_CALWEEK . "\n" . _EXTCAL_NAV_YEAR . "\n" . _EXTCAL_NAV_MONTH . "\n" . _EXTCAL_NAV_WEEK . "\n" . _EXTCAL_NAV_DAY . "\n" . _EXTCAL_NAV_AGENDA_WEEK . "\n" . _EXTCAL_NAV_AGENDA_DAY . "\n" |
|
106 | + . _EXTCAL_NAV_SEARCH . "\n" . _EXTCAL_NAV_NEW_EVENT); |
|
107 | 107 | |
108 | 108 | define('_EXTCAL_PREFIX_VIEW', 'view_'); |
109 | 109 | define('_EXTCAL_SUFFIX_VIEW', '.php'); |
@@ -166,8 +166,8 @@ |
||
166 | 166 | |
167 | 167 | //delete .html entries from the tpl table |
168 | 168 | $sql = 'DELETE FROM ' . $xoopsDB->prefix('tplfile') . " WHERE `tpl_module` = '" . $module->getVar('dirname', |
169 | - 'n') |
|
170 | - . "' AND `tpl_file` LIKE '%.html%'"; |
|
169 | + 'n') |
|
170 | + . "' AND `tpl_file` LIKE '%.html%'"; |
|
171 | 171 | $xoopsDB->queryF($sql); |
172 | 172 | |
173 | 173 | // Load class XoopsFile ==================== |
@@ -144,7 +144,7 @@ |
||
144 | 144 | // Flag current day |
145 | 145 | $selectedDays = array( |
146 | 146 | new Calendar_Day(date('Y', xoops_getUserTimestamp(time(), $extcalTimeHandler->_getUserTimeZone($GLOBALS['xoopsUser']))), date('n', xoops_getUserTimestamp(time(), $extcalTimeHandler->_getUserTimeZone($GLOBALS['xoopsUser']))), |
147 | - date('j', xoops_getUserTimestamp(time(), $extcalTimeHandler->_getUserTimeZone($GLOBALS['xoopsUser'])))), |
|
147 | + date('j', xoops_getUserTimestamp(time(), $extcalTimeHandler->_getUserTimeZone($GLOBALS['xoopsUser'])))), |
|
148 | 148 | ); |
149 | 149 | |
150 | 150 | // Build calendar object |
@@ -41,7 +41,7 @@ |
||
41 | 41 | |
42 | 42 | // Create who's not going table to fix bug. If the table exist, the query will faile |
43 | 43 | $sql = 'CREATE TABLE `' . $xoopsDB->prefix('extcal_eventnotmember') |
44 | - . "` (`eventnotmember_id` int(11) NOT NULL auto_increment,`event_id` int(11) NOT NULL default '0',`uid` int(11) NOT NULL default '0',PRIMARY KEY (`eventnotmember_id`),UNIQUE KEY `eventnotmember` (`event_id`,`uid`)) COMMENT='eXtcal By Zoullou' ;"; |
|
44 | + . "` (`eventnotmember_id` int(11) NOT NULL auto_increment,`event_id` int(11) NOT NULL default '0',`uid` int(11) NOT NULL default '0',PRIMARY KEY (`eventnotmember_id`),UNIQUE KEY `eventnotmember` (`event_id`,`uid`)) COMMENT='eXtcal By Zoullou' ;"; |
|
45 | 45 | $xoopsDB->query($sql); |
46 | 46 | } |
47 | 47 |
@@ -48,11 +48,11 @@ |
||
48 | 48 | $xoopsDB->query($sql); |
49 | 49 | |
50 | 50 | $sql = 'CREATE TABLE `' . $xoopsDB->prefix('extcal_event') |
51 | - . "` (`eventnotmember_id` int(11) NOT NULL auto_increment,`event_id` int(11) NOT NULL default '0',`uid` int(11) NOT NULL default '0',PRIMARY KEY (`eventnotmember_id`),UNIQUE KEY `eventnotmember` (`event_id`,`uid`)) COMMENT='eXtcal By Zoullou' ;"; |
|
51 | + . "` (`eventnotmember_id` int(11) NOT NULL auto_increment,`event_id` int(11) NOT NULL default '0',`uid` int(11) NOT NULL default '0',PRIMARY KEY (`eventnotmember_id`),UNIQUE KEY `eventnotmember` (`event_id`,`uid`)) COMMENT='eXtcal By Zoullou' ;"; |
|
52 | 52 | $xoopsDB->query($sql); |
53 | 53 | |
54 | 54 | $sql = 'CREATE TABLE `' . $xoopsDB->prefix('extcal_file') |
55 | - . "` (`file_id` int(11) NOT NULL auto_increment,`file_name` varchar(255) NOT NULL,`file_nicename` varchar(255) NOT NULL,`file_mimetype` varchar(255) NOT NULL,`file_size` int(11) NOT NULL,`file_download` int(11) NOT NULL,`file_date` int(11) NOT NULL,`file_approved` tinyint(1) NOT NULL,`event_id` int(11) NOT NULL,`uid` int(11) NOT NULL,PRIMARY KEY (`file_id`)) COMMENT='eXtcal By Zoullou' ;"; |
|
55 | + . "` (`file_id` int(11) NOT NULL auto_increment,`file_name` varchar(255) NOT NULL,`file_nicename` varchar(255) NOT NULL,`file_mimetype` varchar(255) NOT NULL,`file_size` int(11) NOT NULL,`file_download` int(11) NOT NULL,`file_date` int(11) NOT NULL,`file_approved` tinyint(1) NOT NULL,`event_id` int(11) NOT NULL,`uid` int(11) NOT NULL,PRIMARY KEY (`file_id`)) COMMENT='eXtcal By Zoullou' ;"; |
|
56 | 56 | $xoopsDB->query($sql); |
57 | 57 | } |
58 | 58 |
@@ -150,7 +150,7 @@ |
||
150 | 150 | $cat_color = $catList->getVar('cat_color'); |
151 | 151 | $checked = in_array($cat_id, $cat) ? 'checked' : ''; |
152 | 152 | $cat = '' . "<div style='float:left; margin-left:5px;'>" . "<input type='checkbox' name='{$name}[{$cat_id}]' value='1' {$checked}>" |
153 | - . "<div style='absolute:left;height:12px; width:6px; background-color:#{$cat_color}; border:1px solid black; float:left; margin-right:5px;' ></div>" . " {$name}" . '</div>'; |
|
153 | + . "<div style='absolute:left;height:12px; width:6px; background-color:#{$cat_color}; border:1px solid black; float:left; margin-right:5px;' ></div>" . " {$name}" . '</div>'; |
|
154 | 154 | |
155 | 155 | $t[] = $cat; |
156 | 156 | } |