]> SAFE projects GIT repository - jmp/mailleur/commitdiff
Updated the search function (according chatgpt)
authorJean-Marc Pigeon <jmp@safe.c>
Mon, 15 Dec 2025 23:49:55 +0000 (18:49 -0500)
committerJean-Marc Pigeon <jmp@safe.c>
Mon, 15 Dec 2025 23:49:55 +0000 (18:49 -0500)
www/lvlmai.php
www/res/chat.php [moved from www/chat.php with 100% similarity]
www/res/chat1.php [moved from www/chat1.php with 100% similarity]
www/res/chat2.php [moved from www/chat2.php with 100% similarity]
www/res/chat3.php [moved from www/chat3.php with 100% similarity]
www/res/chat4.php [moved from www/chat4.php with 100% similarity]

index 89b477cf2747ed1ef8140658327cd745c17993d2..1ec1c4a1823dc5f03c6e3b90456cb03f67039ecb 100644 (file)
@@ -45,6 +45,9 @@ foreach ($filterOptions as $value => $trkey) {
       . '</option>';
 }
 error_log($optionsHtml);
+
+$dsearchHtml = htmlspecialchars($dsearch,ENT_QUOTES|ENT_SUBSTITUTE);
+
 $debut=$offset+1;
 $STR  = <<<EOT
 <TABLE WIDTH="100%" BORDER="0" CellSpacing="0">
@@ -80,12 +83,12 @@ $STR  = <<<EOT
 <TD align=left>
 <FORM action="{$myfilename}.php" method="post">
 <FONT SIZE=+1>
-<span class="translatable" trkey="Search">Search</span>
-<input type="text" value="$dsearch" name="dsearch" size=20 style="font-size: 100%;">
-<select name="filterfield" style="font-size:100%;">
-$optionsHtml
-</select>
-<input type="submit" style="display:none"/>
+    <span class="translatable" trkey="Search">Search</span>
+    <input type="text" id="searchInput" value="{$dsearchHtml}" name="dsearch" size=20 style="font-size: 100%;">
+    <select name="filterfield" style="font-size:100%;">
+        $optionsHtml
+    </select>
+    <input type="submit" style="display:none"/>
 </FONT>
 </FORM>
 </TD>
similarity index 100%
rename from www/chat.php
rename to www/res/chat.php
similarity index 100%
rename from www/chat1.php
rename to www/res/chat1.php
similarity index 100%
rename from www/chat2.php
rename to www/res/chat2.php
similarity index 100%
rename from www/chat3.php
rename to www/res/chat3.php
similarity index 100%
rename from www/chat4.php
rename to www/res/chat4.php