1 <html xmlns="http://www.w3.org/1999/xhtml">
3 <meta charset="utf-8"/>
4 <title>GameStick activation: Profile</title>
5 <meta name="viewport" content="width=device-width, initial-scale=1"/>
6 <link rel="stylesheet" href="css/activate.css"/>
7 <link rel="icon" type="image/png" href="img/faviconnew.png"/>
10 <img id="gslogo" src="img/logo_2.png" alt="GameStick" width="176" height="24"/>
13 <h1>PlayJam GameStick activation: Profile</h1>
24 <li class="active">Activate
28 <form class="profile" method="post" action="activate.php">
29 <input type="hidden" name="code" value="<?= htmlspecialchars($code) ?>"/>
31 <p class="intro-mobile">
32 Select your user name and profile image for this GameStick
33 to personalise your account.
37 <!-- left: avatar selection -->
40 <span class="avatarlabel">Avatar</span>
42 <?php foreach ($avatars as $key => $smallImagePath): ?>
44 <input type="radio" name="avatar"
45 id="avatar-<?= htmlspecialchars($key) ?>"
46 value="<?= htmlspecialchars($key) ?>"
47 <?php if ($input['avatar'] == $key) { echo 'checked=""';} ?>
49 <label for="avatar-<?= htmlspecialchars($key) ?>">
50 <img src="<?= htmlspecialchars($smallImagePath) ?>"
51 alt="Avatar <?= htmlspecialchars($key) ?>"
52 width="118" height="118"
61 <!-- right: form values -->
63 <!-- original message:
65 Create your own unique PlayTag and choose a profile image
66 to personalise your account.
69 Your email address and password will be required to sign
73 <p class="intro-desktop">
74 Select your user name and profile image for this GameStick
75 to personalise your account.
78 <?php if ($input['submit'] && count($errors)): ?>
83 <?php foreach ($errors as $msg): ?>
84 <li><?= htmlspecialchars($msg) ?></li>
89 <div class="profile-row">
90 <label for="gamerTag">PlayTag*</label>
91 <input id="gamerTag" name="gamerTag" type="text"
92 value="<?= htmlspecialchars($input['gamerTag']) ?>"
93 pattern="[a-zA-Z0-9 ]+"
95 title="Allowed: A-Z, a-z, 0-9, space"
101 <div class="profile-row">
104 <input id="founderFlag" name="founderFlag" type="checkbox"
106 <?php if ($input['founderFlag']) { echo 'checked=""';} ?>
112 <div class="profile-row">
113 <label for="founderName">Founder name:</label>
114 <input id="founderName" name="founderName" type="text"
115 value="<?= htmlspecialchars($input['founderName']) ?>"
116 pattern="[a-zA-Z0-9 ]*"
117 title="Allowed: A-Z, a-z, 0-9, space"
123 <div class="profile-row minage">
124 <label>Show games suitable for ages:</label>
127 <input type="radio" name="minAge" value="3"
128 <?php if ($input['minAge'] == 3) { echo 'checked=""';} ?>
130 <span class="tag teal">3+</span>
134 <input type="radio" name="minAge" value="7"
135 <?php if ($input['minAge'] == 7) { echo 'checked=""';} ?>
137 <span class="tag teal">7+</span>
141 <input type="radio" name="minAge" value="12"
142 <?php if ($input['minAge'] == 12) { echo 'checked=""';} ?>
144 <span class="tag orange">12+</span>
148 <input type="radio" name="minAge" value="17"
149 <?php if ($input['minAge'] == 17) { echo 'checked=""';} ?>
151 <span class="tag red">17+</span>
156 <button name="submit" value="1" type="submit">Submit</button>