data = array(); if($pmb_lecteurs_localises){ $condion_loc=" AND empr_location='".$deflt2docs_location."' "; }else{ $condion_loc=""; } // comptage des emprunteurs proche d'expiration d'abonnement $query = " SELECT 1 FROM empr where ((to_days(empr_date_expiration) - to_days(now()) ) <= $pmb_relance_adhesion ) and empr_date_expiration >= now() ".$condion_loc." limit 1"; if($this->is_num_rows_from_query($query)) { $this->add_data('empr', 'empr_expir_pro', 'limite'); } if (!$empr_statut_adhes_depassee) $empr_statut_adhes_depassee=2; // comptage des emprunteurs expiration d'abonnement $query = "SELECT 1 FROM empr where empr_statut!=$empr_statut_adhes_depassee and empr_date_expiration < now() ".$condion_loc." limit 1"; if($this->is_num_rows_from_query($query)) { $this->add_data('empr', 'empr_expir_att', 'depasse'); } } }