Subversion Repositories Applications.bazar

Compare Revisions

Ignore whitespace Rev 43 → Rev 44

/trunk/bibliotheque/bazar.fonct.php
19,7 → 19,7
// | License along with this library; if not, write to the Free Software |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
// +------------------------------------------------------------------------------------------------------+
// CVS : $Id: bazar.fonct.php,v 1.13 2005-10-21 16:15:04 florian Exp $
// CVS : $Id: bazar.fonct.php,v 1.14 2005-11-07 08:48:02 florian Exp $
/**
*
* Fonctions du module bazar
30,7 → 30,7
*@author Florian Schmitt <florian@ecole-et-nature.org>
//Autres auteurs :
*@copyright Tela-Botanica 2000-2004
*@version $Revision: 1.13 $ $Date: 2005-10-21 16:15:04 $
*@version $Revision: 1.14 $ $Date: 2005-11-07 08:48:02 $
// +------------------------------------------------------------------------------------------------------+
*/
 
767,7 → 767,7
$val=$valeur[$tableau[$i]['nom_bdd']]['Y'].'-'.$valeur[$tableau[$i]['nom_bdd']]['m'].'-'.$valeur[$tableau[$i]['nom_bdd']]['d'];
}
else {
$val=stripslashes($valeur[$tableau[$i]['nom_bdd']]);
$val=addslashes(baz_unhtmlentities($valeur[$tableau[$i]['nom_bdd']]));
}
$requete.=$tableau[$i]['nom_bdd'].'="'.$val.'", ';
}
787,7 → 787,7
*/
function baz_insertion($valeur) {
// Récupération de bn_appropriation
// Recuperation de bn_appropriation
$requete_app = 'select bn_appropriation from bazar_nature where bn_id_nature='.$GLOBALS['_BAZAR_']['id_typeannonce'] ;
$resultat_app = $GLOBALS['_BAZAR_']['db']->query($requete_app) ;
1330,42 → 1330,12
return $ligne->maxi + 1 ;
}
 
function encoderChaine($chaine)
{
$entites = array(
'?' => '&#8218;',
'?' => '&#402;',
'?' => '&#8222;',
'?' => '&#8230;',
'?' => '&#8224;',
'?' => '&#8225;',
'?' => '&#710;',
'?' => '&#8240;',
'à' => '&#352;',
'?' => '&#8249;',
'à' => '&#338;',
'?' => '&#8216;',
'?' => '&#8217;',
'?' => '&#8220;',
'?' => '&#8221;',
'?' => '&#8226;',
'?' => '&#8211;',
'?' => '&#8212;',
'?' => '&#732;',
'?' => '&#8482;',
'à' => '&#353;',
'?' => '&#8250;',
'à' => '&#339;',
'à' => '&#376;',
'à' => '&#8364;');
return str_replace(array_keys($entites),
array_values($entites),
$chaine);
}
 
/* +--Fin du code ----------------------------------------------------------------------------------------+
*
* $Log: not supported by cvs2svn $
* Revision 1.13 2005/10/21 16:15:04 florian
* mise a jour appropriation
*
* Revision 1.11 2005/10/12 17:20:33 ddelon
* Reorganisation calendrier + applette
*