- Timestamp:
- 01/13/09 18:30:30 (15 years ago)
- Location:
- trunk/calendar_new
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/calendar_new/inc/class.uicalendar.inc.php
r573 r600 93 93 94 94 // Printing results in XML 95 for($i = $this->workdaystarts; $i <= $this->workdayends; $i = $i + 0.5){ 95 for($i = $this->workdaystarts; $i <= $this->workdayends; $i = $i + 0.5) 96 { 96 97 if($i == intval($i)) 97 98 $retorno.= "<workday><timeid>".($i < 10 ? "0" : "").intval($i)."00</timeid><hour>".($i < 10 ? "0" : "").intval($i).":00</hour>"; … … 105 106 $retorno .= "<calEvent>"; 106 107 $retorno .= "<id>".$line['cal_id']."</id>"; 107 $retorno .= "<title>". $line['title']."</title>";108 $retorno .= "<description>". $line['description']."</description>";108 $retorno .= "<title>".htmlspecialchars($line['title'])."</title>"; 109 $retorno .= "<description>".htmlspecialchars($line['description'])."</description>"; 109 110 $retorno .= "<edatetime>".($line['edatetime']*1000)."</edatetime>"; 110 111 $retorno .= "<datetime>".($line['datetime']*1000)."</datetime>"; … … 141 142 $retorno .= "<calEvent>"; 142 143 $retorno .= "<id>".$line['cal_id']."</id>"; 143 $retorno .= "<title>". $line['title']."</title>";144 $retorno .= "<description>". $line['description']."</description>";144 $retorno .= "<title>".htmlspecialchars($line['title'])."</title>"; 145 $retorno .= "<description>".htmlspecialchars($line['description'])."</description>"; 145 146 $retorno .= "<edatetime>".($line['edatetime']*1000)."</edatetime>"; 146 147 $retorno .= "<datetime>".($line['datetime']*1000)."</datetime>"; … … 192 193 $retorno .= "<calEvent>"; 193 194 $retorno .= "<id>".$line['cal_id']."</id>"; 194 $retorno .= "<title>". $line['title']."</title>";195 $retorno .= "<title>".htmlspecialchars($line['title'])."</title>"; 195 196 $retorno .= "<edatetime>".($line['edatetime']*1000)."</edatetime>"; 196 197 $retorno .= "<datetime>".($line['datetime']*1000)."</datetime>"; -
trunk/calendar_new/js/calendar_functions.js
r573 r600 77 77 var handler_getView = function(XMLdata) 78 78 { 79 80 try {81 79 _this.parseView(XMLdata,type); 82 80 … … 117 115 document.getElementById("l_date").innerHTML += "<a href=\"javascript:calendar.getView('div_main','"+viewType+"','&time='+this.nextView);\"> \>\></a>"; 118 116 119 }catch(e){ alert(e+"\n"+e.description); }120 117 var events = document.getElementById('returnEvents'); 121 118 while(typeof(events.firstChild.id) == 'string'){
Note: See TracChangeset
for help on using the changeset viewer.