@@ -7,7 +7,7 @@ discard block |
||
7 | 7 | { |
8 | 8 | list($usec, $sec) = explode(' ', microtime()); |
9 | 9 | |
10 | - return (float)$usec + (float)$sec; |
|
10 | + return (float) $usec + (float) $sec; |
|
11 | 11 | } |
12 | 12 | |
13 | 13 | $start = getmicrotime(); |
@@ -18,8 +18,8 @@ discard block |
||
18 | 18 | if (!@include 'Calendar/Calendar.php') { |
19 | 19 | define('CALENDAR_ROOT', '../../'); |
20 | 20 | } |
21 | -require_once CALENDAR_ROOT . 'Month/Weeks.php'; |
|
22 | -require_once CALENDAR_ROOT . 'Day.php'; |
|
21 | +require_once CALENDAR_ROOT.'Month/Weeks.php'; |
|
22 | +require_once CALENDAR_ROOT.'Day.php'; |
|
23 | 23 | |
24 | 24 | // Initialize GET variables if not set |
25 | 25 | if (!isset($_GET['y'])) { |
@@ -48,9 +48,9 @@ discard block |
||
48 | 48 | |
49 | 49 | // Construct strings for next/previous links |
50 | 50 | $PMonth = $Month->prevMonth('object'); // Get previous month as object |
51 | -$prev = $_SERVER['PHP_SELF'] . '?y=' . $PMonth->thisYear() . '&m=' . $PMonth->thisMonth() . '&d=' . $PMonth->thisDay(); |
|
51 | +$prev = $_SERVER['PHP_SELF'].'?y='.$PMonth->thisYear().'&m='.$PMonth->thisMonth().'&d='.$PMonth->thisDay(); |
|
52 | 52 | $NMonth = $Month->nextMonth('object'); |
53 | -$next = $_SERVER['PHP_SELF'] . '?y=' . $NMonth->thisYear() . '&m=' . $NMonth->thisMonth() . '&d=' . $NMonth->thisDay(); |
|
53 | +$next = $_SERVER['PHP_SELF'].'?y='.$NMonth->thisYear().'&m='.$NMonth->thisMonth().'&d='.$NMonth->thisDay(); |
|
54 | 54 | ?> |
55 | 55 | <!doctype html public "-//W3C//DTD HTML 4.0 Transitional//EN"> |
56 | 56 | <html> |
@@ -124,19 +124,19 @@ discard block |
||
124 | 124 | while ($Day = $Week->fetch()) { |
125 | 125 | |
126 | 126 | // Build a link string for each day |
127 | - $link = $_SERVER['PHP_SELF'] . '?y=' . $Day->thisYear() . '&m=' . $Day->thisMonth() . '&d=' . $Day->thisDay(); |
|
127 | + $link = $_SERVER['PHP_SELF'].'?y='.$Day->thisYear().'&m='.$Day->thisMonth().'&d='.$Day->thisDay(); |
|
128 | 128 | |
129 | 129 | // Check to see if day is selected |
130 | 130 | if ($Day->isSelected()) { |
131 | - echo '<td class="selected">' . $Day->thisDay() . '</td>' . "\n"; |
|
131 | + echo '<td class="selected">'.$Day->thisDay().'</td>'."\n"; |
|
132 | 132 | // Check to see if day is empty |
133 | 133 | } elseif ($Day->isEmpty()) { |
134 | - echo '<td class="empty">' . $Day->thisDay() . '</td>' . "\n"; |
|
134 | + echo '<td class="empty">'.$Day->thisDay().'</td>'."\n"; |
|
135 | 135 | } else { |
136 | - echo '<td><a href="' . $link . '">' . $Day->thisDay() . '</a></td>' . "\n"; |
|
136 | + echo '<td><a href="'.$link.'">'.$Day->thisDay().'</a></td>'."\n"; |
|
137 | 137 | } |
138 | 138 | } |
139 | - echo '</tr>' . "\n"; |
|
139 | + echo '</tr>'."\n"; |
|
140 | 140 | } |
141 | 141 | ?> |
142 | 142 | <tr> |
@@ -150,7 +150,7 @@ discard block |
||
150 | 150 | </tr> |
151 | 151 | </table> |
152 | 152 | <?php |
153 | -echo '<p><b>Took: ' . (getmicrotime() - $start) . ' seconds</b></p>'; |
|
153 | +echo '<p><b>Took: '.(getmicrotime() - $start).' seconds</b></p>'; |
|
154 | 154 | ?> |
155 | 155 | </body> |
156 | 156 | </html> |
@@ -5,19 +5,19 @@ |
||
5 | 5 | if (!@include 'Calendar/Calendar.php') { |
6 | 6 | define('CALENDAR_ROOT', '../../'); |
7 | 7 | } |
8 | -require_once CALENDAR_ROOT . 'Day.php'; |
|
9 | -require_once CALENDAR_ROOT . 'Decorator/Weekday.php'; |
|
8 | +require_once CALENDAR_ROOT.'Day.php'; |
|
9 | +require_once CALENDAR_ROOT.'Decorator/Weekday.php'; |
|
10 | 10 | |
11 | 11 | $Day = new Calendar_Day(date('Y'), date('n'), date('d')); |
12 | 12 | $WeekDay = new Calendar_Decorator_Weekday($Day); |
13 | 13 | // $WeekDay->setFirstDay(0); // Make Sunday first Day |
14 | 14 | |
15 | -echo 'Yesterday: ' . $WeekDay->prevWeekDay() . '<br>'; |
|
16 | -echo 'Today: ' . $WeekDay->thisWeekDay() . '<br>'; |
|
17 | -echo 'Tomorrow: ' . $WeekDay->nextWeekDay() . '<br>'; |
|
15 | +echo 'Yesterday: '.$WeekDay->prevWeekDay().'<br>'; |
|
16 | +echo 'Today: '.$WeekDay->thisWeekDay().'<br>'; |
|
17 | +echo 'Tomorrow: '.$WeekDay->nextWeekDay().'<br>'; |
|
18 | 18 | |
19 | 19 | $WeekDay->build(); |
20 | 20 | echo 'Hours today:<br>'; |
21 | 21 | while ($Hour = $WeekDay->fetch()) { |
22 | - echo $Hour->thisHour() . '<br>'; |
|
22 | + echo $Hour->thisHour().'<br>'; |
|
23 | 23 | } |
@@ -5,8 +5,8 @@ discard block |
||
5 | 5 | if (!@include 'Calendar/Calendar.php') { |
6 | 6 | define('CALENDAR_ROOT', '../../'); |
7 | 7 | } |
8 | -require_once CALENDAR_ROOT . 'Month/Weekdays.php'; |
|
9 | -require_once CALENDAR_ROOT . 'Decorator/Uri.php'; |
|
8 | +require_once CALENDAR_ROOT.'Month/Weekdays.php'; |
|
9 | +require_once CALENDAR_ROOT.'Decorator/Uri.php'; |
|
10 | 10 | |
11 | 11 | if (!isset($_GET['jahr'])) { |
12 | 12 | $_GET['jahr'] = date('Y'); |
@@ -18,17 +18,17 @@ discard block |
||
18 | 18 | // Build the month |
19 | 19 | $Calendar = new Calendar_Month_Weekdays($_GET['jahr'], $_GET['monat']); |
20 | 20 | |
21 | -echo '<p>The current month is ' . $Calendar->thisMonth() . ' of year ' . $Calendar->thisYear() . '</p>'; |
|
21 | +echo '<p>The current month is '.$Calendar->thisMonth().' of year '.$Calendar->thisYear().'</p>'; |
|
22 | 22 | |
23 | 23 | $Uri = new Calendar_Decorator_Uri($Calendar); |
24 | 24 | $Uri->setFragments('jahr', 'monat'); |
25 | 25 | // $Uri->setSeperator('/'); // Default is & |
26 | 26 | // $Uri->setScalar(); // Omit variable names |
27 | -echo "<pre>Previous Uri:\t" . $Uri->prev('month') . "\n"; |
|
28 | -echo "This Uri:\t" . $Uri->this('month') . "\n"; |
|
29 | -echo "Next Uri:\t" . $Uri->next('month') . "\n</pre>"; |
|
27 | +echo "<pre>Previous Uri:\t".$Uri->prev('month')."\n"; |
|
28 | +echo "This Uri:\t".$Uri->this('month')."\n"; |
|
29 | +echo "Next Uri:\t".$Uri->next('month')."\n</pre>"; |
|
30 | 30 | ?> |
31 | 31 | <p> |
32 | - <a href="<?php echo $_SERVER['PHP_SELF'] . '?' . $Uri->prev('month'); ?>">Prev</a> : |
|
33 | - <a href="<?php echo $_SERVER['PHP_SELF'] . '?' . $Uri->next('month'); ?>">Next</a> |
|
32 | + <a href="<?php echo $_SERVER['PHP_SELF'].'?'.$Uri->prev('month'); ?>">Prev</a> : |
|
33 | + <a href="<?php echo $_SERVER['PHP_SELF'].'?'.$Uri->next('month'); ?>">Next</a> |
|
34 | 34 | </p> |
@@ -7,7 +7,7 @@ discard block |
||
7 | 7 | { |
8 | 8 | list($usec, $sec) = explode(' ', microtime()); |
9 | 9 | |
10 | - return (float)$usec + (float)$sec; |
|
10 | + return (float) $usec + (float) $sec; |
|
11 | 11 | } |
12 | 12 | |
13 | 13 | $start = getmicrotime(); |
@@ -15,8 +15,8 @@ discard block |
||
15 | 15 | if (!@include 'Calendar/Calendar.php') { |
16 | 16 | define('CALENDAR_ROOT', '../../'); |
17 | 17 | } |
18 | -require_once CALENDAR_ROOT . 'Month/Weekdays.php'; |
|
19 | -require_once CALENDAR_ROOT . 'Day.php'; |
|
18 | +require_once CALENDAR_ROOT.'Month/Weekdays.php'; |
|
19 | +require_once CALENDAR_ROOT.'Day.php'; |
|
20 | 20 | |
21 | 21 | if (!isset($_GET['y'])) { |
22 | 22 | $_GET['y'] = date('Y'); |
@@ -33,9 +33,9 @@ discard block |
||
33 | 33 | |
34 | 34 | // Construct strings for next/previous links |
35 | 35 | $PMonth = $Month->prevMonth('object'); // Get previous month as object |
36 | -$prev = $_SERVER['PHP_SELF'] . '?y=' . $PMonth->thisYear() . '&m=' . $PMonth->thisMonth() . '&d=' . $PMonth->thisDay(); |
|
36 | +$prev = $_SERVER['PHP_SELF'].'?y='.$PMonth->thisYear().'&m='.$PMonth->thisMonth().'&d='.$PMonth->thisDay(); |
|
37 | 37 | $NMonth = $Month->nextMonth('object'); |
38 | -$next = $_SERVER['PHP_SELF'] . '?y=' . $NMonth->thisYear() . '&m=' . $NMonth->thisMonth() . '&d=' . $NMonth->thisDay(); |
|
38 | +$next = $_SERVER['PHP_SELF'].'?y='.$NMonth->thisYear().'&m='.$NMonth->thisMonth().'&d='.$NMonth->thisDay(); |
|
39 | 39 | ?> |
40 | 40 | <!doctype html public "-//W3C//DTD HTML 4.0 Transitional//EN"> |
41 | 41 | <html> |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | while ($Day = $Month->fetch()) { |
111 | 111 | |
112 | 112 | // Build a link string for each day |
113 | - $link = $_SERVER['PHP_SELF'] . '?y=' . $Day->thisYear() . '&m=' . $Day->thisMonth() . '&d=' . $Day->thisDay(); |
|
113 | + $link = $_SERVER['PHP_SELF'].'?y='.$Day->thisYear().'&m='.$Day->thisMonth().'&d='.$Day->thisDay(); |
|
114 | 114 | |
115 | 115 | // isFirst() to find start of week |
116 | 116 | if ($Day->isFirst()) { |
@@ -118,11 +118,11 @@ discard block |
||
118 | 118 | } |
119 | 119 | |
120 | 120 | if ($Day->isSelected()) { |
121 | - echo '<td class="selected">' . $Day->thisDay() . "</td>\n"; |
|
121 | + echo '<td class="selected">'.$Day->thisDay()."</td>\n"; |
|
122 | 122 | } elseif ($Day->isEmpty()) { |
123 | 123 | echo "<td> </td>\n"; |
124 | 124 | } else { |
125 | - echo '<td><a href="' . $link . '">' . $Day->thisDay() . "</a></td>\n"; |
|
125 | + echo '<td><a href="'.$link.'">'.$Day->thisDay()."</a></td>\n"; |
|
126 | 126 | } |
127 | 127 | |
128 | 128 | // isLast() to find end of week |
@@ -142,7 +142,7 @@ discard block |
||
142 | 142 | </tr> |
143 | 143 | </table> |
144 | 144 | <?php |
145 | -echo '<p><b>Took: ' . (getmicrotime() - $start) . ' seconds</b></p>'; |
|
145 | +echo '<p><b>Took: '.(getmicrotime() - $start).' seconds</b></p>'; |
|
146 | 146 | ?> |
147 | 147 | </body> |
148 | 148 | </html> |
@@ -6,7 +6,7 @@ discard block |
||
6 | 6 | { |
7 | 7 | list($usec, $sec) = explode(' ', microtime()); |
8 | 8 | |
9 | - return (float)$usec + (float)$sec; |
|
9 | + return (float) $usec + (float) $sec; |
|
10 | 10 | } |
11 | 11 | |
12 | 12 | $start = getmicrotime(); |
@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | define('CALENDAR_ROOT', '../../'); |
16 | 16 | } |
17 | 17 | |
18 | -require_once CALENDAR_ROOT . 'Year.php'; |
|
18 | +require_once CALENDAR_ROOT.'Year.php'; |
|
19 | 19 | |
20 | 20 | define('CALENDAR_MONTH_STATE', CALENDAR_USE_MONTH_WEEKDAYS); |
21 | 21 | |
@@ -100,7 +100,7 @@ discard block |
||
100 | 100 | } |
101 | 101 | |
102 | 102 | echo "<td>\n<table class=\"month\">\n"; |
103 | - echo '<caption class="month">' . date('F', $Month->thisMonth(true)) . '</caption>'; |
|
103 | + echo '<caption class="month">'.date('F', $Month->thisMonth(true)).'</caption>'; |
|
104 | 104 | echo "<tr>\n<th>M</th><th>T</th><th>W</th><th>T</th><th>F</th><th>S</th><th>S</th>\n</tr>"; |
105 | 105 | $Month->build(); |
106 | 106 | while ($Day = $Month->fetch()) { |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | if ($Day->isEmpty()) { |
111 | 111 | echo "<td> </td>\n"; |
112 | 112 | } else { |
113 | - echo '<td>' . $Day->thisDay() . "</td>\n"; |
|
113 | + echo '<td>'.$Day->thisDay()."</td>\n"; |
|
114 | 114 | } |
115 | 115 | if ($Day->isLast()) { |
116 | 116 | echo "</tr>\n"; |
@@ -6,7 +6,7 @@ discard block |
||
6 | 6 | { |
7 | 7 | list($usec, $sec) = explode(' ', microtime()); |
8 | 8 | |
9 | - return (float)$usec + (float)$sec; |
|
9 | + return (float) $usec + (float) $sec; |
|
10 | 10 | } |
11 | 11 | |
12 | 12 | $start = getmicrotime(); |
@@ -14,7 +14,7 @@ discard block |
||
14 | 14 | if (!@include 'Calendar/Calendar.php') { |
15 | 15 | define('CALENDAR_ROOT', '../../'); |
16 | 16 | } |
17 | -require_once CALENDAR_ROOT . 'Second.php'; |
|
17 | +require_once CALENDAR_ROOT.'Second.php'; |
|
18 | 18 | |
19 | 19 | if (!isset($_GET['y'])) { |
20 | 20 | $_GET['y'] = date('Y'); |
@@ -37,14 +37,14 @@ discard block |
||
37 | 37 | |
38 | 38 | $Unit = new Calendar_Second($_GET['y'], $_GET['m'], $_GET['d'], $_GET['h'], $_GET['i'], $_GET['s']); |
39 | 39 | |
40 | -echo '<p><b>Result:</b> ' . $Unit->thisYear() . '-' . $Unit->thisMonth() . '-' . $Unit->thisDay() . ' ' . $Unit->thisHour() . ':' . $Unit->thisMinute() . ':' . $Unit->thisSecond(); |
|
40 | +echo '<p><b>Result:</b> '.$Unit->thisYear().'-'.$Unit->thisMonth().'-'.$Unit->thisDay().' '.$Unit->thisHour().':'.$Unit->thisMinute().':'.$Unit->thisSecond(); |
|
41 | 41 | if ($Unit->isValid()) { |
42 | 42 | echo ' is valid!</p>'; |
43 | 43 | } else { |
44 | - $V =& $Unit->getValidator(); |
|
44 | + $V = & $Unit->getValidator(); |
|
45 | 45 | echo ' is invalid:</p>'; |
46 | 46 | while ($error = $V->fetch()) { |
47 | - echo $error->toString() . '<br>'; |
|
47 | + echo $error->toString().'<br>'; |
|
48 | 48 | } |
49 | 49 | } |
50 | 50 | ?> |
@@ -61,4 +61,4 @@ discard block |
||
61 | 61 | <p><b>Note:</b> Error messages can be controlled with the constants <code>CALENDAR_VALUE_TOOSMALL</code> and <code>CALENDAR_VALUE_TOOLARGE</code> |
62 | 62 | - see <code>Calendar_Validator.php</code></p> |
63 | 63 | |
64 | -<?php echo '<p><b>Took: ' . (getmicrotime() - $start) . ' seconds</b></p>'; |
|
64 | +<?php echo '<p><b>Took: '.(getmicrotime() - $start).' seconds</b></p>'; |
@@ -9,8 +9,8 @@ discard block |
||
9 | 9 | if (!@include 'Calendar/Calendar.php') { |
10 | 10 | define('CALENDAR_ROOT', '../../'); |
11 | 11 | } |
12 | -require_once CALENDAR_ROOT . 'Month/Weekdays.php'; |
|
13 | -require_once CALENDAR_ROOT . 'Decorator.php'; |
|
12 | +require_once CALENDAR_ROOT.'Month/Weekdays.php'; |
|
13 | +require_once CALENDAR_ROOT.'Decorator.php'; |
|
14 | 14 | |
15 | 15 | // Decorate a Month with methods to improve formatting |
16 | 16 | |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | $prevStamp = parent::prevMonth(true); |
38 | 38 | |
39 | 39 | // Build the URL for the previous month |
40 | - return $_SERVER['PHP_SELF'] . '?y=' . date('Y', $prevStamp) . '&m=' . date('n', $prevStamp) . '&d=' . date('j', $prevStamp); |
|
40 | + return $_SERVER['PHP_SELF'].'?y='.date('Y', $prevStamp).'&m='.date('n', $prevStamp).'&d='.date('j', $prevStamp); |
|
41 | 41 | } |
42 | 42 | |
43 | 43 | /** |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | $nextStamp = parent::nextMonth(true); |
60 | 60 | |
61 | 61 | // Build the URL for next month |
62 | - return $_SERVER['PHP_SELF'] . '?y=' . date('Y', $nextStamp) . '&m=' . date('n', $nextStamp) . '&d=' . date('j', $nextStamp); |
|
62 | + return $_SERVER['PHP_SELF'].'?y='.date('Y', $nextStamp).'&m='.date('n', $nextStamp).'&d='.date('j', $nextStamp); |
|
63 | 63 | } |
64 | 64 | } |
65 | 65 | |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | if ($Day->isEmpty()) { |
96 | 96 | echo '<td> </td>'; |
97 | 97 | } else { |
98 | - echo '<td>' . $Day->thisDay() . '</td>'; |
|
98 | + echo '<td>'.$Day->thisDay().'</td>'; |
|
99 | 99 | } |
100 | 100 | if ($Day->isLast()) { |
101 | 101 | echo "\n</tr>\n"; |
@@ -5,9 +5,9 @@ discard block |
||
5 | 5 | if (!@include 'Calendar/Calendar.php') { |
6 | 6 | define('CALENDAR_ROOT', '../../'); |
7 | 7 | } |
8 | -require_once CALENDAR_ROOT . 'Month.php'; |
|
9 | -require_once CALENDAR_ROOT . 'Decorator.php'; // Not really needed but added to help this make sense |
|
10 | -require_once CALENDAR_ROOT . 'Decorator/Wrapper.php'; |
|
8 | +require_once CALENDAR_ROOT.'Month.php'; |
|
9 | +require_once CALENDAR_ROOT.'Decorator.php'; // Not really needed but added to help this make sense |
|
10 | +require_once CALENDAR_ROOT.'Decorator/Wrapper.php'; |
|
11 | 11 | |
12 | 12 | /** |
13 | 13 | * Class MyBoldDecorator. |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | */ |
28 | 28 | public function thisDay() |
29 | 29 | { |
30 | - return '<b>' . parent::thisDay() . '</b>'; |
|
30 | + return '<b>'.parent::thisDay().'</b>'; |
|
31 | 31 | } |
32 | 32 | } |
33 | 33 | |
@@ -39,5 +39,5 @@ discard block |
||
39 | 39 | echo '<h2>The Wrapper decorator</h2>'; |
40 | 40 | echo '<i>Day numbers are rendered in bold</i><br> <br>'; |
41 | 41 | while ($DecoratedDay = $Wrapper->fetch('MyBoldDecorator')) { |
42 | - echo $DecoratedDay->thisDay() . '<br>'; |
|
42 | + echo $DecoratedDay->thisDay().'<br>'; |
|
43 | 43 | } |
@@ -5,8 +5,8 @@ discard block |
||
5 | 5 | if (!@include 'Calendar/Calendar.php') { |
6 | 6 | define('CALENDAR_ROOT', '../../'); |
7 | 7 | } |
8 | -require_once CALENDAR_ROOT . 'Month/Weekdays.php'; |
|
9 | -require_once CALENDAR_ROOT . 'Util/Uri.php'; |
|
8 | +require_once CALENDAR_ROOT.'Month/Weekdays.php'; |
|
9 | +require_once CALENDAR_ROOT.'Util/Uri.php'; |
|
10 | 10 | |
11 | 11 | if (!isset($_GET['jahr'])) { |
12 | 12 | $_GET['jahr'] = date('Y'); |
@@ -18,15 +18,15 @@ discard block |
||
18 | 18 | // Build the month |
19 | 19 | $Calendar = new Calendar_Month_Weekdays($_GET['jahr'], $_GET['monat']); |
20 | 20 | |
21 | -echo '<p>The current month is ' . $Calendar->thisMonth() . ' of year ' . $Calendar->thisYear() . '</p>'; |
|
21 | +echo '<p>The current month is '.$Calendar->thisMonth().' of year '.$Calendar->thisYear().'</p>'; |
|
22 | 22 | |
23 | 23 | $Uri = new Calendar_Util_Uri('jahr', 'monat'); |
24 | 24 | $Uri->setFragments('jahr', 'monat'); |
25 | 25 | |
26 | 26 | echo '"Vector" URIs<pre>'; |
27 | -echo "Previous Uri:\t" . htmlentities($Uri->prev($Calendar, 'month')) . "\n"; |
|
28 | -echo "This Uri:\t" . htmlentities($Uri->this($Calendar, 'month')) . "\n"; |
|
29 | -echo "Next Uri:\t" . htmlentities($Uri->next($Calendar, 'month')) . "\n"; |
|
27 | +echo "Previous Uri:\t".htmlentities($Uri->prev($Calendar, 'month'))."\n"; |
|
28 | +echo "This Uri:\t".htmlentities($Uri->this($Calendar, 'month'))."\n"; |
|
29 | +echo "Next Uri:\t".htmlentities($Uri->next($Calendar, 'month'))."\n"; |
|
30 | 30 | echo '</pre>'; |
31 | 31 | |
32 | 32 | // Switch to scalar URIs |
@@ -34,9 +34,9 @@ discard block |
||
34 | 34 | $Uri->scalar = true; // Omit variable names |
35 | 35 | |
36 | 36 | echo '"Scalar" URIs<pre>'; |
37 | -echo "Previous Uri:\t" . $Uri->prev($Calendar, 'month') . "\n"; |
|
38 | -echo "This Uri:\t" . $Uri->this($Calendar, 'month') . "\n"; |
|
39 | -echo "Next Uri:\t" . $Uri->next($Calendar, 'month') . "\n"; |
|
37 | +echo "Previous Uri:\t".$Uri->prev($Calendar, 'month')."\n"; |
|
38 | +echo "This Uri:\t".$Uri->this($Calendar, 'month')."\n"; |
|
39 | +echo "Next Uri:\t".$Uri->next($Calendar, 'month')."\n"; |
|
40 | 40 | echo '</pre>'; |
41 | 41 | |
42 | 42 | // Restore the vector URIs |
@@ -44,6 +44,6 @@ discard block |
||
44 | 44 | $Uri->scalar = false; |
45 | 45 | ?> |
46 | 46 | <p> |
47 | - <a href="<?php echo $_SERVER['PHP_SELF'] . '?' . $Uri->prev($Calendar, 'month'); ?>">Prev</a> : |
|
48 | - <a href="<?php echo $_SERVER['PHP_SELF'] . '?' . $Uri->next($Calendar, 'month'); ?>">Next</a> |
|
47 | + <a href="<?php echo $_SERVER['PHP_SELF'].'?'.$Uri->prev($Calendar, 'month'); ?>">Prev</a> : |
|
48 | + <a href="<?php echo $_SERVER['PHP_SELF'].'?'.$Uri->next($Calendar, 'month'); ?>">Next</a> |
|
49 | 49 | </p> |