n/oldblog
Archived
1
0
Fork 0
This repository has been archived on 2024-02-13. You can view files and clone it, but cannot push or open issues or pull requests.
oldblog/modules/print.php

48 lines
1.5 KiB
PHP
Raw Permalink Normal View History

2023-04-30 21:28:42 +02:00
<?php
require_once "../include/standard.inc.php";
require_once "../include/news.inc.php";
function PrintPage($FileNews,$newsnb) {
$MyNews=getnews($FileNews,$newsnb);
echo "
<html>
<head><title>PIP</title></head>
<body bgcolor=\"#ffffff\" text=\"#000000\">
<table border=\"0\"><tr><td>
<table border=\"0\" width=\"640\" cellpadding=\"0\" cellspacing=\"1\" bgcolor=\"#000000\"><tr><td>
<table border=\"0\" width=\"640\" cellpadding=\"20\" cellspacing=\"1\" bgcolor=\"#ffffff\"><tr><td>
<center>
<!--<img src=\"images/$site_logo\" border=\"0\" alt=\"\"><br><br>-->
<b>".$MyNews["titre"]."</b></font><br>
Post<EFBFBD> le ".$MyNews["date"]." <EFBFBD> ".$MyNews["heure"]." par <b>".$MyNews["nom"]."
</center><table><tr>";
if (isset($MyNews["icone"]) && ($MyNews["icone"] != ""))
echo "<td align=center width=100><img src=".$MyNews["icone"]." width=80 heigh=80 alt=''></td><td>&nbsp;&nbsp;</td>\n";
if (isset($cadrenews) && ($cadrenews != 0))
echo "<td bgcolor=$blanc border=1 cellpadding=3 cellspacing=3 width=100%>\n";
else
echo "<td>\n";
echo $MyNews["message"]."</td></tr></table>
</font>
</td></tr></table></td></tr></table>
<br><br><center>
<font class=\"content\">
"._COMESFROM." $sitename<br>
<a href=\"$nukeurl\">$nukeurl</a><br><br>
"._THEURL."<br>
<a href=\"$nukeurl/article.php?sid=$sid\">$nukeurl/article.php?sid=$sid</a>
</font>
</td></tr></table>
</body>
</html>
";
}
PrintPage($File,$newsnb);
?>