1 <html xmlns="http://www.w3.org/1999/xhtml">
3 <meta charset="utf-8"/>
4 <title>GameStick activation: Profile</title>
5 <link rel="stylesheet" href="css/css.css">
8 <h1 id="logo_small"><a href="#">Game Stick</a></h1>
11 <div id="page_1" class="page">
12 <h2>PlayJam GameStick activation: Profile</h2>
13 <div class="register_bar"><img style="width: 100%" src="img/register_bar.png"></div>
16 <p>Create your own unique PlayTag and choose a profile image to personalise your account</p>
19 Also you can sign yourself as a Founder.
21 <form method="post" action="activate.php">
22 <input type="hidden" name="code" value="<?= htmlspecialchars($code) ?>"/>
24 <?php if ($input['submit'] && count($errors)): ?>
25 <div style="color: red">
28 <?php foreach ($errors as $msg): ?>
29 <li><?= htmlspecialchars($msg) ?></li>
36 <label style="font-size: 16px;" for="gamerTag">PlayTag:</label>
37 <input style="float: right;" id="gamerTag" name="gamerTag" type="text"
38 value="<?= htmlspecialchars($input['gamerTag']) ?>"
39 pattern="[a-zA-Z0-9 ]+"
41 title="Allowed: A-Z, a-z, 0-9, space"
47 <input id="founderFlag" name="founderFlag" type="checkbox"
49 <?php if ($input['founderFlag']) { echo 'checked=""';} ?>
57 <label style="font-size: 16px;" for="founderName">Founder name:</label>
58 <input style="float: right;" id="founderName" name="founderName" type="text"
59 value="<?= htmlspecialchars($input['founderName']) ?>"
60 pattern="[a-zA-Z0-9 ]*"
61 title="Allowed: A-Z, a-z, 0-9, space"
65 <label style="font-size: 14px;">Show games suitable for ages:</label><br>
67 <input type="radio" name="minAge" value="3"
68 <?php if ($input['minAge'] == 3) { echo 'checked=""';} ?>
74 <input type="radio" name="minAge" value="7"
75 <?php if ($input['minAge'] == 7) { echo 'checked=""';} ?>
81 <input type="radio" name="minAge" value="12"
82 <?php if ($input['minAge'] == 12) { echo 'checked=""';} ?>
88 <input type="radio" name="minAge" value="17"
89 <?php if ($input['minAge'] == 17) { echo 'checked=""';} ?>
94 <div name="lewy" style="width: 48%;">
95 <label>Avatar image:</label>
96 <div id="avatary"> <br>
100 <?php foreach ($avatars as $key => $smallImagePath): ?>
107 <img src="<?= htmlspecialchars($smallImagePath) ?>"
108 alt="Avatar <?= htmlspecialchars($key) ?>"
109 width="118" height="118"
113 align-items: center;" type="radio" name="avatar" id="radioo" value="<?= htmlspecialchars($key) ?>"
114 <?php if ($input['avatar'] == $key) { echo 'checked=""';} ?>
122 <button style="float:right; " name="submit" value="1" type="submit">Submit</button>