idx'"); print("
"); echo format_post($r->idx); } print (""); $next = next_stardate($sdate, $id); if (!$next) { $chap = next_chapter($id); print("$chap"); if (!$chap) $flag="end"; else { $id = $chap; $next = next_stardate($sdate,$chap);}} print("
Log Index"); if ($flag != "end") {print(" | Go to Stardate $next"); } print("
"); break; case "show2": $ch=mysql_query("select * from chapters where id = $id and ship ='1'"); $rowc=mysql_fetch_object($ch); $list=mysql_query("select count(idx),stardate from ships_logs2 where tid=$id group by stardate order by stardate asc"); print(""); while($row=mysql_fetch_row($list)) { print(""); } print("
"); print("
$rowc->title
$rowc->intro;"); print ("
"); break; default: ?> "); } print("
Chapters
id>
"); } include("foot.php");