亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? datepicker.js

?? ext-2.3.0
?? JS
?? 第 1 頁 / 共 2 頁
字號:
/*
 * Ext JS Library 2.3.0
 * Copyright(c) 2006-2009, Ext JS, LLC.
 * licensing@extjs.com
 * 
 * http://extjs.com/license
 */

/**
 * @class Ext.DatePicker
 * @extends Ext.Component
 * Simple date picker class.
 * @constructor
 * Create a new DatePicker
 * @param {Object} config The config object
 */
Ext.DatePicker = Ext.extend(Ext.Component, {
    /**
     * @cfg {String} todayText
     * The text to display on the button that selects the current date (defaults to "Today")
     */
    todayText : "Today",
    /**
     * @cfg {String} okText
     * The text to display on the ok button
     */
    okText : " OK ", //   to give the user extra clicking room
    /**
     * @cfg {String} cancelText
     * The text to display on the cancel button
     */
    cancelText : "Cancel",
    /**
     * @cfg {String} todayTip
     * The tooltip to display for the button that selects the current date (defaults to "{current date} (Spacebar)")
     */
    todayTip : "{0} (Spacebar)",
    /**
     * @cfg {String} minText
     * The error text to display if the minDate validation fails (defaults to "This date is before the minimum date")
     */
    minText : "This date is before the minimum date",
    /**
     * @cfg {String} maxText
     * The error text to display if the maxDate validation fails (defaults to "This date is after the maximum date")
     */
    maxText : "This date is after the maximum date",
    /**
     * @cfg {String} format
     * The default date format string which can be overriden for localization support.  The format must be
     * valid according to {@link Date#parseDate} (defaults to 'm/d/y').
     */
    format : "m/d/y",
    /**
     * @cfg {String} disabledDaysText
     * The tooltip to display when the date falls on a disabled day (defaults to "Disabled")
     */
    disabledDaysText : "Disabled",
    /**
     * @cfg {String} disabledDatesText
     * The tooltip text to display when the date falls on a disabled date (defaults to "Disabled")
     */
    disabledDatesText : "Disabled",
    /**
     * @cfg {Array} monthNames
     * An array of textual month names which can be overriden for localization support (defaults to Date.monthNames)
     */
    monthNames : Date.monthNames,
    /**
     * @cfg {Array} dayNames
     * An array of textual day names which can be overriden for localization support (defaults to Date.dayNames)
     */
    dayNames : Date.dayNames,
    /**
     * @cfg {String} nextText
     * The next month navigation button tooltip (defaults to 'Next Month (Control+Right)')
     */
    nextText: 'Next Month (Control+Right)',
    /**
     * @cfg {String} prevText
     * The previous month navigation button tooltip (defaults to 'Previous Month (Control+Left)')
     */
    prevText: 'Previous Month (Control+Left)',
    /**
     * @cfg {String} monthYearText
     * The header month selector tooltip (defaults to 'Choose a month (Control+Up/Down to move years)')
     */
    monthYearText: 'Choose a month (Control+Up/Down to move years)',
    /**
     * @cfg {Number} startDay
     * Day index at which the week should begin, 0-based (defaults to 0, which is Sunday)
     */
    startDay : 0,
    /**
     * @cfg {Boolean} showToday
     * False to hide the footer area containing the Today button and disable the keyboard handler for spacebar
     * that selects the current date (defaults to true).
     */
    showToday : true,
    /**
     * @cfg {Date} minDate
     * Minimum allowable date (JavaScript date object, defaults to null)
     */
    /**
     * @cfg {Date} maxDate
     * Maximum allowable date (JavaScript date object, defaults to null)
     */
    /**
     * @cfg {Array} disabledDays
     * An array of days to disable, 0-based. For example, [0, 6] disables Sunday and Saturday (defaults to null).
     */
    /**
     * @cfg {RegExp} disabledDatesRE
     * JavaScript regular expression used to disable a pattern of dates (defaults to null).  The {@link #disabledDates}
     * config will generate this regex internally, but if you specify disabledDatesRE it will take precedence over the 
     * disabledDates value.
     */
    /**
     * @cfg {Array} disabledDates
     * An array of "dates" to disable, as strings. These strings will be used to build a dynamic regular
     * expression so they are very powerful. Some examples:
     * <ul>
     * <li>["03/08/2003", "09/16/2003"] would disable those exact dates</li>
     * <li>["03/08", "09/16"] would disable those days for every year</li>
     * <li>["^03/08"] would only match the beginning (useful if you are using short years)</li>
     * <li>["03/../2006"] would disable every day in March 2006</li>
     * <li>["^03"] would disable every day in every March</li>
     * </ul>
     * Note that the format of the dates included in the array should exactly match the {@link #format} config.
     * In order to support regular expressions, if you are using a date format that has "." in it, you will have to
     * escape the dot when restricting dates. For example: ["03\\.08\\.03"].
     */

    // private
    initComponent : function(){
        Ext.DatePicker.superclass.initComponent.call(this);

        this.value = this.value ?
                 this.value.clearTime() : new Date().clearTime();

        this.addEvents(
            /**
             * @event select
             * Fires when a date is selected
             * @param {DatePicker} this
             * @param {Date} date The selected date
             */
            'select'
        );

        if(this.handler){
            this.on("select", this.handler,  this.scope || this);
        }

        this.initDisabledDays();
    },

    // private
    initDisabledDays : function(){
        if(!this.disabledDatesRE && this.disabledDates){
            var dd = this.disabledDates;
            var re = "(?:";
            for(var i = 0; i < dd.length; i++){
                re += dd[i];
                if(i != dd.length-1) re += "|";
            }
            this.disabledDatesRE = new RegExp(re + ")");
        }
    },
    
    /**
     * Replaces any existing disabled dates with new values and refreshes the DatePicker.
     * @param {Array/RegExp} disabledDates An array of date strings (see the {@link #disabledDates} config
     * for details on supported values), or a JavaScript regular expression used to disable a pattern of dates.
     */
    setDisabledDates : function(dd){
        if(Ext.isArray(dd)){
            this.disabledDates = dd;
            this.disabledDatesRE = null;
        }else{
            this.disabledDatesRE = dd;
        }
        this.initDisabledDays();
        this.update(this.value, true);
    },
    
    /**
     * Replaces any existing disabled days (by index, 0-6) with new values and refreshes the DatePicker.
     * @param {Array} disabledDays An array of disabled day indexes. See the {@link #disabledDays} config
     * for details on supported values.
     */
    setDisabledDays : function(dd){
        this.disabledDays = dd;
        this.update(this.value, true);
    },
    
    /**
     * Replaces any existing {@link #minDate} with the new value and refreshes the DatePicker.
     * @param {Date} value The minimum date that can be selected
     */
    setMinDate : function(dt){
        this.minDate = dt;
        this.update(this.value, true);
    },
    
    /**
     * Replaces any existing {@link #maxDate} with the new value and refreshes the DatePicker.
     * @param {Date} value The maximum date that can be selected
     */
    setMaxDate : function(dt){
        this.maxDate = dt;
        this.update(this.value, true);
    },

    /**
     * Sets the value of the date field
     * @param {Date} value The date to set
     */
    setValue : function(value){
        var old = this.value;
        this.value = value.clearTime(true);
        if(this.el){
            this.update(this.value);
        }
    },

    /**
     * Gets the current selected value of the date field
     * @return {Date} The selected date
     */
    getValue : function(){
        return this.value;
    },

    // private
    focus : function(){
        if(this.el){
            this.update(this.activeDate);
        }
    },
    
    // private
    onEnable: function(initial){
        Ext.DatePicker.superclass.onEnable.call(this);    
        this.doDisabled(false);
        this.update(initial ? this.value : this.activeDate);
        if(Ext.isIE){
            this.el.repaint();
        }
        
    },
    
    // private
    onDisable: function(){
        Ext.DatePicker.superclass.onDisable.call(this);   
        this.doDisabled(true);
        if(Ext.isIE && !Ext.isIE8){
            /* Really strange problem in IE6/7, when disabled, have to explicitly
             * repaint each of the nodes to get them to display correctly, simply
             * calling repaint on the main element doesn't appear to be enough.
             */
             Ext.each([].concat(this.textNodes, this.el.query('th span')), function(el){
                 Ext.fly(el).repaint();
             });
        }
    },
    
    // private
    doDisabled: function(disabled){
        this.keyNav[disabled ? 'disable' : 'enable'](disabled);
        this.leftClickRpt.setDisabled(disabled);
        this.rightClickRpt.setDisabled(disabled);
        if(this.showToday){
            this.todayKeyListener[disabled ? 'disable' : 'enable'](disabled);
            this.todayBtn.setDisabled(disabled);
        }
    },

    // private
    onRender : function(container, position){
        var m = [
             '<table cellspacing="0">',
                '<tr><td class="x-date-left"><a href="#" title="', this.prevText ,'">&#160;</a></td><td class="x-date-middle" align="center"></td><td class="x-date-right"><a href="#" title="', this.nextText ,'">&#160;</a></td></tr>',
                '<tr><td colspan="3"><table class="x-date-inner" cellspacing="0"><thead><tr>'];
        var dn = this.dayNames;
        for(var i = 0; i < 7; i++){
            var d = this.startDay+i;
            if(d > 6){
                d = d-7;
            }
            m.push("<th><span>", dn[d].substr(0,1), "</span></th>");
        }
        m[m.length] = "</tr></thead><tbody><tr>";
        for(var i = 0; i < 42; i++) {
            if(i % 7 == 0 && i != 0){
                m[m.length] = "</tr><tr>";
            }
            m[m.length] = '<td><a href="#" hidefocus="on" class="x-date-date" tabIndex="1"><em><span></span></em></a></td>';
        }
        m.push('</tr></tbody></table></td></tr>', 
                this.showToday ? '<tr><td colspan="3" class="x-date-bottom" align="center"></td></tr>' : '', 
                '</table><div class="x-date-mp"></div>');

        var el = document.createElement("div");
        el.className = "x-date-picker";
        el.innerHTML = m.join("");

        container.dom.insertBefore(el, position);

        this.el = Ext.get(el);
        this.eventEl = Ext.get(el.firstChild);

        this.leftClickRpt = new Ext.util.ClickRepeater(this.el.child("td.x-date-left a"), {
            handler: this.showPrevMonth,
            scope: this,
            preventDefault:true,
            stopDefault:true
        });

        this.rightClickRpt = new Ext.util.ClickRepeater(this.el.child("td.x-date-right a"), {
            handler: this.showNextMonth,
            scope: this,
            preventDefault:true,
            stopDefault:true
        });

        this.eventEl.on("mousewheel", this.handleMouseWheel,  this);

        this.monthPicker = this.el.down('div.x-date-mp');
        this.monthPicker.enableDisplayMode('block');
        
        this.keyNav = new Ext.KeyNav(this.eventEl, {
            "left" : function(e){
                e.ctrlKey ?
                    this.showPrevMonth() :
                    this.update(this.activeDate.add("d", -1));
            },

            "right" : function(e){
                e.ctrlKey ?
                    this.showNextMonth() :
                    this.update(this.activeDate.add("d", 1));
            },

            "up" : function(e){
                e.ctrlKey ?
                    this.showNextYear() :
                    this.update(this.activeDate.add("d", -7));
            },

            "down" : function(e){
                e.ctrlKey ?
                    this.showPrevYear() :
                    this.update(this.activeDate.add("d", 7));
            },

            "pageUp" : function(e){
                this.showNextMonth();
            },

            "pageDown" : function(e){
                this.showPrevMonth();
            },

            "enter" : function(e){
                e.stopPropagation();
                return true;
            },

            scope : this
        });

        this.eventEl.on("click", this.handleDateClick,  this, {delegate: "a.x-date-date"});

        this.el.unselectable();
        
        this.cells = this.el.select("table.x-date-inner tbody td");
        this.textNodes = this.el.query("table.x-date-inner tbody span");

        this.mbtn = new Ext.Button({
            text: "&#160;",
            tooltip: this.monthYearText,
            renderTo: this.el.child("td.x-date-middle", true)
        });

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产午夜久久久久| 日韩国产精品久久久| 91污片在线观看| 亚洲自拍偷拍九九九| 在线播放日韩导航| 午夜a成v人精品| 日韩一区二区免费高清| 国内成+人亚洲+欧美+综合在线| 久久精品视频一区二区三区| 成人高清免费在线播放| 亚洲欧洲综合另类| 337p亚洲精品色噜噜| 国产一区二区三区香蕉| 国产精品久久久久久久岛一牛影视 | 成人污污视频在线观看| 亚洲色图制服诱惑| 91麻豆精品国产无毒不卡在线观看| 美国一区二区三区在线播放| 国产午夜精品美女毛片视频| 91美女视频网站| 日本不卡不码高清免费观看| 久久综合九色综合97_久久久| 成人动漫视频在线| 视频一区二区欧美| 欧美激情一区二区三区蜜桃视频| 一本久久精品一区二区| 男人操女人的视频在线观看欧美| 欧美国产精品久久| 欧美老肥妇做.爰bbww视频| 国产精品综合一区二区三区| √…a在线天堂一区| 欧美精品色综合| 国产成人精品www牛牛影视| 一区二区三区在线不卡| 欧美大片一区二区三区| 95精品视频在线| 麻豆成人免费电影| 中文字幕一区二区三区在线观看| 欧美久久久一区| 国产成人精品在线看| 亚洲永久精品国产| 久久日一线二线三线suv| 91视视频在线观看入口直接观看www| 蜜臀精品一区二区三区在线观看 | 国产性色一区二区| 欧美手机在线视频| 成人开心网精品视频| 日韩中文字幕1| 中文字幕一区二区三区四区| 欧美一级xxx| 91蜜桃传媒精品久久久一区二区| 精品影视av免费| 一区二区日韩电影| 中文字幕欧美三区| 日韩欧美123| 欧美色欧美亚洲另类二区| 成人综合婷婷国产精品久久蜜臀| 天堂蜜桃一区二区三区 | 日本aⅴ免费视频一区二区三区 | 美女精品一区二区| 一区二区在线电影| 国产日韩欧美亚洲| 宅男在线国产精品| 色噜噜狠狠色综合中国| 国产精品18久久久久久久网站| 亚洲妇熟xx妇色黄| 亚洲乱码国产乱码精品精可以看 | 337p粉嫩大胆噜噜噜噜噜91av | 婷婷丁香久久五月婷婷| 国产精品国模大尺度视频| 精品久久人人做人人爽| 欧美日韩久久不卡| 日本高清视频一区二区| av中文字幕亚洲| 精品无码三级在线观看视频 | 丁香另类激情小说| 激情五月婷婷综合网| 日本怡春院一区二区| 一二三区精品福利视频| 中文字幕一区二区三区在线不卡 | 中文字幕一区二区在线播放| 久久久国际精品| 精品久久五月天| 日韩女优av电影在线观看| 51精品国自产在线| 欧美日韩中文一区| 欧洲日韩一区二区三区| 91蜜桃传媒精品久久久一区二区| 成人午夜视频免费看| 国产精品主播直播| 国精产品一区一区三区mba视频| 日韩成人一区二区| 婷婷综合久久一区二区三区| 亚洲国产欧美在线人成| 一区二区三国产精华液| 一区二区三区在线免费视频 | 国产九九视频一区二区三区| 麻豆一区二区99久久久久| 日本中文一区二区三区| 日韩电影在线观看电影| 青青草91视频| 免费在线观看一区| 天堂蜜桃91精品| 日本不卡一区二区三区高清视频| 人人精品人人爱| 日本在线不卡一区| 久久成人羞羞网站| 国内精品不卡在线| 国产成+人+日韩+欧美+亚洲| 国产高清不卡一区| 成人性生交大合| gogogo免费视频观看亚洲一| 成人av在线资源网| 色综合色综合色综合色综合色综合 | 色视频成人在线观看免| 色诱视频网站一区| 欧洲精品在线观看| 欧美高清精品3d| 91精品免费观看| 日韩三级中文字幕| 久久品道一品道久久精品| 欧美激情一区二区三区全黄| 中文字幕在线一区| 夜夜操天天操亚洲| 亚洲.国产.中文慕字在线| 男女男精品网站| 韩国成人精品a∨在线观看| 国产精品91xxx| eeuss国产一区二区三区| 91性感美女视频| 欧美日韩精品一区二区三区| 欧美一级生活片| 久久精品无码一区二区三区| 中文字幕亚洲在| 亚洲国产成人porn| 精品一区二区在线播放| 国产成人亚洲综合a∨婷婷图片 | av激情亚洲男人天堂| 91电影在线观看| 日韩一区二区三区av| 久久久亚洲欧洲日产国码αv| 中文成人av在线| 亚洲综合精品自拍| 日本视频在线一区| 国产成人啪免费观看软件| 91免费在线视频观看| 欧美一卡二卡三卡四卡| 久久婷婷国产综合精品青草| 亚洲天堂网中文字| 日韩专区一卡二卡| 国产成人超碰人人澡人人澡| 色欧美片视频在线观看在线视频| 欧美另类高清zo欧美| 欧美国产一区二区在线观看 | 天天综合天天做天天综合| 狠狠色狠狠色综合日日91app| 成人永久免费视频| 51精品秘密在线观看| 欧美激情一区二区三区全黄| 亚洲国产精品久久久久秋霞影院| 国产在线精品一区二区三区不卡| 97se亚洲国产综合自在线| 制服丝袜成人动漫| 中文字幕一区二区在线播放| 日本欧美加勒比视频| 成人av一区二区三区| 91精品一区二区三区久久久久久| 国产日韩一级二级三级| 天堂在线一区二区| 成年人国产精品| 91麻豆精品国产91久久久资源速度 | 国产精品一区二区久久精品爱涩| 91美女片黄在线观看| 久久综合狠狠综合久久激情 | 一区二区三区四区精品在线视频| 美女免费视频一区| 色94色欧美sute亚洲线路二| 精品1区2区在线观看| 亚洲一区二区三区影院| 国产高清精品在线| 欧美一区二区三区四区久久| 亚洲欧洲色图综合| 久久99久久久欧美国产| 欧美专区在线观看一区| 国产午夜亚洲精品午夜鲁丝片 | 婷婷国产v国产偷v亚洲高清| 99免费精品在线| 久久夜色精品一区| 香蕉乱码成人久久天堂爱免费| 99在线精品观看| 久久免费午夜影院| 免费成人在线影院| 欧美三区在线观看| 日韩美女视频19| 国产成人av电影在线| 日韩欧美一二区| 天堂一区二区在线免费观看| 91成人看片片| 亚洲手机成人高清视频| 国产一区二区91|