A voir également:
- Envoie de mot cle
- Clé usb non détectée - Guide
- Clé windows 8 - Guide
- Trousseau mot de passe iphone - Guide
- Clé usb - Accueil - Stockage
- Formater clé usb - Guide
2 réponses
c'est un moteur de recherche en j'ai enregistré le code du moteur merci
<html>
<head>
<title>Recherche globale</title>
<link rel="stylesheet" type="text/css" href="../../styles/menu_ring.css">
<link rel="stylesheet" href="../../styles/ring.css" type="text/css">
<script language="JavaScript1.2" src="../../styles/coolmenus4.js"></script>
<script language="javascript">
//-- fonction qui permet de faire un submit avec les infos de
// pagination sur le changement de page
function changepage(curPage){
var myForm = window.document.forms["search_form"]
myForm.numCurPage.value = curPage;
doSubmit ();
myForm.submit();
}
//-- fonction qui fait le submit du formulaire apres avoir :
// 1. mis en forme les motsclés selectionés dans un champ "hidden"
function doSubmit () {
var isToSubmit = true;
var mySelect = window.document.forms[0].motscles
var SelectedIndex = mySelect.options.selectedIndex;
var myStrSelect = window.document.forms[0].strmotscles
myStrSelect.value = "";
//alert("motsclés : " + mySelect.options[mySelect.selectedIndex].value);
if (SelectedIndex != -1) { //-- si on as selectionné au moins une valeur
for (i=0; i<mySelect.options.length; i++) {
if(mySelect.options[i].selected) {
var ID = mySelect.options[i].value;
myStrSelect.value += mySelect.options[i].value + "|";
//i=i-1;
}
}
}
//alert("strmotscles : " + myStrSelect.value);
//on contrôle que seul un champ Date soit remplie maximum
var myDt_pub = window.document.forms[0].dt_pub
var myNbDays = window.document.forms[0].nbdays
if (myNbDays.value != "") {
if (myDt_pub.value != "") {
alert("Merci de choisir entre la date et le nombre de jour !");
myNbDays.focus();
isToSubmit = false;
}else{
if (isNaN(myNbDays.value)) {
alert("Merci de saisir une valeur numérique entière !");
myNbDays.focus();
isToSubmit = false;
}
}
}
var myChoix = window.document.forms[0].choix1
var myCaseACocher = window.document.forms[0].caseAcocher
myCaseACocher.value = myChoix.checked
//alert(myChoix.checked)
return isToSubmit;
}
//-- fonction qui réinitialise tous le champs
function initForm () {
//-- init des champs MOTS-CLES
window.document.forms[0].strmotscles.value = "";
var mySelect = window.document.forms[0].motscles
for (i=0; i<mySelect.options.length; i++) {
if(mySelect.options[i].selected) {
mySelect.options[i].selected = false;
}
}
//-- init du champs de recherche
window.document.forms[0].query.value = "";
//-- init de la date
window.document.forms[0].dt_pub.value = "";
window.document.forms[0].nbdays.value = "";
//-- init des domaines
window.document.forms[0].domaine.options[0].selected = true;
//-- init des types de doc
window.document.forms[0].typedocument.options[0].selected = true;
//-- init du nombre de page
window.document.forms[0].nbLignePage.options[1].selected = true;
}
//-- fonction qui permet de passer les infos de tri
// au click sur les colonnes de résultat
function submitTri(colonneName){
var maColonne = window.document.forms[0].orderBy;
var monTypeOrder = window.document.forms[0].orderByType;
if(maColonne.value == colonneName){ //-- si c'est le meme champ on change l'ordre
if (monTypeOrder.value == "[a]") {
monTypeOrder.value = "[d]";
}else{
monTypeOrder.value = "[a]";
}
}else{
maColonne.value = colonneName;
// if (colonneName == "rank"){
// monTypeOrder = "[d]"; '-- pour la pertinennce on
// }else {
monTypeOrder.value = "[a]";
}
doSubmit ();
window.document.forms[0].submit();
}
//-- fonction qui selectionne l'element passé en param dans une optionlist
function doSelectElement(optionList, optionValue) {
var theSelect = window.document.forms[0].elements[optionList];
//var reg=new RegExp("[|]+", "g");
//var tableauValue=optionValue.split(reg);
for (var i=0; i<theSelect.options.length; i++){
if(optionValue == theSelect.options[i].value){
theSelect.options[i].selected = true;
}
}
}
</script></head>
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<IFRAME STYLE="display:none;position:absolute;width:73px;height:116px;z-index:30; left:0; top:436" ID=calendar MARGINHEIGHT=0 MARGINWIDTH=0 NORESIZE FRAMEBORDER=0 SCROLLING=NO></IFRAME>
<SCRIPT LANGUAGE="javascript">
var cF=document.all.calendar ;
var cW=window.frames.calendar ;
var gimg,ginpt;
function Calendrier(img,inpt)
{
gimg=img;
ginpt=inpt
var htm="/scripts/cal.asp"
htm+="?date="+ginpt.value+"&dsel="+ginpt.value;
cW.document.body.innerHTML=""
cW.location.href=htm;
position1(img);
cF.style.display="block";
}
function Annule(){
cF.style.display="none";
}
function position1(img) {
var dB=document.body;
cF.style.top=img.offsetTop+img.offsetHeight+1;
cF.style.left=img.offsetLeft;
}
/** ORIGINAL
function position1(img) {
var dB=document.body;
if (img.offsetTop- dB.scrollTop<cF.style.pixelHeight) {
cF.style.top=img.offsetTop + img.offsetHeight
} else {
cF.style.top=img.offsetTop-cF.style.pixelHeight
}
cF.style.left=img.offsetLeft;
}**/
</SCRIPT>
<SCRIPT FOR=document EVENT="onclick()">
Annule();
</SCRIPT>
<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0" nowrap>
<tr>
<td width="108" height="26" valign="top" bgcolor="#acdfec"> </td>
<td align="center" valign="center" rowspan="2" bgcolor="#acdfec">
</td>
<td width="193" height="60" rowspan="2" align="center" valign="bottom" bgcolor="#acdfec"> </td>
</tr>
<tr>
<td width="108" height="23" valign="top" bgcolor="#acdfec">
<div align="center"> </div>
</td>
</tr>
<tr ><td height="22" colspan="3" bgcolor="#12638B"></td></tr>
<tr>
<td width="108" height="35" valign="top"> </td>
<td colspan="2" background="../../images/onglet_bleu.gif" align="left" height="35" class="titrerubrique">
<div class="textenavig" align="left">Outils ><a href="/outils/recherche/index.asp# " >Recherche</a></div>
</td>
</tr>
<tr>
<td background="../../images/fond_bleu.gif"> </td>
<td valign="top">
<table width="100%" border="0">
<tr>
<td width="14"> </td>
<td>
<form name="search_form" action='index.asp' onsubmit="return doSubmit()" method='post'>
<!-- Affichage de la zone de texte libre -->
<table width="100%" border="0">
<tr align="center">
<td align="center">
Recherche : <input size="50%" type="text" name="query" value=""/>
</td>
</tr>
</table>
<td width="45%" valign="middle" align="left">
</tr>
<tr><td> </td></tr>
<tr>
<td width="55%" valign="top" align="left" >
<!-- DEBUT de la partie basse de gauche-->
<table border="0" width="100%">
<tr>
<td align="left" width="40%">Publié après le :</td>
<td > <input size="10" maxlength="10" type="text" onclick="this.value='';" name="dt_pub" onfocus="this.blur();" value=""/><a HREF="javascript:Calendrier(document.search_form.img1,document.search_form.dt_pub)"><img src="../../images//calendrier.gif" width=34 height=21 align=top ID=img1 border=0 style=position:relative></a>
</td>
</tr>
<tr >
<td >ou depuis</td>
<td > <input size="2" maxlength="2" type="text" onclick="this.value='';" name="nbdays" value=""/> jours.
</tr>
</table>
<!-- FIN de la partie basse de gauche-->
</td>
<td width="45%" valign="top" align="left" >
<!-- DEBUT de la partie basse de droite-->
<table border="0">
<!-- Affichage de la sélection du nombre de résultats-->
<tr valign="top" align="center">
<td align="left" >Nombre de résultats : </td>
<td align="left" >
<select name="nbLignePage">
<option value="10">10 / page</option>
<option SELECTED value="20">20 / page</option>
<option value="50">50 / page</option>
<option value="100">100 / page</option>
</select>
</td>
</tr>
</table>
</td>
</table>
<!-- Bouton de lancement de la recherche -->
<table width="100%" border="0">
<tr align="center">
<td width="100%" align="center">
<input type="submit" value="Lancez la recherche" />
<input type="button" value="Effacez" onclick="javascript:initForm();"/>
</td>
</tr>
</table>
<input type="hidden" name="numCurPage" value=""/>
<input type="hidden" name="orderBy" value="dt_pub" />
<input type="hidden" name="orderByType" value="[d]" />
<input type="hidden" name="caseAcocher" value="" />
</form>
</td>
</tr>
</table>
<!--
</td>
</tr>
</table>
</td>
</tr>
</table>-->
</body>
</html>
<html>
<head>
<title>Recherche globale</title>
<link rel="stylesheet" type="text/css" href="../../styles/menu_ring.css">
<link rel="stylesheet" href="../../styles/ring.css" type="text/css">
<script language="JavaScript1.2" src="../../styles/coolmenus4.js"></script>
<script language="javascript">
//-- fonction qui permet de faire un submit avec les infos de
// pagination sur le changement de page
function changepage(curPage){
var myForm = window.document.forms["search_form"]
myForm.numCurPage.value = curPage;
doSubmit ();
myForm.submit();
}
//-- fonction qui fait le submit du formulaire apres avoir :
// 1. mis en forme les motsclés selectionés dans un champ "hidden"
function doSubmit () {
var isToSubmit = true;
var mySelect = window.document.forms[0].motscles
var SelectedIndex = mySelect.options.selectedIndex;
var myStrSelect = window.document.forms[0].strmotscles
myStrSelect.value = "";
//alert("motsclés : " + mySelect.options[mySelect.selectedIndex].value);
if (SelectedIndex != -1) { //-- si on as selectionné au moins une valeur
for (i=0; i<mySelect.options.length; i++) {
if(mySelect.options[i].selected) {
var ID = mySelect.options[i].value;
myStrSelect.value += mySelect.options[i].value + "|";
//i=i-1;
}
}
}
//alert("strmotscles : " + myStrSelect.value);
//on contrôle que seul un champ Date soit remplie maximum
var myDt_pub = window.document.forms[0].dt_pub
var myNbDays = window.document.forms[0].nbdays
if (myNbDays.value != "") {
if (myDt_pub.value != "") {
alert("Merci de choisir entre la date et le nombre de jour !");
myNbDays.focus();
isToSubmit = false;
}else{
if (isNaN(myNbDays.value)) {
alert("Merci de saisir une valeur numérique entière !");
myNbDays.focus();
isToSubmit = false;
}
}
}
var myChoix = window.document.forms[0].choix1
var myCaseACocher = window.document.forms[0].caseAcocher
myCaseACocher.value = myChoix.checked
//alert(myChoix.checked)
return isToSubmit;
}
//-- fonction qui réinitialise tous le champs
function initForm () {
//-- init des champs MOTS-CLES
window.document.forms[0].strmotscles.value = "";
var mySelect = window.document.forms[0].motscles
for (i=0; i<mySelect.options.length; i++) {
if(mySelect.options[i].selected) {
mySelect.options[i].selected = false;
}
}
//-- init du champs de recherche
window.document.forms[0].query.value = "";
//-- init de la date
window.document.forms[0].dt_pub.value = "";
window.document.forms[0].nbdays.value = "";
//-- init des domaines
window.document.forms[0].domaine.options[0].selected = true;
//-- init des types de doc
window.document.forms[0].typedocument.options[0].selected = true;
//-- init du nombre de page
window.document.forms[0].nbLignePage.options[1].selected = true;
}
//-- fonction qui permet de passer les infos de tri
// au click sur les colonnes de résultat
function submitTri(colonneName){
var maColonne = window.document.forms[0].orderBy;
var monTypeOrder = window.document.forms[0].orderByType;
if(maColonne.value == colonneName){ //-- si c'est le meme champ on change l'ordre
if (monTypeOrder.value == "[a]") {
monTypeOrder.value = "[d]";
}else{
monTypeOrder.value = "[a]";
}
}else{
maColonne.value = colonneName;
// if (colonneName == "rank"){
// monTypeOrder = "[d]"; '-- pour la pertinennce on
// }else {
monTypeOrder.value = "[a]";
}
doSubmit ();
window.document.forms[0].submit();
}
//-- fonction qui selectionne l'element passé en param dans une optionlist
function doSelectElement(optionList, optionValue) {
var theSelect = window.document.forms[0].elements[optionList];
//var reg=new RegExp("[|]+", "g");
//var tableauValue=optionValue.split(reg);
for (var i=0; i<theSelect.options.length; i++){
if(optionValue == theSelect.options[i].value){
theSelect.options[i].selected = true;
}
}
}
</script></head>
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<IFRAME STYLE="display:none;position:absolute;width:73px;height:116px;z-index:30; left:0; top:436" ID=calendar MARGINHEIGHT=0 MARGINWIDTH=0 NORESIZE FRAMEBORDER=0 SCROLLING=NO></IFRAME>
<SCRIPT LANGUAGE="javascript">
var cF=document.all.calendar ;
var cW=window.frames.calendar ;
var gimg,ginpt;
function Calendrier(img,inpt)
{
gimg=img;
ginpt=inpt
var htm="/scripts/cal.asp"
htm+="?date="+ginpt.value+"&dsel="+ginpt.value;
cW.document.body.innerHTML=""
cW.location.href=htm;
position1(img);
cF.style.display="block";
}
function Annule(){
cF.style.display="none";
}
function position1(img) {
var dB=document.body;
cF.style.top=img.offsetTop+img.offsetHeight+1;
cF.style.left=img.offsetLeft;
}
/** ORIGINAL
function position1(img) {
var dB=document.body;
if (img.offsetTop- dB.scrollTop<cF.style.pixelHeight) {
cF.style.top=img.offsetTop + img.offsetHeight
} else {
cF.style.top=img.offsetTop-cF.style.pixelHeight
}
cF.style.left=img.offsetLeft;
}**/
</SCRIPT>
<SCRIPT FOR=document EVENT="onclick()">
Annule();
</SCRIPT>
<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0" nowrap>
<tr>
<td width="108" height="26" valign="top" bgcolor="#acdfec"> </td>
<td align="center" valign="center" rowspan="2" bgcolor="#acdfec">
</td>
<td width="193" height="60" rowspan="2" align="center" valign="bottom" bgcolor="#acdfec"> </td>
</tr>
<tr>
<td width="108" height="23" valign="top" bgcolor="#acdfec">
<div align="center"> </div>
</td>
</tr>
<tr ><td height="22" colspan="3" bgcolor="#12638B"></td></tr>
<tr>
<td width="108" height="35" valign="top"> </td>
<td colspan="2" background="../../images/onglet_bleu.gif" align="left" height="35" class="titrerubrique">
<div class="textenavig" align="left">Outils ><a href="/outils/recherche/index.asp# " >Recherche</a></div>
</td>
</tr>
<tr>
<td background="../../images/fond_bleu.gif"> </td>
<td valign="top">
<table width="100%" border="0">
<tr>
<td width="14"> </td>
<td>
<form name="search_form" action='index.asp' onsubmit="return doSubmit()" method='post'>
<!-- Affichage de la zone de texte libre -->
<table width="100%" border="0">
<tr align="center">
<td align="center">
Recherche : <input size="50%" type="text" name="query" value=""/>
</td>
</tr>
</table>
<td width="45%" valign="middle" align="left">
</tr>
<tr><td> </td></tr>
<tr>
<td width="55%" valign="top" align="left" >
<!-- DEBUT de la partie basse de gauche-->
<table border="0" width="100%">
<tr>
<td align="left" width="40%">Publié après le :</td>
<td > <input size="10" maxlength="10" type="text" onclick="this.value='';" name="dt_pub" onfocus="this.blur();" value=""/><a HREF="javascript:Calendrier(document.search_form.img1,document.search_form.dt_pub)"><img src="../../images//calendrier.gif" width=34 height=21 align=top ID=img1 border=0 style=position:relative></a>
</td>
</tr>
<tr >
<td >ou depuis</td>
<td > <input size="2" maxlength="2" type="text" onclick="this.value='';" name="nbdays" value=""/> jours.
</tr>
</table>
<!-- FIN de la partie basse de gauche-->
</td>
<td width="45%" valign="top" align="left" >
<!-- DEBUT de la partie basse de droite-->
<table border="0">
<!-- Affichage de la sélection du nombre de résultats-->
<tr valign="top" align="center">
<td align="left" >Nombre de résultats : </td>
<td align="left" >
<select name="nbLignePage">
<option value="10">10 / page</option>
<option SELECTED value="20">20 / page</option>
<option value="50">50 / page</option>
<option value="100">100 / page</option>
</select>
</td>
</tr>
</table>
</td>
</table>
<!-- Bouton de lancement de la recherche -->
<table width="100%" border="0">
<tr align="center">
<td width="100%" align="center">
<input type="submit" value="Lancez la recherche" />
<input type="button" value="Effacez" onclick="javascript:initForm();"/>
</td>
</tr>
</table>
<input type="hidden" name="numCurPage" value=""/>
<input type="hidden" name="orderBy" value="dt_pub" />
<input type="hidden" name="orderByType" value="[d]" />
<input type="hidden" name="caseAcocher" value="" />
</form>
</td>
</tr>
</table>
<!--
</td>
</tr>
</table>
</td>
</tr>
</table>-->
</body>
</html>