I am trying to make a table so that my site logo is on the far left and banners are displayed on the far right at the top of my site.
Here are lines 52 to 74 of my theme.php file:
function themeheader() {
global $prefix, $dbi, $user, $cookie, $bgcolor1, $bgcolor2, $bgcolor3, $banners, $sitename, $anonymous, $user;
echo "<body bgcolor=\"$bgcolor1\">";
if ($banners
== 1) {
include("banners.php");
}
if (is_user($user)) {
cookiedecode($user);
$username = $cookie[1];
$bienvenida = "Hello $username! [ <a href=\"modules.php?name=Your_Account&op=logout\"><b>Logout</b></a> ]";
} else {
$bienvenida = "<a href=\"modules.php?name=Your_Account&op=new_user\">Create an Account</a> | <a href=\"modules.php?name=Your_Account\">User Login</a>";
}
$topics_list = "<select name=\"topic\" onChange='submit()'>\n";
$topics_list .= "<option value=\"\">All Topics</option>\n";
$toplist = sql_query("select topicid, topictext from $prefix"._topics." order by topictext", $dbi);
while(list($topicid, $topics) = sql_fetch_row($toplist, $dbi)) {
if ($topicid==$topic) { $sel = "selected "; }
$topics_list .= "<option $sel value=\"$topicid\">$topics</option>\n";
$sel = "";
}
echo "<center><a href=\"index.php\"><img src=\"themes/Sand_Journey/images/LogoLeft.gif\" alt=\"CarryConcealed.com - The Carry Concealed Weapon (CCW) Law Information Resource Site\" title=\"CarryConcealed.com - The Carry Concealed Weapon (CCW) Law Information Resource Site\" border=\"0\"></a><br><br></center>"
Now I want to move the info regarding the logoleft and the banners into a table together. But when I tried it my page was screwed up. Not sure if the table can be created where the logo info is and move the banners or move the logo info to where the banners are and create the table there.
Anyways, if I could use plain HTML I could create the table easily enough, but I am not sure how to do it in PHP or what all needs to be moved for the banners info.
View next topic View previous topic
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum