From: Jean-Marc Pigeon Date: Sun, 7 Sep 2025 11:39:21 +0000 (-0400) Subject: Adding starthtml and stophtml function X-Git-Tag: end-0.15~15 X-Git-Url: https://jmp-git.ovh.safe.ca/?a=commitdiff_plain;h=199fa8cb52a5a3a63015c13627aa8822f1e5277a;p=jmp%2Fmailleur Adding starthtml and stophtml function --- diff --git a/www/gesdis.php b/www/gesdis.php index 2b6bd3b..f9f547f 100644 --- a/www/gesdis.php +++ b/www/gesdis.php @@ -1,4 +1,5 @@ Remotes"; $click2="Users"; - $click3="logout"; } + $click3="logout"; break; case "lvlusr" : $entete="user management"; @@ -47,9 +46,9 @@ switch ($pageref) { } $STR = << +
$entete - +
- +
@@ -117,4 +116,49 @@ EOT; return $STR; } +//============================================================== +// +// To generate the HTML starter +// +//============================================================== +function starthtml($js) + +{ +if ($js!=NULL) { + $JSTR = << + EOT; + } + +$STR = << + + +Mailleur WEB Interface + +$JSTR + + +EOT; + +return $STR; +} + +//============================================================== +// +// To generate the HTML end +// +//============================================================== +function endhtml() + +{ +$STR = << + +EOT; + +return $STR; +} + ?> diff --git a/www/lvllog.php b/www/lvllog.php index 3e9b64d..e536cd5 100644 --- a/www/lvllog.php +++ b/www/lvllog.php @@ -25,7 +25,11 @@ $STR = <<
+ + Authentication + +
@@ -97,28 +101,18 @@ function body() { global $isadmin; +$start=starthtml("translations.js"); +$stop=endhtml(); $top=topper($isadmin,NULL,"lvllog"); $footer=footer("lvllog"); $login=login(); $STR = << - - -Starting - - - - - -
+$start $top -
$login $footer - - +$stop EOT; return $STR; diff --git a/www/lvlmai.php b/www/lvlmai.php index 249bb55..1ade263 100644 --- a/www/lvlmai.php +++ b/www/lvlmai.php @@ -30,6 +30,7 @@ $STR = << + $top
Within mailleur diff --git a/www/translations.js b/www/translations.js index ae1f663..23cb16b 100644 --- a/www/translations.js +++ b/www/translations.js @@ -3,16 +3,18 @@ var translationMap = new Map(); var translationEn = new Map(); +translationEn.set("Authentication","Authentication"); translationEn.set("Email","Email"); +translationEn.set("Login","Login"); translationEn.set("Password","Password"); translationEn.set("Show","Show"); -translationEn.set("Login","Login"); var translationFr = new Map(); -translationFr.set("Email", "Courriel"); +translationFr.set("Authentication","Authentification"); +translationFr.set("Email","Courriel"); +translationFr.set("Login","Connexion"); translationFr.set("Password","Mot de passe"); translationFr.set("Show","Afficher"); -translationFr.set("Login","Connexion"); translationMap.set("fr", translationFr); translationMap.set("en", translationEn);