Location: PHPKode > projects > ProNuke. Postnuke To Oracle > postnuke/html/themes/ExtraLite/theme.php
<?php // $Id: theme.php,v 1.10 2001/11/22 15:07:58 niceguyeddie Exp $ $Name:  $

$bgcolor1 = "#ffffff";
$bgcolor2 = "#cccccc";
$bgcolor3 = "#ffffff";
$bgcolor4 = "#eeeeee";
$bgcolor5 = "#000000";
$textcolor1 = "#ffffff";
$textcolor2 = "#000000";
$postnuke_theme = true;

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 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 CloseTable() {
    echo "</td></tr></table></td></tr></table>\n";
}

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

function FormatStory($thetext, $notes, $aid, $informant) {
    global $anonymous;
    if ($notes != "") {
    $notes = "<b>"._NOTE."</b> <i>$notes</i>\n";
    } else {
    $notes = "";
    }
    if ("$aid" == "$informant") {
    echo "<font class=\"pn-normal\">$thetext<br>$notes</font>\n";
    } else {
    if($informant != "") {
        $boxstuff = "<a href=\"user.php?op=userinfo&amp;uname=$informant\">$informant</a> ";
    } else {
        $boxstuff = "$anonymous ";
    }
    $boxstuff .= "<font class=\"pn-normal\">"._WRITES." <i>\"$thetext\"</i> $notes</font>\n";
    echo "<font class=\"pn-normal\">$boxstuff</font>\n";
    }
}

function themeheader() {
    global $bgcolor1, $bgcolor2, $bgcolor3, $bgcolor4, $banners, $sitename;
    echo "</head>";
    echo "<body>"
    ."<br>";
    if ($banners) {
    include("banners.php");
    }
    echo "<br>"
    ."<table border=\"0\" cellpadding=\"4\" cellspacing=\"0\" width=\"100%\" align=\"center\"><tr><td bgcolor=\"$bgcolor1\">"
        ."<table border=\"0\" cellspacing=\"0\" cellpadding=\"3\" width=\"100%\" bgcolor=\"$bgcolor1\"><tr><td>"
        ."<a href=\"index.php\"><img src=\"".WHERE_IS_PERSO."images/logo.gif\" Alt=\""._WELCOMETO." $sitename\" border=\"0\"></a>"
        ."</td><td align=\"right\">"
        .'<form action="modules.php" method="post">'
        .'<input type="hidden" name="name" value="Search">'
        .'<input type="hidden" name="file" value="index">'
    	.'<input type="hidden" name="op" value="modload">'
    	.'<input type="hidden" name="action" value="search">'
    	.'<input type="hidden" name="overview" value="1">'
    	.'<input type="hidden" name="active_stories" value="1">'
    	.'<input type="hidden" name="bool" value="AND">'
    	.'<input type="hidden" name="stories_cat" value="">'
    	.'<input type="hidden" name="stories_topics" value="">'
    	.'<div align="right"><font class="pn-normal">'._SEARCH.'&nbsp;</font>'
    	."<input class=\"pn-text\" NAME=\"q\" TYPE=\"text\" VALUE=\"$q\">&nbsp;\n"
    	.'</div>'
    	.'</form>'
        ."</td></tr></table></td></tr><tr><td valign=\"top\" width=\"100%\" bgcolor=\"$bgcolor1\">"
        ."<table border=\"0\" cellspacing=\"0\" cellpadding=\"2\" width=\"100%\"><tr><td valign=\"top\" width=\"150\" bgcolor=\"$bgcolor1\">";
    blocks(left);
    echo "<img src=\"images/global/pix.gif\" border=\"0\" width=\"150\" height=\"1\" alt=\"\"></td><td>&nbsp;&nbsp;</td><td width=\"100%\" valign=\"top\">";
}

function themefooter() {
    global $bgcolor1, $bgcolor2, $bgcolor3, $bgcolor4, $index;
    if ($index == 1) {
    echo "</td><td>&nbsp;&nbsp;</td><td valign=\"top\" bgcolor=\"$bgcolor1\">";
    blocks(right);
    }
    echo "</td></tr></table></td></tr></table>";
    echo "<center>";
    footmsg();
    echo "</center>";
}

function themeindex ($_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $info, $links, $preformat) {
    global $tipath, $anonymous, $bgcolor1, $bgcolor2, $bgcolor3, $bgcolor4,  $sepcolor, $timezone;
    echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\" bgcolor=\"$bgcolor5\" width=\"100%\"><tr><td>"
        ."<table border=\"0\" cellpadding=\"3\" cellspacing=\"1\" width=\"100%\"><tr><td bgcolor=\"$bgcolor1\">"
        ."<b>$preformat[catandtitle]</b><br>"
        ."<font class=\"pn-normal\">"
        .""._POSTEDBY.": $info[informant] "._ON." $info[longdatetime] $timezone <b>";
    echo "$preformat[searchtopic]\n"
        ."</font></td></tr><tr><td bgcolor=\"$bgcolor1\">"
        ."<font class=\"pn-normal\">"
        ."$info[hometext]\n"
        ."<BR><BR>$preformat[notes]\n"
        ."<br><br>"
        ."</font>"
        ."</td></tr><tr><td bgcolor=\"$bgcolor1\" align=\"right\">"
        ."<font class=\"pn-sub\">$preformat[more]</font>"
        ."</td></tr></table></td></tr></table>"
    ."<br>";
}

function themearticle ($_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $info, $links, $preformat) {
    global $bgcolor1, $bgcolor2, $bgcolor3, $bgcolor4, $sepcolor;
    echo"
    <table border=0 cellpadding=0 cellspacing=0 align=center bgcolor=\"$bgcolor5\" width=\"100%\"><tr><td>
    <table border=0 cellpadding=3 cellspacing=1 width=\"100%\"><tr><td bgcolor=\"$bgcolor1\">
    <font class=\"pn-title\">$preformat[catandtitle]</font><br><font class=\"pn-normal\"><font CLASS=\"pn-sub\">"._POSTEDBY.": $info[informant]</font></font>";
    if (authorised(0, $storyComponent, '::', ACCESS_ADMIN)) {
        echo "&nbsp;&nbsp; <font class=\"pn-normal\"> [ <a href=\"admin.php?op=EditStory&amp;sid=$sid\">"._EDIT."</a> | <a href=\"admin.php?op=RemoveStory&amp;sid=$sid\">"._DELETE."</a> ]</font>";
    }
    echo "
    <br><font class=\"pn-normal\">$preformat[searchtopic]</font> 
    </td></tr><tr><td bgcolor=\"$bgcolor1\"><font class=\"pn-normal\">
    $preformat[fulltext]
    </font></td></tr></table></td></tr></table><br>";
    }


function themesidebox($block) {
    global $bgcolor1, $bgcolor2, $bgcolor3, $bgcolor4, $bgcolor5;
    echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"150\" bgcolor=\"$bgcolor5\"><tr><td>"
        ."<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"3\"><tr><td bgcolor=\"$bgcolor1\" class=\"pn-title\">"
        ."$block[title]</td></tr><tr><td bgcolor=\"$bgcolor1\" class=\"pn-normal\">"
        ."$block[content]"
    ."</td></tr></table></td></tr></table><br>";
}

?>
Return current item: ProNuke. Postnuke To Oracle