Changeset 140 for ether_megapoli


Ignore:
Timestamp:
08/25/11 14:48:51 (13 years ago)
Author:
vmipsl
Message:

Import medias files and cleanup

Location:
ether_megapoli/trunk
Files:
5 added
7 deleted
22 edited

Legend:

Unmodified
Added
Removed
  • ether_megapoli/trunk/common/implementation/com/medias/Nombre.java

    r89 r140  
    1 package com.medias;/* 
     1/* 
    22 * Created on 16 févr. 2005 
    33 */ 
     4package com.medias; 
    45 
    56/** 
     
    1213    /** 
    1314     * Vérifie qu'une donnée est un entier. 
    14      * @param nb com.medias.Nombre à vérifier. 
     15     * @param nb Nombre à vérifier. 
    1516     * @return Vrai si la donnée est un entier. 
    1617     */ 
     
    2627    /** 
    2728     * Vérifie qu'une donnée est un entier long. 
    28      * @param nb com.medias.Nombre à vérifier. 
     29     * @param nb Nombre à vérifier. 
    2930     * @return Vrai si la donnée est un entier long. 
    3031     */ 
     
    4041    /** 
    4142     * Verifie qu'une donnée est un double. 
    42      * @param nb com.medias.Nombre à vérifier. 
     43     * @param nb Nombre à vérifier. 
    4344     * @return Vrai si la donnée est un double. 
    4445     */ 
     
    5455    /** 
    5556     * Verifie qu'un double est dans un intervalle. 
    56      * @param nb com.medias.Nombre à vérifier. 
     57     * @param nb Nombre à vérifier. 
    5758     * @param min Borne inférieure de l'intervalle. 
    5859     * @param max Borne supérieure de l'intervalle. 
     
    131132        if (val.floatValue() == 0) 
    132133            return new Integer(0); 
    133         return new Integer((int)((val.doubleValue() + 0.0005) * 10000.0)); 
     134//        return new Integer((int)((val.doubleValue() + 0.0005) * 10000.0)); 
     135        return new Integer((int)Math.round((val.doubleValue() + 0.0005) * 10000.0)); 
    134136    } 
    135137 
     
    157159        if (val.floatValue() == 0) 
    158160            return new Integer(0); 
    159         return new Integer((int)((val.doubleValue() + 0.05) * 100.0)); 
     161        return new Integer((int)Math.round((val.doubleValue() + 0.05) * 100.0)); 
    160162    } 
    161163 
     
    185187     * Ne conserve que n chiffres aprÚs la virgule pour le double val. 
    186188     * @param val Double à convertir. 
    187      * @param n com.medias.Nombre de chiffres aprÚs la virgule 
     189     * @param n Nombre de chiffres aprÚs la virgule 
    188190     * @return Double avec n chiffres aprÚs la virgule. 
    189191     */ 
  • ether_megapoli/trunk/persistence/implementation/com/medias/objects/Langue.hbm.xml

    r89 r140  
    44<!-- Generated 5 f?vr. 2007 11:07:12 by Hibernate Tools 3.2.0.b9 --> 
    55<hibernate-mapping> 
    6     <class name="com.medias.database.objects.Langue" table="langue" schema="public"> 
     6    <class name="org.medias.megapoli.model.database.objects.Langue" table="langue" schema="public"> 
    77        <comment>Table contenant les langages des commentaires</comment> 
    88        <id name="langueId" type="string"> 
     
    2121                </column> 
    2222            </key> 
    23             <one-to-many class="com.medias.database.objects.Commentaire" /> 
     23            <one-to-many class="org.medias.megapoli.model.database.objects.Commentaire" /> 
    2424        </set> 
    2525    </class> 
  • ether_megapoli/trunk/persistence/implementation/com/medias/objects/Localisation.hbm.xml

    r89 r140  
    44<!-- Generated 5 f?vr. 2007 11:07:12 by Hibernate Tools 3.2.0.b9 --> 
    55<hibernate-mapping> 
    6     <class name="com.medias.database.objects.Localisation" table="localisation" schema="public"> 
     6    <class name="org.medias.megapoli.model.database.objects.Localisation" table="localisation" schema="public"> 
    77        <comment>Table indiquant les localisations des mesures</comment> 
    88        <id name="localisationId" type="int"> 
     
    1212            </generator> 
    1313        </id> 
    14         <many-to-one name="flagByAltitudeFlag" class="com.medias.database.objects.Flag" fetch="select"> 
     14        <many-to-one name="flagByAltitudeFlag" class="org.medias.megapoli.model.database.objects.Flag" fetch="select"> 
    1515            <column name="altitude_flag"> 
    1616                <comment>lien vers la table flag (contrainte sur l'altitude)</comment> 
    1717            </column> 
    1818        </many-to-one> 
    19         <many-to-one name="flagByLatlonFlag" class="com.medias.database.objects.Flag" fetch="select"> 
     19        <many-to-one name="flagByLatlonFlag" class="org.medias.megapoli.model.database.objects.Flag" fetch="select"> 
    2020            <column name="latlon_flag"> 
    2121                <comment>lien vers la table flag (contrainte sur la latitude/longitude)</comment> 
     
    4848                </column> 
    4949            </key> 
    50             <one-to-many class="com.medias.database.objects.Mesure" /> 
     50            <one-to-many class="org.medias.megapoli.model.database.objects.Mesure" /> 
    5151        </set> 
    5252    </class> 
  • ether_megapoli/trunk/persistence/implementation/com/medias/objects/Mesure.hbm.xml

    r89 r140  
    44<!-- Generated 5 f?vr. 2007 11:07:12 by Hibernate Tools 3.2.0.b9 --> 
    55<hibernate-mapping> 
    6     <class name="com.medias.database.objects.Mesure" table="mesure" schema="public"> 
     6    <class name="org.medias.megapoli.model.database.objects.Mesure" table="mesure" schema="public"> 
    77        <comment>Table contenant les mesures</comment> 
    88        <id name="mesureId" type="int"> 
     
    1212            </generator> 
    1313        </id> 
    14         <many-to-one name="localisation" class="com.medias.database.objects.Localisation" fetch="select"> 
     14        <many-to-one name="localisation" class="org.medias.megapoli.model.database.objects.Localisation" fetch="select"> 
    1515            <column name="localisation_id" not-null="true"> 
    1616                <comment>lien vers la table localisation</comment> 
    1717            </column> 
    1818        </many-to-one> 
    19         <many-to-one name="plateforme" class="com.medias.database.objects.Plateforme" fetch="select"> 
     19        <many-to-one name="plateforme" class="org.medias.megapoli.model.database.objects.Plateforme" fetch="select"> 
    2020            <column name="plateforme_id" not-null="true"> 
    2121                <comment>lien vers la table plateforme</comment> 
    2222            </column> 
    2323        </many-to-one> 
    24         <many-to-one name="fichier" class="com.medias.database.objects.Fichier" fetch="select"> 
     24        <many-to-one name="fichier" class="org.medias.megapoli.model.database.objects.Fichier" fetch="select"> 
    2525            <column name="fichier_id" not-null="true"> 
    2626                <comment>lien vers la table fichier</comment> 
    2727            </column> 
    2828        </many-to-one> 
    29         <many-to-one name="sequence" class="com.medias.database.objects.Sequence" fetch="select"> 
     29        <many-to-one name="sequence" class="org.medias.megapoli.model.database.objects.Sequence" fetch="select"> 
    3030            <column name="sequence_id"> 
    3131                <comment>lien vers la table sequence</comment> 
    3232            </column> 
    3333        </many-to-one> 
    34         <many-to-one name="deltaMesure" class="com.medias.database.objects.DeltaMesure" fetch="select"> 
     34        <many-to-one name="deltaMesure" class="org.medias.megapoli.model.database.objects.DeltaMesure" fetch="select"> 
    3535            <column name="delta_mesure_id"> 
    3636                <comment>lien vers la table delta_mesure</comment> 
     
    4848                </column> 
    4949            </key> 
    50             <one-to-many class="com.medias.database.objects.Valeur" /> 
     50            <one-to-many class="org.medias.megapoli.model.database.objects.Valeur" /> 
    5151        </set> 
    5252    </class> 
  • ether_megapoli/trunk/persistence/implementation/com/medias/objects/Valeur.hbm.xml

    r89 r140  
    4747            </column> 
    4848        </property> 
     49        <property name="valeurLod" type="java.lang.Double"> 
     50            <column name="valeur_lod" precision="8" scale="0"> 
     51                <comment>limit of detection</comment> 
     52            </column> 
     53        </property> 
    4954    </class> 
    5055</hibernate-mapping> 
  • ether_megapoli/trunk/web/WEB-INF/megapoli.properties

    r89 r140  
    1313mail.webmaster=vmipsl@ipsl.jussieu.fr 
    1414url.upload=http://localhost:8080/megapoli/InitLogon.do 
     15url.extractcgi=http://medias3.mediasfrance.org/megapoli_data/cgi-bin/megapoli_extract.cgi 
    1516 
    1617#!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 
  • ether_megapoli/trunk/web/WEB-INF/struts-config.xml

    r89 r140  
    1 <?com.medias.xml version="1.0" encoding="ISO-8859-1" ?> 
     1<?xml version="1.0" encoding="UTF-8" ?> 
    22                                                                                                                                                
    33<!DOCTYPE struts-config PUBLIC 
     
    2323                </form-bean> 
    2424                <form-bean 
     25                        name="accessForm" 
     26                        type="org.medias.megapoli.struts.forms.AccessForm"> 
     27                </form-bean> 
     28                <form-bean 
    2529                        name="deleteForm" 
    2630                        type="org.medias.megapoli.struts.forms.DeleteForm"> 
     
    4751                </form-bean> 
    4852                <form-bean 
     53                        name="jeuxForm" 
     54                        type="org.medias.megapoli.struts.forms.JeuxForm"> 
     55                </form-bean> 
     56                <form-bean 
     57                        name="fichiersForm" 
     58                        type="org.medias.megapoli.struts.forms.FichiersForm"> 
     59                </form-bean> 
     60                <form-bean 
    4961                        name="parametreForm" 
    5062                        type="org.medias.megapoli.struts.forms.ParametreForm"> 
     
    6173                        name="prepareTreeForm" 
    6274                        type="org.medias.megapoli.struts.forms.PrepareTreeForm"> 
     75                </form-bean> 
     76                <form-bean 
     77                        name="datasForm" 
     78                        type="org.medias.megapoli.struts.forms.DatasForm"> 
    6379                </form-bean> 
    6480        </form-beans> 
     
    109125                        type="org.medias.megapoli.struts.actions.InitLogonAction" 
    110126                        name="logonForm" 
    111                         validate="false" 
    112                         input="/data/data.jsp"> 
     127                        validate="false"> 
     128<!--                    input="/data/data.jsp"> --> 
    113129                        <forward name="success" path="/data/logon.jsp"/> 
    114130                </action> 
     
    165181                        validate="true" 
    166182                        input="/data/logonAccess.jsp"> 
    167                         <forward name="cancel" path="/data/access/listFiles.jsp"/> 
     183                        <forward name="cancel" path="/data/data.jsp"/> 
    168184<!--                    <forward name="input" path="/data/logonAccess.jsp"/> --> 
    169                         <forward name="access" path="/data/access/listFiles.jsp"/> 
     185                        <forward name="access" path="/DataAccess.do"/> 
     186                        <forward name="download" path="/JeuxAccess.do"/> 
    170187                        <forward name="login" path="/InitLogonAccess.do"/> 
    171188                </action> 
     189                <action  
     190                        path="/NewContact" 
     191                        type="org.medias.megapoli.struts.actions.NewContactAction" 
     192                        name="metadataForm"/> 
     193                <action  
     194                        path="/RemoveContact" 
     195                        type="org.medias.megapoli.struts.actions.RemoveContactAction" 
     196                        name="metadataForm"/> 
     197                <action  
     198                        path="/NewPlat" 
     199                        type="org.medias.megapoli.struts.actions.NewPlatAction" 
     200                        name="metadataForm"/> 
     201                <action  
     202                        path="/RemovePlat" 
     203                        type="org.medias.megapoli.struts.actions.RemovePlatAction" 
     204                        name="metadataForm"/> 
     205                <action  
     206                        path="/NewCapt" 
     207                        type="org.medias.megapoli.struts.actions.NewCaptAction" 
     208                        name="metadataForm"/> 
     209                <action  
     210                        path="/RemoveCapt" 
     211                        type="org.medias.megapoli.struts.actions.RemoveCaptAction" 
     212                        name="metadataForm"/> 
     213                <action  
     214                        path="/NewParam" 
     215                        type="org.medias.megapoli.struts.actions.NewParamAction" 
     216                        name="metadataForm"/> 
     217                <action  
     218                        path="/RemoveParam" 
     219                        type="org.medias.megapoli.struts.actions.RemoveParamAction" 
     220                        name="metadataForm"/> 
    172221                <action 
    173222                        path="/NewSet" 
     
    253302                </action> 
    254303                <action 
     304                        path="/JeuxAccess" 
     305                        type="org.medias.megapoli.struts.actions.JeuxAccessAction" 
     306                        name="jeuxForm"> 
     307                        <forward name="success" path="/data/access/jeux.jsp"/> 
     308                </action> 
     309                <action 
     310                        path="/FichiersAccess" 
     311                        type="org.medias.megapoli.struts.actions.FichiersAccessAction" 
     312                        name="fichiersForm"> 
     313                        <forward name="success" path="/data/access/files.jsp"/> 
     314                </action> 
     315                <action 
    255316                        path="/PlateformesAccess" 
    256317                        type="org.medias.megapoli.struts.actions.PlateformesAccessAction" 
     
    259320                </action> 
    260321                <action 
     322                        path="/DataAccess" 
     323                        type="org.medias.megapoli.struts.actions.DataAccessAction" 
     324                        name="datasForm" 
     325                        validate="false"> 
     326                        <forward name="success" path="/data/access/extract.jsp"/> 
     327                </action> 
     328                <action  
     329                        path="/DataSubmit" 
     330                        type="org.medias.megapoli.struts.actions.DataSubmitAction" 
     331                        input="/data/access/extract.jsp" 
     332                        name="datasForm" 
     333                        validate="true"> 
     334                        <forward name="cancel" path="/data/access/access.jsp"/> 
     335                        <forward name="reset" path="/data/access/extract.jsp"/> 
     336                        <forward name="success" path="/data/access/extract2.jsp"/> 
     337                </action> 
     338                <action  
     339                        path="/DataExtract" 
     340                        type="org.medias.megapoli.struts.actions.DataExtractAction" 
     341                        input="/data/access/extract2.jsp" 
     342                        name="datasForm"> 
     343                        <forward name="cancel" path="/data/access/extract.jsp"/> 
     344                        <forward name="success" path="/data/access/extract3.jsp"/> 
     345                </action> 
     346                <action 
    261347                        path="/DescParametre" 
    262348                        type="org.medias.megapoli.struts.actions.DescParametreAction" 
     
    279365                        path="/ZipGame" 
    280366                        type="org.medias.megapoli.struts.actions.ZipGameAction"> 
    281                         <forward name="success" path="/SendFileToClient.do"/> 
    282367                </action> 
    283368                <action 
     
    293378        <!-- ================================ Message Resources Definitions --> 
    294379        <message-resources parameter="ApplicationResources" null="false"/> 
     380         
    295381         
    296382        <!-- ========================================== Plugins Definitions --> 
     
    299385    </plug-in> 
    300386         
     387 
    301388</struts-config>                                                                                                                                                
  • ether_megapoli/trunk/web/WEB-INF/tlds/listlib.tld

    r89 r140  
    1 <?com.medias.xml version="1.0" encoding="ISO-8859-1" ?> 
     1<?xml version="1.0" encoding="ISO-8859-1" ?> 
    22<!DOCTYPE taglib 
    33        PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN" 
  • ether_megapoli/trunk/web/WEB-INF/tlds/struts-bean.tld

    r89 r140  
    378378</tag> 
    379379</taglib> 
     380 
     381 
     382 
  • ether_megapoli/trunk/web/WEB-INF/tlds/struts-html.tld

    r89 r140  
    1 <?com.medias.xml version="1.0" encoding="UTF-8"?> 
     1<?xml version="1.0" encoding="UTF-8"?> 
    22 
    33 
  • ether_megapoli/trunk/web/WEB-INF/tlds/struts-logic.tld

    r89 r140  
    1 <?com.medias.xml version="1.0" encoding="UTF-8"?> 
     1<?xml version="1.0" encoding="UTF-8"?> 
    22 
    33 
  • ether_megapoli/trunk/web/WEB-INF/tlds/struts-nested.tld

    r89 r140  
    1 <?com.medias.xml version="1.0" encoding="UTF-8"?> 
     1<?xml version="1.0" encoding="UTF-8"?> 
    22 
    33 
  • ether_megapoli/trunk/web/WEB-INF/tlds/struts-tiles.tld

    r89 r140  
    1 <?com.medias.xml version="1.0" encoding="UTF-8"?> 
     1<?xml version="1.0" encoding="UTF-8"?> 
    22 
    33 
  • ether_megapoli/trunk/web/WEB-INF/tlds/validator-rules.xml

    r89 r140  
    33          "http://jakarta.apache.org/commons/dtds/validator_1_1_3.dtd"> 
    44<!-- 
    5   $Header: /home/cvs/jakarta-struts/conf/share/validator-rules.com.medias.xml,v 1.52 2004/07/25 12:00:20 niallp Exp $ 
     5  $Header: /home/cvs/jakarta-struts/conf/share/validator-rules.xml,v 1.52 2004/07/25 12:00:20 niallp Exp $ 
    66  $Revision: 1.52 $ 
    77  $Date: 2004/07/25 12:00:20 $ 
     
    99   This file contains the default Struts Validator pluggable validator 
    1010   definitions.  It should be placed somewhere under /WEB-INF and 
    11    referenced in the struts-config.com.medias.xml under the plug-in element 
     11   referenced in the struts-config.xml under the plug-in element 
    1212   for the ValidatorPlugIn. 
    1313 
    1414      <plug-in className="org.apache.struts.validator.ValidatorPlugIn"> 
    15         <set-property property="pathnames" value="/WEB-INF/validator-rules.com.medias.xml, 
    16                                                   /WEB-INF/validation.com.medias.xml"/> 
     15        <set-property property="pathnames" value="/WEB-INF/validator-rules.xml, 
     16                                                  /WEB-INF/validation.xml"/> 
    1717      </plug-in> 
    1818 
     
    3939   errors.range={0} is not in the range {1} through {2}. 
    4040   errors.creditcard={0} is an invalid credit card number. 
    41    errors.email={0} is an invalid e-com.medias.mail address. 
     41   errors.email={0} is an invalid e-mail address. 
    4242 
    4343   Note: Starting in Struts 1.2.0 the default javascript definitions have 
  • ether_megapoli/trunk/web/WEB-INF/validation.xml

    r89 r140  
    1 <?com.medias.xml version="1.0" encoding="ISO-8859-1" ?> 
     1<?xml version="1.0" encoding="UTF-8" ?> 
    22 
    33<!DOCTYPE form-validation PUBLIC 
     
    7575                </field> 
    7676                 
    77                 <field 
     77                <!-- field 
    7878                        property="metadata.desc.organisme" 
    7979                        depends="required"> 
    8080                        <arg0 key="errors.upload.metadata.desc.org"/> 
    81                 </field> 
    82 <!--            <field 
     81                </field--> 
     82                        <!-- field 
    8383                        property="metadata" 
    8484                        depends="required"> 
    8585                        <arg0 key="errors.upload.metadata.desc.tech"/> 
    86                 </field>        --> 
     86                </field--> 
    8787                 
    8888        </form> 
  • ether_megapoli/trunk/web/WEB-INF/validator-rules.xml

    r89 r140  
    66   This file contains the default Struts Validator pluggable validator 
    77   definitions.  It should be placed somewhere under /WEB-INF and 
    8    referenced in the struts-config.com.medias.xml under the plug-in element 
     8   referenced in the struts-config.xml under the plug-in element 
    99   for the ValidatorPlugIn. 
    1010 
    1111      <plug-in className="org.apache.struts.validator.ValidatorPlugIn"> 
    12         <set-property property="pathnames" value="/WEB-INF/validator-rules.com.medias.xml, 
    13                                                   /WEB-INF/validation.com.medias.xml"/> 
     12        <set-property property="pathnames" value="/WEB-INF/validator-rules.xml, 
     13                                                  /WEB-INF/validation.xml"/> 
    1414      </plug-in> 
    1515 
     
    3636   errors.range={0} is not in the range {1} through {2}. 
    3737   errors.creditcard={0} is an invalid credit card number. 
    38    errors.email={0} is an invalid e-com.medias.mail address. 
     38   errors.email={0} is an invalid e-mail address. 
    3939 
    4040--> 
  • ether_megapoli/trunk/web/WEB-INF/xml/metadata.xsd

    r89 r140  
    1 <?com.medias.xml version="1.0" encoding="utf-8"?> 
     1<?xml version="1.0" encoding="UTF-8"?> 
    22<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" blockDefault="#all"> 
    33 
  • ether_megapoli/trunk/web/WEB-INF/xml/uploadFiles.xsl

    r89 r140  
    1 <?com.medias.xml version='1.0' encoding='ISO-8859-1'?> 
     1<?xml version='1.0' encoding='UTF-8'?> 
    22 
    33<!-- Feuille de style permettant de générer la vue d'affichage de la liste de fichiers 
     
    1111        <!-- Début : on cherche le jeu désigné par le path "target" --> 
    1212        <xsl:template match="/hierarchie"> 
    13                 <xsl:text><![CDATA[<![CDATA[<%@ page import="org.medias.utils.Context"%> 
    14 <%@ page import="org.medias.megapoli.model.com.medias.xml.hierarchie.Hierarchie"%> 
    15  
    16 <%@ page language="java" %> 
     13                <xsl:text><![CDATA[<%@ page import="com.medias.Context" contentType="text/html; charset=UTF-8"%> 
     14<%@ page import="com.medias.xml.hierarchie.Hierarchie"%> 
     15                 
     16<%@ page language="java" contentType="text/html; charset=UTF-8"%> 
    1717<%@ taglib uri="/WEB-INF/tlds/struts-tiles.tld" prefix="tiles"%> 
    1818<%@ taglib uri="/WEB-INF/tlds/struts-html.tld" prefix="html"%> 
     
    2020<%@ taglib uri="/WEB-INF/tlds/struts-logic.tld" prefix="logic"%> 
    2121 
    22 <div id="level1">]]>]]></xsl:text> 
     22<div id="level1">]]></xsl:text> 
    2323                <xsl:apply-templates select="level[@name=substring-before($target,'/')]"> 
    2424                        <xsl:with-param name="new_path" select="substring-after($target,'/')"/> 
     
    4141                <xsl:text><![CDATA[ 
    4242        <html:form action="/ConfirmDeletion"> 
    43                 <html:img page="/images/utils/text.png" alt="file"/>&nbsp;]]></xsl:text> 
     43                <html:img page="/images/utils/text.png" alt="file"/>&nbsp; 
     44                <bean:define id="pathFile" value="${categ}/${jeu}/]]></xsl:text> 
     45                <xsl:value-of select="@name"/> 
     46                <xsl:text><![CDATA["/> 
     47                <html:link titleKey="data.access.downloading" page="/SendFileToClient.do" paramId="path" paramName="pathFile">]]></xsl:text> 
    4448                <xsl:value-of select="@name"/> 
    4549                <xsl:text><![CDATA[ 
    46                 &nbsp; 
     50                </html:link>&nbsp; 
    4751                <bean:define id="modify" value="false"/> 
    4852                <logic:iterate id="jeu" name="SES_USER" property="jeux" scope="session"> 
     
    6165                <xsl:value-of select="concat($target,'/',@name)"/> 
    6266                <xsl:text><![CDATA["/> 
    63                         <html:image page="/images/utils/delete.png" alt="delete"/> 
     67                        <html:image page="/images/utils/delete.png" alt="delete" titleKey="data.upload.metadata.deleteFile"/> 
    6468                </logic:equal> 
    6569        </html:form>]]></xsl:text> 
  • ether_megapoli/trunk/web/WEB-INF/xml/uploadTree.xsl

    r89 r140  
    1 <?com.medias.xml version='1.0' encoding='ISO-8859-1'?> 
     1<?xml version='1.0' encoding='UTF-8'?> 
    22 
    33<!-- Feuille de style permettant de générer la vue d'affichage de l'arborescence à partir du 
    4 fichier hierarchie.com.medias.xml, qui décrit la structure de l'arborescence à obtenir --> 
     4fichier hierarchie.xml, qui décrit la structure de l'arborescence à obtenir --> 
    55 
    66<xsl:stylesheet version='1.0' xmlns:xsl='http://www.w3.org/1999/XSL/Transform'> 
     
    1010        <!-- On commence par écrire l'en-tête de la jsp --> 
    1111        <xsl:template match="/hierarchie"> 
    12                 <xsl:text><![CDATA[<![CDATA[<%@ page import="org.medias.utils.Context"%> 
    13 <%@ page import="org.medias.megapoli.model.com.medias.xml.hierarchie.Hierarchie"%> 
    14  
    15 <%@ page language="java" %> 
     12                <xsl:text><![CDATA[<%@ page import="com.medias.Context" contentType="text/html; charset=UTF-8"%> 
     13<%@ page import="com.medias.xml.hierarchie.Hierarchie"%> 
     14                 
     15<%@ page language="java" contentType="text/html; charset=UTF-8"%> 
    1616<%@ taglib uri="/WEB-INF/tlds/struts-tiles.tld" prefix="tiles"%> 
    1717<%@ taglib uri="/WEB-INF/tlds/struts-html.tld" prefix="html"%> 
     
    1919<%@ taglib uri="/WEB-INF/tlds/struts-logic.tld" prefix="logic"%> 
    2020 
    21 ]]>]]></xsl:text> 
     21]]></xsl:text> 
    2222                <xsl:apply-templates select="*"/> 
    2323                <xsl:text><![CDATA[<br><br>]]></xsl:text> 
     
    6464                <xsl:value-of select="concat($parent,'/',@name)"/> 
    6565                <xsl:text><![CDATA["/> 
    66                                 <html:image page="/images/utils/delete.png" alt="delete"/> 
     66                                <html:image page="/images/utils/delete.png" alt="delete" titleKey="data.upload.metadata.deleteJeu"/> 
    6767                        </logic:equal> 
    6868                </html:form>]]></xsl:text> 
  • ether_megapoli/trunk/web/resources/css/medias_new.css

    r89 r140  
    44 
    55h1, h2, h3 { 
    6         font-family: Arial, Verdana, Tahoma, Helvetica, sans-serif; 
     6        font-family: Helvetica, sans-serif; 
    77} 
    88 
     
    3131 
    3232body { 
    33         font-family:Tahoma, Verdana, Helvetica, Arial, sans-serif; 
     33        font-family:Helvetica, sans-serif; 
    3434        color:#000000; 
    3535        margin: 0; 
     
    4040#container { 
    4141        position:relative; 
    42         width:90%; 
    43         margin:0; 
    44         margin-left:5%; 
     42        /*width:90%; 
     43        margin:0; 
     44        margin-left:5%;*/ 
    4545        padding:0; 
    4646        border:#FFFFFF solid 0.2em; 
     
    5555#pageHeader { 
    5656        position:relative; 
    57         height:4em; 
    5857        margin:0; 
    5958        padding:0; 
     
    8079 
    8180#pageHeader h2 { 
    82   font-size:20px; 
     81  font-size:23px; 
    8382  color:#ffffff; 
    84   text-align:right; 
     83  text-align:center; 
    8584  margin:0; 
    8685  padding:0.5em; 
     
    128127        margin-right:0.75em; 
    129128        margin-left:0.75em; 
    130         height:1.4em; 
     129        vertical-align: middle; 
    131130} 
    132131 
     
    213212} 
    214213 
     214.texte ul { 
     215        list-style: none outside none; 
     216} 
     217 
     218.texte ul li { 
     219    background: url(../images/utils/bullet_arrow.gif) no-repeat scroll 0 50% transparent; 
     220    display: inline; 
     221    padding: 0 0 0 10px; 
     222} 
     223 
    215224#nav a { 
    216225        color:#ffffff; 
     
    227236        right:0; 
    228237        margin:0.75em; 
    229         margin-right:0.75em; 
     238/*      margin-right:0.75em; 
    230239        margin-left:0.75em; 
    231         height:1em; 
    232 } 
    233  
    234 #blabla { 
     240        height:1em;*/ 
     241} 
     242 
     243#corpsPage { 
    235244        position:relative; 
    236245        top:-1em; 
     
    248257        text-transform:uppercase; 
    249258        color:#04155D; 
    250         padding:0.5em; 
     259        padding:0.5em 0.5em 0; 
    251260        _margin:0.5em; 
    252261} 
     
    254263#txt { 
    255264        position:relative; 
    256         padding:1em; 
     265        padding:0 1em 1em; 
    257266        color:#000000; 
    258267        text-align:justify; 
     
    274283        font-size: 12px; 
    275284        /*float:left;*/ 
    276 } 
    277  
    278 #copyright { 
    279         position:relative; 
    280         text-align:left; 
    281285        color:#ffffff; 
    282286        padding:0.5em; 
    283         float:left; 
    284 } 
    285  
    286 #datestamp { 
    287         position:relative; 
    288         float:right; 
    289         text-align:right; 
    290         font-style:italic; 
    291         color:#ffffff; 
    292         padding:0.5em; 
    293 } 
     287} 
  • ether_megapoli/trunk/web/resources/css/megapoli.css

    r89 r140  
    1010 
    1111#txt .legende { 
    12         text-align:center; 
    1312        font-style:italic; 
    1413        color:#6178BC; 
     
    133132        text-align:right; 
    134133} 
     134 
     135.titleBox { 
     136        font-size: 15px; 
     137        color: blue; 
     138} 
     139 
     140.titleType { 
     141        font-size: 11px; 
     142        font-weight: bold; 
     143        color:#806159; 
     144} 
     145 
     146.smallButton { 
     147        font-size: 8px; 
     148        width: 15px; 
     149} 
  • ether_megapoli/trunk/web/resources/js/maj.js

    r89 r140  
    186186                                                '<option value="C2H4 (Ethylene)">C2H4 (Ethylene)</option>'+ 
    187187                                                '<option value="C2H6 (Ethane)">C2H6 (Ethane)</option>'+ 
    188                                                 '<option value="C3H6 (Propylene) ">C3H6 (Propylene) </option>'+ 
     188                                                '<option value="C3H6 (Propylene)">C3H6 (Propylene)</option>'+ 
    189189                                                '<option value="C3H8 (Propane)">C3H8 (Propane)</option>'+ 
    190190                                                '<option value="i-C4H10 (Iso-butane)">i-C4H10 (Iso-butane)</option>'+ 
     
    265265        } 
    266266} 
     267 
     268function selectElem(checked,idNb) { 
     269        var str = document.getElementById(idNb).innerHTML; 
     270        var nbElems = parseInt(str.substring(1,str.indexOf(")"))); 
     271        if (checked) 
     272                nbElems++; 
     273        else 
     274                nbElems--; 
     275        document.getElementById(idNb).innerHTML = "("+nbElems+")"; 
     276        if (nbElems == 0) { 
     277                document.getElementById(idNb).style.visibility = "hidden"; 
     278                document.getElementById(idNb).style.display = "none"; 
     279        } else { 
     280                document.getElementById(idNb).style.visibility = "visible"; 
     281                document.getElementById(idNb).style.display = ""; 
     282        } 
     283} 
     284 
     285function affPlat(typePlat) { 
     286        var div = document.getElementById("listPlateformes"); 
     287        var tables = div.getElementsByTagName("table"); 
     288        var plus = document.getElementById("plusPlat_"+typePlat); 
     289        for (var numsel = 0; numsel < tables.length ; numsel++) { 
     290                var idTable = tables[numsel].id; 
     291                if (idTable.substring(0,idTable.lastIndexOf("_")) == "plat_"+typePlat) { 
     292                        // On appuie sur + : on déploie l'arborescence 
     293                        if (plus.value == "+") { 
     294                                tables[numsel].style.visibility = "visible"; 
     295                                tables[numsel].style.display = ""; 
     296                        } 
     297                        // On appuie sur - : on replie l'arborescence 
     298                        else { 
     299                                tables[numsel].style.visibility = "hidden"; 
     300                                tables[numsel].style.display = "none"; 
     301                        } 
     302                } 
     303        } 
     304        if (plus.value == "+") plus.value = "-"; 
     305        else plus.value = "+"; 
     306} 
     307 
     308function affJeu(catJeu) { 
     309        var div = document.getElementById("listJeux"); 
     310        var tables = div.getElementsByTagName("table"); 
     311        var plus = document.getElementById("plusJeu_"+catJeu); 
     312        for (var numsel = 0; numsel < tables.length ; numsel++) { 
     313                var idTable = tables[numsel].id; 
     314                 
     315                if (idTable.substring(0,idTable.lastIndexOf("_")) == "jeu_"+catJeu) { 
     316                        // On appuie sur + : on déploie l'arborescence 
     317                        if (plus.value == "+") { 
     318                                tables[numsel].style.visibility = "visible"; 
     319                                tables[numsel].style.display = ""; 
     320                        } 
     321                        // On appuie sur - : on replie l'arborescence 
     322                        else { 
     323                                tables[numsel].style.visibility = "hidden"; 
     324                                tables[numsel].style.display = "none"; 
     325                        } 
     326                } 
     327        } 
     328        if (plus.value == "+") plus.value = "-"; 
     329        else plus.value = "+"; 
     330} 
     331 
     332function affCapt(typeCapt) { 
     333        var div = document.getElementById("listCapteurs"); 
     334        var tables = div.getElementsByTagName("table"); 
     335        var plus = document.getElementById("plusCapt_"+typeCapt); 
     336        for (var numsel = 0; numsel < tables.length ; numsel++) { 
     337                var idTable = tables[numsel].id; 
     338                if (idTable.substring(0,idTable.lastIndexOf("_")) == "capt_"+typeCapt) { 
     339                        // On appuie sur + : on déploie l'arborescence 
     340                        if (plus.value == "+") { 
     341                                tables[numsel].style.visibility = "visible"; 
     342                                tables[numsel].style.display = ""; 
     343                        } 
     344                        // On appuie sur - : on replie l'arborescence 
     345                        else { 
     346                                tables[numsel].style.visibility = "hidden"; 
     347                                tables[numsel].style.display = "none"; 
     348                        } 
     349                } 
     350        } 
     351        if (plus.value == "+") plus.value = "-"; 
     352        else plus.value = "+"; 
     353} 
     354 
     355function affParam(idCat1,idCat2,idCat3,idCat4,level,signe) { 
     356        var strCatParam = idCat1+"-"+idCat2+"-"+idCat3+"-"+idCat4; 
     357        var plus = document.getElementById("plusParam_"+strCatParam); 
     358        if (signe == "+") plus.value = "-"; 
     359        else plus.value = "+"; 
     360        level++; 
     361        var div = document.getElementById("listParametres"); 
     362        var divCats = div.getElementsByTagName("div"); 
     363        var tables = div.getElementsByTagName("table"); 
     364        var debCat = strCatParam; 
     365        if (level == 4) debCat = idCat1+"-"+idCat2+"-"+idCat3; 
     366        else if (level == 3) debCat = idCat1+"-"+idCat2; 
     367        else if (level == 2) debCat = idCat1; 
     368        // Ouverture/Fermeture des catégories 
     369        for (var numsel = 0; numsel < divCats.length ; numsel++) { 
     370                var idDiv = divCats[numsel].id; 
     371                if (idDiv != "catParam_"+strCatParam && idDiv.search("catParam_"+debCat) != -1) { 
     372                        // On appuie sur + : on déploie l'arborescence 
     373                        if (signe == "+") { 
     374                                if (level == 4 || 
     375                                                (level == 3 && idDiv.search("-0") != -1) || 
     376                                                (level == 2 && idDiv.search("-0-0") != -1)) { 
     377                                        divCats[numsel].style.visibility = "visible"; 
     378                                        divCats[numsel].style.display = ""; 
     379                                } 
     380                        } 
     381                        // On appuie sur - : on replie l'arborescence 
     382                        else { 
     383                                divCats[numsel].style.visibility = "hidden"; 
     384                                divCats[numsel].style.display = "none"; 
     385                                var plus2 = document.getElementById("plusParam_"+idDiv.substring(idDiv.indexOf("_")+1)); 
     386                                plus2.value = "+"; 
     387                        } 
     388                } 
     389        } 
     390        // Ouverture/Fermeture des paramÚtres 
     391        for (var numtab = 0; numtab < tables.length ; numtab++) { 
     392                var idTable = tables[numtab].id; 
     393                if (idTable.search("param_"+debCat) != -1) { 
     394                        // On appuie sur + : on déploie l'arborescence 
     395                        if (signe == "+") { 
     396                                if (level > 4 || 
     397                                                (level == 4  && idTable.search("-0") != -1) || 
     398                                                (level == 3 && idTable.search("-0-0") != -1) || 
     399                                                (level == 2 && idTable.search("-0-0-0") != -1)) { 
     400                                        tables[numtab].style.visibility = "visible"; 
     401                                        tables[numtab].style.display = ""; 
     402                                } 
     403                        } 
     404                        // On appuie sur - : on replie l'arborescence 
     405                        else { 
     406                                tables[numtab].style.visibility = "hidden"; 
     407                                tables[numtab].style.display = "none"; 
     408                        } 
     409                } 
     410        } 
     411} 
     412 
     413function resetExtractForm() { 
     414        selAll(false,'selectCapts','nbCaptsTxt'); 
     415        selAll(false,'selectPlats','nbPlatsTxt'); 
     416        selAll(false,'selectJeux','nbJeuxTxt'); 
     417        selAll(false,'selectParams','nbParamsTxt'); 
     418//      var inputs = document.getElementsByTagName('input'); 
     419//      for (var num = 0; num < inputs.length ; num++) { 
     420//              if (inputs[num].type == "checkbox") { 
     421//                      inputs[num].checked = false; 
     422//              } 
     423//      } 
     424} 
     425 
     426function selAll(check,selId,idNb) { 
     427        var checkboxes = document.getElementsByName(selId); 
     428        // Si case cochée, on sélectionne tout 
     429        if (check) { 
     430                for (var numsel = 0; numsel < checkboxes.length ; numsel++) { 
     431                        checkboxes[numsel].checked = true; 
     432                } 
     433                document.getElementById(idNb).innerHTML = "("+checkboxes.length+")"; 
     434                document.getElementById(idNb).style.visibility = "visible"; 
     435                document.getElementById(idNb).style.display = ""; 
     436        } 
     437        // Si case décochée, on désélectionne tout et on cache le (0) 
     438        else { 
     439                for (var numsel = 0; numsel < checkboxes.length ; numsel++) { 
     440                        checkboxes[numsel].checked = false; 
     441                } 
     442                document.getElementById(idNb).innerHTML = "(0)"; 
     443                document.getElementById(idNb).style.visibility = "hidden"; 
     444                document.getElementById(idNb).style.display = "none"; 
     445        } 
     446} 
Note: See TracChangeset for help on using the changeset viewer.