Line 1... |
Line 1... |
1 |
<?
|
1 |
<?php
|
2 |
/*vim: set expandtab tabstop=4 shiftwidth=4: */
|
2 |
/*vim: set expandtab tabstop=4 shiftwidth=4: */
|
3 |
// +------------------------------------------------------------------------------------------------------+
|
3 |
// +------------------------------------------------------------------------------------------------------+
|
4 |
// | PHP version 5.0 |
|
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 eFlore-Serveur. |
|
9 |
// | |
|
9 |
// | |
|
Line 34... |
Line 34... |
34 |
//Auteur original :
|
34 |
//Auteur original :
|
35 |
*@author Frédéric LEGENS <flegens@free.fr>
|
35 |
*@author Frédéric LEGENS <flegens@free.fr>
|
36 |
//Autres auteurs :
|
36 |
//Autres auteurs :
|
37 |
*@author Aucun
|
37 |
*@author Aucun
|
38 |
*@copyright Tela-Botanica 2000-2004
|
38 |
*@copyright Tela-Botanica 2000-2004
|
39 |
*@version $Revision: 1.1 $ $Date: 2004-12-22 23:28:47 $
|
39 |
*@version $Revision: 1.2 $ $Date: 2004-12-23 15:43:37 $
|
40 |
// +------------------------------------------------------------------------------------------------------+
|
40 |
// +------------------------------------------------------------------------------------------------------+
|
41 |
*/
|
41 |
*/
|
Line 42... |
Line 42... |
42 |
|
42 |
|
43 |
// +------------------------------------------------------------------------------------------------------+
|
43 |
// +------------------------------------------------------------------------------------------------------+
|
Line 84... |
Line 84... |
84 |
</tree>
|
84 |
</tree>
|
85 |
<button label="Compiler macroelements" onclick="compileSelection('listemacroelements')"/>
|
85 |
<button label="Compiler macroelements" onclick="compileSelection('listemacroelements')"/>
|
86 |
<button label="Compiler groupes" onclick="compileSelection('groupesmacroelements')"/>
|
86 |
<button label="Compiler groupes" onclick="compileSelection('groupesmacroelements')"/>
|
87 |
</vbox>
|
87 |
</vbox>
|
88 |
</window>
|
88 |
</window>
|
89 |
<?
|
89 |
<?php
|
90 |
// +------------------------------------------------------------------------------------------------------+
|
90 |
// +------------------------------------------------------------------------------------------------------+
|
91 |
// | LISTE de FONCTIONS |
|
91 |
// | LISTE de FONCTIONS |
|
92 |
// +------------------------------------------------------------------------------------------------------+
|
92 |
// +------------------------------------------------------------------------------------------------------+
|
93 |
function ecrirelisteFichier($chemin,$type)
|
93 |
function ecrirelisteFichier($chemin, $type)
|
94 |
{
|
94 |
{
|
95 |
$repertoire = openDir($chemin);
|
95 |
$repertoire = openDir($chemin);
|
96 |
while ($fichier = readDir($repertoire))
|
96 |
while ($fichier = readDir($repertoire)) {
|
97 |
{
|
- |
|
98 |
if (($fichier !='.') && ($fichier !='..') && ($fichier!='CVS'))
|
97 |
if (($fichier != '.') && ($fichier != '..') && ($fichier != 'CVS')) {
|
99 |
{
|
- |
|
100 |
echo "<treeitem><treerow>";
|
98 |
echo '<treeitem><treerow>';
|
101 |
echo "<treecell label='$fichier' src='../definitions/$type/$fichier'/>";
|
99 |
echo '<treecell label="'.$fichier.'" src="../definitions/'.$type.'/'.$fichier.'"/>';
|
102 |
echo "</treerow></treeitem>";
|
100 |
echo '</treerow></treeitem>';
|
103 |
}
|
101 |
}
|
104 |
}
|
102 |
}
|
105 |
closeDir($repertoire);
|
103 |
closeDir($repertoire);
|
106 |
}
|
104 |
}
|
Line 107... |
Line -... |
107 |
|
- |
|
108 |
|
105 |
|
109 |
function ecrireFichierMap()
|
106 |
function ecrireFichierMap()
|
110 |
{
|
107 |
{
|
111 |
$fichierServicesMap = fopen('..\\'.$appConfig['service_map'],"r");
|
108 |
$fichierServicesMap = fopen('..\\'.$appConfig['service_map'], 'r');
|
112 |
$ligne = 0;
|
109 |
$ligne = 0;
|
113 |
while($donnee=fscanf($fichierServicesMap,"%s\t%s\t%s\t%s\t%s\t%s",$keyName,$serviceName,$viewName,$schema,$ratio,$style))
|
- |
|
114 |
{
|
110 |
while($donnee = fscanf($fichierServicesMap,"%s\t%s\t%s\t%s\t%s\t%s", $keyName, $serviceName, $viewName, $schema, $ratio, $style)) {
|
115 |
$ligne++;
|
111 |
$ligne++;
|
116 |
if ($ligne>1)
|
- |
|
- |
|
112 |
if ($ligne > 1) {
|
117 |
{
|
113 |
echo '<listitem><listcell label="'.$keyName.'"/><listcell label="'.$serviceName.'"/>'.
|
- |
|
114 |
'<listcell label="'.$viewName.'"/><listcell label="'.$schema.'"/><listcell label="'.$ratio.'"/>'.
|
118 |
echo "<listitem><listcell label='$keyName'/><listcell label='$serviceName'/><listcell label='$viewName'/><listcell label='$schema'/><listcell label='$ratio'/><listcell label='$style'/></listitem>";
|
115 |
'<listcell label="'.$style.'"/></listitem>';
|
119 |
}
|
116 |
}
|
120 |
}
|
117 |
}
|
121 |
fclose($fichierServicesMap);
|
118 |
fclose($fichierServicesMap);
|
Line 122... |
Line 119... |
122 |
}
|
119 |
}
|
123 |
|
120 |
|
124 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
121 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
- |
|
122 |
*
|
- |
|
123 |
* $Log: not supported by cvs2svn $
|
- |
|
124 |
* Revision 1.1 2004/12/22 23:28:47 fred
|
125 |
*
|
125 |
* création de l'éditeur
|
126 |
* $Log: not supported by cvs2svn $
|
126 |
*
|
127 |
*
|
127 |
*
|
128 |
* +-- Fin du code ----------------------------------------------------------------------------------------+
|
128 |
* +-- Fin du code ----------------------------------------------------------------------------------------+
|
129 |
*/
|
- |
|
130 |
?>
|
- |
|