Changeset 3997 for branches/2.2.0.1/calendar/inc/class.uicalendar.inc.php
- Timestamp:
- 04/12/11 16:21:25 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.0.1/calendar/inc/class.uicalendar.inc.php
r3989 r3997 581 581 else 582 582 { 583 $num_dias = 0;583 $num_dias = ''; 584 584 } 585 585 … … 3174 3174 $str_ini .= '<option value="'.$i.'"'.($i == $day?' selected':'').'>'.$i.'</option>'."\n"; 3175 3175 } 3176 $str_qtd = '<option value="'.''.'"'.( $i ==$_POST['qtd_dias']?' selected':'').'>'.''.'</option>'."\n";3176 $str_qtd = '<option value="'.''.'"'.(!$_POST['qtd_dias']?' selected':'').'>'.''.'</option>'."\n"; 3177 3177 for ($i = 1; $i <= 45; $i++) 3178 3178 { … … 3194 3194 'formname' => 'SelectDay', 3195 3195 'formonchange' => 'document.SelectDay.submit()', 3196 'day_ini_label' => lang('print start ing in'),3196 'day_ini_label' => lang('print start day'), 3197 3197 'num_dias_label' => lang('quantity of days'), 3198 'tip' => lang('empty prints from the day chosen belowto the end of the current month'),3198 'tip' => lang('empty prints from the start day chosen to the end of the current month'), 3199 3199 'day_ini_name' => 'day', 3200 3200 'num_dias_name' => 'qtd_dias', … … 4304 4304 // $monthend = (int)(date('Ymd',mktime(0,0,0,$month + 1,0,$year))); 4305 4305 4306 if($num_dias != 0)4306 if($num_dias != '') 4307 4307 { 4308 4308 //se a qtde de dias for informada, a data final para impressao considera a soma $day_ini+$num_dias; 4309 $monthend = (int)(date('Ymd',mktime(0,0,0,$month,$day_ini+$num_dias ,$year)));4309 $monthend = (int)(date('Ymd',mktime(0,0,0,$month,$day_ini+$num_dias-1,$year))); 4310 4310 } 4311 4311 else
Note: See TracChangeset
for help on using the changeset viewer.