abstract class Template function Article Id Title Date Author Image Te

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
abstract class Template
{
function Article($Id, $Title, $Date, $Author, $Image, $Text, $Tags, $Print = null, $Bookmark = null)
{
global $Module;
global $Language;
global $DatabaseConnection;
echo $Bookmark." <b>".$Title ."</b><br>";
$Toolbar = new Toolbar();
if($Author)
{
$Toolbar->Add("?module=profiles&id=".$Author['id'], null, 'user.png', $Author['login']);
} else {
$Toolbar->AddText("guest.png", $Language[173]);
}
$Toolbar->AddText("date.png", MakeDate($Date));
$Toolbar->AddSeparator();
if($Print)
{
$Toolbar->Add("print.php?module=".$Module."&id=".$Id, null, 'print.png', $Language[4]);
}
$Toolbar->Display('left');
echo "<hr>\n".$Image."\n".$Text."\n<br><br>".$Tags;
}
}