芝麻web文件管理V1.00
编辑当前文件:/home/p/r/i/prismawe/www/projets/include/js/uncrompressed/calendar.js
/********************************************************************** * Calendar JavaScript [DOM] v3.01 by Michael Loesler * ************************************************************************ * Copyright (C) 2005-07 by Michael Loesler, http//derletztekick.com * * * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 3 of the License, or * * (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, see
* * or write to the * * Free Software Foundation, Inc., * * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * * * **********************************************************************/ function CalendarJS() { this.now = new Date(); this.dayname = ["Mo","Di","Mi","Do","Fr","Sa","So"]; this.monthname = ["Januar","Februar","Mrz","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]; this.dayspermonth = [31,28,31,30,31,30,31,31,30,31,30,31]; this.tooltip = ["vorheriger Monat","nchster Monat"]; this.monthCell = document.createElement("th"); this.tableHead = null; this.parEl = null; this.init = function( id ) { this.date = this.now.getDate(); this.month = this.mm = this.now.getMonth(); this.year = this.yy = this.now.getFullYear(); this.monthCell.colSpan = 5; this.monthCell.appendChild(document.createTextNode( this.monthname[this.mm]+" "+this.yy )); this.tableHead = this.createTableHead(); this.parEl = document.getElementById( id ); this.show(); } this.removeElements = function( Obj ) { for (var i=0; i