Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <title>WMRPC - Edit User: <?php echo $user['firstname']; ?> <?php echo $user['surname']; ?></title>
- <div class="container" style="margin-top: 25px;">
- <div class="row">
- <div class="col-sm-12 col-md-6">
- <div class="card custom-card">
- <div class="card-header">
- Edit User: <?php echo $user['firstname']; ?> <?php echo $user['surname']; ?>
- </div>
- <div class="card-body">
- <?php
- if(isset($_POST['updateBasic'])) {
- $steamid = $con->escape_string($_POST['steamid']);
- updateUser($UserArray['userid'],$user['userid'],$_POST['firstname'],$_POST['surname'],$steamid,$_POST['email'],$_POST['collar'],$_POST['password']);
- ?>
- <div class="alert alert-success" role="alert"><b>Aktualizacja!</b> Ten użytkownik został zaaktualizowany</div>
- <?php
- }
- ?>
- <form action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]); ?>?uid=<?php echo $user['userid']; ?>" method="post">
- <div class="row">
- <div class="form-group col-md-6">
- <label for="channel">Imię</label>
- <input type="text" class="form-control" name="firstname" value="<?php echo $user['first_name']; ?>" required>
- </div>
- <div class="form-group col-md-6">
- <label for="channel">Nazwisko</label>
- <input type="text" class="form-control" name="surname" value="<?php echo $user['surname']; ?>" required>
- </div>
- <div class="form-group col-md-6">
- <label for="channel">Odznaka</label>
- <input type="text" class="form-control" name="collar" value="<?php echo $user['collar']; ?>" required>
- </div>
- <div class="form-group col-md-6">
- <label for="channel">((Konto globalne))</label>
- <input type="text" class="form-control" name="steamid" value="<?php echo $user['steamid']; ?>">
- </div>
- <div class="form-group col-md-12">
- <label for="channel">E-Mail</label>
- <input type="text" class="form-control" name="email" value="<?php echo $user['email']; ?>" required>
- </div>
- <div class="form-group col-md-12">
- <label for="channel">Hasło</label>
- <input type="password" class="form-control" name="password">
- </div>
- </div>
- <div class="form-group" style="width: 100%;">
- <input type="submit" name='updateBasic' class="btn btn-success btn-block" value="Zaaktualizuj informacje">
- </div>
- </form>
- </div>
- </div>
- <br>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement