Location: PHPKode > projects > Content*Builder > modules/article/print_template.php
<?php
	$rel = "../../";
	include($rel."prepend.php");
	include($rel."libraries/BTPL_functions.inc.php");
	/*
	This is your print-template.
	*/
	$ide = $id;
	
	extract($HTTP_POST_VARS);
	
	$article = mysql_fetch_object(mysql_query("SELECT * FROM ".TABLE."_article WHERE ide = '$id'"));
	
	$intro   = stripslashes($article->intro);
	$content = stripslashes($article->content);
	$title   = $article->title;
	
	$author = mysql_fetch_object(mysql_query("SELECT * FROM ".TABLE."_user WHERE userid = '".$article->userid."'"));
	$pref   = $author->initial;
	
	/********* REPLACEMENT START **********/
	$intro	 = str_replace('[REPLACEDIR]', $path["cb"].'uploads/cgfx/icons/', $intro);
	$content = str_replace('[REPLACEDIR]', $path["cb"].'uploads/cgfx/icons/', $content);
	/********** REPLACEMENT END ***********/
	
	$intro	 = str_replace('[CBDIR]', $path["cb"], $intro);
	$content = str_replace('[CBDIR]', $path["cb"], $content);
	
	
	
	$dat      = getGermanDate($article->datum);
	$email    = $author->email;
	$fullname = $author->fullname;
?>
<html>
<head>
<title>Display</title>
<meta name="author" content="Stefan Ernst">
<style type="text/css">
<!--
.text {
font-family: Verdana;
font-size: 11px;
}
.heading
{
font-family: Verdana;
font-size: 18px;
font-weight: bold;
color: #0070C0;
}
-->
</style>
</head>
<body text="#000000" bgcolor="#FFFFFF" link="#0000FF" alink="#FF0000" vlink="#0000FF">

<table width=400 align=center cellpadding=7 cellspacing=0>
<tr><td class="text">
<h4><? print($title); ?></h4>
<b><? print($intro); ?></b><p>
<? print($content." ($pref)"); ?>
<p>
<? print($datum." <a href=\"mailto:$email?Subject=Artikel: $title, $ide\">".$fullname."</a>");
 ?>
</td></tr>
</table></body></html>
Return current item: Content*Builder