<?php
require_once('ed/sitebase.inc');
require_once('ed/entry.inc');
require_once('ed/signup.inc');
tophdr(0);
$edid='ed_cs';
$cnum='c1';
edset();
unset($_SESSION['HomeTopicno']);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta content="text/html; charset=ISO-8859-1" http-equiv="content-type"><title>Chris & Sue</title></head>
<body>
<font size=5><center>Chris & Sue: Our Adventures</center></font>
<br><br>

<center><table width=80%><tr><td>
<div class=pagebox>
<?php
$top_res=mysqli_query($msql,
        "SELECT topicno, entryno FROM ${edid}_topic ORDER BY topicno DESC");
if (!$top_res) {echo '<br>Malfunction<br>'; exit(); }
echo "<table width=100% cellpadding=2 cellspacing=0>\n";
$bg=array('#DDDDDD','#EEEEEE');
$bgn=0;
while ($topic=mysqli_fetch_assoc($top_res))
    {echo '<tr bgcolor="'.$bg[$bgn].'">';
    $entry=getrec('entry', 'entryno', $topic['entryno']);
    index_disent($entry, $topic['topicno']);
    echo "</tr>\n";
    $bgn=1-$bgn;
    }
mysqli_free_result($top_res);
?></table>
</div></td></tr></table></center>
<br><br>

<hr width=75%>
<center><font size=4>
<a href="https://gateley.net/cs1/index.htm">A December Indulgence</a> by Chris & Sue - 12/22/05
</font></center>
<p>
<hr width=75%>
<font size=4>
<center>
<a href="https://gateley.net/chpk2000.htm">Chesapeake or bust</a></center>
<center>
 Chris's & Sue's great adventure to the Chesapeake aboard Titania - Fall, 2000
</center>
<p>
<hr width=50%>
<center>
<a href="https://gateley.net/chpk2001.htm">Return from the Chesapeake</a></center>
<center>
 Chris & Sue bring Titania back from the Chesapeake - Spring, 2001
</center>
<p>
<br>

<hr width=75%>

<div align="center">
To get automatic notices of new postings send a note to:<br>
<a href="mailto:chris@brownroad.com">chris@brownroad.com</a><br>
</div>

<?php
// signup('N');

function index_disent($entry, $tanch)
    {global $msql, $edid, $urec, $edcfg, $cnum;
    if (!$entry)
        {echo '*malfunction*</td><td></td><td></td>'; }
    else {
        echo '<td width=10% align=right><nobr>'
            .($tanch?'<a name="'.$tanch.'"></a> ':'')
            .'<a href="/ed/entry.php?'.$edcfg['idq']
            .'&topicno='.$entry['topicno'].'">'
            .date('F d, Y', strtotime($entry['edate']))
            .'</a> &nbsp;</nobr></td>';
        echo '<td>'.$entry['subject'].'</td>';
        }
    }

?>

</body></html>
