query($sqlquery); if (DB::isError($result)) die ("$PHP_SELF: " . $result->getMessage()); // Table with header $numOfRows = 1; $lineToggler = 0; $tableOfRowsForm = "" . getLngt("Beschreibung") . "    " . getLngt("Bearbeiten") . "  " . getLngt("Gruppen") . "  " . getLngt("Inhalt") . " "; while ($row = $result->fetch_assoc()): $numOfRows++; if ($lineToggler == 0) : $lineToggler = 1; else : $lineToggler = 0; endif; $cellColor = getListColor($numOfRows, $lineToggler); $tableOfRowsForm .= ""; $tableOfRowsForm .= " " . $row["mtfc_description"] . "   "; $tableOfRowsForm .= " "; $tableOfRowsForm .= " "; $tableOfRowsForm .= " "; $tableOfRowsForm .= ""; endwhile; $result->free(); // * Output of the global fields * // Statement for metafieldcategory $whereClause = ""; $orderByClause = "mtfk.mtfk_name"; if ($f_filter_mtfk_name != "") : $whereClause = " WHERE mtfk.mtfk_name LIKE '" . $f_filter_mtfk_name . "%'"; endif; $sqlquery = "SELECT mtfk.mtfk_id, mtfk.mtfk_type, mtfk.mtfk_name" . " FROM metafieldkey AS mtfk" . $whereClause . " ORDER BY " . $orderByClause; $result = $db->query($sqlquery); if (DB::isError($result)) die ("$PHP_SELF: " . $result->getMessage()); // Table with header $numOfRows = 1; $lineToggler = 0; $tableOfRowsField = "" . getLngt("Nr.") . "   " . getLngt("Name") . "    " . getLngt("Bearbeiten") . " "; while ($row = $result->fetch_assoc()): $numOfRows++; if ($lineToggler == 0) : $lineToggler = 1; else : $lineToggler = 0; endif; $cellColor = getListColor($numOfRows, $lineToggler); $tableOfRowsField .= ""; $tableOfRowsField .= " " . $row["mtfk_id"] . "   "; $tableOfRowsField .= " " . $row["mtfk_name"] . "   "; // $tableOfRowsField .= " " . $row["mtfk_type"] . "   "; $tableOfRowsField .= " "; // $tableOfRowsField .= " "; // $tableOfRowsField .= " " . $row["mtfk_name"] . ""; $tableOfRowsField .= ""; endwhile; $result->free(); // * Output of the templates * $mtfcTemplateMode = getParameterValue("0", "MTFC_TPL_MODE", "0"); if ($mtfcTemplateMode == "1") : // Statement for metafieldtemplate $sqlquery = "SELECT mtft.mtft_id, mtft.mtft_name" . " FROM metafieldtemplate AS mtft" . " ORDER BY mtft.mtft_name"; $result = $db->query($sqlquery); if (DB::isError($result)) die ("$PHP_SELF: " . $result->getMessage()); // Table with header $numOfRows = 1; $lineToggler = 0; $tableOfRowsTemplate = "" . getLngt("Beschreibung") . "    " . getLngt("Bearbeiten") . "  " . getLngt("Gruppen") . "  " . getLngt("Inhalt") . " "; while ($row = $result->fetch_assoc()): $numOfRows++; if ($lineToggler == 0) : $lineToggler = 1; else : $lineToggler = 0; endif; $cellColor = getListColor($numOfRows, $lineToggler); $tableOfRowsTemplate .= ""; $tableOfRowsTemplate .= " " . $row["mtft_name"] . "   "; $tableOfRowsTemplate .= " "; $tableOfRowsTemplate .= " "; $tableOfRowsTemplate .= " "; $tableOfRowsTemplate .= ""; endwhile; $result->free(); endif; // * Output of the fields of a specified category (form) * if ($f_mtfc_id != "") : $numOfRows = 1; $lineToggler = 0; $tableOfcategoryField = "" . getLngt("Name") . "    " . getLngt("Sortierung") . " "; for ($i = 0; $i < $mtfck_mtfckIdsLen; $i++) : $numOfRows++; if ($lineToggler == 0) : $lineToggler = 1; else : $lineToggler = 0; endif; $cellColor = getListColor($numOfRows, $lineToggler); $tableOfcategoryField .= ""; $tableOfcategoryField .= " " . $mtfk_allFieldNames[$mtfck_mtfkIds[$i]] . "   "; $tableOfcategoryField .= "    "; $tableOfcategoryField .= ""; endfor; endif; ?> <?php echo $pageTitel ?>
>
>
>  :  
>
>
>