calendar 수정

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@5031 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ngleader 2008-12-03 09:36:06 +00:00
parent b6c0b99ac0
commit 0be6188c8a
26 changed files with 5557 additions and 3346 deletions

View file

@ -3,24 +3,9 @@
<!--%import("filter/insert_poll.xml")-->
<!--%import("../lang")-->
<!-- calendar -->
<!--%import("../../../../../common/js/calendar.min.js",optimized=false)-->
<!--@if($lang_type == 'ko')-->
<!--%import("../../../../../common/js/calendar-ko.js",optimized=false)-->
<!--@elseif($lang_type == 'es')-->
<!--%import("../../../../../common/js/calendar-es.js",optimized=false)-->
<!--@elseif($lang_type == 'ge')-->
<!--%import("../../../../../common/js/calendar-ge.js",optimized=false)-->
<!--@elseif($lang_type == 'ru')-->
<!--%import("../../../../../common/js/calendar-ru.js",optimized=false)-->
<!--@elseif($lang_type == 'zh-CN')-->
<!--%import("../../../../../common/js/calendar-zh-CN.js",optimized=false)-->
<!--@else-->
<!--%import("../../../../../common/js/calendar-en.js",optimized=false)-->
<!--@end-->
<!--%import("../../../../../common/js/calendar-setup.js",optimized=false)-->
<!--%import("../../../../../common/css/calendar-system.css",optimized=false)-->
<!--// calendar -->
<!--%import("../../../../../common/js/ui.datepicker.js",optimized=false)-->
<!--%import("../../../../../common/css/ui.datepicker.css",optimized=false)-->
<script type="text/javascript">
@ -35,7 +20,7 @@
<input type="hidden" name="component" value="{$component_info->component_name}" />
<input type="hidden" name="method" value="insertPoll" />
<input type="hidden" name="poll_srl" value="" />
<input type="hidden" name="stop_date" id="stop_date" value="{date("Ymd",time()+60*60*24*30)}" />
<div id="popBody">
@ -45,10 +30,21 @@
<tr>
<th scope="row"><div>{$lang->poll_stop_date}</div></th>
<td>
<div class="display_date" id="display_date">{date("Y-m-d",time()+60*60*24*30)}</div>
<script type="text/javascript">
DyCalendar.setup( { firstDay : 0, inputField : "stop_date", ifFormat : "%Y%m%d", displayArea : "display_date", daFormat : "%Y-%m-%d"});
</script>
<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,""))}
};
$.extend(option,$.datepicker.regional['{$lang_type}']);
$(".inputDate").datepicker(option);
});
})(jQuery);
</script>
</td>
</tr>
<tr>