Changeset 160
- Timestamp:
- 05/22/09 17:41:54 (15 years ago)
- Location:
- LATMOS-Accounts-Web
- Files:
-
- 3 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
LATMOS-Accounts-Web/lib/LATMOS/Accounts/Web/Controller.pm
r104 r160 32 32 =cut 33 33 34 sub end : ActionClass('RenderView') {} 34 sub end : ActionClass('RenderView') { 35 my ($self, $c) = @_; 36 $c->model('Accounts')->db->rollback; 37 } 35 38 36 39 =head1 AUTHOR -
LATMOS-Accounts-Web/lib/LATMOS/Accounts/Web/Model/AttrForms.pm
r151 r160 35 35 st => [ 'Etat' ], 36 36 title => [ 'Fonction' ], 37 expire => [ 'Expire le', 'date' ], 38 st => [ 'Ãtat (US)' ] 37 39 }; 38 40 … … 58 60 postalCode 59 61 l 62 st 60 63 physicalDeliveryOfficeName 61 64 ) ], … … 68 71 department 69 72 title 73 expire 70 74 ) ], 71 75 }, … … 77 81 postOfficeBox 78 82 postalCode 83 st 79 84 l 80 85 ) ], … … 180 185 $self->attr_raw_value($attr) 181 186 ); 187 /^date$/ and do { 188 my ($date, $time) = split(/ /, $self->attr_raw_value($attr)); 189 if ($date =~ /^(\d+)-(\d+)-(\d+)$/) { 190 $date = "$3/$2/$1"; 191 } 192 my $html = "\n" . q{<SCRIPT LANGUAGE="JavaScript" ID="js13"> 193 var cal13 = new CalendarPopup(); 194 </SCRIPT>} . "\n"; 195 $html .= sprintf( 196 '<input type="text" name="%s" value="%s">', 197 $attr, 198 $self->escape($date) 199 ); 200 $html .= q{<DIV ID="testdiv1" STYLE="position:absolute;visibility:hidden;background-color:white;layer-background-color:white;"></DIV>}; 201 $html .= qq{ 202 <A HREF="#" 203 onClick="cal13.select(document.forms[0].$attr,'anchor13','dd/MM/yyyy');return false;" 204 TITLE="cal13.select(document.forms[0].$attr,'anchor13','dd/MM/yyyy'); return false;" 205 NAME="anchor13" ID="anchor13"> 206 <img src="} . $self->{c}->uri_for(qw(/static icons view-calendar-day.png)) 207 . qq{" style="ref"></A>} . "\n"; 208 return $html; 209 }; 182 210 /^select(-\w+)?:([^:]+)(?::(.*))?$/ and do { 183 211 my $options = $1 || ''; -
LATMOS-Accounts-Web/root/html/includes/header.tt
r151 r160 7 7 <link rel="icon" href="[%- c.uri_for('/static', 'images', 'favicon.ico') -%]" type="image/x-icon"> 8 8 9 <!--10 9 <script language="JavaScript" src="[% c.uri_for('/static', 'js', 'CalendarPopup.js') %]"></SCRIPT> 11 -->12 10 13 11 </head> -
LATMOS-Accounts-Web/root/static/style.css
r123 r160 1 1 img { 2 2 border: none; 3 vertical-align: middle; 3 4 } 4 5
Note: See TracChangeset
for help on using the changeset viewer.