Changeset 684


Ignore:
Timestamp:
12/05/12 15:39:44 (11 years ago)
Author:
*
Message:

statistiques, clean, log4j

Location:
ether_statistics
Files:
10 edited
1 copied

Legend:

Unmodified
Added
Removed
  • ether_statistics/Statistics.ipr

    r660 r684  
    55  </component> 
    66  <component name="ArtifactManager"> 
    7     <artifact type="exploded-war" build-on-make="true" name="statistics"> 
    8       <output-path>$PROJECT_DIR$/web</output-path> 
    9       <root id="root" /> 
     7    <artifact type="war" build-on-make="true" name="statistics"> 
     8      <output-path>$PROJECT_DIR$/out/artifacts/statistics</output-path> 
     9      <root id="archive" name="statistics.war"> 
     10        <element id="directory" name="WEB-INF"> 
     11          <element id="directory" name="classes"> 
     12            <element id="module-output" name="Common" /> 
     13            <element id="module-output" name="Domain" /> 
     14            <element id="module-output" name="Persistence" /> 
     15            <element id="module-output" name="Service" /> 
     16            <element id="module-output" name="Web" /> 
     17          </element> 
     18          <element id="directory" name="lib"> 
     19            <element id="library" level="project" name="lib_spring" /> 
     20            <element id="library" level="project" name="lib_hibernate" /> 
     21          </element> 
     22        </element> 
     23        <element id="javaee-facet-resources" facet="Web/web/Web" /> 
     24      </root> 
    1025    </artifact> 
    1126  </component> 
  • ether_statistics/common/implementation/log4j.xml

    r667 r684  
    2323  
    2424    <!-- library loggers --> 
    25     <logger name="oracle.jdbc" additivity="false"> 
    26         <level value="info"/> 
     25    <!--<logger name="oracle.jdbc" additivity="false">--> 
     26        <!--<level value="info"/>--> 
    2727        <!--<appender-ref ref="file"/>--> 
    2828        <!--<appender-ref ref="console"/>--> 
    29     </logger> 
     29    <!--</logger>--> 
    3030 
    31     <logger name="oracle.ons" additivity="false"> 
    32         <level value="debug"/> 
     31    <!--<logger name="oracle.ons" additivity="false">--> 
     32        <!--<level value="debug"/>--> 
    3333        <!--<appender-ref ref="file"/>--> 
    3434        <!--<appender-ref ref="console"/>--> 
    35     </logger> 
     35    <!--</logger>--> 
    3636 
    37     <logger name="org.hibernate"> 
    38         <level value="trace"/> 
     37    <!--<logger name="org.hibernate">--> 
     38        <!--<level value="trace"/>--> 
    3939        <!--<appender-ref ref="file"/>--> 
    4040        <!--<appender-ref ref="consoleHibernate"/>--> 
    41     </logger> 
     41    <!--</logger>--> 
    4242 
    43     <logger name="com.ether"> 
    44         <level value="trace"/> 
     43    <!--<logger name="com.ether">--> 
     44        <!--<level value="trace"/>--> 
    4545        <!--<appender-ref ref="file"/>--> 
    4646        <!--<appender-ref ref="console"/>--> 
    47     </logger> 
     47    <!--</logger>--> 
    4848 
    4949<!--    <logger name="org.hibernate.persister.entity" additivity="false">--> 
     
    6565<!--    </logger>--> 
    6666 
    67     <logger name="net.sf.cglib" additivity="false"> 
    68         <level value="warn"/> 
     67    <!--<logger name="net.sf.cglib" additivity="false">--> 
     68        <!--<level value="warn"/>--> 
    6969        <!--<appender-ref ref="file"/>--> 
    7070        <!--<appender-ref ref="console"/>--> 
    71     </logger> 
     71    <!--</logger>--> 
    7272 
    7373    <!-- root logger --> 
    74     <root> 
    75         <level value="warn"/> 
     74    <!--<root>--> 
     75        <!--<level value="warn"/>--> 
    7676        <!--<appender-ref ref="console"/>--> 
    7777        <!--<appender-ref ref="file"/>--> 
    78     </root> 
     78    <!--</root>--> 
    7979 
    8080</log4j:configuration> 
  • ether_statistics/web/project/credits_en.jsp

    r667 r684  
    1111    Images used for this web site mostly belong to the CNRS and ETHER pictures library.<BR/> 
    1212    They are properties to CNRS and ETHER. Any copies, complete or partial, can not be done without their consent. 
    13     <BR/><BR/> 
    14  
    15     <div class="title2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Others</div> 
    16     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Visualization tools : <a href="http://wijmo.com/">Wijmo</a> 
    17     <BR/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(free download). 
    1813</div> 
  • ether_statistics/web/project/credits_fr.jsp

    r667 r684  
    1111    Les images utilisées pour la réalisation de ce site web proviennent, <BR/>pour la plupart, de la photothÚque du CNRS et du fond de ETHER.<BR/> 
    1212    Elles sont la propriété du CNRS et de ETHER. Toute copie, totale <BR/> ou partielle, ne peut se faire sans leur accord. 
    13     <BR/><BR/> 
    14  
    15     <div class="title2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Autres</div> 
    16     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Outils de visualisation : <a href="http://wijmo.com/">Wijmo</a> 
    17     <BR/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(en téléchargement gratuit). 
    1813</div> 
  • ether_statistics/web/project/statistics-script_sauv.jsp

    r668 r684  
    108108            specificClass:"containerStatistics", specificTitleClass:"containerStatisticsTitle", specificContentClass:"containerStatisticsContent"} ); 
    109109 
    110         this.rightLoginSlide = new DragSlide( {id:"loginRight", parent:this.parent, width:"200", height:"25", top:"170px", left:"697px", 
     110        this.loginSlide = new DragSlide( {id:"loginRight", parent:this.parent, width:"200", height:"25", top:"170px", left:"697px", 
    111111            specificClass:"containerStatistics", specificTitleClass:"containerStatisticsTitle", specificContentClass:"containerStatisticsContent"} ); 
    112112    }, 
     
    171171        this.changeLeftMiddleSlide(); 
    172172        this.changeLeftBottomSlide(); 
    173         this.displayVisitEvolution(); 
     173        this.displayVisit(); 
    174174    }, 
    175175 
     
    214214            // User 
    215215            if( this.jSONUser.name ) 
    216                 this.rightLoginSlide.setTitle( this.jSONUser.name ); 
     216                this.loginSlide.setTitle( this.jSONUser.name ); 
    217217            else 
    218                 this.rightLoginSlide.setTitle( '<spring:message code="label.unknown"/>' ); 
     218                this.loginSlide.setTitle( '<spring:message code="label.unknown"/>' ); 
    219219            $( "#logout_button" ).css( "visibility", "visible" ); 
    220220 
     
    480480        this.rightSlide.setTitle( '<spring:message code="label.actions"/>' ); 
    481481        this.rightSlide.getDivContent().empty(); 
    482         new Button( {value:"<spring:message code="statistics.visit"/>", parent:this.rightSlide.getDivContent(), className: "positive action_button", onClick:jQuery.proxy( this.displayVisitEvolution, this )} ); 
     482        new Button( {value:"<spring:message code="statistics.visit"/>", parent:this.rightSlide.getDivContent(), className: "positive action_button", onClick:jQuery.proxy( this.displayVisit, this )} ); 
    483483        new Button( {value:"<spring:message code="statistics.user.registered"/>", parent:this.rightSlide.getDivContent(), className: "positive action_button", onClick:jQuery.proxy( this.displayRegisteredUserEvolution, this )} ); 
    484484        new Button( {value:"<spring:message code="statistics.user.connected"/>", parent:this.rightSlide.getDivContent(), className: "positive action_button", onClick:jQuery.proxy( this.displayConnectedUserEvolution, this )} ); 
    485         new Button( {value:"<spring:message code="statistics.data.download"/>", parent:this.rightSlide.getDivContent(), className: "positive action_button", onClick:jQuery.proxy( this.displayDownloadEvolution, this )} ); 
     485        new Button( {value:"<spring:message code="statistics.data.download"/>", parent:this.rightSlide.getDivContent(), className: "positive action_button", onClick:jQuery.proxy( this.displayDownload, this )} ); 
    486486        new Button( {value:"<spring:message code="statistics.map.distribution"/>", parent:this.rightSlide.getDivContent(), className: "positive action_button", onClick:jQuery.proxy( this.displayMapDistribution, this )} ); 
     487        new Button( {value:"AWSTATS", parent:this.rightSlide.getDivContent(), className: "positive action_button", onClick:jQuery.proxy( this.displayAwstatsStatistics, this )} ); 
    487488        new Button( {value:"<spring:message code="label.print"/>", parent:this.rightSlide.getDivContent(), className: "blue export_button print-preview", onClick:jQuery.proxy( this.onClickPrint, this )} ); 
    488489    }, 
     
    629630    }, 
    630631 
    631     displayVisitEvolution: function() 
     632    displayVisit: function() 
    632633    { 
    633634        this.changeMiddleSlide( '<spring:message code="statistics.evolution.visit"/>', '<spring:message code="statistics.distribution.visit"/>' ); 
     
    644645    }, 
    645646 
    646     displayDownloadEvolution: function() 
     647    displayDownload: function() 
    647648    { 
    648649        this.changeMiddleSlide( '<spring:message code="statistics.evolution.download"/>', '<spring:message code="statistics.distribution.download"/>' ); 
     
    652653    { 
    653654        this.changeMiddleSlideForMap(); 
     655    }, 
     656 
     657    displayAwstatsStatistics: function() 
     658    { 
     659 
     660        //        var url = 'http://www.pole-ether.fr/cgi-bin/awstats/awstats.pl?config=tapas'; 
     661        var url = "/statistics/project/credits_en.jsp"; 
     662//        var url = "http://localhost/cgi-bin/awstats/awstats.pl?config=megapoli"; 
     663 
     664//        var jqxhr = jQuery.get( url, function() 
     665//        { 
     666//        } ) 
     667//                .success( function( data ) 
     668//        { 
     669//            $( '#bob' ).html( data ); 
     670//        } ) 
     671//                .error( function( data ) 
     672//        { 
     673//            alert( "error" ); 
     674//        } ) 
     675//                .complete( function( data ) 
     676//        { 
     677//        } ); 
     678 
     679        $( "#divDialog" ).load( url ); 
     680 
     681 
     682//        var $dialog = $( '<div></div>' ) 
     683//                .html( "http://www.pole-ether.fr/cgi-bin/awstats/awstats.pl?config=tapas" ) 
     684//                .dialog( { 
     685//                             autoOpen: false, 
     686//                             title: "paf", 
     687//                             height: 50, 
     688//                             width: 400 
     689//                         } ); 
     690//        $dialog.dialog( 'open' ); 
     691 
     692//        $( '<div>' ).dialog( { 
     693//            modal: true, 
     694//            open: function () 
     695//            { 
     696//                $( this ).load( 'http://www.google.fr' ); 
     697//            }, 
     698//            height: 400, 
     699//            width: 400, 
     700//            title: 'Dynamically Loaded Page' 
     701//        } ); 
     702 
     703//        $( "#divDialog" ).dialog( { 
     704//            height: 400, 
     705//            width: 500, 
     706//            modal: true 
     707//        } ); 
     708//        $( "#divDialog" ).dialog( "option", "title", "paf" ); 
     709//        $( "#divDialog" ).dialog( "option", "resizable", false ); 
     710//        $( "#divDialog" ).dialog( "option", "buttons", { 
     711//            "Close": function() 
     712//            { 
     713//                $( this ).dialog( "close" ); 
     714//                $( this ).dialog( "destroy" ); 
     715//            } 
     716//        } ); 
     717//        $( "#divDialog" ).load( "http://localhost:8080" ); 
     718//        $( "#divDialog" ).load( "project/credits_en.jsp" ); 
     719 
     720//        $( "#middle" ).load( 'http://www.google.fr' ); 
     721//        var $dialog = $( '<div></div>' ) 
     722//                .load( 'http://www.google.fr' ) 
     723//                .dialog( { 
     724//                             autoOpen: true, 
     725//                             title: "hop", 
     726//                             height: 400, 
     727//                             width: 750 
     728//                         } ); 
     729//        $dialog.dialog( 'open' ); 
     730 
     731//        $( '#report' ).dialog( { 
     732//            autoOpen: true, 
     733//            bgiframe: true, 
     734//            resizable: true, 
     735//            modal: false, 
     736//            width: 500, 
     737//            title: 'Signaler un problÚme' 
     738//        } ); 
     739// 
     740//        $( '#report' ).dialog( 'option', 'buttons', { 
     741//            'Signaler': function() 
     742//            { 
     743//                $( this ).dialog( 'close' ); 
     744//            }, 
     745//            'Fermer': function() 
     746//            { 
     747//                $( this ).dialog( 'close' ); 
     748//            } 
     749//        } ); 
     750////        $( '#report' ).load( "http://www.pole-ether.fr/cgi-bin/awstats/awstats.pl?config=tapas" ).dialog( 'open' ); 
     751//        $( '#report' ).load( "http://www.google.fr" ).dialog( 'open' ); 
     752 
     753//        $.load( "http://www.pole-ether.fr/cgi-bin/awstats/awstats.pl?config=tapas" ).dialog( {modal:true} ); 
     754//        var printContent = new PrintContent(); 
     755// 
     756//        printContent.addContent( $( "#title" ).clone() ); 
     757//        printContent.addContent( this.leftTopSlide.getDivContainer().clone().animate( {'marginLeft' : "+=80px"} ) ); 
     758//        printContent.addContent( this.leftMiddleSlide.getDivContainer().clone().animate( {'marginLeft' : "+=80px"} ) ); 
     759//        printContent.addContent( this.leftBottomSlide.getDivContainer().clone().animate( {'marginLeft' : "+=80px"} ) ); 
     760//        printContent.addContent( this.middleSlide.getDivContainer().clone().animate( {'marginLeft' : "+=120px"} ) ); 
     761//        printContent.displayPrintPreview(); 
    654762    } 
    655763 
  • ether_statistics/web/project/statistics.jsp

    r667 r684  
    1515    <ether:htmlCss cssFile="button"/> 
    1616    <%-- WIJMO --%> 
    17     <ether:htmlCss cssFile="Wijmo/rocket/jquery-wijmo"/> 
    18     <ether:htmlCss cssFile="Wijmo/jquery.wijmo-complete.all.2.0.0.min"/> 
     17    <%--<ether:htmlCss cssFile="Wijmo/rocket/jquery-wijmo"/>--%> 
     18    <%--<ether:htmlCss cssFile="Wijmo/jquery.wijmo-complete.all.2.0.0.min"/>--%> 
    1919 
    2020    <ether:htmlCss cssFile="ether"/> 
    2121    <ether:htmlCss cssFile="statistics"/> 
    2222    <ether:htmlCss cssFile="printContent"/> 
     23 
     24    <ether:htmlJs jsFile="library/jquery-1.4.2.min"/> 
     25    <ether:htmlJs jsFile="library/jquery.class"/> 
     26    <ether:htmlJs jsFile="library/jquery.protify-0.3"/> 
    2327 
    2428    <ether:htmlJs jsFile="library/jquery-1.8.2.min"/> 
     
    3236 
    3337    <%-- WIJMO --%> 
    34     <ether:htmlJs jsFile="Wijmo.2.2.2/Wijmo-Open/js/jquery.wijmo-open.all.2.2.2.min"/> 
    35     <ether:htmlJs jsFile="Wijmo.2.2.2/Wijmo-Complete/js/jquery.wijmo-complete.all.2.2.2.min"/> 
     38    <%--<ether:htmlJs jsFile="Wijmo.2.2.2/Wijmo-Open/js/jquery.wijmo-open.all.2.2.2.min"/>--%> 
     39    <%--<ether:htmlJs jsFile="Wijmo.2.2.2/Wijmo-Complete/js/jquery.wijmo-complete.all.2.2.2.min"/>--%> 
    3640 
    3741    <ether:htmlJsp jspFile="statistics-script"/> 
  • ether_statistics/web/resources/css/statistics.css

    r667 r684  
    157157#copy { 
    158158    position: absolute; 
    159     top: 497px; 
    160     left: 812px; 
     159    top: 513px; 
     160    left: 861px; 
    161161} 
    162162 
     
    175175#help { 
    176176    position: absolute; 
    177     top: 247px; 
    178     left: 375px; 
     177    top: 255px; 
     178    left: 400px; 
    179179} 
    180180 
    181181#credits { 
    182182    position: absolute; 
    183     top: 524px; 
    184     left: 695px; 
     183    top: 543px; 
     184    left: 752px; 
    185185} 
    186186 
    187187#mentions { 
    188188    position: absolute; 
    189     top: 543px; 
    190     left: 725px; 
     189    top: 561px; 
     190    left: 779px; 
    191191} 
    192192 
     
    242242} 
    243243 
    244 #loginRight { 
     244#loginMiddle { 
    245245    color: white; 
    246246} 
    247247 
    248 #loginRight .containerStatisticsTitle { 
     248#loginMiddle .containerStatisticsTitle { 
     249    text-align: center; 
     250} 
     251 
     252#awstats { 
     253    position: absolute; 
     254} 
     255 
     256#awstats .containerStatisticsTitle { 
     257    background: -moz-linear-gradient(#F5F5F5, #DFF4FF) repeat scroll 0 0 transparent; 
     258    background: -ms-linear-gradient(#F5F5F5, #DFF4FF) repeat scroll 0 0 transparent; /*For IE10*/ 
     259    background: -webkit-linear-gradient(#F5F5F5, #DFF4FF) repeat scroll 0 0 transparent; /*For IE10*/ 
     260    filter: progid:DXImageTransform.Microsoft.gradient(GradientType = 0, startColorstr = '#F5F5F5', endColorstr = 'DFF4FF'); /*For IE7-8-9*/ 
     261    -moz-box-shadow: none; 
     262    -webkit-box-shadow: none; 
     263    box-shadow: none; 
     264    background-color: #F5F5F5; 
     265    border: 1px solid #336699; 
     266    color: #336699; 
    249267    text-align: center; 
    250268} 
     
    285303.action_button { 
    286304    width: 95%; 
    287     margin: 3px; 
     305    margin: 2px; 
    288306} 
    289307 
    290308.export_button { 
    291309    float: right; 
    292     margin: 20px 6px 0 0; 
    293 } 
     310    margin: 5px 6px 0 0; 
     311} 
  • ether_statistics/web/resources/js/classesForJQuery/DragSlide.js

    r663 r684  
    2828        this.contentPageSlide = objectParameter.contentPageSlide ? objectParameter.contentPageSlide : false; 
    2929        this.isIndexToChange = objectParameter.isIndexToChange ? objectParameter.isIndexToChange : false; 
     30        // By default, we activate the double click to enlarge or reduce the slide 
     31        this.activeDbClick = !objectParameter.activeDbClick; 
    3032 
    3133        this.divContainer = $( document.createElement( "div" ) ); 
     
    5456        this.divContainer.resizable(); 
    5557//        this.divContainer.dblclick(); 
    56         this.divTitle.dblclick( jQuery.proxy( this.onDbClickTitle, this ) ); 
     58        if( this.activeDbClick ) 
     59            this.divTitle.dblclick( jQuery.proxy( this.onDbClickTitle, this ) ); 
    5760        this.divContainer.resize( jQuery.proxy( this.onResizeContainer, this ) ); 
    5861    }, 
  • ether_statistics/web/src/messages_en.properties

    r667 r684  
    1818label.print=Print 
    1919label.unknown=Unknown 
     20label.awstats=Launch Awstats 
    2021 
    2122statistics.online=Online since 
     
    3132statistics.duration.total=Total 
    3233statistics.duration.average=Average 
     34statistics.domain=Domains / Countries 
     35statistics.summary=Summary 
     36statistics.monthly=Monthly history 
     37statistics.daily=Days of month 
     38statistics.daysofweek=Days of week 
     39statistics.hours=Hours 
     40statistics.visit.duration=Visits duration 
    3341 
    3442statistics.evolution=Statistics evolution 
  • ether_statistics/web/src/messages_fr.properties

    r667 r684  
    1818label.print=Imprimer 
    1919label.unknown=Inconnu 
     20label.awstats=Lancer Awstats 
    2021 
    2122statistics.online=En ligne depuis le 
     
    3132statistics.duration.total=Totale 
    3233statistics.duration.average=Moyenne 
     34statistics.domain=Domaines / Pays 
     35statistics.summary=Résumé 
     36statistics.monthly=Historique mensuel 
     37statistics.daily=Jours du mois 
     38statistics.daysofweek=Jours de la semaine 
     39statistics.hours=Heures 
     40statistics.visit.duration=Durée des visites 
     41 
    3342 
    3443statistics.evolution=Evolution des statistiques 
  • ether_statistics/web/src/statistics.properties

    r667 r684  
    11mail.host=mailhost.ipsl.jussieu.fr 
    22mail.webmaster=vmipsl@ipsl.jussieu.fr 
     3# LOCAL 
     4#url.pages="/statistics/project/mentions_en.jsp" 
     5#url.domains="/statistics/project/credits_en.jsp" 
     6#url.downloads="/statistics/project/credits_fr.jsp" 
     7 
     8# PROD 
     9url.summary="/cgi-bin/awstats/awstats.pl?output=displaysummary&config=" 
     10url.monthly="/cgi-bin/awstats/awstats.pl?output=displaymonthly&config=" 
     11url.daily="/cgi-bin/awstats/awstats.pl?output=displaydaily&config=" 
     12url.daysofweek="/cgi-bin/awstats/awstats.pl?output=displaydaysofweek&config=" 
     13url.hours="/cgi-bin/awstats/awstats.pl?output=displayhours&config=" 
     14url.sessions="/cgi-bin/awstats/awstats.pl?output=displaysessions&config=" 
     15url.visited.pages="/cgi-bin/awstats/awstats.pl?output=urldetail&config=" 
     16url.domains="/cgi-bin/awstats/awstats.pl?output=alldomains&config=" 
     17url.downloads="/cgi-bin/awstats/awstats.pl?output=downloads&config=" 
     18 
Note: See TracChangeset for help on using the changeset viewer.