Файловый менеджер - Редактировать - /var/www/jonas-eriksen.dk/admin/consent-form.php
Назад
<?php require_once('../include.php'); $admin = new admin($db); $user = new user($db); include('../config.php'); include('consent.php'); $admin->passwordResetCheck(); if (!$admin->admin_level(0)) { header("location: /static/401.php"); die(); } if (isset($_POST['consentButton'])) { getConsent($_POST['name'], $_POST['adress'], $_POST['zip'], $_POST['mail'], $_POST['phone'], $_POST['date'], $_POST['year'], $logoName, $companySlogan, $companyLink, $companyName); } $profile = $user->getUser($_GET['user']); include('../static/header.php'); ?> <div class="container"> <div class="left-half-consent"> <h2>Samtykkeform for <u><a href="/user/profile.php?user=<?php echo $profile[0] ?>"><?php echo $profile[3] ?></a></u> </h2> <div style="position: fixed"> <table> <form method="post"> <tr> <td>Navn:</td> <td style="text-indent: 15px"><input type="input" value="<?php echo $profile[3] ?>" style="width:100%" name="name"> </td> </tr> <tr> <td>Adresse:</td> <td style="text-indent: 15px"><input type="input" value="<?php echo explode(',', $profile[4])[0] ?>" style="width:100%" name="adress"> </td> </tr> <tr> <td>Postnr. og by:</td> <td style="text-indent: 15px"><input type="input" value="<?php echo ltrim(explode(',', $profile[4])[1], ' ') ?>" style="width:100%" name="zip"> </td> </tr> <tr> <td>Mail:</td> <td style="text-indent: 15px"><input type="input" value="<?php echo $profile[6] ?>" style="width:100%" name="mail"> </td> </tr> <tr> <td>Telefon:</td> <td style="text-indent: 15px"><input type="input" value="<?php if (strlen($profile[9]) == 8) { $parts = str_split($profile[9], $split_length = 4); echo '(+45) ' . $parts[0] . ' ' . $parts[1]; } else { echo $profile[9]; } ?>" style="width:100%" name="phone"> </td> </tr> <tr> <td>Dato:</td> <td style="text-indent: 15px"><input type="input" value="<?php echo date("d-m-Y") ?>" style="width:100%" name="date"></td> </tr> <tr> <td>År:</td> <td style="text-indent: 15px"><input type="input" value="<?php echo date("Y") ?>" style="width:100%" name="year"> </td> </tr> <tr> <td> <button name="consentButton" style="float: right"> Udfyld samtykke </button> </td> </tr> </form> </table> </div> </div> <div class="right-half-consent"> <?php if (is_file('../static/profile-picture/' . $profile[0] . '.jpg') && file_exists('../static/profile-picture/' . $profile[0] . '.jpg')) { ?> <img src="<?php echo '../static/profile-picture/' . $profile[0] . '.jpg' ?>" style="height: 150px;"/> <?php } ?> </div> </div> <div style="clear:both"></div> <?php include('../static/footer.php'); ?>
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка