Revision 61
- Date:
- 2010/09/13 15:17:31
- Files:
Legend:
- Added
- Removed
- Modified
-
utf8/core/comps/contenido/components/inputs/date.msn
34 34 <& "/contenido/components/select.msn", name => $name.'_day', values => \@days, check => $day &><& 35 35 '/contenido/components/select.msn', name => $name.'_month', values => $months, check => $month &><& 36 36 '/contenido/components/select.msn', name => $name.'_year', values => \@years, check => $year &> 37 % if ( ref $prop && exists $prop->{attr} ) { 37 38 <span style="padding-left:20px;"><a href="javascript:void(0)" onclick="set_<% $prop->{attr} %>_now()" style="color:red;">Сейчас!</a></span> 38 39 <script type="text/javascript"> 39 40 <!-- … … 44 45 } 45 46 //--> 46 47 </script> 48 % } -
utf8/core/comps/contenido/components/inputs/datetime.msn
9 9 % } else { 10 10 <& '/contenido/components/select.msn', name => $name.'_second', values => \@seconds, check => $second &> 11 11 % } 12 % if ( ref $prop && exists $prop->{attr} ) { 12 13 <span style="padding-left:20px;"><a href="javascript:void(0)" onclick="set_<% $prop->{attr} %>_now()" style="color:red;">Сейчас!</a></span> 13 14 <script type="text/javascript"> 14 15 <!-- … … 18 19 document.forms['form'].elements['<% $prop->{attr} %>_year'].value = '<% $now->year %>'; 19 20 document.forms['form'].elements['<% $prop->{attr} %>_hour'].value = '<% $now->hour %>'; 20 21 document.forms['form'].elements['<% $prop->{attr} %>_minute'].value = '<% $now->minute %>'; 21 % unless ( $prop->{noseconds} ) { 22 % unless ( $prop->{noseconds} ) { 22 23 document.forms['form'].elements['<% $prop->{attr} %>_second'].value = '<% $now->second %>'; 23 % } 24 % } 24 25 } 25 26 //--> 26 27 </script> 28 % } 27 29 <%args> 28 30 $prop 29 31 $name => undef