Example #1
0
function theme_header()
{
    global $config, $db, $mods, $s_joueur;
    global $strTournois, $strForum, $strInscriptions, $strAccueil, $strContact;
    global $config, $strRechecrher, $strDans, $strJoueurs, $strEquipes, $strNews, $strForum, $strSID, $strOK, $strSeRappeler, $checked, $strPseudo, $strPassword;
    ?>

<!-- Header [start] ------------------------------------------------>
<center>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
	<td>
		
		<?php 
    include "header_joueur.php";
    ?>
		
		<table width="100%" border="0" cellpadding="0" cellspacing="0" style="margin-left:1px;">
			<tr>
				<td background="themes/phptournois/images/story-title.gif">
					<table width="100%" border="0" cellspacing="0" cellpadding="2">
						<tr>
							<td colspan="3">
								<table cellspacing="0" cellpadding="0" width="100%" height="40" border="0">
									<tr>
										<td class="titlebar" align="left" width="80%">
											<?php 
    if (!empty($config['logo'])) {
        echo '&nbsp;&nbsp;<a href="' . $config['urlsite'] . '"><img src="images/' . $config['logo'] . '" border="0" align="absmiddle"></a>';
    }
    echo '&nbsp;&nbsp;' . $config['nomsite'];
    ?>
										</td>
										<td align="center" valign="top" width="20%">
											<a href="http://www.phptournois.net" target="_blank"><img src="images/phptournois.gif" height="40" border="0" align="absmiddle" alt="phptournois"></a>
										</td>
										<td align="center" valign="middle">
											<table cellspacing="2" cellpadding="2"  border="0">
												<tr><td><a href="?<?php 
    echo $_SERVER['QUERY_STRING'];
    ?>
&lang=francais"><img src="images/flags/FR.gif" border="0" align="absmiddle"></a><a href="?<?php 
    echo $_SERVER['QUERY_STRING'];
    ?>
&lang=english"><img src="images/flags/UK.gif" border="0" align="absmiddle"></a></td></tr>									
												<tr><td>&nbsp;</td></tr>
											</table>
										</td>
									</tr>
								</table>
							</td>
						</tr>
						<tr>
							<td align="left" width="10%">&nbsp;</td>
							<td align="center" class="title" width="80%">    
				     			 .:: <a class="menu" href="?page=index"><?php 
    echo $strAccueil;
    ?>
</a>&nbsp;&nbsp;
				     			  <?php 
    if ($config['forum']) {
        echo "<a href=\"?page=forum\">{$strForum}</a>&nbsp;&nbsp;";
    }
    if ($config['inscription_joueur'] && !$s_joueur) {
        $nbinscrits = nb_joueurs_inscrit();
        $nbplaces = $config['places'];
        if ($nbinscrits < $nbplaces) {
            echo "<a href=\"?page=joueurs&op=inscription\"><font color=\"red\"><b>{$strSInscrire}</b></font></a>";
        }
    }
    //if($config['inscription_joueur']) 	echo "| <a href=\"?page=joueurs&op=inscription\">$strInscriptions</a>";
    ?>
				    			  <a class="menu" href="?page=tournois"><?php 
    echo $strTournois;
    ?>
</a>&nbsp;&nbsp; 
				     			  <?php 
    if ($config['contact']) {
        echo "<a href=\"?page=contact\">{$strContact}</a>&nbsp;&nbsp;";
    }
    ?>
				     			  ::.
				     		</td>
							<td align="right" width="10%">								
								
							</td>
						</tr>
					</table>
				</td>
			</tr>
		</table>
		
		
		
		<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#000000">		
			<tr>
				<td>
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
						<tr>
							<td align="center" valign="top" class="back">
<!-- Header [end] -------------------------------------------------->
								<table width="100%" border="0" cellpadding="1" cellspacing="1" >
									<tr>										
										<?php 
    theme_menu_left();
    theme_opencenter();
}
Example #2
0
}
//HTML EDITED
global $config, $s_theme, $s_joueur, $mods, $grade;
global $strGeneral, $strAccueil, $strPlanSalle, $strNews, $strInscriptions, $strAc_cmdmenu, $custheme, $strPresentation, $strReglement, $strJoueurs, $strEquipes, $strTournois, $strServeurs, $strSponsors, $strPartenaires, $strForum, $strIrc, $strDownloads, $strLiens, $strLivreDor, $strContact, $strSInscrire, $strLadder, $strGalerie;
theme_openblock("<img src=\"themes/{$s_theme}/images/icon_menu.gif\" align=\"absmiddle\" alt=\"menu\"> {$strGeneral}");
echo '<table width="100%">';
echo '<tr><td class="blockjtab"><div><dl>';
echo "<li class=\"lib\"><a href=\"?page=accueil\">{$strAccueil}</a></li>";
if ($config['news']) {
    echo "<li class=\"lib\"><a href=\"?page=news\"><span style\"text-weight:bold\">{$strNews}</span></a></li>";
}
if ($config['forum']) {
    echo "<li class=\"lib\"><a href=\"?page=forum/\">{$strForum}</a></li>";
}
if ($config['inscription_joueur'] && !$s_joueur) {
    $nbinscrits = nb_joueurs_inscrit();
    $nbplaces = $config['places'];
    if ($nbinscrits < $nbplaces) {
        echo "<li class=\"lir\"><a href=\"?page=joueurs&amp;op=inscription\"><span style\"color:red;text-weight:bold\">{$strSInscrire}</span></a></li>";
    }
}
if ($config['information']) {
    echo "<li class=\"lib\"><a href=\"?page=informations\">{$strPresentation}</a></li>";
}
if ($config['reglement']) {
    echo "<li class=\"lib\"><a href=\"?page=reglements\">{$strReglement}</a></li>";
}
echo "<li class=\"lib\"><a href=\"?page=joueurs\">{$strJoueurs}</a></li>";
echo "<li class=\"lib\"><a href=\"?page=equipes\">{$strEquipes}</a></li>";
echo "<li class=\"lib\"><a href=\"?page=tournois\">{$strTournois}</a></li>";
if ($config['ladder']) {
Example #3
0
function theme_header()
{
    global $config, $db, $mods;
    global $strTournois, $strForum, $strInscriptions, $strAccueil, $strContact;
    ?>

<!-- Header [start] ------------------------------------------------>
<center>
<img src="images/story-7px.gif" width="7" height="7"><br>

<table width="98%" border="0" cellspacing="0" cellpadding="0">
<tr>
	<td>
		<table width="100%" height="12" border="0" cellpadding="0" cellspacing="0">
			<tr>
				<td width="7"><img src="themes/phptournois/images/story-TL.gif" width="7" height="12" align="middle" alt=""></td>
				<td background="themes/phptournois/images/story-T.gif"><img src="themes/phptournois/images/story-7px.gif" width="7" height="7" alt=""></td>
				<td width="7"><img src="themes/phptournois/images/story-TR.gif" width="7" height="12" align="middle" alt=""></td>
			</tr>
		</table>
		<table width="100%" border="0" cellpadding="0" cellspacing="0" style="margin-left:1px;">
			<tr>
				<td background="themes/phptournois/images/story-title.gif">
					<table width="100%" border="0" cellspacing="0" cellpadding="2">
						<tr>
							<td colspan="3">
								<table cellspacing="0" cellpadding="0" width="100%" height="40" border="0">
									<tr>
										<td class="titlebar" align="left" width="80%">
											<?php 
    if (!empty($config['logo'])) {
        echo '&nbsp;&nbsp;<a href="' . $config['urlsite'] . '"><img src="images/' . $config['logo'] . '" border="0" align="absmiddle"></a>';
    }
    echo '&nbsp;&nbsp;' . $config['nomsite'];
    ?>
										</td>
										<td align="center" valign="top" width="20%">
											<a href="http://www.phptournois.net" target="_blank"><img src="images/phptournois.gif" height="40" border="0" align="absmiddle" alt="phptournois"></a>
										</td>
										<td align="center" valign="middle">
											<table cellspacing="2" cellpadding="2"  border="0">
												<tr><td><a href="?<?php 
    echo $_SERVER['QUERY_STRING'];
    ?>
&lang=francais"><img src="images/flags/FR.gif" border="0" align="absmiddle"></a><a href="?<?php 
    echo $_SERVER['QUERY_STRING'];
    ?>
&lang=english"><img src="images/flags/UK.gif" border="0" align="absmiddle"></a></td></tr>									
												<tr><td>&nbsp;</td></tr>
											</table>
										</td>
									</tr>
								</table>
							</td>
						</tr>
						<tr>
							<td align="left" width="10%">&nbsp;</td>
							<td align="center" class="title" width="80%">    
				     			 .:: <a class="menu" href="?page=index"><?php 
    echo $strAccueil;
    ?>
</a>&nbsp;&nbsp;
				     			  <?php 
    if ($config['forum']) {
        echo "<a href=\"?page=forum\">{$strForum}</a>&nbsp;&nbsp;";
    }
    if ($config['inscription_joueur'] && !$s_joueur) {
        $nbinscrits = nb_joueurs_inscrit();
        $nbplaces = $config['places'];
        if ($nbinscrits < $nbplaces) {
            echo "<a href=\"?page=joueurs&op=inscription\"><font color=\"red\"><b>{$strSInscrire}</b></font></a>";
        }
    }
    //if($config['inscription_joueur']) 	echo "| <a href=\"?page=joueurs&op=inscription\">$strInscriptions</a>";
    ?>
				    			  <a class="menu" href="?page=tournois"><?php 
    echo $strTournois;
    ?>
</a>&nbsp;&nbsp; 
				     			  <?php 
    if ($config['contact']) {
        echo "<a href=\"?page=contact\">{$strContact}</a>&nbsp;&nbsp;";
    }
    ?>
				     			  ::.
				     		</td>
							<td align="right" width="10%">								
								<?php 
    if ($config['horloge'] == 1) {
        echo '<table cellspacing="0" cellpadding="0" border="0" bgcolor="#000000" style="margin-right:5px;"><tr><td>';
        echo '<img height=15 src="images/clock/8.gif" name="a" border="0" alt="a"><img height="15" src="images/clock/8.gif" name="b" alt="b"><img height="15" src="images/clock/c.gif" name="c" alt="c"><img height="15" src="images/clock/8.gif" name="d" alt="d"><img height="15" src="images/clock/8.gif" name="e" alt="e"><img height="13" src="images/clock/c.gif" name="f" alt="f"><img height="13" src="images/clock/8.gif" name="g" alt="g"><img height="13" src="images/clock/8.gif" name="h" alt="h">';
        echo '</td></tr></table>';
        echo '<script>show(\'' . date('M, d Y H:i:s') . '\');</script>';
    }
    ?>
							</td>
						</tr>
					</table>
				</td>
			</tr>
		</table>
		
		
		
		<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#000000">		
			<tr>
				<td>
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
						<tr>
							<td align="center" valign="top" class="back">
<!-- Header [end] -------------------------------------------------->
								<table width="100%" border="0" cellpadding="1" cellspacing="8" >
									<tr>										
										<?php 
    theme_menu_left();
    theme_opencenter();
}