|
1 | 1 | <?php |
| 2 | +error_reporting(0); |
2 | 3 | require_once('classes/tc_calendar.php'); |
3 | 4 |
|
4 | 5 | $thispage = $_SERVER['PHP_SELF']; |
|
213 | 214 | $is_selected = strtotime($y."-".$m."-".$day) - strtotime($sly."-".$slm."-".$sld); |
214 | 215 | if($is_selected == 0) $htmlClass[] = "select"; |
215 | 216 | */ |
216 | | - |
| 217 | + |
217 | 218 | if(in_array($currentTime, $select_days)){ |
218 | | - $htmlClass[] = "select"; |
| 219 | + $htmlClass[] = "select"; |
219 | 220 | } |
220 | | - |
| 221 | + |
221 | 222 |
|
222 | 223 | //check date allowed |
223 | 224 | if($ta1_set && $ta2_set){ |
|
263 | 264 | //check on monthly recursive |
264 | 265 | if(isset($sp_dates[1]) && is_array($sp_dates[1]) && !$sp_found){ |
265 | 266 | foreach($sp_dates[1] as $sp_time){ |
266 | | - if($sp_time != "" && $sp_time > 0){ |
| 267 | + if($sp_time != "" && $sp_time > 0){ |
267 | 268 | $sp_time_d = date('d', $sp_time); |
268 | 269 | if($sp_time_d == $day){ |
269 | 270 | $sp_found = true; |
@@ -502,11 +503,11 @@ function padString(stringToPad, padLength, padString) { |
502 | 503 | function loading(){ |
503 | 504 | if(this.ccWidth > 0 && this.ccHeight > 0){ |
504 | 505 | var ccobj = getObject('calendar-container'); |
505 | | - |
| 506 | + |
506 | 507 | ccobj.style.width = this.ccWidth+'px'; |
507 | 508 | ccobj.style.height = this.ccHeight+'px'; |
508 | 509 | } |
509 | | - |
| 510 | + |
510 | 511 | document.getElementById('calendar-container').innerHTML = "<div id=\"calendar-body\"><div class=\"refresh\"><div align=\"center\" class=\"txt-container\">Refreshing Calendar...</div></div></div>"; |
511 | 512 | adjustContainer(); |
512 | 513 | } |
@@ -534,8 +535,8 @@ function adjustContainer(){ |
534 | 535 | div_obj.style.width = tc_obj.offsetWidth+'px'; |
535 | 536 | div_obj.style.height = tc_obj.offsetHeight+'px'; |
536 | 537 | //alert(div_obj.style.width+','+div_obj.style.height); |
537 | | - |
538 | | - |
| 538 | + |
| 539 | + |
539 | 540 | var ccsize = getObject('calendar-container'); |
540 | 541 | this.ccWidth = ccsize.offsetWidth; |
541 | 542 | this.ccHeight = ccsize.offsetHeight; |
@@ -613,9 +614,9 @@ function adjustContainer(){ |
613 | 614 |
|
614 | 615 | <input name="str" type="hidden" id="str" value="<?php echo($startDate);?>" /> |
615 | 616 | <input name="rtl" type="hidden" id="rtl" value="<?php echo($rtl);?>" /> |
616 | | - <input name="wks" type="hidden" id="wks" value="<?php echo($show_weeks);?>" /> |
| 617 | + <input name="wks" type="hidden" id="wks" value="<?php echo($show_weeks);?>" /> |
617 | 618 | <input name="int" type="hidden" id="int" value="<?php echo($interval);?>" /> |
618 | | - |
| 619 | + |
619 | 620 | <input name="hid" type="hidden" id="hid" value="<?php echo($auto_hide);?>" /> |
620 | 621 | <input name="hdt" type="hidden" id="hdt" value="<?php echo($auto_hide_time);?>" /> |
621 | 622 | </form> |
@@ -653,7 +654,7 @@ function adjustContainer(){ |
653 | 654 | $this_link = isset($column[1]) ? $column[1] : ""; |
654 | 655 | $this_class = isset($column[2]) ? $column[2] : ""; |
655 | 656 | $this_id = isset($column[3]) ? $column[3] : ""; |
656 | | - |
| 657 | + |
657 | 658 | $id_str = ($this_id) ? " id=\"$this_id\"" : ""; |
658 | 659 |
|
659 | 660 | if($this_link){ |
|
0 commit comments