Location: PHPKode > projects > NewsP > templates/com.inc.php
<?
$symbol = $domains[bild];
$jetzt = time();
if ($symbol == ""){
$symbol ="templates/abostroph.gif";
}
$n_store = "coms/nid_$gerds_nid.txt";
if(file_exists($n_store))
{
$n_file = fopen("$n_store","r"); 
$inhalt_n_file = fgets($n_file);  
fclose($n_file); 

if ($inhalt_n_file != "")
{
$coms = unserialize($inhalt_n_file);

foreach($coms as $key)
{
echo"<hr style=\"color: $domains[col_line] ; height: $domains[strich]px; border-top-style:solid;\" >";
$datum_ag= strftime($domains[outform_time] , $key[date]);
$kommentar= $key[kommentar]; 
$kommentar = str_replace("%0D%0A", "<br>", $kommentar);
$kommentar = urldecode($kommentar);

echo "<P><TABLE cellspacing=\"0\" cellpadding=\"5\"><TR><th rowspan=\"2\" valign=\"top\" width=35><IMG SRC=\"$symbol\" WIDTH=30 HEIGHT=30 BORDER=0> </th><TD bgcolor=\"$domains[col_bg]\"><I><B>$key[writer]</B>, $datum_ag</I></TD></TR><TR><TD>$kommentar </TD></TR></TABLE>";

}
}
}
echo"<hr style=\"color: $domains[col_line] ; border: $domains[strich]px; border-top-style:solid;\" >";
echo "<P><TABLE>";
?>
<TR>
	<TD> 
<B><? echo "$domains[com_t1]"; ?></B><br>
<? echo "$domains[com_t2]"; ?><BR><form name="coment" method="post" action="thanks.php" enctype="multipart/form-data"><input type="text" size="12" maxlength="100" name="writer"><BR>
<? echo "$domains[com_t3]"; ?><BR><textarea name="kommentar" rows="6" cols="40"></textarea>
<input type="hidden" name="com_t4" value="<? echo "$domains[com_t4]";?>"><input type="hidden" name="gerds_nid" value="<? echo "$gerds_nid";?>"><input type="hidden" name="jetzt" value="<? echo "$jetzt";?>"><input type="hidden" name="gerds_titel" value="<? echo "$gerds_titel";?>">

<P><input type=submit><P></form> 
</TD>
</TR>
</TABLE>

Return current item: NewsP