Tfe

Ongi etorri tfe-ren webgunera...

Old stuff/old_sites/ids/data/home.php

(Deskargatu)
<div class="sites">
<h3>Submissions, recently created</h3>
<h4>Parceque VOUS &ecirc;tes notre meilleure publicit&eacute;</h4>
<div class="spacer"></div>
<ul>
<?
    $query = "SELECT * FROM realisation,libelle_real
    WHERE
	libelle = 'site' and
	libelle_real_id = real_libelle_real_id
	ORDER BY real_id DESC LIMIT 3	    
	    ";
    $contenu = $con->assocQuery($query);
    foreach($contenu as $key)
    {
    echo "<li>
	<img src=\"".$base."preview/$key[real_preview]\"  alt=\"$key[real_nom]\" />
	<p><a href=\"$key[real_url]\" title=\"$key[real_nom]\">$key[real_nom]</a></p>
    </li>
    ";
    
    
    }
?>


</ul>
</div>
<div class="spacer"></div>



<div class="news">
    <h3>What's UP : News &amp; Events</h3>
    <h4>Parceque nous ne VOUS cachons rien</h4>
    <div>
    <?
	$contenu = $con->assocQuery("Select * FROM news,membres,categorie WHERE news_id_membre=mbr_id and categorie_id=news_categorie_id") or print $bd->error;
	foreach($contenu as $key)
	{
	    print "
	    <h5>$key[categorie_name] :: $key[news_titre] , le $key[news_date] </h5>
	    <h6>Message post&eacute; par <a href=\"mailto:".hex_encode($key[mbr_mail])."\">$key[mbr_pseudo]</a></h6>
	    <div>";
	    affichage($key[news_contenu],0,0);
	    print "</div>";
	
	}
    ?>    
    </div>

</div>

<div class="login" id="login">
    <h3>Clients Login / Espace membre</h3>
<?
if (!$axx)
{
?>
    <form action="<?=$burl?>login" method="post">
    <div class="pseudo">
	<dl>
	<dt>Username</dt><dd><input size="13" type="text" name="username" /></dd>
	</dl>
    </div>
    
    <div class="pass">
	<dl>
        <dt>Password</dt><dd><input size="13" type="password" name="password" /></dd>    

	<dt class="hide">Validation</dt>
	<dd class="hide"><input class="button" type="submit" value="OK" /></dd>
	</dl>	
    </div>
    </form>
    <h4><a href="<?=$burl?>compte/oublie">Oups, I've forgot my password</a></h4>
<?
}
else
{
?>
    <ul>
	<li><a href="<?=$burl?>compte">Mes pr&eacute;f&eacute;rences</a></li>
	<li><a href="<?=$burl?>propositions">Proposer une news</a></li>
	<li><a href="<?=$burl?>deco">Se d&eacute;connecter</a></li>	
    </ul>



<?


}


?>
</div>