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.php,v 1.50 2006-06-21 08:37:59 alexandre_tb Exp $
|
22 |
// CVS : $Id: bazar.fonct.php,v 1.51 2006-07-18 14:17:32 alexandre_tb Exp $
|
23 |
/**
|
23 |
/**
|
24 |
*
|
24 |
*
|
25 |
* Fonctions du module bazar
|
25 |
* Fonctions du module bazar
|
26 |
*
|
26 |
*
|
27 |
*
|
27 |
*
|
Line 29... |
Line 29... |
29 |
//Auteur original :
|
29 |
//Auteur original :
|
30 |
*@author Alexandre Granier <alexandre@tela-botanica.org>
|
30 |
*@author Alexandre Granier <alexandre@tela-botanica.org>
|
31 |
*@author Florian Schmitt <florian@ecole-et-nature.org>
|
31 |
*@author Florian Schmitt <florian@ecole-et-nature.org>
|
32 |
//Autres auteurs :
|
32 |
//Autres auteurs :
|
33 |
*@copyright Tela-Botanica 2000-2004
|
33 |
*@copyright Tela-Botanica 2000-2004
|
34 |
*@version $Revision: 1.50 $ $Date: 2006-06-21 08:37:59 $
|
34 |
*@version $Revision: 1.51 $ $Date: 2006-07-18 14:17:32 $
|
35 |
// +------------------------------------------------------------------------------------------------------+
|
35 |
// +------------------------------------------------------------------------------------------------------+
|
36 |
*/
|
36 |
*/
|
Line 37... |
Line 37... |
37 |
|
37 |
|
38 |
// +------------------------------------------------------------------------------------------------------+
|
38 |
// +------------------------------------------------------------------------------------------------------+
|
Line 476... |
Line 476... |
476 |
$GLOBALS['_BAZAR_']['template']=$ligne['bn_template'];
|
476 |
$GLOBALS['_BAZAR_']['template']=$ligne['bn_template'];
|
477 |
$GLOBALS['_BAZAR_']['commentaire']=$ligne['bn_commentaire'];
|
477 |
$GLOBALS['_BAZAR_']['commentaire']=$ligne['bn_commentaire'];
|
478 |
$GLOBALS['_BAZAR_']['appropriation']=$ligne['bn_appropriation'];
|
478 |
$GLOBALS['_BAZAR_']['appropriation']=$ligne['bn_appropriation'];
|
479 |
$GLOBALS['_BAZAR_']['image_titre']=$ligne['bn_image_titre'];
|
479 |
$GLOBALS['_BAZAR_']['image_titre']=$ligne['bn_image_titre'];
|
480 |
$GLOBALS['_BAZAR_']['image_logo']=$ligne['bn_image_logo'];
|
480 |
$GLOBALS['_BAZAR_']['image_logo']=$ligne['bn_image_logo'];
|
481 |
$mode = BAZ_ACTION_NOUVEAU;
|
481 |
$mode = BAZ_ACTION_NOUVEAU;
|
- |
|
482 |
$lien_formulaire->addQueryString('action', BAZ_ACTION_NOUVEAU_V);
|
- |
|
483 |
|
482 |
} else {
|
484 |
} else {
|
483 |
$res.='<br />'.BAZ_CHOIX_TYPEANNONCE.'<br /><br />'."\n";
|
485 |
$res.='<br />'.BAZ_CHOIX_TYPEANNONCE.'<br /><br />'."\n";
|
484 |
while ($ligne = $resultat->fetchRow (DB_FETCHMODE_ASSOC)) {
|
486 |
while ($ligne = $resultat->fetchRow (DB_FETCHMODE_ASSOC)) {
|
485 |
$droitspers=niveau_droit($ligne["bn_id_nature"],$GLOBALS["id_user"]);
|
487 |
$droitspers=niveau_droit($ligne["bn_id_nature"],$GLOBALS["id_user"]);
|
486 |
if (($droitspers=='redacteur') or ($droitspers=='administrateur')
|
488 |
if (($droitspers=='redacteur') or ($droitspers=='administrateur')
|
Line 513... |
Line 515... |
513 |
//------------------------------------------------------------------------------------------------
|
515 |
//------------------------------------------------------------------------------------------------
|
514 |
//AFFICHAGE DU FORMULAIRE CORRESPONDANT AU TYPE DE L'ANNONCE CHOISI PAR L'UTILISATEUR
|
516 |
//AFFICHAGE DU FORMULAIRE CORRESPONDANT AU TYPE DE L'ANNONCE CHOISI PAR L'UTILISATEUR
|
515 |
//------------------------------------------------------------------------------------------------
|
517 |
//------------------------------------------------------------------------------------------------
|
516 |
if ($mode == BAZ_ACTION_NOUVEAU) {
|
518 |
if ($mode == BAZ_ACTION_NOUVEAU) {
|
517 |
unset ($_SESSION['formulaire_annonce_valide']) ;
|
519 |
unset ($_SESSION['formulaire_annonce_valide']) ;
|
- |
|
520 |
$lien_formulaire->addQueryString('action', BAZ_ACTION_NOUVEAU_V);
|
- |
|
521 |
$formtemplate->updateAttributes(array('action' => str_replace('&', '&', $lien_formulaire->getURL())));
|
518 |
$res = baz_afficher_formulaire_annonce('insertion',$formtemplate);
|
522 |
$res = baz_afficher_formulaire_annonce('insertion',$formtemplate);
|
519 |
}
|
523 |
}
|
Line 520... |
Line 524... |
520 |
|
524 |
|
521 |
//------------------------------------------------------------------------------------------------
|
525 |
//------------------------------------------------------------------------------------------------
|
Line 547... |
Line 551... |
547 |
}
|
551 |
}
|
548 |
}
|
552 |
}
|
549 |
else {
|
553 |
else {
|
550 |
$res .= '<h2>'.BAZ_DEPOSE_UNE_NOUVELLE_ANNONCE.'</h2><br />'."\n";
|
554 |
$res .= '<h2>'.BAZ_DEPOSE_UNE_NOUVELLE_ANNONCE.'</h2><br />'."\n";
|
551 |
$res .= '<p class="zone_info">'.BAZ_IDENTIFIEZ_VOUS_POUR_SAISIR.'</p>'."\n" ;
|
555 |
$res .= '<p class="zone_info">'.BAZ_IDENTIFIEZ_VOUS_POUR_SAISIR.'</p>'."\n" ;
|
- |
|
556 |
$res .= '<form id="form_connexion" class="form_identification" action="' ;
|
- |
|
557 |
$res .= $GLOBALS['_BAZAR_']['url']->getURL();
|
- |
|
558 |
$res .= '" method="post">
|
- |
|
559 |
<fieldset>
|
- |
|
560 |
<legend>Identifiez vous</legend>
|
- |
|
561 |
<label for="username">Courriel : </label>
|
- |
|
562 |
<input type="text" id="username" name="username" maxlength="80" tabindex="1" value="courriel" />
|
- |
|
563 |
<label for="password">Mot de passe : </label>
|
- |
|
564 |
<input type="password" id="password" name="password" maxlength="80" tabindex="2" value="mot de passe" />
|
- |
|
565 |
<input type="submit" id="connexion" name="connexion" tabindex="3" value="ok" />
|
- |
|
566 |
</fieldset>
|
- |
|
567 |
</form>';
|
552 |
}
|
568 |
}
|
553 |
return $res;
|
569 |
return $res;
|
554 |
}
|
570 |
}
|
Line 555... |
Line 571... |
555 |
|
571 |
|
Line 1203... |
Line 1219... |
1203 |
}
|
1219 |
}
|
Line 1204... |
Line 1220... |
1204 |
|
1220 |
|
1205 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
1221 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
1206 |
*
|
1222 |
*
|
- |
|
1223 |
* $Log: not supported by cvs2svn $
|
- |
|
1224 |
* Revision 1.50 2006/06/21 08:37:59 alexandre_tb
|
- |
|
1225 |
* Correction de bug, d'un appel constant (....) qui ne fonctionnais plus.
|
1207 |
* $Log: not supported by cvs2svn $
|
1226 |
*
|
1208 |
* Revision 1.49 2006/06/02 09:29:07 florian
|
1227 |
* Revision 1.49 2006/06/02 09:29:07 florian
|
1209 |
* debut d'integration de wikini
|
1228 |
* debut d'integration de wikini
|
1210 |
*
|
1229 |
*
|
1211 |
* Revision 1.48 2006/05/19 13:54:11 florian
|
1230 |
* Revision 1.48 2006/05/19 13:54:11 florian
|