Tfe

Ongi etorri tfe-ren webgunera...

Old stuff/old_sites/www/header.php

(Deskargatu)
<div class="header">

<div class="recherche">
    <ul>
    <li>
    
    <h3>Recherche</h3>
    <form action="index.php?page=recherche" method="get">
    <p><input type="text" name="q" value="" />
    <input type="hidden" name="page" value="recherche" />
      <input class="button" type="submit" value="GO" />
    </p>
    </form>
    
    </li>
    <li>
    
    <p>
    <a href="index.php?page=recherche">Recherche avanc&eacute;e</a>
    </p>
    
    </li>
    <?
    if (! empty($axx))
    {
    ?>
    <li>
    <p>
    <a href="index.php?nick=anonymous">Se d&eacute;connecter</a>
    </p>
    </li>
    <?
    }
    ?>
    </ul>
</div>


<div class="auth">
<?
if (empty($axx))
{
    echo "
    <h3>Identifiez-vous</h3>
    <div>
    ";
    echo "
    <form method=\"post\" action=\"index.php\">    
    <dl>

    <dt>Login</dt>
    <dd><input size=\"16\" type=\"text\" name=\"login\" value=\"\" /></dd>
    <dt>Password</dt>
    <dd><input size=\"16\" type=\"password\" name=\"password\" value=\"\" /></dd>
    <dt>Validation</dt>
    <dd><input type=\"submit\" value=\"se connecter\" /></dd>
    </dl>
    </form>
    <p class=\"droite\"><a href=\"index.php?page=newacc&amp;id=/site/acc/oublie\">J' ai perdu mon password</a></p>
    <p class=\"droite\"><a href=\"index.php?page=newacc&amp;id=/site/acc/new\">Je veux m'inscrire</a></p>
    
    </div>
    ";
}
else {
    echo "<h3>Section membres</h3>
    <ul>
    <li><a href=\"index.php?page=newnews\">Proposer une nouvelle</a></li>
    <li><a href=\"index.php?page=newarticles\">Proposer un article</a></li>
    <li><a href=\"index.php?page=newconcours\">Donner des nouvelles d'un concours</a></li>
    <li><a href=\"index.php?page=perso\">G&eacute;rer mon site perso</a></li>
    ";
    if ($axx > 8) { 
	echo    "<li><a href=\"index.php?page=admin\">Administration du site</a>";
	echo "</li>"; 
    }
    echo "
    </ul>
    ";
}

?>    
    
</div>


<div class="technews">
    <h3>Nouvelles du site</h3>
    <div>
    <?
	$query = "SELECT * FROM mp_technews ORDER BY id DESC LIMIT 2";
	$result = mysql_query($query) or die(mysql_error());
	while($row = mysql_fetch_assoc($result))
	{
	    echo "<h5>[".$row{'section'}."] ".$row{'titre'}."</h5>";
	    affichage($row{'contenu'},0,0);
	}

	
    ?>
    </div>
</div>







</div>