mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
calendar fix
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@5033 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
755c6a9f3c
commit
be3e9be900
1 changed files with 8 additions and 4 deletions
|
|
@ -31,13 +31,17 @@
|
|||
<th scope="row"><div>{$lang->poll_stop_date}</div></th>
|
||||
<td>
|
||||
|
||||
<input type="hidden" name="stop_date" id="stop_date" value="{date("Ymd",time()+60*60*24*30)}" />
|
||||
<input type="text" class="inputDate" value="{date("Y-m-d",time()+60*60*24*30)}" readonly="readonly" />
|
||||
<input type="hidden" name="stop_date" id="stop_date" value="{date('Ymd',time()+60*60*24*30)}" />
|
||||
<input type="text" class="inputDate" value="{date('Y-m-d',time()+60*60*24*30)}" readonly="readonly" />
|
||||
<script type="text/javascript">
|
||||
(function($){
|
||||
$(function(){
|
||||
var option = { gotoCurrent: false,yearRange:'-100:+10', onSelect:function(){
|
||||
$(this).prev('input[type="hidden"]').val(this.value.replace(/-/g,""))}
|
||||
var option = {
|
||||
gotoCurrent: false
|
||||
,yearRange:'-100:+10'
|
||||
, onSelect:function(){
|
||||
$(this).prev('input[type="hidden"]').val(this.value.replace(/-/g,""));
|
||||
}
|
||||
};
|
||||
$.extend(option,$.datepicker.regional['{$lang_type}']);
|
||||
$(".inputDate").datepicker(option);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue