var history_all_checked = false; function check_uncheck_all_history() { if (history_all_checked) { setCheckboxes('cases_a_cocher', 'cases_suppr', false); history_all_checked = false; document.getElementById('show_history_checked_all').value = '".$msg["show_history_check_all"]."'; document.getElementById('show_history_checked_all').title = '".$msg["show_history_check_all"]."'; } else { setCheckboxes('cases_a_cocher', 'cases_suppr', true); history_all_checked = true; document.getElementById('show_history_checked_all').value = '".$msg["show_history_uncheck_all"]."'; document.getElementById('show_history_checked_all').title = '".$msg["show_history_uncheck_all"]."'; } return false; } function setCheckboxes(the_form, the_objet, do_check) { var elts = document.forms[the_form].elements[the_objet+'[]'] ; var elts_cnt = (typeof(elts.length) != 'undefined') ? elts.length : 0; if (elts_cnt) { for (var i = 0; i < elts_cnt; i++) { elts[i].checked = do_check; } // end for } else { elts.checked = do_check; } return true; } function verifCheckboxes(the_form, the_objet) { var bool=false; var elts = document.forms[the_form].elements[the_objet+'[]'] ; var elts_cnt = (typeof(elts.length) != 'undefined') ? elts.length : 0; if (elts_cnt) { for (var i = 0; i < elts_cnt; i++) { if (elts[i].checked) { bool = true; } } } else { if (elts.checked) { bool = true; } } return bool; } "; print "
"; print " "; print " "; print "
"; } print "

".$msg["history_title"]."

"; print "
"; if ($_SESSION["nb_queries"]!=0) { for ($i=$_SESSION["nb_queries"]; $i>=1; $i--) { if ($_SESSION["search_type".$i]!="module") { print "$i) "; if ($opac_autolevel2==2) { print "".get_human_query($i)."

"; } else { print "".get_human_query($i)."

"; } } } } else { print "".$msg["histo_empty"].""; } print "
"; //Si autolevel2=2, on re-soumet immédiatement sans passer par le lvl1 if (($opac_autolevel2==2) && ($_SESSION["nb_queries"]!=0)) { for ($i=$_SESSION["nb_queries"]; $i>=1; $i--) { if ($_SESSION["search_type".$i]!="module") { get_history($i); if ($_SESSION["search_type".$i]=="simple_search") { print "
"; if (function_exists("search_other_function_post_values")){ print search_other_function_post_values(); } if(count($map_emprise_query)){ foreach($map_emprises_query as $map_emprise_query){ print " "; } } print " "; if ($look_TITLE) { print ""; } if ($look_AUTHOR) { print ""; } if ($look_PUBLISHER) { print ""; } if ($look_TITRE_UNIFORME) { print ""; } if ($look_COLLECTION) { print ""; } if ($look_SUBCOLLECTION) { print ""; } if ($look_CATEGORY) { print ""; } if ($look_INDEXINT) { print ""; } if ($look_KEYWORDS) { print ""; } if ($look_ABSTRACT) { print ""; } if ($look_ALL) { print ""; } if ($look_DOCNUM) { print ""; } if ($look_CONCEPT) { print ""; } print "
"; } else { $action=$base_path."/index.php?lvl=index&search_type_asked=extended_search"; $sc=new search(); print $sc->make_hidden_search_form("./index.php?lvl=more_results&mode=extended","search_".$i,"",true); } } } } ?>