include "../article/textpattern/config.php"; include $txpcfg['txpath']."/publish.php"; $id = gps('id'); $id = (!$id) ? 1 : $id; $prevlink=''; $nextlink=''; $thisrow = getRow("select * from eaten_textism.textism_writing where id=$id"); $allrows = getThings("select ID as listid from eaten_textism.textism_writing"); extract($thisrow); $next=($id + 1); $prev=($id - 1); if (in_array($next,$allrows)) { $nextlink = sp.sp.'·'.sp.sp.'next →'; } if (in_array($prev,$allrows)) { $prevlink = '← prev'.sp.sp.'·'.sp.sp; } ?>
foreach($allrows as $listid) {
$link = '·';
if($listid == $id) $link="•";
echo $link," ";
}
echo graf(small($prevlink.'main'.$nextlink),' align="center"');
if (!empty($image)) {
$imagesize = GetImageSize($image);
$imageurl = '';
echo graf($imageurl,' align="center"');
}
echo '
| ';
echo ($id==1) ? hed('The Evolution of Writing',3) : '';
echo graf(str_replace(" "," ",$text)); echo ' |