ok I gave it a try, still working on it. I am sure I am doing something simple wrong but I can not get that right side image that is supposed to be behind the month and year to show up. You see anything?
new link, as I saved off a version of the file http://outdoorsindoors.net/DEV/BVO/i...h=10&year=2009
Code:
.sheaderrow{float: right; color: #ffffff; font-size: 12pt; font-family:Geneva, Arial, Helvetica, sans-serif }
.smonthcol{float:left; background-image:url('smonthbg.jpg'); height:500px; width:200px; padding: 30px 0 0 0; margin:0 0 0 0; border:0;}
.mlink a{ color: #ffffff; font-size: 12pt; font-family:Geneva, Arial, Helvetica, sans-serif; padding: 0 0 0 20px;}
.scenter { width:550; float: left;};
.smonthhead{background-image:url('monthhead.jpg'); height:50px; width:550x; text-align:left; padding:0; border:0; }
.smonthheadlink{ color: #000000; font-size: 12pt; font-family:Geneva, Arial, Helvetica, sans-serif; padding: 5px 0 0 25px; font-weight:bold; margin:0px }
.jmonth_header{ color: #ffffff; font-size: 12pt; font-family:Geneva, Arial, Helvetica, sans-serif }
.jmonthhead{background-image:url('monthhead.jpg'); height:50px; width:298px; text-align:left; padding:0; border:0; }
.jmonthheadlink{ color: #000000; font-size: 12pt; font-family:Geneva, Arial, Helvetica, sans-serif; padding: 5px 0 0 25px; font-weight:bold; margin:0px }
.jmiddle{ padding:25px 0 0 0; margin:0px; }
.middletable{width:550px; padding:0 0 0 0; margin: 0 0 0 0; }
Code:
<?php centeruppertheme();?>
<div class="sheaderrow"><a href="index.php?page=mods/staff/index">Journals by Staff Member</a></div>
<div class="smonthcol">
<?php $lsql = mysql_query("SELECT DISTINCT month, year, count(id) as numr FROM table where `release` = 1 and archive <> 1 group by month, year order by year desc, month desc");
while ($list = mysql_fetch_array($lsql)){
switch ($list["month"]){
case 1: $m = "January"; break;
case 2: $m = "February"; break;
case 3: $m = "March"; break;
case 4: $m = "April"; break;
case 5: $m = "May"; break;
case 6: $m = "June"; break;
case 7: $m = "July"; break;
case 8: $m = "August"; break;
case 9: $m = "September"; break;
case 10: $m = "October"; break;
case 11: $m = "November"; break;
case 12: $m = "December"; break;
case 0: $m = "Not Set"; }
echo "<div class=\"mlink\"><a href=\"index.php?page=mods/staff/mindex&month=".$list["month"]."&year=".$list["year"]."\">".$m." ".$list["year"]." (".$list["numr"].")</a></div>";
}
if (!isset($_GET["month"])){
$month = date(n);
$y = date(Y);
} else {
$month = $_GET["month"];
$y=$_GET["year"];
}
switch ($month){
case 1: $m = "January"; break;
case 2: $m = "February"; break;
case 3: $m = "March"; break;
case 4: $m = "April"; break;
case 5: $m = "May"; break;
case 6: $m = "June"; break;
case 7: $m = "July"; break;
case 8: $m = "August"; break;
case 9: $m = "September"; break;
case 10: $m = "October"; break;
case 11: $m = "November"; break;
case 12: $m = "December"; break;
case 0: $m = "Not Set"; }
?>
</div>
<div class="scenter">
<div class="smonthhead" ><p class="smonthheadlink"><?php echo $m." ".$y;?></p></div>
<?php
$sql = mysql_query("select * from table where month = ".$month." and year = ".$y." and `release` = 1 and archive <> 1 ");
$count = mysql_num_rows($sql);
if ($count==0){
echo "<p>No Journal Entries Found</p>";
}
while ($row = mysql_fetch_array($sql)){
$nsql = mysql_query("select * from table where userid = ".$row["userid"]."");
$n=mysql_fetch_array($nsql);
$name = $n["fname"]." ".$n["lname"];
?>
<div class="scentinfo">
<img src = "<?php echo ($row["thumb"]==''?"mods/staff/thumbs/blank.jpg":$row["thumb"]);?>" width="150">
<p class ="jtitle"><?php echo $row["subject"];?></p><?php echo $name."<br>".$row["preview"];?>
<p style="float:right"><a href="index.php?page=mods/staff/detail&id=<?php echo $row["id"];?>"><img src="themes/BVO/view.jpg" border="0" /></a></p>
</div>
<?php
}
?>
</div>
<?php centerlowertheme();?>
Bookmarks