/**
* A picker that allows you to select a month and year.
*
* This component has been originally started by Joseph Kralicky and
* further enhanced by cariad. As of version 0.2 I added support for
* a minimum and maximum date (allowed date range) and noPastMonths.
*
* @class Ext.ux.MonthPicker
* @extends Ext.Component
*
* @author Philipp Rosenhagen
* @date 2008-08-28
* @version 0.2
* @link http://extjs.com/forum/showthread.php?t=20181
*
* @license Ext.ux.grid.Search is licensed under the terms of
* the Open Source LGPL 3.0 license. Commercial use is permitted to the extent
* that the code/component(s) do NOT become part of another Open Source or Commercially
* licensed development library or toolkit without explicit permission.
*
* License details: http://www.gnu.org/licenses/lgpl.html
*
* This extension has been tested and developed with IE6, FF2, FF3 using Ext 2.0.2.
* The license is LGPL 3.0 - at least for the Ext 2.0.x branch. Feel free to try it
* with the latest Ext but don't ask me under which license you can use it...
*/
Ext.namespace('Ext.ux');
/**
* @class Ext.ux.MonthPicker
* @extends Ext.Component
* @param {Object} config configuration object
* @constructor
*/
Ext.ux.MonthPicker = function(config) {
Ext.apply(this, config);
Ext.ux.MonthPicker.superclass.constructor.call(this);
};
Ext.ux.MonthPicker = Ext.extend(Ext.Component, {
format : "M, Y",
okText : Ext.MessageBox.buttonText.ok,
cancelText : Ext.MessageBox.buttonText.cancel,
constrainToViewport : true,
monthNames : Date.monthNames,
startDay : 0,
minDate: null,
maxDate: null,
value : 0,
noPastYears: false, // only use the current year and future years
noPastMonths: false, // only use the current month and future months
useDayDate : 1, // set to a number between 1-31 to use this day when creating the resulting date object (or null to use todays date or keep existing)
initComponent: function(){
Ext.ux.MonthPicker.superclass.initComponent.call(this);
this.value = this.value ? this.value.clearTime() : new Date().clearTime();
this.activeDate = this.value;
this.addEvents(
'select'
);
if(this.handler){
this.on("select", this.handler, this.scope || this);
}
},
focus : function(){
if(this.el){
this.update(this.activeDate);
}
},
onRender : function(container, position){
var m = [ '' ]
m[m.length] = '';
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.monthPicker = this.el.down('div.x-date-mp');
this.monthPicker.enableDisplayMode('block');
this.el.unselectable();
this.showMonthPicker();
if(Ext.isIE){
this.el.repaint();
}
this.update(this.value);
},
createMonthPicker : function(){
var minMonth = -1;
if (this.noPastMonths) {
minMonth = new Date().getMonth();
}
if(!this.monthPicker.dom.firstChild){
var buf = ['
public class PC {
/**
* 题目:生产者-消费者。
* 同步访问一个数组Integer[10],生产者不断地往数组放入整数1000,数组满时等待;消费者不断地将数组里面的数置零,数组空时等待。
*/
private static final Integer[] val=new Integer[10];
private static
在oracle连接(join)中使用using关键字
34. View the Exhibit and examine the structure of the ORDERS and ORDER_ITEMS tables.
Evaluate the following SQL statement:
SELECT oi.order_id, product_id, order_date
FRO
If i select like this:
SELECT id FROM users WHERE id IN(3,4,8,1);
This by default will select users in this order
1,3,4,8,
I would like to select them in the same order that i put IN() values so:
$(document).ready(
function() {
var flag = true;
$('#changeform').submit(function() {
var projectScValNull = true;
var s ="";
var parent_id = $("#parent_id").v
Mac 在国外很受欢迎,尤其是在 设计/web开发/IT 人员圈子里。普通用户喜欢 Mac 可以理解,毕竟 Mac 设计美观,简单好用,没有病毒。那么为什么专业人士也对 Mac 情有独钟呢?从个人使用经验来看我想有下面几个原因:
1、Mac OS X 是基于 Unix 的
这一点太重要了,尤其是对开发人员,至少对于我来说很重要,这意味着Unix 下一堆好用的工具都可以随手捡到。如果你是个 wi