Index: /branches/2.2.0.1/calendar/inc/class.uicalendar.inc.php
===================================================================
--- /branches/2.2.0.1/calendar/inc/class.uicalendar.inc.php (revision 3989)
+++ /branches/2.2.0.1/calendar/inc/class.uicalendar.inc.php (revision 3997)
@@ -581,5 +581,5 @@
else
{
- $num_dias = 0;
+ $num_dias = '';
}
@@ -3174,5 +3174,5 @@
$str_ini .= ''."\n";
}
- $str_qtd = ''."\n";
+ $str_qtd = ''."\n";
for ($i = 1; $i <= 45; $i++)
{
@@ -3194,7 +3194,7 @@
'formname' => 'SelectDay',
'formonchange' => 'document.SelectDay.submit()',
- 'day_ini_label' => lang('print starting in'),
+ 'day_ini_label' => lang('print start day'),
'num_dias_label' => lang('quantity of days'),
- 'tip' => lang('empty prints from the day chosen below to the end of the current month'),
+ 'tip' => lang('empty prints from the start day chosen to the end of the current month'),
'day_ini_name' => 'day',
'num_dias_name' => 'qtd_dias',
@@ -4304,8 +4304,8 @@
// $monthend = (int)(date('Ymd',mktime(0,0,0,$month + 1,0,$year)));
- if($num_dias != 0)
+ if($num_dias != '')
{
//se a qtde de dias for informada, a data final para impressao considera a soma $day_ini+$num_dias;
- $monthend = (int)(date('Ymd',mktime(0,0,0,$month,$day_ini+$num_dias,$year)));
+ $monthend = (int)(date('Ymd',mktime(0,0,0,$month,$day_ini+$num_dias-1,$year)));
}
else
Index: /branches/2.2.0.1/calendar/templates/default/footer.tpl
===================================================================
--- /branches/2.2.0.1/calendar/templates/default/footer.tpl (revision 1154)
+++ /branches/2.2.0.1/calendar/templates/default/footer.tpl (revision 3997)
@@ -37,6 +37,15 @@