rem: if (calEvent.privateEvent) if (! gShowprivate.checked) useit=false; if (useit) { gHtmlDocument.write("<tr><td valign=top>"); if (calEvent.allDay) { gHtmlDocument.write("All Day"); gHtmlDocument.write("</td><td>"); } else { gHtmlDocument.write(calEvent.start); gHtmlDocument.write("</td><td valign=top>"); gHtmlDocument.write(calEvent.end); } gHtmlDocument.write("</td><td valign=top>"); gHtmlDocument.write(calEvent.title); if (calEvent.description) gHtmlDocument.write("<br>"+descriptionTag+": "+calEvent.description); if (calEvent.location) gHtmlDocument.write("<br>"+locationTag+": "+calEvent.location); if (calEvent.url) gHtmlDocument.write("<br>"+uriTag+": "+calEvent.url); var mystat='Cancelled'; if (calEvent.status == 10029) mystat='Tentative'; if (calEvent.status == 10030) mystat='Confirmed';  gHtmlDocument.write("<br>Status: "+mystat); gHtmlDocument.write("</td></tr>"); } } gHtmlDocument.write("</table>"); 
add: gHtmlDocument.write("<br>Status: "+mystat); gHtmlDocument.write("</td></tr>"); } } gHtmlDocument.write("</table>"); 
context: function printEventArray( calendarEventArray){   gHtmlDocument.write("<tr><td width=20%>Starts</td><td width=20%>Ends</td><td width=60%>Event</td></tr>");   for (i in calendarEventArray)    {      var calEvent=calendarEventArray[i];      var useit=true;      if (calEvent.privateEvent)         if (! gShowprivate.checked)             useit=false;      if (useit)      {        gHtmlDocument.write("<tr><td valign=top>");        if (calEvent.allDay)         {          gHtmlDocument.write("All Day");          gHtmlDocument.write("</td><td>");         }        else        {         gHtmlDocument.write(calEvent.start);         gHtmlDocument.write("</td><td valign=top>");         gHtmlDocument.write(calEvent.end);        }        gHtmlDocument.write("</td><td valign=top>");        gHtmlDocument.write(calEvent.title);        if (calEvent.description)           gHtmlDocument.write("<br>"+descriptionTag+": "+calEvent.description);        if (calEvent.location)          gHtmlDocument.write("<br>"+locationTag+": "+calEvent.location);        if (calEvent.url)          gHtmlDocument.write("<br>"+uriTag+": "+calEvent.url);        var mystat='Cancelled';        if (calEvent.status == 10029)          mystat='Tentative';        if (calEvent.status == 10030)          mystat='Confirmed';        gHtmlDocument.write("<br>Status: "+mystat);        gHtmlDocument.write("</td></tr>");      }   }   gHtmlDocument.write("</table>");}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/c86bc67709de6872e86b53da8f0162214c37cd97/calPrintEngine.js/buggy/calendar/resources/content/calPrintEngine.js