Author: qmoriceau Date: 2013-04-19 17:32:10 +0200 (Fri, 19 Apr 2013) New Revision: 25 Url: http://chorem.org/projects/incubator/repository/revisions/25 Log: Version des sources fin de semaine 16 Added: jtimerhtml5/alertes.html jtimerhtml5/apropos.html jtimerhtml5/aspect/ jtimerhtml5/aspect/alertes.css jtimerhtml5/aspect/apropos.css jtimerhtml5/aspect/editionT.css jtimerhtml5/aspect/images/ jtimerhtml5/aspect/images/applications-system.png jtimerhtml5/aspect/images/bell.png jtimerhtml5/aspect/images/bookmark-new.png jtimerhtml5/aspect/images/date_current.png jtimerhtml5/aspect/images/date_previous.png jtimerhtml5/aspect/images/document-new.png jtimerhtml5/aspect/images/go-next.png jtimerhtml5/aspect/images/jtimer-logo-orange.jpg jtimerhtml5/aspect/images/mail-forward.png jtimerhtml5/aspect/images/notes.png jtimerhtml5/aspect/images/process-stop.png jtimerhtml5/aspect/images/running.gif jtimerhtml5/aspect/jtimer.css jtimerhtml5/aspect/rapport.css jtimerhtml5/aspect/style.css jtimerhtml5/editionTache.html jtimerhtml5/javascript/ jtimerhtml5/javascript/actionsMenus.js jtimerhtml5/javascript/menu.js jtimerhtml5/rapport.html Modified: jtimerhtml5/index.html Added: jtimerhtml5/alertes.html =================================================================== --- jtimerhtml5/alertes.html (rev 0) +++ jtimerhtml5/alertes.html 2013-04-19 15:32:10 UTC (rev 25) @@ -0,0 +1,21 @@ +<!DOCTYPE html> +<html lang="fr"> + <head> + <meta charset="UTF-8"/> + <title>jTimer - Alertes</title> + <link rel="stylesheet" type="text/css" href="aspect/alertes.css"/> + <link rel="stylesheet" type="text/css" href="aspect/style.css"/> + </head> + <body> + <p><b>Listes des alertes :</b></p> + <div width=100% id="tableAlertes"><span class="alerteG">Type</span><span class="alerteD">Durée</span> + </div> + <footer> + <input type="button" id="alerteAj" value="Ajouter"> + <input type="button" id="alerteSupp" value="Supprimer"> + <br> + <input type="button" id="alerteAnn" value="Annuler" OnClick="javascript:window.close()"> + <input type="button" id="alerteSave" value="Sauver"> + </footer> + </body> +</html> Added: jtimerhtml5/apropos.html =================================================================== --- jtimerhtml5/apropos.html (rev 0) +++ jtimerhtml5/apropos.html 2013-04-19 15:32:10 UTC (rev 25) @@ -0,0 +1,28 @@ +<!DOCTYPE html> +<html lang="fr"> + <head> + <meta charset="UTF-8"/> + <title>A propos de jTimer</title> + <link rel="stylesheet" type="text/css" href="aspect/style.css"/> + <link rel="stylesheet" type="text/css" href="aspect/apropos.css"/> + <script type="text/javascript"> + <!-- //choix entre les deux texte via les boutons + function action(i){ + if(i == 1){ + document.getElementById('dataText').innerHTML='<b>jTimer - 1.4.1</b><br><br>Copyright 2007 - 2012, Code Lutin.<br><br><a href="http://maven-site.chorem.org/jtimer">http://maven-site.chorem.org/jtimer</a><br><br>Merci de rapporter les bugs de jTimer.'; + } + if(i == 2){ + document.getElementById('dataText').innerHTML="Vous pouvez modifier et redistribuer ce programme sous les conditions énoncées par la licence GNU GPL (version 2 ou ultérieure). Une copie de la licence GPL est dans le fichier « LICENSE.txt » fourni avec jTimer. Tous droits réservés. Aucune garantie n'est fournie pour l'utilisation de ce programme."; + } + } + //--> + </script> + </head> + <body> + <img src="style/images/jtimer-logo-orange.jpg" /><br> + <input type="button" value="A propos de jTimer" onclick="action(1)"> + <input type="button" value="Licence" onclick="action(2)"><br> + <div id="cadre"><p id="dataText"><b>jTimer - 1.4.1</b><br><br>Copyright 2007 - 2013, Code Lutin.<br><br><a href="http://maven-site.chorem.org/jtimer">http://maven-site.chorem.org/jtimer</a><br / ><br / >Merci de rapporter les bugs de jTimer.</p></div> + <input style="margin-left:300px;margin-top:5px;width:100px;height:25px" type="submit" value="Fermer" OnClick="javascript:window.close()"> + </body> +</html> Added: jtimerhtml5/aspect/alertes.css =================================================================== --- jtimerhtml5/aspect/alertes.css (rev 0) +++ jtimerhtml5/aspect/alertes.css 2013-04-19 15:32:10 UTC (rev 25) @@ -0,0 +1,33 @@ +#alerteAj { + width:49%; + height: 35px; +} + +#alerteSupp { + width:49%; + height: 35px; +} + +#alerteAnn { + width:49%; + height: 35px; +} + +#alerteSave { + width:49%; + height: 35px; +} + +.alerteG{ + width:50%; + margin-left:0; + position:absolute; + text-align:center; +} + +.alerteD{ + width:49%; + margin-left:49%; + position:absolute; + text-align:center; +} Added: jtimerhtml5/aspect/apropos.css =================================================================== --- jtimerhtml5/aspect/apropos.css (rev 0) +++ jtimerhtml5/aspect/apropos.css 2013-04-19 15:32:10 UTC (rev 25) @@ -0,0 +1,11 @@ +#dataText { + margin-left:5px; +} + +#cadre { + width:400px; + height:155px; + border-style:solid; + border-width:2px; + border-color:#339999 +} Added: jtimerhtml5/aspect/editionT.css =================================================================== --- jtimerhtml5/aspect/editionT.css (rev 0) +++ jtimerhtml5/aspect/editionT.css 2013-04-19 15:32:10 UTC (rev 25) @@ -0,0 +1,20 @@ +#editionAppl { + width:32%; + height: 30px; +} +#editionAnnul { + width:32%; + height: 30px; +} +#editionQuit { + width:32%; + height: 30px; +} + +#nomTache { + width:98%; +} + +#noteTache { + width:96%; +} Added: jtimerhtml5/aspect/images/applications-system.png =================================================================== (Binary files differ) Property changes on: jtimerhtml5/aspect/images/applications-system.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: jtimerhtml5/aspect/images/bell.png =================================================================== (Binary files differ) Property changes on: jtimerhtml5/aspect/images/bell.png ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream Added: jtimerhtml5/aspect/images/bookmark-new.png =================================================================== (Binary files differ) Property changes on: jtimerhtml5/aspect/images/bookmark-new.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: jtimerhtml5/aspect/images/date_current.png =================================================================== (Binary files differ) Property changes on: jtimerhtml5/aspect/images/date_current.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: jtimerhtml5/aspect/images/date_previous.png =================================================================== (Binary files differ) Property changes on: jtimerhtml5/aspect/images/date_previous.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: jtimerhtml5/aspect/images/document-new.png =================================================================== (Binary files differ) Property changes on: jtimerhtml5/aspect/images/document-new.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: jtimerhtml5/aspect/images/go-next.png =================================================================== (Binary files differ) Property changes on: jtimerhtml5/aspect/images/go-next.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: jtimerhtml5/aspect/images/jtimer-logo-orange.jpg =================================================================== (Binary files differ) Property changes on: jtimerhtml5/aspect/images/jtimer-logo-orange.jpg ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: jtimerhtml5/aspect/images/mail-forward.png =================================================================== (Binary files differ) Property changes on: jtimerhtml5/aspect/images/mail-forward.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: jtimerhtml5/aspect/images/notes.png =================================================================== (Binary files differ) Property changes on: jtimerhtml5/aspect/images/notes.png ___________________________________________________________________ Added: svn:executable + * Added: svn:mime-type + application/octet-stream Added: jtimerhtml5/aspect/images/process-stop.png =================================================================== (Binary files differ) Property changes on: jtimerhtml5/aspect/images/process-stop.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: jtimerhtml5/aspect/images/running.gif =================================================================== (Binary files differ) Property changes on: jtimerhtml5/aspect/images/running.gif ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: jtimerhtml5/aspect/jtimer.css =================================================================== --- jtimerhtml5/aspect/jtimer.css (rev 0) +++ jtimerhtml5/aspect/jtimer.css 2013-04-19 15:32:10 UTC (rev 25) @@ -0,0 +1,99 @@ +/* Menus */ + + + +/* Boutons */ + +#demarreTache { + background: url(images/go-next.png); + background-repeat:no-repeat; + background-position:center center; + width: 40px; + height: 40px; +} + +#arretTache { + background: url(images/process-stop.png); + background-repeat:no-repeat; + background-position:center center; + width: 40px; + height: 40px; +} + +#nouveauProjet { + background: url(images/bookmark-new.png); + background-repeat:no-repeat; + background-position:center center; + width: 40px; + height: 40px; +} + +#nouvelleTache { + background: url(images/document-new.png); + background-repeat:no-repeat; + background-position:center center; + width: 40px; + height: 40px; +} + +#note { + background: url(images/notes.png); + background-repeat:no-repeat; + background-position:center center; + width: 40px; + height: 40px; +} + +#alerte { + background: url(images/bell.png); + background-repeat:no-repeat; + background-position:center center; + width: 40px; + height: 40px; +} + +.boutons { + margin-top:32px; + margin-bottom:20px +} + +/* Arboresence des tâches */ + +.colone1{ + width:33%; + margin-left:0; + position:absolute; +} + +.colone2{ + width:33%; + margin-left:32%; + position:absolute; +} + +.colone3{ + width:33%; + margin-left:65%; + position:absolute; +} + +#entete span { + text-align:center; + border-bottom:2px solid #339999; + border-left:2px solid #339999; +} + + +#statutTaches{ + width:50%; +} + +#recapAuj{ + width:49%; + margin-left:45%; + text-align:center; +} + +#cadreBas{ + border:2px solid #339999; +} Added: jtimerhtml5/aspect/rapport.css =================================================================== --- jtimerhtml5/aspect/rapport.css (rev 0) +++ jtimerhtml5/aspect/rapport.css 2013-04-19 15:32:10 UTC (rev 25) @@ -0,0 +1,90 @@ +#divDroite{ + width:50%; + height:100%; + float:right; + margin:0; + border-style:solid; + border-width:2px; + border-color:#339999 +} + +#divGauche{ + width:49%; + float:left; + margin:0; + height:100%; +} + +#selecSemAct{ + background: url(images/date_current.png); + background-repeat:no-repeat; + background-position:center center; + width: 40px; + height: 22px; +} + +#selecSemPre{ + background: url(images/date_previous.png); + background-repeat:no-repeat; + background-position:center center; + width: 40px; + height: 22px; +} + +#dateFin{ + margin-left:7px; + width:70%; +} + +#dateDeb{ + width:70%; +} + +#texteRapport{ + width:97%; + height:700px; + margin-left:5px; + margin-top:10px; +} + +#generRapport{ + background: url(images/applications-system.png); + background-repeat:no-repeat; + background-position:left center; + width:16%; + height:30px; +} + +#mailRapport{ + background: url(images/mail-forward.png); + background-repeat:no-repeat; + background-position:left center; + width:16%; + height:30px; +} + +#fermerRapport{ + width:16%; +} + +#optionsRapport{ + border-style:solid; + border-width:2px; + border-color:#339999; + height:100%; +} + +#projetsRapport{ + border-style:solid; + border-width:2px; + border-color:#339999; + height:100%; +} + +#moisRapport{ + margin-left:50px; +} + +#anneeRapport{ + margin-left:24px; +} Added: jtimerhtml5/aspect/style.css =================================================================== --- jtimerhtml5/aspect/style.css (rev 0) +++ jtimerhtml5/aspect/style.css 2013-04-19 15:32:10 UTC (rev 25) @@ -0,0 +1,14 @@ + +/* Global */ + +/*body{ + margin:0; + padding:0; +}*/ + +footer { + width:100%; + position:fixed; + bottom:0px; + margin:0 +} Added: jtimerhtml5/editionTache.html =================================================================== --- jtimerhtml5/editionTache.html (rev 0) +++ jtimerhtml5/editionTache.html 2013-04-19 15:32:10 UTC (rev 25) @@ -0,0 +1,23 @@ +<!DOCTYPE html> +<html lang="fr"> + <head> + <meta charset="UTF-8"/> + <title>Edition de la tâche</title> + <link rel="stylesheet" type="text/css" href="aspect/style.css"/> + <link rel="stylesheet" type="text/css" href="aspect/editionT.css"/> + </head> + <body> + <input type="text" id="nomTache" name="newNomTache" value="x"> + <!-- Calendrier à date selectionnable --> + <footer width=100%> + Temps: + <input type="text" name="heures" value="00" size=2>: + <input type="text" name="minutes" value="00" size=2>: + <input type="text" name="secondes" value="00" size=2><br> + Note:<textarea rows="4" type="text" value="" id="noteTache"></textarea><br> + <input type="button" id="editionAppl" value="Ajouter"> + <input type="reset" id="editionAnnul" value="Annuler"> + <input type="button" id="editionQuit" value="Quitter" OnClick="javascript:window.close()"> + </footer> + </body> +</html> Modified: jtimerhtml5/index.html =================================================================== --- jtimerhtml5/index.html 2013-04-17 12:46:18 UTC (rev 24) +++ jtimerhtml5/index.html 2013-04-19 15:32:10 UTC (rev 25) @@ -1,88 +1,48 @@ -<html> +<!--<!DOCTYPE html>--> +<html lang="fr"> <head> <meta charset="UTF-8"/> <title>jTimer</title> - <link rel="stylesheet" type="text/css" href="style.css"/> - <script type="text/javascript" src="menu.js"></script> + <link rel="stylesheet" type="text/css" href="aspect/style.css"/> + <link rel="stylesheet" type="text/css" href="aspect/jtimer.css"/> + <script type="text/javascript" src="menu.js"></script> + <script type="text/javascript" src="javascript/actionsMenus.js"></script> </head> <body> - <script language=JavaScript> - <!-- //Menu dynamique - var x = 0, y = 0 - var elementH = 25, elementW = 150 - var menu_bgcolor_normal = "#CCCCCC" - var menu_bgcolor_over = "#33CC00" - var menu_bordercolor = "#000000" - var menu = [ - "<font size=3>Fichier</font>", - "<font size=3>Projet</font>", - "<font size=3>Tâche</font>", - "<font size=3>Rapport</font>", - "<font size=3>Options</font>", - "<font size=3>Aide</font>" - ] - var submenu = [ - [ - "<font id='quitter' size=3 onclick=''>Quitter</font>" - ], - [ - "<font id='newP' size=3 onclick=''>Nouveau projet</font>", - "<font id='edP' size=3 onclick=''>Edition du projet</font>", - "<font id='ofP' size=3 onclick=''>Ouvrir/Fermer le projet</font>", - "<font id='suppP' size=3 onclick=''>Suppression du projet</font>" - ], - [ - "<font id='newT' size=3 onclick=''>Nouvelle tâche</font>", - "<font id='edT' size=3 onclick=''>Edition de la tâche</font>", - "<font id='ofT' size=3 onclick=''>Ouvrir/Fermer la tâche</font>", - "<font id='SuppT' size=3 onclick=''>Suppression de la tâhe</font>", - "<font id='dem' size=3 onclick=''>Démarrer</font>", - "<font id='stop' size=3 onclick=''>Arrêter</font>", - "<font id='addA' size=3 onclick=''>Ajouter une annotation</font>", - "<font id='edAlerte' size=3 onclick=''>Edition des alertes</font>", - "<font id='add1' size=3 onclick=''>Ajouter 1 minute</font>", - "<font id='add5' size=3 onclick=''>Ajouter 5 minutes</font>", - "<font id='add30' size=3 onclick=''>Ajouter 30 minutes</font>", - "<font id='sou1' size=3 onclick=''>Enlever 1 minute</font>", - "<font id='sou5' size=3 onclick=''>Enlever 5 minutes</font>", - "<font id='sou30' size=3 onclick=''>Enlever 30 minutes</font>", - "<font id='zero' size=3 onclick=''>Remettre à Zero</font>", - "<font id='fus' size=3 onclick=''>Fusionner</font>" - ], - [ - "<font id='rapport' size=3 onclick=''>Rapport...</font>" - ], - [ - "<font id='affCachés' size=3 onclick=''>Afficher les cachés</font>", - "<font id='fermerSystray' size=3 onclick=''>Fermer vers le systray</font>", - "<font id='jSemaine' size=3 onclick=''>Rapport-Premier jour de la semaine</font>" - ], - [ - "<font id='propos' size=3 onclick=''>A propos...</font>" - ] - ] - createMenu() - //--> - </script> + <!-- Menu --> + <div class="boutons"> <! Les boutons d'actions > - <input type="submit" class="boutonAct" id="demarreTache" value="" title="" onclick=''> - <input type="submit" class="boutonAct" id="arretTache" value="" title="" onclick=''> - <input type="submit" class="boutonAct" id="nouveauProjet" value="" title="" onclick=''> - <input type="submit" class="boutonAct" id="nouvelleTache" value="" title="" onclick=''> + <! Réflechir à la possibilité de n'avoire qu'un bouton pour démarré et stoper une tache. > + <input type="button" id="demarreTache" value="" title="Démarre la tâche sélectionnée" onclick="demarTache()"> + <input type="button" id="arretTache" value="" title="Arrête la tâche sélectionnée" onclick="stopTache"> + <input type="button" id="nouveauProjet" value="" title="Création d'un nouveau projet" onclick="newProjet()"> + <input type="button" id="nouvelleTache" value="" title="Création d'une nouvelle tâche" onclick="newTache()"> - <input type="submit" class="boutonAct" id="note" value="" title=""> - <input type="submit" class="boutonAct" id="alerte" value="" title=""> + <input type="button" id="note" value="" title="Ajouter une annotation" onclick="addAnnotation()"> + <input type="button" id="alerte" value="" title="Edition des alertes" onclick="edAlertes()"> </div> - <div class="arboTaches"> + <div> <! Arborescence des taches > - <table width=100%> - <tr><th width=33%>Projet et tâches</th><th width=33%>Aujourd'hui</th><th width=33%>Total</th></tr> - </table> + <div width=100%> + <div id="entete"> + <span class="colone1">Projet et tâches</span> + <span class="colone2">Aujourd'hui</span> + <span class="colone3">Total</span><br><br> + </div> + <div id="arboTaches"> + <span class="colone1" id="cel1ligne1" onclick="selecTache(this, 1)" ondblclick="go(1)"><img src="aspect/images/running.gif" style="display:none" id="go1"/> jTimer html5</span> + <span class="colone2" id="cel2ligne1" onclick="selecTache(this, 1)" ondblclick="go(1)"> xx:xx:xx</span> + <span class="colone3" id="cel3ligne1" onclick="selecTache(this, 1)" ondblclick="go(1)"> xx:xx:xx</span><br> + <span class="colone1" id="cel1ligne2" onclick="selecTache(this, 2)" ondblclick="go(2)"><img src="aspect/images/running.gif" style="display:none" id="go2"/> jTimer test</span> + <span class="colone2" id="cel2ligne2" onclick="selecTache(this, 2)" ondblclick="go(2)"> xx:xx:xx</span> + <span class="colone3" id="cel3ligne2" onclick="selecTache(this, 2)" ondblclick="go(2)"> xx:xx:xx</span><br> + </div> + </div> </div> <footer class="piedpage"> <! footer à garder tel quel > - <table border=1 width=99%><tr><td width=50%>Inactif</td><td width=50% align="center">Aujourd'hui : 00:00:00</td></tr></table> + <div id="cadreBas"><span id="statutTaches">Inactif</span><span id="recapAuj">Aujourd'hui : xx:xx:xx</span></div> </footer> </body> </html> Added: jtimerhtml5/javascript/actionsMenus.js =================================================================== --- jtimerhtml5/javascript/actionsMenus.js (rev 0) +++ jtimerhtml5/javascript/actionsMenus.js 2013-04-19 15:32:10 UTC (rev 25) @@ -0,0 +1,118 @@ +/* Différente actions des menus et des boutons */ + +function newProjet(){ + var nomNewProjet = prompt("Nom du projet à créer :", "" ) + if (nomNewProjet=="") { + alert("Erreur : Le nom est vide !") + } + // vérifier si un autre projet n'a pas déjà ce nom +} + +function edProjet(){ + var newNomProjet = prompt("Nouveau nom du projet :","x") + if (nomNewProjet=="") { + alert("Erreur : Le nom est vide !") + } + // vérifier si un autre projet n'a pas déjà ce nom +} + +function ofProjet(){ + +} + +function supprProjet() { + var bool = confirm("Voulez-vous supprimer le projet x ?") + // si bool alors action +} + +function newTache() { + var nomNewTache = prompt("Nom de la tâche à créer pour x :", "" ) + if (nomNewProjet=="") { + alert("Erreur : Le nom est vide !") + } + // vérifier si une autre tache n'a pas déjà ce nom +} + +function edTache(){ + window.open('editionTache.html','','height=450, width=350, toolbar=no, menubar=no, scrollbars=no, resizable=yes, location=no, status=no') +} + +function ofTache(){ + +} + +function supprTache(){ + var bool = confirm("Voulez-vous supprimer la tâche x ?") + // si bool alors action +} + +function demarTache(){ + +} + +function stopTache(){ + +} + +function addAnnotation(){ + var newAnnot = prompt("Annotation pour la tâche x :","") +} + +function edAlertes(){ + window.open('alertes.html','','height=400, width=600, toolbar=no, menubar=no, scrollbars=no, resizable=yes, location=no, status=no') +} + +function add(nb){ + +} + +function sou(nb){ + +} + +function zero(){ + +} + +function fusion(){ + +} + +function rapport(){ + window.open('rapport.html','','height=800, width=1100, toolbar=no, menubar=no, scrollbars=no, resizable=yes, location=no, status=no') +} + +function affCachés(){ + +} + +function systray(){ + +} + +function jSemaine(){ + +} + +function aPropos(){ + window.open('apropos.html','','height=405, width=420, toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, status=no') +} + +/* Autres */ + +function selecTache(cel, numligne) { + // pour toute les lignes mettre en blanc + var nbLignes = 2 + for (var j=0; j<nbLignes; j++) { + for (var k=0; k<3; k++) + (document.getElementById('cel'+(k+1)+'ligne'+(j+1))).style.backgroundColor = "#ffffff" + } + for (var i=0; i<3; i++) + (document.getElementById('cel'+(i+1)+'ligne'+numligne)).style.backgroundColor = "#00ccff" + + cel.style.backgroundColor = "#3399ff" + +} +function go(nb){ + (document.getElementById('go'+nb)).style.display = "" +} Added: jtimerhtml5/javascript/menu.js =================================================================== --- jtimerhtml5/javascript/menu.js (rev 0) +++ jtimerhtml5/javascript/menu.js 2013-04-19 15:32:10 UTC (rev 25) @@ -0,0 +1,78 @@ +function createMenu() { + document.write("<div class='menus'><table cellspacing=0;><tr>") + for (var i = 0; i < menu.length; i++) + document.write("<td id=menu"+i+" onmouseover=menuOver(this,"+i+") onmouseout=menuOut(this,"+i+") onclick=menuClick(this,"+i+")> "+menu[i]+"</td>") + + document.write("</tr></table></div>") + for (var i = 0; i < submenu.length; i++) { + document.write("<span class='ssmenu'><table border=1 style=display:none;left:"+(i*50)+";top:25; id=submenu"+i+" cellspacing=0 onmouseover=revealSubMenu("+i+") >") + + for (var j = 0; j < submenu[i].length; j++) + document.write("<tr><td onmouseover=styleOver(this) onmouseout=styleOut(this)> "+submenu[i][j]+"</td></tr>") + document.write("</table></span>") + } +} + +function menuClick(element, numMenu){ + if (click==false) { + click=true + menuOver(element, numMenu) + } + else { + click=false + menuOut(element, numMenu) + styleOut(element) + } +} + + +function menuOver(element, numMenu) { + if (click==true){ + setDefaultStyle(element) + styleOver(element) + revealSubMenu(numMenu) + } +} + +function menuOut(element, numMenu) { + hideSubMenu(numMenu) +} + +function styleOver(element) { + element.style.backgroundColor = "#33CC00" +} + +function styleOut(element) { + element.style.backgroundColor = "#FFFF9E" +} + +function setDefaultStyle() { + for (var i = 0; i < menu.length; i++) + O("menu"+i).style.backgroundColor = "#FFFF9E" +} + +function revealSubMenu(numMenu) { + hideAll() + show( O("submenu"+numMenu) ) +} + +function hideSubMenu(numMenu) { + hide( O("submenu"+numMenu) ) +} + +function show(element) { + element.style.display = "" +} + +function hideAll() { + for (var i = 0; i < submenu.length; i++) + hideSubMenu(i) +} + +function hide(element) { + element.style.display = "none" +} + +function O(id) { + return document.getElementById(id) +} Added: jtimerhtml5/rapport.html =================================================================== --- jtimerhtml5/rapport.html (rev 0) +++ jtimerhtml5/rapport.html 2013-04-19 15:32:10 UTC (rev 25) @@ -0,0 +1,63 @@ +<!DOCTYPE html> +<html lang="fr" height=100%> + <head> + <meta charset="UTF-8"/> + <title>Rapport - jTimer</title> + <link rel="stylesheet" type="text/css" href="aspect/style.css"/> + <link rel="stylesheet" type="text/css" href="aspect/rapport.css"/> + <script language=JavaScript> + var check = false; + function checkHeure(){ + if (check==false){ + check=true; + (document.getElementById("avHeure")).style.display=""; + } + else + { + check=false; + (document.getElementById("avHeure")).style.display="none"; + } + } + </script> + </head> + <body height=100%> + <div id="divGauche"> + <div id="optionsRapport"> + Options :<br><br> + De : <input type="text" id="dateDeb"> + <input type="button" id="selecDateDeb"> + <input type="button" name="Semaine courante" id="selecSemAct"><br> + A : <input type="text" id="dateFin"> + <input type="button" id="selecDateFin"> + <input type="button" name="Semaine précédente" id="selecSemPre"><br> + <form> + <input type="radio" name="choixFormat" value="jour">Par jour + <input type="radio" name="choixFormat" value="mois" id="moisRapport">Par mois + <br> + <input type="radio" name="choixFormat" value="semaine">Par semaine + <input type="radio" name="choixFormat" value="annee" id="anneeRapport">Par année + <br> + <input type="radio" name="choixFormat" value="projet">Par projet + </form> + <input type="checkbox" id="incAnno" onchange="checkHeure()">Inclure les annotations + <span id="avHeure" style="display:none;"><input type="checkbox">avec l'heure</span> + </div><br> + <div id="projetsRapport"> + Projets :<br><br> + <input type="checkbox" id="affichCachésRapport">Afficher les cachés + <div id="arboRapport"> + </div> + </div> + </div> + + <div id="divDroite"> + Rapport :<br> + <span id="zoneTexteRapport"><textarea id="texteRapport"></textarea></span> + <footer> + <input type="button" value="Générer" id="generRapport"> + <input type="button" value="Envoyer par email" id="mailRapport"> + <input type="button" value="Fermer" id="fermerRapport" onclick="javascript:window.close()"> + </footer> + </div> + </body> +</html>