- Timestamp:
- 03/17/09 19:11:33 (15 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Vote/Controller/Admin.pm
r58 r61 70 70 and $vote->db->commit; 71 71 } elsif ($c->req->param('label')) { 72 if ($c->req->param('dstart')) { 73 $c->req->param('start', 74 $c->req->param('dstart') . ' ' . ($c->req->param('hstart') || '') 75 ); 76 } 77 if ($c->req->param('dend')) { 78 $c->req->param('end', 79 $c->req->param('dend') . ' ' . ($c->req->param('hend') || '') 80 ); 81 } 72 82 $vote->vote_param( 73 83 $id, -
trunk/lib/Vote/Model/Vote.pm
r58 r61 165 165 my $sth = $self->db->prepare_cached( 166 166 q{ 167 select * from poll where id = ? 167 select *, 168 to_char("start", 'DD/MM/YYYY') as dstart, 169 to_char("start", 'HH24:MI:SS') as hstart, 170 to_char("end", 'DD/MM/YYYY') as dend, 171 to_char("end", 'HH24:MI:SS') as hend 172 from poll where id = ? 168 173 } 169 174 ); -
trunk/root/templates/admin/default.tt
r60 r61 1 <DIV ID="testdiv1" STYLE="position:absolute;visibility:hidden;background-color:white;layer-background-color:white;"></DIV> 2 1 3 [% vote = c.model('Vote') %] 2 4 … … 18 20 <!-- http://www.mattkruse.com/javascript/calendarpopup/ --> 19 21 <i>Les dates sont au format AAAA-MM-JJ HH:MM:SS</i><br> 20 Debut du vote: 21 <input type="text" name="start" value="[% c.req.param('start') || thisvote.start | html %]"> 22 23 <SCRIPT LANGUAGE="JavaScript" ID="js13"> 24 var cal13 = new CalendarPopup(); 25 </SCRIPT> 26 27 Debut du vote:<br> 28 Date: <input type="text" name="dstart" value="[% c.req.param('dstart') || thisvote.dstart | html %]"> 29 <A HREF="#" onClick="cal13.select(document.forms[0].dstart,'anchor13','dd/MM/yyyy'); return false;" TITLE="cal13.select(document.forms[0].dstart,'anchor13','dd/MM/yyyy'); return false;" NAME="anchor13" ID="anchor13">select</A> 30 Heure: <input type="text" name="hstart" value="[% c.req.param('hstart') || thisvote.hstart | html %]"> 22 31 <br> 23 Fin du vote: 24 <input type="text" name="end" value="[% c.req.param('end') || thisvote.end | html %]"> 32 Fin du vote:<br> 33 Date: <input type="text" name="dend" value="[% c.req.param('dend') || thisvote.dend | html %]"> 34 <A HREF="#" onClick="cal13.select(document.forms[0].dend,'anchor14','dd/MM/yyyy',(document.forms[0].dend.value=='')?document.forms[0].dstart.value:null); return false;" TITLE="cal13.select(document.forms[0].dend,'anchor14','dd/MM/yyyy',(document.forms[0].dend.value=='')?document.forms[0].dstart.value:null); return false;" NAME="anchor14" ID="anchor14">select</A> 35 Heure: <input type="text" name="hend" value="[% c.req.param('hend') || thisvote.hend | html %]"> 25 36 <br> 26 37 <br> … … 77 88 </td> 78 89 <td valign="TOP"> 90 <p>Ajouter un votant</p> 79 91 <form action="[% c.uri_for(voteid) %]"> 80 92 Nom: <input type="text" name="id"><br> … … 83 95 </form> 84 96 <hr> 97 <p>Soumettre la liste via un fichier csv</p> 98 <p>Format: <i>Nom;Mail@domain</i></p> 85 99 <form method="POST" ENCTYPE="multipart/form-data" action="[% c.uri_for(voteid) %]"> 86 100 <input type="file" name="votinglist"><br> … … 89 103 </form> 90 104 <hr> 105 <p>Envoyer les mots de passes au nouveaux votants</p> 91 106 <form action="[% c.uri_for(voteid) %]"> 92 107 <input type="submit" name="mailpasswd" value="Envoyer les mot de passe"> -
trunk/root/templates/includes/header.tt
r57 r61 6 6 <link rel="stylesheet" href="[% c.uri_for('/static', 'vote.css') %]" type="text/css"> 7 7 <link rel="icon" href="[%- c.uri_for('/static', 'images', 'favicon.ico') -%]" type="image/x-icon"> 8 9 <script language="JavaScript" src="[% c.uri_for('/static', 'js', 'CalendarPopup.js') %]"></SCRIPT> 8 10 9 11 </head>
Note: See TracChangeset
for help on using the changeset viewer.