Changeset 109
- Timestamp:
- 03/26/09 16:09:14 (15 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Vote/Model/Vote.pm
r99 r109 58 58 $passwd ||= random_string(8); 59 59 return(crypt($passwd, '$1$' . random_string(8) . '$')); 60 } 61 62 sub dbtime { 63 my ($self) = @_; 64 my $sth = $self->db->prepare( 65 q{select to_char(now(), 'DD/MM/YYYY HH24:MI:SS') as d} 66 ); 67 68 $sth->execute(); 69 my $res = $sth->fetchrow_hashref; 70 $sth->finish; 71 $res->{d}; 60 72 } 61 73 -
trunk/root/static/vote.css
r79 r109 80 80 81 81 /* The ID used in epoll */ 82 83 #now { 84 font-size: 0.8em; 85 padding: 0.4em; 86 top: 1em; 87 right: 2em; 88 position: absolute; 89 } 82 90 83 91 #header { -
trunk/root/templates/includes/header.tt
r61 r109 13 13 <div id="header"> 14 14 <p id="title"><b>Epoll:</b> systÚme de vote en ligne</p> 15 <p id="now" style="float: right">Page générée le [% c.model('Vote').dbtime | html %]</p> 15 16 <p id="menu"> 16 17 <a href="[% c.uri_for('/') %]">Liste des votes</a> :: … … 18 19 [% IF voteid %] 19 20 :: <a href="[% c.uri_for('/vote', voteid) %]"> 20 Votre vote: [% c.model('Vote').vote_info(voteid).label | html %]21 Votre vote: [% c.model('Vote').vote_info(voteid).label | truncate(40) | html %] 21 22 </a> 22 23 [% END %]
Note: See TracChangeset
for help on using the changeset viewer.