Line 3... |
Line 3... |
3 |
// +------------------------------------------------------------------------------------------------------+
|
3 |
// +------------------------------------------------------------------------------------------------------+
|
4 |
// | PHP version 5.0.3 |
|
4 |
// | PHP version 5.0.3 |
|
5 |
// +------------------------------------------------------------------------------------------------------+
|
5 |
// +------------------------------------------------------------------------------------------------------+
|
6 |
// | Copyright (C) 2004 Tela Botanica (accueil@tela-botanica.org) |
|
6 |
// | Copyright (C) 2004 Tela Botanica (accueil@tela-botanica.org) |
|
7 |
// +------------------------------------------------------------------------------------------------------+
|
7 |
// +------------------------------------------------------------------------------------------------------+
|
8 |
// | This file is part of eFlore-Serveur. |
|
8 |
// | This file is part of Serveur eRibosome. |
|
9 |
// | |
|
9 |
// | |
|
10 |
// | Foobar is free software; you can redistribute it and/or modify |
|
10 |
// | Foobar is free software; you can redistribute it and/or modify |
|
11 |
// | it under the terms of the GNU General Public License as published by |
|
11 |
// | it under the terms of the GNU General Public License as published by |
|
12 |
// | the Free Software Foundation; either version 2 of the License, or |
|
12 |
// | the Free Software Foundation; either version 2 of the License, or |
|
13 |
// | (at your option) any later version. |
|
13 |
// | (at your option) any later version. |
|
Line 21... |
Line 21... |
21 |
// | along with Foobar; if not, write to the Free Software |
|
21 |
// | along with Foobar; if not, write to the Free Software |
|
22 |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
22 |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
23 |
// +------------------------------------------------------------------------------------------------------+
|
23 |
// +------------------------------------------------------------------------------------------------------+
|
24 |
//
|
24 |
//
|
25 |
/**
|
25 |
/**
|
26 |
* Fichier principal du generateur d'eFlore-Serveur
|
26 |
* Fichier principal du generateur du serveur eRibosome.
|
27 |
*
|
27 |
*
|
28 |
* Ce fichier presente les macro-elements, groupes de macro-elements, ainsi que
|
28 |
* Ce fichier presente les macro-elements, groupes de macro-elements, ainsi que
|
29 |
* la map des services disponibles et permet de lancer leurs
|
29 |
* la map des services disponibles et permet de lancer leurs
|
30 |
* traductions en php
|
30 |
* traductions en php
|
31 |
* Abréviation du programme : EFSE
|
31 |
* Abréviation du programme : ERIBO
|
32 |
*
|
32 |
*
|
- |
|
33 |
*@package eRibosome
|
33 |
*@package eFlore-Serveur
|
34 |
*@subpackage Generateur
|
34 |
//Auteur original :
|
35 |
//Auteur original :
|
35 |
*@author Frédéric LEGENS <flegens@free.fr>
|
36 |
*@author Frédéric LEGENS <flegens@free.fr>
|
36 |
//Autres auteurs :
|
37 |
//Autres auteurs :
|
37 |
*@author Aucun
|
38 |
*@author Aucun
|
38 |
*@copyright Tela-Botanica 2000-2004
|
39 |
*@copyright Tela-Botanica 2000-2004
|
39 |
*@version $Revision: 1.5 $ $Date: 2004-12-23 15:45:48 $
|
40 |
*@version $Revision: 1.6 $ $Date: 2005-01-19 15:43:40 $
|
40 |
// +------------------------------------------------------------------------------------------------------+
|
41 |
// +------------------------------------------------------------------------------------------------------+
|
41 |
*/
|
42 |
*/
|
Line 42... |
Line 43... |
42 |
|
43 |
|
43 |
// +------------------------------------------------------------------------------------------------------+
|
44 |
// +------------------------------------------------------------------------------------------------------+
|
44 |
// | ENTETE du PROGRAMME |
|
45 |
// | ENTETE du PROGRAMME |
|
Line 45... |
Line 46... |
45 |
// +------------------------------------------------------------------------------------------------------+
|
46 |
// +------------------------------------------------------------------------------------------------------+
|
Line 46... |
Line 47... |
46 |
|
47 |
|
47 |
require_once '../configuration/eflore_config_avancee.inc.php';
|
48 |
require_once '../configuration/eribo_config_avancee.inc.php';
|
48 |
|
49 |
|
Line 56... |
Line 57... |
56 |
|
57 |
|
Line 57... |
Line 58... |
57 |
?>
|
58 |
?>
|
58 |
|
59 |
|
59 |
<!DOCTYPE window>
|
60 |
<!DOCTYPE window>
|
60 |
<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" >
|
61 |
<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" >
|
61 |
<script type="application/x-javascript" src="eflore_generateur.js" />
|
62 |
<script type="application/x-javascript" src="eribo_generateur.js" />
|
62 |
<hbox flex="1">
|
63 |
<hbox flex="1">
|
63 |
<vbox flex="1">
|
64 |
<vbox flex="1">
|
64 |
<label value="Macro Elements"/>
|
65 |
<label value="Macro Elements"/>
|
Line 115... |
Line 116... |
115 |
function ecrirelisteFichier($chemin)
|
116 |
function ecrirelisteFichier($chemin)
|
116 |
{
|
117 |
{
|
117 |
$repertoire = openDir($chemin);
|
118 |
$repertoire = openDir($chemin);
|
118 |
while ($fichier = readDir($repertoire)) {
|
119 |
while ($fichier = readDir($repertoire)) {
|
119 |
if (($fichier !='.') && ($fichier !='..')) {
|
120 |
if (($fichier !='.') && ($fichier !='..')) {
|
120 |
echo "<listitem label='$fichier'/>";
|
121 |
echo '<listitem label="'.$fichier.'"/>';
|
121 |
}
|
122 |
}
|
122 |
}
|
123 |
}
|
123 |
closeDir($repertoire);
|
124 |
closeDir($repertoire);
|
124 |
}
|
125 |
}
|
Line 128... |
Line 129... |
128 |
$fichierServicesMap = fopen(EFSE_CHEMIN_GENERATEUR_RACINE.EFSE_FICHIER_MAP, 'r');
|
129 |
$fichierServicesMap = fopen(EFSE_CHEMIN_GENERATEUR_RACINE.EFSE_FICHIER_MAP, 'r');
|
129 |
$ligne = 0;
|
130 |
$ligne = 0;
|
130 |
while($donnee=fscanf($fichierServicesMap,"%s\t%s\t%s\t%s\t%s\t%s", $keyName, $serviceName, $viewName, $schema, $ratio, $style)) {
|
131 |
while($donnee = fscanf($fichierServicesMap,"%s\t%s\t%s\t%s\t%s\t%s", $keyName, $serviceName, $viewName, $schema, $ratio, $style)) {
|
131 |
$ligne++;
|
132 |
$ligne++;
|
132 |
if ($ligne>1) {
|
133 |
if ($ligne > 1) {
|
133 |
echo "<listitem><listcell label='$keyName'/><listcell label='$serviceName'/><listcell label='$viewName'/><listcell label='$schema'/><listcell label='$ratio'/><listcell label='$style'/></listitem>";
|
134 |
echo '<listitem><listcell label="'.$keyName.'"/><listcell label="'.$serviceName.'"/><listcell label="'.$viewName.'"/><listcell label="'.$schema.'"/><listcell label="'.$ratio.'"/><listcell label="'.$style.'"/></listitem>';
|
134 |
}
|
135 |
}
|
135 |
}
|
136 |
}
|
136 |
fclose($fichierServicesMap);
|
137 |
fclose($fichierServicesMap);
|
137 |
}
|
138 |
}
|
Line 138... |
Line 139... |
138 |
|
139 |
|
139 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
140 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
140 |
*
|
141 |
*
|
- |
|
142 |
* $Log: not supported by cvs2svn $
|
- |
|
143 |
* Revision 1.5 2004/12/23 15:45:48 jpm
|
- |
|
144 |
* Changement de version de PHP.
|
141 |
* $Log: not supported by cvs2svn $
|
145 |
*
|
142 |
* Revision 1.4 2004/12/23 15:22:15 jpm
|
146 |
* Revision 1.4 2004/12/23 15:22:15 jpm
|
143 |
* Modification du fichier de config appelé.
|
147 |
* Modification du fichier de config appelé.
|
144 |
*
|
148 |
*
|
145 |
* Revision 1.3 2004/12/22 23:29:01 fred
|
149 |
* Revision 1.3 2004/12/22 23:29:01 fred
|