Untitled
public text v1 · immutable#
* GnooCalendar.dList()
#
* retourne le tableau des jours
#
*/
#
this.dList=function()
#
{
#
var num = 1 ;
#
var cur=new Number(1);
#
var tmpDate = new Date();
#
var tmp = new String("<table border='0' cellpadding='0' cellspacing='0' class='Gtab'>");
#
tmpDate.setDate(cur);
#
tmpDate.setMonth(this.curMonth);
#
tmpDate.setFullYear(this.curYear);
#
tmp += "<tr>\n";
#
for(var i=1; i<this.day.length; i++)
#
tmp += "<td class='Gh"+i+"'>"+ this.day[i] +"</td>\n";
#
#
tmp += "<td class='Gh0'>"+ this.day[0] +"</td>\n";
#
tmp += "</tr>\n";
#
for(var j=0; j<6; j++)
#
{
#
tmp += "<tr>\n";
#
for(var i=1; i<this.day.length; i++)
#
{
#
tmpDate.setDate(cur);
#
if( cur<=31 && i==tmpDate.getDay() && this.curMonth==tmpDate.getMonth())
#
{
#
tmp += this.dayCell(cur,i);
#
tmp += this.getLink(cur);
#
cur+=1;
#
}
#
else
#
{
#
tmp += "<td class='Gc"+i+"'";
#
tmp += "> ";
#
}
#
tmp += "</td>\n";
#
tmpDate.setDate(cur);
#
}
#
if( cur==tmpDate.getDate() && this.curMonth==tmpDate.getMonth())
#
{
#
tmp += this.dayCell(cur,0);
#
tmp += this.getLink(cur);
#
cur+=1;
#
}
#
else
#
{
#
tmp += "<td class='Gc0'";
#
tmp += "> ";
#
}
#
tmp += "</td>\n</tr>\n";
#
}
#
tmp += "</table>\n";
#
return tmp;
#
}