options.html~ 1.62 KB
#include <stdio.h>
#include <stdlib.h>
#include <libwebsockets.h>

static int callback_http(structlibwebsocket_context * this,
                         structlibwebsocket *wsi,
                         enumlibwebsocket_callback_reasons reason, void *user,
                         void *in, size_t len)
{
    return 0;
}

<header>
    <!-- pour associer � la feuille de style -->
    <link rel="stylesheet" type="text/css" href="style.css">
    <title>PROJET SC
    </title>
</header>

<body>
    <!-- choix des onglets -->
    <div id="menu">
        <ul id="onglets">
            <li><a href="index.html"> PROJET </a></li>
            <li class="active"><a href="options.html"> OPTIONS </a></li>
        </ul>
    </div>

    <!-- contenu de la page -->
     </br>
     </br>
     </br>
     
     <div class="titre">CHOIX DES OPTIONS</div>
     <div class="contenu">
     
      
     <FORM name="form">
        Lieu :
            <select name="lieu">
                <option SELECTED>-- Selectionnez un lieu --</option>
            </select>
    
    <SCRIPT LANGUAGE="JavaScript">

     var bruxelles=new Array("Bruxelles",50.850,4.350,0,0);
     var pekin=new Array("Pekin",39.917,116.433,0,6);
     var split=new Array("Split",43.517,16.467,0,0);
     var lille=new Array("Lille", 50.633, 3.066, 0, 0);
   
     var lieux=new Array(bruxelles,pekin,split,lille);

    var d=document.form.lieu;
    for(var i=0; i < lieux.length ; i++)
    {  d.length++;
       d.options[d.length-1].text = lieux[i][0];
    }
    
    </SCRIPT> 
    </br>
    </br>
    <input type="submit" value="OK"/>

    </form>
    </div>

    
</body>

<footer>
</footer>

<html/>