<?php

// THEME NAME: Mustard for PHP-Nuke 5.5
// Copyright (c) 2001-2002 Somara Sem (http://www.pixelmayhem.com)

// Some theme color definitions
$bgcolor1 = "#efefef";
$bgcolor2 = "#E7C67B";
$bgcolor3 = "#efefef";
$bgcolor4 = "#E7C67B";
$textcolor1 = "#000000";
$textcolor2 = "#000000";

/************************************************************/


function OpenTable() {
    global $bgcolor1, $bgcolor2;
    echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\" bgcolor=\"$bgcolor2\"><tr><td>\n";
    echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"8\" bgcolor=\"$bgcolor1\"><tr><td>\n";
}

function CloseTable() {
    echo "</td></tr></table></td></tr></table>\n";
}

function OpenTable2() {
    global $bgcolor1, $bgcolor2;
    echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"0\" bgcolor=\"$bgcolor2\" align=\"center\"><tr><td>\n";
    echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"8\" bgcolor=\"$bgcolor1\"><tr><td>\n";
}

function CloseTable2() {
    echo "</td></tr></table></td></tr></table>\n";
}


/************************************************************/

function FormatStory($thetext, $notes, $aid, $informant) {
    global $anonymous;
    if ($notes != "") {
	$notes = "<br><br><b>"._NOTE."</b> <i>$notes</i>\n";
    } else {
	$notes = "";
    }
    if ("$aid" == "$informant") {
	echo "<font class=\"content\" color=\"#505050\">$thetext$notes</font>\n";
    } else {
	if($informant != "") {
	    $boxstuff = "<a href=\"user.php?op=userinfo&amp;username=$informant\">$informant</a> ";
	} else {
	    $boxstuff = "$anonymous ";
	}
	$boxstuff .= "".translate("writes")." <i>\"$thetext\"</i>$notes\n";
	echo "<font class=\"content\" color=\"#505050\">$boxstuff</font>\n";
    }
}

/************************************************************/


function themeheader() {
    global $user, $banners, $sitename, $slogan, $cookie, $prefix;
    cookiedecode($user);
    $username = $cookie[1];
    if ($username == "") {
        $username = "Anonymous";
    }
    echo "<!----- Theme design Copyright 2001-2002 Somara Sem (http://www.pixelmayhem.com) ----->\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n";
    echo "<body background=\"themes/Mustard/images/bg.gif\" bgcolor=\"#D6A531\" leftmargin=\"0\" topmargin=\"0\" marginwidth=\"0\" marginheight=\"0\">\n"
	."<br>\n";
    if ($banners) {
	include("banners.php");
    }
    echo "<table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"780\">\n"
        ."<tr>\n"
        ."<td><img src=\"themes/Mustard/images/topnav-top.gif\" width=\"780\" height=\"10\"></td>\n"
        ."</tr>\n"
        ."</table>\n"


    ."<table cellpadding=\"3\" cellspacing=\"0\" width=\"780\" border=\"0\" align=\"center\">\n"
	."<tr bgcolor=\"#ffffff\">\n"
	."<td>\n"
	."<a href=\"index.php\"><img src=\"themes/Mustard/images/logo.gif\" align=\"left\" alt=\""._WELCOMETO." $sitename\" border=\"0\"></a></td>\n"
	."</tr></table>\n"


    ."<table cellpadding=\"0\" cellspacing=\"0\" width=\"780\" border=\"0\" align=\"center\">\n"
	."<tr>\n"
	."<td colspan=\"4\" background=\"themes/Mustard/images/dotted-line.gif\"><IMG src=\"themes/Mustard/images/pixel.gif\" width=\"4\" height=1 alt=\"\" border=\"0\" hspace=\"0\"></td>\n"
	."</tr>\n"
	."<tr valign=\"middle\" bgcolor=\"#E7C67B\">\n"
	."<td width=\"380\" nowrap><font class=\"content\" color=\"#363636\"><b>\n";
    if ($username == "Anonymous") {
	echo "&nbsp;&nbsp;<b><font color=\"#363636\"><a href=\"modules.php?name=Your_Account\">Devenez membre</a></font></b>\n";
    } else {
	echo "&nbsp;&nbsp;Bienvenue $username! &nbsp;<a href=\"modules.php?name=Your_Account&op=logout\">Sortir</a>";
    }
    echo "</b></font></td>\n"
	."<td align=\"right\" width=\"400\">\n"
    ."<form action=\"modules.php?name=Search\" method=\"post\" style=\"margin:0\">\n"
	."<font class=\"content\" color=\"#000000\">\n"
	."<input type=\"text\" name=\"query\" size=\"14\">\n"
	."<input type=\"submit\" value=\"Recherche\"></font>\n"
	."</form>\n"
	."</td>\n"

        ."</tr>\n"
        ."<tr>\n"
        ."<td colspan=\"4\" background=\"themes/Mustard/images/dotted-line.gif\"><IMG src=\"themes/Mustard/images/pixel.gif\" width=\"4\" height=\"1\" alt=\"\" border=\"0\" hspace=\"0\"></td>\n"
        ."</tr>\n"
        ."</table>\n\n\n"


// Top Navigation Menu
        ."<table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"780\">\n"
        ."<tr>\n"
        ."<td bgcolor=\"#ffffff\"><img src=\"themes/Mustard/images/pixel.gif\" width=\"780\" height=\"10\"></td>\n"
        ."</tr>\n"
        ."</table>\n"
	."<table cellpadding=\"0\" cellspacing=\"0\" width=\"780\" border=\"0\" align=\"center\">\n"
	."<tr>\n"
	."<td colspan=\"6\" background=\"themes/Mustard/images/dotted-line.gif\"><IMG src=\"themes/Mustard/images/pixel.gif\" width=\"4\" height=1 alt=\"\" border=\"0\" hspace=\"0\"></td>\n"
	."</tr>\n"
	    ."<tr valign=\"middle\" bgcolor=\"#E7C67B\">\n"
	    ."<td height=\"20\" width=\"16%\" bgcolor=\"#E7C67B\" class=\"navbox\" align=\"center\" style=\"cursor:hand\" onMouseOver=\"this.style.background='#D6A531'\" onMouseOut=\"this.style.background='#E7C67B'\" onClick=\"window.location.href='index.php'\">\n"
	    ."<a class=\"topnav\" href=\"index.php\">Accueil</a>\n"
        ."</td>\n"
	    ."<td height=\"20\" width=\"16%\" bgcolor=\"#E7C67B\" class=\"navbox\" align=\"center\" style=\"cursor:hand\" onMouseOver=\"this.style.background='#D6A531'\" onMouseOut=\"this.style.background='#E7C67B'\" onClick=\"window.location.href='modules.php?name=Content'\">\n"
        ."<a class=\"topnav\" href=\"modules.php?name=Content\">Rubriques</a>\n"
        ."</td>\n"
	    ."<td height=\"20\" width=\"16%\" bgcolor=\"#E7C67B\" class=\"navbox\" align=\"center\" style=\"cursor:hand\" onMouseOver=\"this.style.background='#D6A531'\" onMouseOut=\"this.style.background='#E7C67B'\" onClick=\"window.location.href='modules.php?name=Downloads'\">\n"
        ."<a class=\"topnav\" href=\"modules.php?name=Downloads\">Téléchargements</a>\n"
        ."</td>\n"
	    ."<td height=\"20\" width=\"16%\" bgcolor=\"#E7C67B\" class=\"navbox\" align=\"center\" style=\"cursor:hand\" onMouseOver=\"this.style.background='#D6A531'\" onMouseOut=\"this.style.background='#E7C67B'\" onClick=\"window.location.href='modules.php?name=Your_Account'\">\n"
        ."<a class=\"topnav\" href=\"modules.php?name=Your_Account\">Votre compte</a>\n"
        ."</td>\n"
	    ."<td height=\"20\" width=\"16%\" bgcolor=\"#E7C67B\" class=\"navbox\" align=\"center\" style=\"cursor:hand\" onMouseOver=\"this.style.background='#D6A531'\" onMouseOut=\"this.style.background='#E7C67B'\" onClick=\"window.location.href='modules.php?name=Submit_News'\">\n"
        ."<a class=\"topnav\" href=\"modules.php?name=Submit_News\">Proposez un article</a>\n"
        ."</td>\n"
	    ."<td height=\"20\" width=\"16%\" bgcolor=\"#E7C67B\" class=\"navbox\" align=\"center\" style=\"cursor:hand\" onMouseOver=\"this.style.background='#D6A531'\" onMouseOut=\"this.style.background='#E7C67B'\" onClick=\"window.location.href='modules.php?name=Top'\">\n"
        ."<a class=\"topnav\" href=\"modules.php?name=Top\">Top 10</a>\n"
        ."</td>\n"
        ."</tr>\n"
    ."<tr>\n"
    ."<td colspan=\"6\" background=\"themes/Mustard/images/dotted-line.gif\"><IMG src=\"themes/Mustard/images/pixel.gif\" width=\"4\" height=\"1\" alt=\"\" border=\"0\" hspace=\"0\"></td>\n"
    ."</tr>\n"
    ."</table>\n"
        ."<table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"780\">\n"
        ."<tr>\n"
        ."<td><img src=\"themes/Mustard/images/topnav-bottom.gif\" width=\"780\" height=\"10\"></td>\n"
        ."</tr>\n"
        ."</table>\n";


	$public_msg = public_message();
        echo "$public_msg<br>";
// Begin main content table
	echo "<table width=\"780\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" align=\"center\">\n"
	."<tr valign=\"top\">\n"
	."<td><img src=\"themes/Mustard/images/pixel.gif\" width=\"1\" height=\"10\" border=\"0\" alt=\"\"></td>\n"
	."</tr>\n"
	."</table>\n"

	."<table width=\"780\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" align=\"center\"><tr valign=\"top\">\n"
	."<td width=\"150\" valign=\"top\">\n";
    blocks(left);
    echo "</td><td><img src=\"themes/Mustard/images/pixel.gif\" width=\"15\" height=\"1\" border=\"0\" alt=\"\"></td>\n"
        ."<td align=\"center\">\n"
        ."<b><script type=\"text/javascript\">\n\n"
        ."<!--   // Array ofmonth Names\n"
        ."var monthNames = new Array( \"Janvier\",\"Février\",\"Mars\",\"Avril\",\"Mai\",\"Juin\",\"Juillet\",\"Août\",\"Septembre\",\"Octobre\",\"Novembre\",\"Décembre\");\n"
        ."var now = new Date();\n"
        ."thisYear = now.getYear();\n"
        ."if(thisYear < 1900) {thisYear += 1900}; // corrections if Y2K display problem\n"
        ."document.write(\"Le \"+ now.getDate() + \" \" + monthNames[now.getMonth()] + \" \" + thisYear);\n"
        ."// -->\n\n"
        ."</script></b>\n";
}

/************************************************************/


function themefooter() {
    global $index;
    if ($index == 1) {
	echo "</td><td><img src=\"themes/Mustard/images/pixel.gif\" width=\"15\" height=\"1\" border=\"0\" alt=\"\"></td><td valign=\"top\" width=\"150\">\n";
	blocks(right);
    }
    echo "</td>\n"
	    ."</tr></table>\n"
        ."<table width=\"780\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" align=\"center\"><tr valign=\"top\">\n"
        ."</tr><tr align=\"center\">\n"
        ."<td width=\"100%\" colspan=\"3\">\n";
    footmsg();
    echo "</td>\n"
        ."</tr>\n"
        ."</table>\n";
}

/************************************************************/


function themeindex ($aid, $informant, $time, $title, $counter, $topic, $thetext, $notes, $morelink, $topicname, $topicimage, $topictext) {
    global $anonymous, $tipath;
    echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">\n"
    ."<tr>\n"
    ."<td><img src=\"themes/Mustard/images/storybox-top.gif\" width=\"450\" height=\"10\"></td>\n"
    ."</tr>\n"
    ."</table>\n"

// Top Dotted Lines
    ."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"#E7C67B\" width=\"100%\">\n"
    ."<tr>\n"
    ."<td width=\"1\" height=\"1\" background=\"themes/Mustard/images/dotted-line.gif\"><img src=\"themes/Mustard/images/pixel.gif\" width=\"1\" height=\"1\"></td>\n"
    ."</tr>\n"
    ."</table>\n"

    ."<table border=\"0\" cellpadding=\"3\" cellspacing=\"0\" bgcolor=\"#E7C67B\" width=\"100%\">\n"
	."<tr><td align=\"left\">\n"
	."<font class=\"option\" color=\"#363636\"><b>$title</b></font>\n"
	."</td>\n"
	."</tr>\n"
	."</table>\n"

// Bottom Dotted Lines
    ."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"#E7C67B\" width=\"100%\">\n"
    ."<tr>\n"
    ."<td width=\"1\" height=\"1\" background=\"themes/Mustard/images/dotted-line.gif\"><img src=\"themes/Mustard/images/pixel.gif\" width=\"1\" height=\"1\"></td>\n"
    ."</tr>\n"
    ."</table>\n\n"

// Story
	."<table border=\"0\" cellpadding=\"3\" cellspacing=\"0\" bgcolor=\"#ffffff\" width=\"100%\">\n"
	."<tr><td align=\"left\">\n"
	."<font color=\"#999999\"><b><a href=\"modules.php?name=News&amp;new_topic=$topic\"><img src=\"images/topics/$topicimage\" border=\"0\" Alt=\"$topictext\" align=\"right\" hspace=\"10\" vspace=\"10\"></a></B></font>\n";
    FormatStory($thetext, $notes, $aid, $informant);
    echo "</td>\n"
        ."</tr>\n"
        ."<tr>\n"
        ."<td align=\"center\">\n"
        ."<br>----------------------------------------------------------------------------------------------<br>\n"
    	."<font color=\"#999999\" size=\"1\">"._POSTEDBY." ";
	    formatAidHeader($aid);
	    echo " "._ON." $time $timezone ($counter "._READS.")<br></font>\n"
	    ."<font class=\"content\">$morelink</font>\n"
	    ."</td>\n"
	    ."</tr>\n"
        ."</table>\n"

 // Rounded Bottom
        ."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">\n"
        ."<tr>\n"
        ."<td><img src=\"themes/Mustard/images/storybox-bottom.gif\" width=\"450\" height=\"10\"></td>\n"
        ."</tr>\n"
        ."</table>\n"
	    ."<br>\n\n\n";
}

/************************************************************/


function themearticle ($aid, $informant, $datetime, $title, $thetext, $topic, $topicname, $topicimage, $topictext) {
    global $admin, $sid, $tipath;
    echo "<table border=\"0\" cellpadding=\"3\" cellspacing=\"0\" bgcolor=\"#E7C67B\" width=\"100%\">\n"
        ."<td align=\"left\">\n"
        ."<font class=\"option\" color=\"#363636\"><b>$title</b></font><br>\n"
        ."<font class=\"content\">"._POSTEDON." $datetime "._BY." ";
    formatAidHeader($aid);
    if (is_admin($admin)) {
	echo "<br>[ <a href=\"admin.php?op=EditStory&amp;sid=$sid\">"._EDIT."</a> | <a href=\"admin.php?op=RemoveStory&amp;sid=$sid\">"._DELETE."</a> ]\n";
    }
    echo "</td>\n"
        ."</tr>\n"
        ."</table>"
        ."<table border=\"0\" cellpadding=\"3\" cellspacing=\"0\" bgcolor=\"#ffffff\" width=\"100%\">\n"
        ."<tr>\n"
        ."<td>\n";
    echo "<a href=\"modules.php?name=News&amp;new_topic=$topic\"><img src=\"images/topics/$topicimage\" border=\"0\" Alt=\"$topictext\" align=\"right\" hspace=\"10\" vspace=\"10\"></a>\n";
    FormatStory($thetext, $notes="", $aid, $informant);
    echo "</td></tr></table><br>\n\n\n";
}

/************************************************************/


function themesidebox($title, $content) {
    echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">\n"
    ."<tr>\n"
    ."<td><img src=\"themes/Mustard/images/sidebox-top.gif\" width=\"150\" height=\"10\"></td>\n"
    ."</tr>\n"
    ."</table>\n"
        ."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"#E7C67B\" width=\"100%\">\n"
        ."<tr>\n"
        ."<td width=\"1\" height=\"1\" background=\"themes/Mustard/images/dotted-line.gif\"><img src=\"themes/Mustard/images/pixel.gif\" width=\"1\" height=\"1\"></td>\n"
        ."</tr>\n"
        ."</table>\n"
    ."<table border=\"0\" cellpadding=\"3\" cellspacing=\"0\" bgcolor=\"#E7C67B\" width=\"100%\">\n"
	."<tr>\n"
	."<td align=left>\n"
	."<font class=\"content\" color=\"#363636\"><b>$title</b></font>\n"
	."</td>\n"
	."</tr>\n"
	."</table>\n"
        ."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"#E7C67B\" width=\"100%\">\n"
        ."<tr>\n"
        ."<td width=\"1\" height=\"1\" background=\"themes/Mustard/images/dotted-line.gif\"><img src=\"themes/Mustard/images/pixel.gif\" width=\"1\" height=\"1\"></td>\n"
        ."</tr>\n"
        ."</table>\n"
	."<table border=\"0\" cellpadding=\"3\" cellspacing=\"0\" bgcolor=\"#ffffff\" width=\"100%\">\n"
	."<tr valign=\"top\"><td bgcolor=\"#ffffff\">\n"
	."$content\n"
	."</td>\n"
	."</tr>\n"
	."</table>\n"
        ."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">\n"
        ."<tr>\n"
        ."<td><img src=\"themes/Mustard/images/sidebox-bottom.gif\" width=\"150\" height=\"10\"></td>\n"
        ."</tr>\n"
        ."</table>\n"
	    ."<br>\n\n\n";
}

?>
