document.location='".$base_path."/index.php';"; break; } $id_empr=$_SESSION['id_empr_session']; $resa_cart_display=""; foreach($notices as $notice_id){ $resa_cart_display.=""; $bulletin_id=0; //On vérifi si notre notice n'est pas une notice de bulletin. $query='SELECT bulletin_id FROM bulletins WHERE num_notice='.$notice_id; $result = mysql_query($query, $dbh); if(mysql_num_rows($result)){ while($line=mysql_fetch_array($result,MYSQL_ASSOC)){ $bulletin_id=$line['bulletin_id']; } } $resa=new reservation($id_empr, $notice_id, $bulletin_id); if($resa->add($_SESSION['empr_location'])){ $resa_cart_display.=""; }else{ $resa_cart_display.=""; } $resa_cart_display.=""; } $resa_cart_display.="
".$msg["empr_menu_resa"]." :
".$resa->notice."".$resa->message."".$resa->notice."".$resa->message."
"; if(!$opac_resa_popup){ require_once $base_path.'/includes/show_cart.inc.php'; } } else { print ""; }