]> SAFE projects GIT repository - jmp/mailleur/commitdiff
Lets standardize php file
authorJean-Marc Pigeon (Delson) <jmp@safe.ca>
Tue, 26 Aug 2025 11:42:12 +0000 (07:42 -0400)
committerJean-Marc Pigeon (Delson) <jmp@safe.ca>
Tue, 26 Aug 2025 11:42:12 +0000 (07:42 -0400)
www/mailleur.php

index ed807447dff0ad9cd01ce3d04c056b3897f04332..85acfabc08e3f03710ecdd83ea8809aea34ed3fd 100644 (file)
@@ -1,27 +1,36 @@
-<HTML>    
+<?php
+
+//section to generate the main screen body
+function body()
 
+{
+//including screen function
+//
+include "scrfun.php";
 
+$footer=footer("P:mailleur");
+
+$STR  = <<<EOD
+<HTML>    
 <HEAD>
 <TITLE>Mailleur</TITLE>
 <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
 </HEAD>
-
 <BODY="white">
-
 <CENTER><STRONG><FONT SIZE=+2 color=red>
 Mailleur
 </FONT></STRONG></CENTER>
+$footer;
+</BODY>
+</HTML>
+EOD;
 
-<?php
-
-//including screen function
-include "scrfun.php";
-
-echo footer("P:mailleur");
+echo $STR
+}
 
+//display main screen
+echo $body
 ?>
 
-</BODY>
 
 
-</HTML>