| Line 17... |
Line 17... |
| 17 |
// | |
|
17 |
// | |
|
| 18 |
// | You should have received a copy of the GNU Lesser General Public |
|
18 |
// | You should have received a copy of the GNU Lesser General Public |
|
| 19 |
// | License along with this library; if not, write to the Free Software |
|
19 |
// | License along with this library; if not, write to the Free Software |
|
| 20 |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
20 |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
| 21 |
// +------------------------------------------------------------------------------------------------------+
|
21 |
// +------------------------------------------------------------------------------------------------------+
|
| 22 |
// CVS : $Id: bazar.fonct.rss.php,v 1.103 2007-12-10 12:59:34 jp_milcent Exp $
|
22 |
// CVS : $Id: bazar.fonct.rss.php,v 1.104 2007-12-14 15:58:39 alexandre_tb Exp $
|
| 23 |
/**
|
23 |
/**
|
| 24 |
*
|
24 |
*
|
| 25 |
*@package bazar
|
25 |
*@package bazar
|
| 26 |
//Auteur original :
|
26 |
//Auteur original :
|
| 27 |
*@author Alexandre GRANIER <alexandre@tela-botanica.org>
|
27 |
*@author Alexandre GRANIER <alexandre@tela-botanica.org>
|
| 28 |
*@author Florian Schmitt <florian@ecole-et-nature.org>
|
28 |
*@author Florian Schmitt <florian@ecole-et-nature.org>
|
| 29 |
//Autres auteurs :
|
29 |
//Autres auteurs :
|
| 30 |
*@copyright Tela-Botanica 2000-2006
|
30 |
*@copyright Tela-Botanica 2000-2006
|
| 31 |
*@version $Revision: 1.103 $
|
31 |
*@version $Revision: 1.104 $
|
| 32 |
// +------------------------------------------------------------------------------------------------------+
|
32 |
// +------------------------------------------------------------------------------------------------------+
|
| 33 |
*/
|
33 |
*/
|
| Line 34... |
Line 34... |
| 34 |
|
34 |
|
| 35 |
// +------------------------------------------------------------------------------------------------------+
|
35 |
// +------------------------------------------------------------------------------------------------------+
|
| Line 283... |
Line 283... |
| 283 |
}
|
283 |
}
|
| 284 |
}
|
284 |
}
|
| 285 |
}
|
285 |
}
|
| 286 |
elseif ( $tableau[$i]['type']=='wikini' ) {
|
286 |
elseif ( $tableau[$i]['type']=='wikini' ) {
|
| 287 |
$res .= '<div class="BAZ_lien_wikini BAZ_lien_wikini_'.$GLOBALS['_BAZAR_']['class'].'"><a href="wikini/'.genere_nom_wiki2($ligne["bf_titre"], TRUE).'">'.BAZ_ENTRER_PROJET.'</a></div>'."\n";
|
287 |
$res .= '<div class="BAZ_lien_wikini BAZ_lien_wikini_'.$GLOBALS['_BAZAR_']['class'].'"><a href="wikini/'.genere_nom_wiki2($ligne["bf_titre"], TRUE).'">'.BAZ_ENTRER_PROJET.'</a></div>'."\n";
|
| - |
|
288 |
} elseif ($tableau[$i]['type']=='labelhtml') {
|
| - |
|
289 |
// On ecrit le label uniquement si le champs obligatoire est a 1
|
| - |
|
290 |
if ($tableau[$i]['obligatoire'] == 1) $res .= '<div class="BAZ_label BAZ_rubrique_'.$GLOBALS['_BAZAR_']['class'].'">'.$tableau[$i]['label'].'</div>'."\n";
|
| 288 |
}
|
291 |
}
|
| 289 |
}
|
292 |
}
|
| 290 |
//afficher les liens pour l'annonce
|
293 |
//afficher les liens pour l'annonce
|
| 291 |
$requete = 'SELECT bu_url, bu_descriptif_url FROM bazar_url WHERE bu_ce_fiche='.$GLOBALS['_BAZAR_']['id_fiche'];
|
294 |
$requete = 'SELECT bu_url, bu_descriptif_url FROM bazar_url WHERE bu_ce_fiche='.$GLOBALS['_BAZAR_']['id_fiche'];
|
| 292 |
$resultat = $GLOBALS['_BAZAR_']['db']->query($requete) ;
|
295 |
$resultat = $GLOBALS['_BAZAR_']['db']->query($requete) ;
|
| Line 958... |
Line 961... |
| 958 |
labelhtml($formtemplate,'',$lien_recherche_de_base,'','','','','');
|
961 |
labelhtml($formtemplate,'',$lien_recherche_de_base,'','','','','');
|
| 959 |
}
|
962 |
}
|
| Line 960... |
Line 963... |
| 960 |
|
963 |
|
| 961 |
$tableau = baz_valeurs_template($resultat) ;
|
964 |
$tableau = baz_valeurs_template($resultat) ;
|
| 962 |
for ($i=0; $i<count($tableau); $i++) {
|
965 |
for ($i=0; $i<count($tableau); $i++) {
|
| 963 |
if (($tableau[$i]['type'] == 'liste' || $tableau[$i]['type'] == 'checkbox') && $tableau[$i]['recherche'] == 1) {
|
966 |
if (($tableau[$i]['type'] == 'liste' || $tableau[$i]['type'] == 'checkbox' || $tableau[$i]['type'] == 'labelhtml') && $tableau[$i]['recherche'] == 1) {
|
| 964 |
$tableau[$i]['type']($formtemplate, $tableau[$i]['nom_bdd'], $tableau[$i]['label'], $tableau[$i]['limite1'],
|
967 |
$tableau[$i]['type']($formtemplate, $tableau[$i]['nom_bdd'], $tableau[$i]['label'], $tableau[$i]['limite1'],
|
| 965 |
$tableau[$i]['limite2'], $tableau[$i]['defaut'], $tableau[$i]['table_source'], $tableau[$i]['obligatoire'], 1, 'bazar') ;
|
968 |
$tableau[$i]['limite2'], $tableau[$i]['defaut'], $tableau[$i]['table_source'], $tableau[$i]['obligatoire'], 1, 'bazar') ;
|
| 966 |
}
|
969 |
}
|
| Line 1242... |
Line 1245... |
| 1242 |
}
|
1245 |
}
|
| Line 1243... |
Line 1246... |
| 1243 |
|
1246 |
|
| 1244 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
1247 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
| 1245 |
*
|
1248 |
*
|
| - |
|
1249 |
* $Log: not supported by cvs2svn $
|
| - |
|
1250 |
* Revision 1.103 2007-12-10 12:59:34 jp_milcent
|
| - |
|
1251 |
* Fusion avec la livraison AHA : 10 décembre 2007
|
| 1246 |
* $Log: not supported by cvs2svn $
|
1252 |
*
|
| 1247 |
* Revision 1.99.2.5 2007-12-10 12:57:34 jp_milcent
|
1253 |
* Revision 1.99.2.5 2007-12-10 12:57:34 jp_milcent
|
| 1248 |
* Correction du problèmes des & non remplacées par des &
|
1254 |
* Correction du problèmes des & non remplacées par des &
|
| 1249 |
*
|
1255 |
*
|
| 1250 |
* Revision 1.102 2007-12-04 09:07:21 alexandre_tb
|
1256 |
* Revision 1.102 2007-12-04 09:07:21 alexandre_tb
|