\n"; for ($a=0; $a $config[maxpicturewidth]) { $picwidth = $config[maxpicturewidth]; $foopicheight = ""; } else { $picwidth = $foosize[0]; $foopicheight = " height=\"" . $foosize[1] . "\""; } $foopicwidth = " width=\"" . $picwidth . "\""; if (!empty($align)) $fooalign = " align=\"" . $align . "\""; $return = ""; $return .= "

0m (1:45) Models >

Westinghouse engine

Spoked wheelsets

Maintenance car

Prototype >

Thamshavnbanen
-An introduction

Historical photos

Current photos

Misc.>

Links

Home

Norwegian version

Remembrance of Trains Past

(Modelljernbaneforeningen På Sporet Av Den Tapte Tid)


This site is no longer updated. Please see my Blog Ā«Remembrance Of Trains PastĀ» for my current adventures in 0-scale Fine Scale.

\n"; $querystring = "SELECT * FROM news_articles WHERE"; $b=0; for ($a=0; $a<=count($news); $a++) { if (!empty($news[$a])) { if ($b == 0) $querystring .= " id = \"" . $news[$a] . "\""; else $querystring .= " OR id = \"" . $news[$a] . "\""; $b++; } } $querystring .= " ORDER BY magic DESC, timestamp DESC LIMIT 100"; if (!$cr = dbconnect()) { print "Error: id 2.1"; return false; exit; } if (!$content = querytoarray($querystring, 0, 0)) { dbdisconnect(); return false; exit; } if (!dbdisconnect()) { print "Error: id 2.3"; return false; exit; } if ($config[outputformatting] == 0) { $return .= "
    \n"; for ($a=0; $a\n"; for ($a=0; $a\n"; for ($a=0; $a
"; if ($config[usepicturetext] == "yes") { $return .= " "; } $return .= "
\""

" . $foo[description] . "

"; return $return; } } function newshtmlsubgen0($content, $config) { # -- making html as layout alternative 0. Receiving content as an array. # UNDER DEVEL global $PHP_SELF, $category, $id; $return = ""; $return .= "
  • Headline: " . $content[headline] . "
  • \n"; if($content[bildeid]) { $return .= print_picturecode($content[bildeid], "right", $config, $content[magic]); } $return .= " \n"; return $return; } function newshtmlsubgen1($content, $config) { # -- making html as layout alternative 1. Receiving content as an array. # Ok .. Practically global $PHP_SELF, $category, $id; if ($content[magic]) $foostyle = "amtnewslistmagic"; else $foostyle = "amtnewslist"; if ($content[id] == $id) $foostyle = "amtnewslistactive"; $return = ""; if ($config[nlistlink] == "line") $return .= "

    " . $content[headline] . "

    "; else $return .= "

    " . $content[headline] . "

    "; if ($config[nlistusedate] == "yes") $return .= "

    " . date($config[foonewsdateformatting], $content[timestamp]) . " kl." . date("H:i", $content[timestamp]) . "

    "; if (!empty($content[ingress]) && $config[nlistcontent] != "short") $return .= "

    " . nl2br($content[ingress]) . "

    \n"; if ($config[nlistlink] == "line") $return .= "

    " . $config[nlistlinktext] . "

    \n"; return $return; } function newshtmlsubgen2($content, $config) { # -- making html as layout alternative 0. Receiving content as an array. # OK.. as good as global $PHP_SELF, $category, $id; if ($content[magic]) $foostyle = "amtnewslistmagic"; else $foostyle = "amtnewslist"; if ($content[id] == $id) $foostyle = "amtnewslistactive"; $return = ""; if ($config[nlistlink] == "line") $return .= "

    " . $content[headline] . "

    "; else $return .= "

    " . $content[headline] . "

    "; if ($config[nlistusedate] == "yes") $return .= "

    " . date($config[foonewsdateformatting], $content[timestamp]) . " kl." . date("H:i", $content[timestamp]) . "

    "; if (!empty($content[ingress]) && $config[nlistcontent] != "short") $return .= "

    " . nl2br($content[ingress]) . "

    \n"; if ($config[nlistlink] == "line") $return .= "

    " . $config[nlistlinktext] . "

    \n"; return $return; } function newshtmlsubgen3($content, $config) { # -- making html as layout alternative 0. Receiving content as an array. # Ok .. Practically global $PHP_SELF, $category, $id; if ($content[magic]) $foostyle = "amtnewslistmagic"; else $foostyle = "amtnewslist"; if ($content[id] == $id) $foostyle = "amtnewslistactive"; $return = ""; if ($config[nlistlink] == "line") $return .= "

    " . $content[headline] . "

    "; else $return .= "

    " . $content[headline] . "

    "; if ($config[nlistusedate] == "yes") $return .= "

    " . date($config[foonewsdateformatting], $content[timestamp]) . " kl." . date("H:i", $content[timestamp]) . "

    "; if (!empty($content[ingress]) && $config[nlistcontent] != "short") $return .= "

    " . nl2br($content[ingress]) . "

    \n"; if ($config[nlistlink] == "line") $return .= "

    " . $config[nlistlinktext] . "

    \n"; $return .= "
    \n"; return $return; } function newshtmlsubgen4($content, $config) { # -- making html as layout alternative 0. Receiving content as an array. # OK.. as good as global $PHP_SELF, $category, $id; if ($content[magic]) $foostyle = "amtnewslistmagic"; else $foostyle = "amtnewslist"; if ($content[id] == $id) $foostyle = "amtnewslistactive"; $return = ""; if ($config[nlistlink] == "line") $return .= "

    " . $content[headline] . "

    "; else $return .= "

    " . $content[headline] . "

    "; if -->