Ext. Override (ext. datepicker, {<br/> createmonthpicker: function () {<br/> If (! This. monthpicker. dom. firstchild) {<br/> var Buf = ['<Table border = "0" cellspacing = "0">']; <br/> for (VAR I = 0; I <6; I ++) {<br/> Buf. push ('<tr>', <br/> I = 0? '<TD class = "X-date-MP-ybtn" align = "center"> <a class = "X-date-MP-Prev"> </a> </ TD> <TD class = "X-date-MP-ybtn" align = "center"> <a class = "X-date-MP-next"> </a> </TD> '<br/>: '<TD class = "X-date-MP-year"> <a href = "#" mce_href = "#"> </a> </TD> <TD class = "X-date-MP-year"> <a href = "#" mce_href = "#"> </a> </TD> ', <br/> '<TD class = "X-date-MP-month"> <a href = "#" mce_href = "#">', date. getaskmonthname (I), '</a> </TD> ', <br/> '<TD class = "X-date-MP-month x-date-MP-Sep"> <a href = "#" mce_href = "#">', date. getaskmonthname (I + 6), '</a> </TD> </tr>'); <br/>}< br/> Buf. push ('<tr class = "X-date-MP-btns"> <TD colspan = "4"> <button type = "button" class = "X-date-MP -OK "> ', <br/> This. oktext, <br/> '</button> <button type = "button" class = "X-date-MP-cancel">', <br/> This. canceltext, '</button> </TD> </tr>', '</table>'); <br/> This. monthpicker. update (BUF. join (''); </P> <p> This. mon (this. monthpicker, 'click', this. onmonthclick, this); <br/> This. mon (this. monthpicker, 'dblclick', this. onmonthdblclick, this); </P> <p> This. mpmonths = This. monthpicker. select ('td. x-date-MP-month '); <br/> This. mpyears = This. monthpicker. select ('td. x-date-MP-year '); </P> <p> This. mpmonths. each (function (M, A, I) {<br/> I + = 1; <br/> If (I % 2) = 0) {<br/> M. dom. xmonth = 5 + math. round (I * 0.5); <br/>} else {<br/> M. dom. xmonth = math. round (I-1) * 0.5); <br/>}< br/>}); <br/>}< br/> });
ThisCodePut it in Ext. Reg ('dateicker', ext. datepicker); then you can.
You can create a new JS file and load it after the ext-all.js.
Download here: http://download.csdn.net/source/2530864