uawdijnntqw1x1x1
IP : 216.73.216.39
Hostname : diefsweb003.fsit.ch
Kernel : Linux diefsweb003.fsit.ch 4.18.0-553.121.1.lve.el8.x86_64 #1 SMP Thu Apr 30 16:40:41 UTC 2026 x86_64
Disable Function : None :)
OS : Linux
PATH:
/
home
/
wirbesti
/
unwaehlbar.ch
/
admin
/
evaluation
/
edit3.php
/
/
<?php if (!isset($_SESSION)) { session_start(); } if (!isset($_SESSION["loggedin"])) { header("location: ./../login.php"); exit; } // Include database file require_once 'evaluation.php'; require_once "./../../settings.config.php"; require_once "./../../DBConnection.php"; $database = new DbConnection($config); $evaluationObj = new Evaluation($database); // Edit record if (isset($_GET['editId']) && !empty($_GET['editId'])) { $editId = $_GET['editId']; $evaluation = $evaluationObj->displyaRecordById($editId); $language = $evaluation['language']; $text = $evaluation['evaluationtext']; $status = $evaluation['status']; $type = $evaluation['type']; $politicianid = $evaluation['politicianid']; $picture = $evaluation['picture']; $name = $evaluation['name']; $created = $evaluation['created']; $modified = $evaluation['modified']; } // Update Record in table if (isset($_POST['update'])) { $_POST['evaluationtext'] = utf8_decode($_POST['evaluationtext']); $evaluationObj->updateRecord($_POST); } ?> <!DOCTYPE html> <html> <head> <title>Evaluation von Politiker Verwaltung</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"> </head> <body> <?php require_once "./../menu.php"; require_once "./../politician/settings.config.php"; ?> <div class="container"> <div class="page-header"> <h4>Evaluation von Politiker Verwaltung</h4> </div><br> <form action="edit3.php" method="POST"> <table class='table table-hover table-responsive table-bordered'> <tr> <td>Politiker</td> <td><input hidden id="name" name="politicianid" type="text" class="form-control" value="<?=htmlspecialchars($politicianid, ENT_QUOTES) ?>"> <img src="<?=$dirname.$picture?>" alt="" height="40px" width="40px"> <p><?=$name?></p> </td> </tr> <tr> <td>Sprache</td> <td> <div class="custom-control custom-radio custom-control-inline"> <input name="language" id="language_0" type="radio" class="custom-control-input" value="de" required="required" <?=$language == 'de' ? 'checked' : ''?>> <label for="language_0" class="custom-control-label">de</label> </div> <div class="custom-control custom-radio custom-control-inline"> <input name="language" id="language_1" type="radio" class="custom-control-input" value="fr" required="required" <?=$language == 'fr' ? 'checked' : ''?>> <label for="language_1" class="custom-control-label">fr</label> </div> <div class="custom-control custom-radio custom-control-inline"> <input name="language" id="language_2" type="radio" class="custom-control-input" value="it" required="required" <?=$language == 'it' ? 'checked' : ''?>> <label for="language_2" class="custom-control-label">it</label> </div> </td> </tr> <tr> <td>Text</td> <td><textarea rows="5" cols="60" name="text1"> <?=htmlspecialchars(utf8_decode($text), ENT_QUOTES)?></textarea> </td> </tr> <tr> <td>Status</td> <td> <div> <div class="custom-control custom-radio custom-control-inline"> <input name="status" id="status_0" type="radio" class="custom-control-input" value="1" <?=$status == 1 ? 'checked' : ''?>> <label for="status_0" class="custom-control-label">neu</label> </div> <div class="custom-control custom-radio custom-control-inline"> <input name="status" id="status_1" type="radio" class="custom-control-input" value="2" <?=$status == 2 ? 'checked' : ''?>> <label for="status_1" class="custom-control-label">freigegeben</label> </div> <div class="custom-control custom-radio custom-control-inline"> <input name="status" id="status_2" type="radio" class="custom-control-input" value="3" <?=$status == 3 ? 'checked' : ''?>> <label for="status_2" class="custom-control-label">abgelehnt</label> </div> <div class="custom-control custom-radio custom-control-inline"> <input name="status" id="status_3" type="radio" class="custom-control-input" value="4" <?=$status == 4 ? 'checked' : ''?>> <label for="status_3" class="custom-control-label">archiviert</label> </div> </div> </td> </tr> <tr> <td>Typ</td> <td> <div> <div class="custom-control custom-radio custom-control-inline"> <input name="type" id="typ_0" type="radio" class="custom-control-input" value="1" <?=$type == 1 ? 'checked' : ''?>> <label for="typ_0" class="custom-control-label">Pro</label> </div> <div class="custom-control custom-radio custom-control-inline"> <input name="type" id="typ_1" type="radio" class="custom-control-input" value="0" <?=$type == 0 ? 'checked' : ''?>> <label for="typ_1" class="custom-control-label">Contra</label> </div> </div> </td> </tr> <tr> <td>Erstellt</td> <td><p><?=$created?></p></td> </tr> <tr> <td>Geändert</td> <td><p><?=$modified?></p></td> </tr> <tr> <td></td> <td><input type="hidden" name="id" value="<?php echo $evaluation['aid']; ?>"> <button name="update" type="submit" class="btn btn-primary">Update</button> <a href='index.php' class='btn btn-danger'>Zurück</a> </td> </tr> </table> </form> </div> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script> </body> </html>
/home/wirbesti/unwaehlbar.ch/admin/evaluation/edit3.php