• # Recherche sur ton site

    Posté par (site web personnel) . En réponse au message Recherche interne et sortie de données en rapport. Évalué à 0.

    Je n'ai qu'un avis a ce propos, utiliser l'API de google ou alors se prendre la tête a trouver une solution...

    L'api de google est simple, tu copie colle ce code et tu a ton applet (bon tu me rémunérera par de la pub accessoirement) :
    <html>
    <body>
    <!-- SiteSearch Google -->
    <form method="get" action="http://www.google.fr/custom">
    <table border="0" cellpadding="0" cellpadding="0">
    <tbody>
    <tr>
    <td valign="top" align="left" height="30px">
    <a href="http://www.google.com/"><img style="border: 0px;" src="http://www.google.com/logos/Logo_25wht.gif" alt="Google"></a>
    <h6 style="margin-top: 0px;" class="appletd">Recherche sur google :</h6>
    </td>
    </tr>
    <tr>
    <td valign="top" align="left">
    <input type="hidden" name="domains" value="<?php echo $_SERVER['HTTP_HOST']; ?>">
    <input type="text" name="q" size="20" maxlength="255" value="">
    </td>
    </tr>
    <tr>
    <td>
    <table>
    <tr>
    <td>
    <h6 class="appletd">
    <input type="radio" name="sitesearch" value="">Web
    </h6>
    </td>
    <td>
    <h6 class="appletd">
    <input type="radio" name="sitesearch" value="<?php echo $_SERVER['HTTP_HOST']; ?>" checked="checked"><?php echo $_SERVER['HTTP_HOST']; ?>
    </h6>
    </td>
    </tr>
    </table>
    <input type="submit" name="sa" value="Rechercher">
    <input type="hidden" name="client" value="pub-3549399929521548">
    <input type="hidden" name="forid" value="1">
    <input type="hidden" name="ie" value="ISO-8859-1">
    <input type="hidden" name="oe" value="ISO-8859-1">
    <input type="hidden" name="cof" value="GALT:#008000;GL:1;DIV:#336699;VLC:663399;AH:center;BGC:FFFFFF;LBGC:336699;ALC:0000FF;LC:0000FF;T:000000;GFNT:0000FF;GIMP:0000FF;FORID:1;">
    <input type="hidden" name="hl" value="fr">
    </td>
    </tr>
    </tbody>
    </table>
    </form>
    <!-- SiteSearch Google -->
    </body>
    </html>

    ps : Si tu a besoin d'un coup de main tu peux me mailler...
    ps2 : navré pour l'identation linuxfr me l'a sucré au passage...