- Timestamp:
- 04/12/11 16:21:25 (13 years ago)
- Location:
- branches/2.2.0.1/calendar
- Files:
-
- 3 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 -
branches/2.2.0.1/calendar/templates/default/footer.tpl
r1154 r3997 37 37 <font size="-1"> 38 38 <form action="{acao}" method="post" name="{formname}"> 39 40 <span style="display: {display}"> 41 <b>{day_ini_label}:</b> 42 <select name="{day_ini_name}" onchange="{formonchange}"> 43 {row_ini} 44 </select> 45 </span> 46 47 <br /> <br /> 48 39 49 <span style="display: {display}" > 40 41 50 <label> 42 51 <b>{num_dias_label}:</b> … … 49 58 {tip} 50 59 </span> 51 <br /> <br />52 60 </span> 53 <span style="display: {display}">54 <b>{day_ini_label}:</b>55 <select name="{day_ini_name}" onchange="{formonchange}">56 {row_ini}57 </select>58 </span>59 61 <input type="hidden" name="user" value="{user}"> 60 62 <noscript><input type="submit" value="{go}"></noscript>
Note: See TracChangeset
for help on using the changeset viewer.