tma/modules/print.php

50 lines
1.5 KiB
PHP
Raw Permalink Normal View History

2020-11-29 11:25:34 +01:00
<?php
2024-02-12 20:46:07 +01:00
2020-11-29 11:25:34 +01:00
require_once "../include/standard.inc.php";
require_once "../include/news.inc.php";
2024-02-12 20:46:07 +01:00
function PrintPage($FileNews, $newsnb)
{
$MyNews = getnews($FileNews, $newsnb);
2020-11-29 11:25:34 +01:00
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é le ".$MyNews["date"]." à ".$MyNews["heure"]." par <b>".$MyNews["nom"]."
</center><table><tr>";
2024-02-12 20:46:07 +01:00
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";
}
2020-11-29 11:25:34 +01:00
2024-02-12 20:46:07 +01:00
if (isset($cadrenews) && ($cadrenews != 0)) {
echo "<td bgcolor=$blanc border=1 cellpadding=3 cellspacing=3 width=100%>\n";
} else {
echo "<td>\n";
}
2020-11-29 11:25:34 +01:00
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>
";
}
2024-02-12 20:46:07 +01:00
PrintPage($File, $newsnb);