1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68
|
<!-- Champ de recherche Google -->
<center>
<FORM method=GET action="http://www.google.fr/search">
<TABLE bgcolor="#FFFFFF"><tr><td>
<A HREF="http://www.google.fr">
<IMG SRC="http://www.google.com/logos/Logo_40wht.gif" border="0"
ALT="Google" align="absmiddle"></A>
<INPUT TYPE=text name=q size=31 maxlength=255
<?php
if (isset($_GET['requet']))
{$x=$_GET['requet'];
$x1=str_replace(' ','_',$x);
//nouvelle instance
$xslt=new XSLTProcessor();
//import de la feuille de xsl
$xslt -> importStylesheet(simplexml_load_file('templates.xsl'));
$xslt -> setParameter(null, 'cible', $x1 );
$xslt -> setParameter(null, 'cible3', $x1 );
$xslt -> setParameter(null, 'cible2', $x1 );
$xslt -> transformToUri(simplexml_load_file('biologie.rdf-xml.owl') , 'save.xml');
$xml=simplexml_load_file('save.xml');
$y=str_replace('_',' ',$xml->tg);
$z=str_replace('_',' ',$xml->ts);
$w=str_replace('_',' ',$xml->ta);
$mt='biologie';
$requet=$mt.'+'.$y.'+'.$x.'+'.$z.$w;
echo ' value="' . $requet . '"';
}
?>
/>
<INPUT TYPE=hidden name=hl value=fr>
<INPUT type=submit name=btnG VALUE="Recherche Google">
</td></tr></TABLE>
</FORM>
</center>
<!-- Google --> |
Partager