├── xcode.jpg ├── Android.png ├── ManualTextGerman.pdf ├── ManualTextEnglish.pdf ├── DuesseldorferSchuelerinventarInEnglish.pdf ├── DuesseldorferSchuelerinventarInGerman..pdf ├── readSEint.php ├── readNormTable.php ├── insertOrUpdateSEint.php ├── MainPage.xaml ├── README.md ├── activity_main.xml ├── ViewController.swift ├── MainPage.xaml.cs ├── MainActivity.java ├── ViewController_DB.swift ├── MainActivity_DBzugriff.java └── Main.storyboard /xcode.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pkoopongithub/duesseldorfer-schuelerinventar-xcode-androidstudio-xamarin/main/xcode.jpg -------------------------------------------------------------------------------- /Android.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pkoopongithub/duesseldorfer-schuelerinventar-xcode-androidstudio-xamarin/main/Android.png -------------------------------------------------------------------------------- /ManualTextGerman.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pkoopongithub/duesseldorfer-schuelerinventar-xcode-androidstudio-xamarin/main/ManualTextGerman.pdf -------------------------------------------------------------------------------- /ManualTextEnglish.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pkoopongithub/duesseldorfer-schuelerinventar-xcode-androidstudio-xamarin/main/ManualTextEnglish.pdf -------------------------------------------------------------------------------- /DuesseldorferSchuelerinventarInEnglish.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pkoopongithub/duesseldorfer-schuelerinventar-xcode-androidstudio-xamarin/main/DuesseldorferSchuelerinventarInEnglish.pdf -------------------------------------------------------------------------------- /DuesseldorferSchuelerinventarInGerman..pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/pkoopongithub/duesseldorfer-schuelerinventar-xcode-androidstudio-xamarin/main/DuesseldorferSchuelerinventarInGerman..pdf -------------------------------------------------------------------------------- /readSEint.php: -------------------------------------------------------------------------------- 1 | connect_error) { 10 | die("Verbindung zur Datenbank fehlgeschlagen: " . $conn->connect_error); 11 | } 12 | 13 | // Werte aus der Tabelle profil basierend auf profilid auslesen 14 | $profilid = $_GET["profilid"]; 15 | $query = "SELECT * FROM profil WHERE profilID = $profilid"; 16 | $result = $conn->query($query); 17 | 18 | if ($result->num_rows > 0) { 19 | $row = $result->fetch_assoc(); 20 | $SEint = array(); 21 | for ($i = 1; $i <= 36; $i++) { 22 | $SEint[$i - 1] = $row["item" . $i]; 23 | } 24 | 25 | // SEint als JSON-Ausgabe senden 26 | echo json_encode($SEint); 27 | } else { 28 | echo "Keine Daten in der Tabelle gefunden."; 29 | } 30 | 31 | // Datenbankverbindung schließen 32 | $conn->close(); 33 | ?> 34 | -------------------------------------------------------------------------------- /readNormTable.php: -------------------------------------------------------------------------------- 1 | connect_error) { 10 | die("Verbindung zur Datenbank fehlgeschlagen: " . $conn->connect_error); 11 | } 12 | 13 | // Normtabelle aus Datenbank lesen und in normSE[][] einlesen 14 | $query = "SELECT * FROM normSEhs ORDER BY kompetenzID"; 15 | $result = $conn->query($query); 16 | 17 | if ($result->num_rows > 0) { 18 | $rowIndex = 0; 19 | while ($row = $result->fetch_assoc()) { 20 | $normSE[$rowIndex][0] = $row["p1"]; 21 | $normSE[$rowIndex][1] = $row["p2"]; 22 | $normSE[$rowIndex][2] = $row["p3"]; 23 | $normSE[$rowIndex][3] = $row["p4"]; 24 | $normSE[$rowIndex][4] = $row["p5"]; 25 | $rowIndex++; 26 | } 27 | } else { 28 | echo "Keine Daten in der Tabelle gefunden."; 29 | } 30 | 31 | // Datenbankverbindung schließen 32 | $conn->close(); 33 | 34 | // normSE[][] als JSON-Ausgabe senden 35 | echo json_encode($normSE); 36 | ?> 37 | -------------------------------------------------------------------------------- /insertOrUpdateSEint.php: -------------------------------------------------------------------------------- 1 | connect_error) { 10 | die("Verbindung zur Datenbank fehlgeschlagen: " . $conn->connect_error); 11 | } 12 | 13 | // Parameter aus der GET-Anfrage lesen 14 | $profilid = $_GET["profilid"]; 15 | $SEint = explode(",", $_GET["SEint"]); 16 | 17 | if ($profilid == 0) { 18 | // Neuer Eintrag in die Tabelle profil 19 | $insertQuery = "INSERT INTO profil (userID, gruppeID, item1, item2, ..., item36) VALUES (15, 1000, "; 20 | for ($i = 0; $i < 36; $i++) { 21 | $insertQuery .= $SEint[$i]; 22 | if ($i < 35) { 23 | $insertQuery .= ","; 24 | } 25 | } 26 | $insertQuery .= ")"; 27 | $conn->query($insertQuery); 28 | 29 | // ID des neu eingefügten Eintrags auslesen 30 | $profilid = $conn->insert_id; 31 | 32 | echo $profilid; 33 | } else { 34 | // Aktualisierung eines bestehenden Eintrags in der Tabelle profil 35 | $updateQuery = "UPDATE profil SET "; 36 | for ($i = 0; $i < 36; $i++) { 37 | $updateQuery .= "item" . ($i + 1) . " = " . $SEint[$i]; 38 | if ($i < 35) { 39 | $updateQuery .= ","; 40 | } 41 | } 42 | $updateQuery .= " WHERE profilID = $profilid"; 43 | $conn->query($updateQuery); 44 | 45 | echo $profilid; 46 | } 47 | 48 | // Datenbankverbindung schließen 49 | $conn->close(); 50 | ?> 51 | -------------------------------------------------------------------------------- /MainPage.xaml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 10 | 11 |