From 5ced1b7b18ceb9dfb57a651adb03667d8b697185 Mon Sep 17 00:00:00 2001 From: Hash Borgir Date: Tue, 22 Mar 2022 06:37:01 -0600 Subject: [PATCH] Runeword Browser Images added, almost finalized. --- genDocs.php | 55 ++++++++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 46 insertions(+), 9 deletions(-) diff --git a/genDocs.php b/genDocs.php index 88c5458..031ae71 100755 --- a/genDocs.php +++ b/genDocs.php @@ -217,7 +217,9 @@ $htmltop = << @@ -1428,6 +1437,12 @@ if ($cmd == 'genDocRunewords'){ $sql = 'SELECT * FROM runes'; $runes = array_filter(PDO_FetchAll($sql)); + + $sql = 'SELECT code,invfile from misc'; + $rune_inv_codes = array_filter(PDO_FetchAssoc($sql)); + + // ddump($rune_inv_codes); + $sql = 'SELECT * FROM strings'; $strings = array_filter(PDO_FetchAssoc($sql)); @@ -1459,6 +1474,15 @@ if ($cmd == 'genDocRunewords'){ $itype4 = $itypes[$rune['itype4']]; $itype5 = $itypes[$rune['itype5']]; $itype6 = $itypes[$rune['itype6']]; + + + $rr_img[1] = $rune_inv_codes[$rune['Rune1']]; + $rr_img[2] = $rune_inv_codes[$rune['Rune2']]; + $rr_img[3] = $rune_inv_codes[$rune['Rune3']]; + $rr_img[4] = $rune_inv_codes[$rune['Rune4']]; + $rr_img[5] = $rune_inv_codes[$rune['Rune5']]; + $rr_img[6] = $rune_inv_codes[$rune['Rune6']]; + $rr[1] = str_replace(' Rune', '', $strings[$rune['Rune1']]); $rr[2] = str_replace(' Rune', '', $strings[$rune['Rune2']]); @@ -1539,8 +1563,17 @@ if ($cmd == 'genDocRunewords'){ // echo "
";
 //                var_dump($props);
                 
+                
+                $rr_img = array_filter($rr_img);
 
-		$tableRowsRunes .= <<
@@ -1549,16 +1582,20 @@ if ($cmd == 'genDocRunewords'){
       
       
           

- $rcd[0]
- $rcd[1]
- $rcd[2]
- $rcd[3]
- $rcd[4]
- $rcd[5]
+

$img_s

+ $rcd[0]
+ $rcd[1]
+ $rcd[2]
+ $rcd[3]
+ $rcd[4]
+ $rcd[5]
+ +

-
    +
      +
    • $name
    • $props[1]
    • $props[2]
    • $props[3]