<?php
// +-------------------------------------------------+
// © 2002-2004 PMB Services / www.sigb.net pmb@sigb.net et contributeurs (voir www.sigb.net)
// +-------------------------------------------------+
// $Id: expl_todo.inc.php,v 1.2 2010-08-25 09:52:50 ngantier Exp $

if (stristr($_SERVER['REQUEST_URI'], ".inc.php")) die("no access");

$temp_aff = expl_retour_todo();

if ($temp_aff) $aff_alerte .= "<ul>".$msg["alert_circ_retour"].$temp_aff."</ul>";
  
function expl_retour_todo () {
	global $dbh ;
	global $msg;
	global $deflt_docs_location;
	
	if(!$deflt_docs_location)	return"";
	$sql = "SELECT expl_id FROM exemplaires where expl_retloc='$deflt_docs_location' limit 1";
	$req = mysql_query($sql) or die ($msg["err_sql"]."<br />".$sql."<br />".mysql_error());
	$nb = mysql_num_rows($req) ;
	if (!$nb) return "" ;
	else return "<li><a href='./circ.php?categ=ret_todo' target='_parent'>".$msg["alert_circ_retour_todo"]."</a></li>" ;
}

