diff --git a/framework/helper.class.php b/framework/helper.class.php index 5ea699ec79..b66620c4c0 100644 --- a/framework/helper.class.php +++ b/framework/helper.class.php @@ -106,6 +106,13 @@ class helper if($viewType != 'html') $link .= "&{$config->viewVar}=" . $viewType; foreach($vars as $key => $value) $link .= "&$key=$value"; } + + //if page has onlybody param then add this param in all link. the param hide header and footer. + if(isset($_GET['onlybody']) and $_GET['onlybody'] == 'yes') + { + $onlybody = $config->requestType == 'PATH_INFO' ? "?onlybody=yes" : "&onlybody=yes"; + $link .= $onlybody; + } return $link; } diff --git a/module/common/view/datepicker.html.php b/module/common/view/datepicker.html.php index 0e0834779c..64fb7a2191 100644 --- a/module/common/view/datepicker.html.php +++ b/module/common/view/datepicker.html.php @@ -20,14 +20,16 @@ Date.abbrDayNames = ['星期天', '星期一', '星期二', '星期三', '星 Date.monthNames = ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月']; $(function() { - var time = $('.date').val(); - if(!isNaN(time)){ - var Y = time.substring(0, 4); - var m = time.substring(4, 6); - var d = time.substring(6, 8); - time = Y + '-' + m + '-' + d; - $('.date').val(time); - } + $('.date').each(function(){ + time = $(this).val(); + if(!isNaN(time) && time != ''){ + var Y = time.substring(0, 4); + var m = time.substring(4, 6); + var d = time.substring(6, 8); + time = Y + '-' + m + '-' + d; + $('.date').val(time); + } + }); startDate = new Date(1970, 1, 1); $(".date").datePicker({createButton:true, startDate:startDate}) diff --git a/module/common/view/footer.html.php b/module/common/view/footer.html.php index ec1bd1d2a5..d6e8fa4651 100644 --- a/module/common/view/footer.html.php +++ b/module/common/view/footer.html.php @@ -2,6 +2,7 @@ getExtViewFile(__FILE__)){include $extView; return helper::cd();}?>
+ + +| moduleName);?> |