Subversion Repositories Applications.papyrus

Compare Revisions

Ignore whitespace Rev 1152 → Rev 1153

/trunk/papyrus/bibliotheque/fonctions/pap_menu.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: pap_menu.fonct.php,v 1.29 2006-12-12 13:32:58 jp_milcent Exp $
// CVS : $Id: pap_menu.fonct.php,v 1.30 2006-12-12 17:19:58 jp_milcent Exp $
/**
* Bibliothèque de fonction sur le rendu.
*
32,7 → 32,7
//Autres auteurs :
*@author Alexandre GRANIER <alexadandre@tela-botanica.org>
*@copyright Tela-Botanica 2000-2004
*@version $Revision: 1.29 $ $Date: 2006-12-12 13:32:58 $
*@version $Revision: 1.30 $ $Date: 2006-12-12 17:19:58 $
// +------------------------------------------------------------------------------------------------------+
*/
 
553,18 → 553,24
'FROM gen_menu '.
'WHERE ';
for ($i = 0; $i < count($tab_mots); $i++) {
if ($i == 0) {
$requete .= 'gm_mots_cles LIKE "%'.$tab_mots[$i].'%" ';
} else {
$requete .= $condition.' gm_mots_cles LIKE "%'.$tab_mots[$i].'%" ';
if ($tab_mots[$i] != '') {
if ($i == 0) {
$requete .= 'gm_mots_cles LIKE "%'.$tab_mots[$i].'%" ';
} else {
$requete .= $condition.' gm_mots_cles LIKE "%'.$tab_mots[$i].'%" ';
}
}
}
if (count($tab_mots) != 0) $requete .= 'AND ' ;
if (count($tab_mots) != 0 && $tab_cat[0] != '') {
$requete .= 'AND ' ;
}
for ($i = 0; $i < count($tab_cat); $i++) {
if ($i == 0) {
$requete .= 'gm_categorie LIKE "%'.$tab_cat[$i].'%" ';
} else {
$requete .= $condition2.' gm_categorie LIKE "%'.$tab_cat[$i].'%" ';
if ($tab_cat[$i] != '') {
if ($i == 0) {
$requete .= 'gm_categorie LIKE "%'.$tab_cat[$i].'%" ';
} else {
$requete .= $condition2.' gm_categorie LIKE "%'.$tab_cat[$i].'%" ';
}
}
}
$requete .= 'ORDER BY gm_date_creation '.$ordre;
646,7 → 652,7
$type_modif.
$categorie.
'ORDER BY gmc_date_modification DESC';
 
$aso_info =& $db->getAssoc($requete, false, array(), $mode, $groupe);
(PEAR::isError($aso_info)) ? die(BOG_afficherErreurSql(__FILE__, __LINE__, $aso_info->getMessage(), $requete)) : '';
 
922,6 → 928,9
 
/* +--Fin du code ---------------------------------------------------------------------------------------+
* $Log: not supported by cvs2svn $
* Revision 1.29 2006/12/12 13:32:58 jp_milcent
* Mise en forme.
*
* Revision 1.28 2006/12/08 20:13:57 jp_milcent
* Mise en allias de GEN_rechercherMenuCode(), remplacée par GEN_retournerIdMenuParCodeNum().
*