* * @author Double Bastion LLC * * @license GNU AGPL version 3 or any later version * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE * License as published by the Free Software Foundation; either * version 3 of the License, or any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU AFFERO GENERAL PUBLIC LICENSE for more details. * * You should have received a copy of the GNU Affero General Public * License along with this program. If not, see . * */ define('ACCESSCONST', TRUE); require('db-connect.php'); session_start(); if (($_SESSION['loggedtorspanel'] == true) && ($_SESSION['userrole'] == 'superadmin')) { ?> Add Components
Edit Components List

Edit the list of suite components:

query("SELECT id, orderno, component, componentrole, componentplace, imagename, versionscript, info FROM components"); $getcompname = []; while ($result_fetch = $compquery->fetch_row()) { $inddbid = $result_fetch[0]; $indorderno = $result_fetch[1]; $componentname = $result_fetch[2]; $componentrole = $result_fetch[3]; $componentplace = $result_fetch[4]; $imagename = $result_fetch[5]; $versionscript = $result_fetch[6]; $infopopup = $result_fetch[7]; $getcompname[] = [$inddbid, $indorderno, $componentname, $componentrole, $componentplace, $imagename, $versionscript, $infopopup]; } $compquery->close(); $rolearr = ["Kernel Component", "Shell Component", "Hull Component"]; $placearr = ["First Level", "Second Level", "Third Level"]; for ($r = 0; $r < count($getcompname); $r++) { $roleopt2init = array_values(array_diff($rolearr, array($getcompname[$r][3]))); $roleopt2 = $roleopt2init[0]; $roleopt2sec = $roleopt2init[1]; $placeopt2init = array_values(array_diff($placearr, array($getcompname[$r][4]))); $placeopt2 = $placeopt2init[0]; $placeopt2sec = $placeopt2init[1]; echo ''; } ?>
No Order DB ID Component name Component role Indentation Component logo Version script Info
'.($r + 1).''.$getcompname[$r][0].'
'.$getcompname[$r][5].'