blob: 7f894402995364f0350b25920e123591ec1f2de5 [file] [log] [blame]
Marc Kupietze5073d42023-03-04 14:15:40 +01001<div class="container ml-0 pl-0">
2 <header class="d-flex flex-wrap py-340 mb-8 border-bottom">
3 <div class="col-md-12 justify-content-start pb-5 float-start">
4 <a href="/">
5 <img class="" width="340" src="<?php echo $SERVICE_LOGO;?>" alt="<?php echo $SERVICE_NAME; ?>" />
6 </a>
7 </div>
8
9 <div class="col-md-12 bold navbar-expand-lg mt-5 ml-5 pl-5 bg-primary" data-bs-theme="dark">
10 <ul class="nav nav-pills justify-content-start fs-4">
11 <li class="nav-item"><a href="https://korpus.cz/icc" class="nav-link">Home</a></li>
12 <li class="nav-item"><a href="#" class="nav-link active" aria-current="page">Sign up</a></li>
13 <li class="nav-item"><a href="#" class="nav-link">Query</a></li>
14 </ul>
15 </div>
16 </header>
17</div>
18
Marc Kupietzad3ab5d2023-03-04 14:12:46 +010019 <h1>Sign up for
20 <?php echo $SERVICE_ACRONYM;?>
Marc Kupietz77434282023-02-24 12:04:47 +010021</h1>
matheusfillipeabd513e2021-05-11 03:29:11 -030022
Marc Kupietz675b5652023-02-25 13:09:47 +010023<form class="row g-3 needs-validation" novalidate action="" method="POST">
matheusfillipeabd513e2021-05-11 03:29:11 -030024 <!-- Username input -->
Marc Kupietz675b5652023-02-25 13:09:47 +010025 <div class="col-md-4">
26 <label class="form-label font-weight-bold" for="form3Example3">Username</label>
Marc Kupietz77434282023-02-24 12:04:47 +010027 <input pattern="[^\s]{<?php echo $VAL_USER->min_username.','.$VAL_USER->max_username;?>}" required
28 title="At least 5 not whitespace characters" name="username" type="text" id="form3Example0"
matheusfillipeabd513e2021-05-11 03:29:11 -030029 class="form-control <?php if(isset($error) && $error && !isset($_POST['username'])){echo 'border-danger';}?>"
Marc Kupietzb527e642023-02-23 10:04:21 +010030 placeholder="johndoe"
matheusfillipeabd513e2021-05-11 03:29:11 -030031 value="<?php echo isset($_POST['username']) ? htmlspecialchars($_POST['username']) : '' ?>" />
Marc Kupietz1f2b2e92023-02-24 13:04:40 +010032 <div class="invalid-feedback">
33 Please choose a username with at least 5 not whitespace characters.
34 </div>
matheusfillipeabd513e2021-05-11 03:29:11 -030035 </div>
36 <!-- 2 column grid layout with text inputs for the first and last names -->
Marc Kupietz675b5652023-02-25 13:09:47 +010037 <div class="col-md-4">
matheusfillipeabd513e2021-05-11 03:29:11 -030038 <div class="form-outline">
Marc Kupietz675b5652023-02-25 13:09:47 +010039 <label class="form-label font-weight-bold" for="form3Example1">First name</label>
Marc Kupietz77434282023-02-24 12:04:47 +010040 <input pattern="[^\s]{<?php echo $VAL_USER->min_first_name.','.$VAL_USER->max_first_name;?>}" required
Marc Kupietz1f2b2e92023-02-24 13:04:40 +010041 title="At least 2 not whitespace characters" name="name" type="text" id="form3Example1"
matheusfillipeabd513e2021-05-11 03:29:11 -030042 class="form-control <?php if(isset($error) && $error && !isset($_POST['name'])){echo 'border-danger';}?>"
Marc Kupietzb527e642023-02-23 10:04:21 +010043 placeholder="John"
matheusfillipeabd513e2021-05-11 03:29:11 -030044 value="<?php echo isset($_POST['name']) ? htmlspecialchars($_POST['name']) : '' ?>" />
Marc Kupietz31861882023-02-25 08:52:57 +010045 <div class="invalid-feedback">
46 Please provide a first name with at least 2 characters.
47 </div>
Marc Kupietz1f2b2e92023-02-24 13:04:40 +010048 </div>
matheusfillipeabd513e2021-05-11 03:29:11 -030049 </div>
Marc Kupietz675b5652023-02-25 13:09:47 +010050 <div class="col-md-4">
matheusfillipeabd513e2021-05-11 03:29:11 -030051 <div class="form-outline">
Marc Kupietz675b5652023-02-25 13:09:47 +010052 <label class="form-label font-weight-bold" for="form3Example2">Last name</label>
Marc Kupietz77434282023-02-24 12:04:47 +010053 <input pattern="[^\s]{<?php echo $VAL_USER->min_last_name.','.$VAL_USER->max_last_name;?>}" required
Marc Kupietz1f2b2e92023-02-24 13:04:40 +010054 title="At least 2 not whitespace characters" name="last_name" type="text" id="form3Example2"
matheusfillipeabd513e2021-05-11 03:29:11 -030055 class="form-control <?php if(isset($error) && $error && !isset($_POST['last_name'])){echo 'border-danger';}?>"
56 placeholder="Doe"
57 value="<?php echo isset($_POST['last_name']) ? htmlspecialchars($_POST['last_name']) : '' ?>" />
Marc Kupietz31861882023-02-25 08:52:57 +010058 <div class="invalid-feedback">
59 Please provide a last name with at least 2 characters.
60 </div>
Marc Kupietz1f2b2e92023-02-24 13:04:40 +010061 </div>
matheusfillipeabd513e2021-05-11 03:29:11 -030062 </div>
matheusfillipeabd513e2021-05-11 03:29:11 -030063
64 <!-- Email input -->
Marc Kupietz675b5652023-02-25 13:09:47 +010065 <div class="form-outline md-6">
66 <label class="form-label font-weight-bold" for="form3Example3">Email address</label>
matheusfillipeabd513e2021-05-11 03:29:11 -030067 <input required name="email" type="email" id="form3Example3"
68 class="form-control <?php if(isset($error) && $error && !isset($_POST['email'])){echo 'border-danger';}?>"
69 placeholder="myemail@example.com"
70 value="<?php echo isset($_POST['email']) ? htmlspecialchars($_POST['email']) : '' ?>" />
Marc Kupietz1f2b2e92023-02-24 13:04:40 +010071 <div class="invalid-feedback">
72 Please provide a valid email address.
73 </div>
matheusfillipeabd513e2021-05-11 03:29:11 -030074 </div>
75
Marc Kupietza19f3072023-02-25 14:16:40 +010076 <div class="form-outline md-6">
77 <label class="form-label font-weight-bold" for="organization">Institution / Organization</label>
78 <input required name="organization" type="text" id="organization"
79 class="form-control <?php if(isset($error) && $error && !isset($_POST['organization'])){echo 'border-danger';}?>"
80 placeholder="Example University"
81 pattern=".{3,64}"
82 value="<?php echo isset($_POST['organization']) ? htmlspecialchars($_POST['organization']) : '' ?>" />
83 <div class="invalid-feedback">
84 Please indicate the institution or organization you are affiliated with.
85 </div>
86 </div>
87
matheusfillipeabd513e2021-05-11 03:29:11 -030088 <!-- Password input -->
Marc Kupietz675b5652023-02-25 13:09:47 +010089 <div id="password-div" class="col-md-8">
90 <label class="form-label font-weight-bold" for="pw1">Password</label>
Marc Kupietz484ec8e2023-02-25 11:23:07 +010091 <input required
92 title="Combination of upper and lowercase letters, numbers, punctuation, and special symbols" name="password" type="password" id="pw1"
93 class="form-control"
Marc Kupietz31861882023-02-25 08:52:57 +010094 placeholder="********" oninput="check_password_match()"
matheusfillipeabd513e2021-05-11 03:29:11 -030095 value="<?php echo isset($_POST['password']) ? htmlspecialchars($_POST['password']) : '' ?>" />
Marc Kupietz675b5652023-02-25 13:09:47 +010096 </div>
97 <div class="col-md-4">
Marc Kupietzf5ad5fd2023-03-06 21:28:45 +010098 <label class="form-label" for="pwqinfo">Rating</label>
99 <input class="form-control" type="text" id="pwqinfo" readonly />
100 </div>
101
Marc Kupietz675b5652023-02-25 13:09:47 +0100102 <div class="col-md-12">
Marc Kupietz21fa9bb2023-02-24 19:44:16 +0100103 <div class="progress mt-2">
104 <div class="progress-bar bg-danger" role="progressbar" id="pwqbar" aria-valuenow="0" aria-valuemin="0"
105 aria-valuemax="100"></div>
106 </div>
Marc Kupietzf5ad5fd2023-03-06 21:28:45 +0100107
matheusfillipeabd513e2021-05-11 03:29:11 -0300108 </div>
Marc Kupietz21fa9bb2023-02-24 19:44:16 +0100109 <!--
110 <div class="form-group">
111 <label for="pwqinfo">Password rating</label>
112 <input class="form-control" type="text" name="pwqinfo" id="pwqinfo" readonly>
113 <div class="progress mt-2">
114 <div class="progress-bar bg-danger" role="progressbar" id="pwqbar2" aria-valuenow="0" aria-valuemin="0"
115 aria-valuemax="100"></div>
116 </div>
117 </div>
118 -->
Marc Kupietz484ec8e2023-02-25 11:23:07 +0100119 <!-- Password confirmation input -->
Marc Kupietz675b5652023-02-25 13:09:47 +0100120 <div id="pwconfirm" class="form-outline col-md-8">
121 <label class="form-label font-weight-bold" for="pw2">Confirm your Password</label>
Marc Kupietz484ec8e2023-02-25 11:23:07 +0100122 <input required
123 name="password_confirm" type="password" id="pw2"
matheusfillipeabd513e2021-05-11 03:29:11 -0300124 class="form-control <?php if(isset($error) && $error && !isset($_POST['password_confirm'])){echo 'border-danger';}?>"
Marc Kupietz5ad53e72023-02-25 14:49:49 +0100125 placeholder="********" oninput="check_password_match()"
126 value="<?php echo isset($_POST['password_confirm']) ? htmlspecialchars($_POST['password_confirm']) : '' ?>" />
Marc Kupietz31861882023-02-25 08:52:57 +0100127 <div class="invalid-feedback">
128 Passwords do not match.
129 </div>
130 </div>
Marc Kupietz77434282023-02-24 12:04:47 +0100131 <div class="form-outline mb-3">
Marc Kupietz675b5652023-02-25 13:09:47 +0100132 <label class="form-label font-weight-bold" for="eula">End User License Agreement</label>
Marc Kupietz77434282023-02-24 12:04:47 +0100133 <div class="form-group form-check">
Marc Kupietz5ad53e72023-02-25 14:49:49 +0100134 <input type="checkbox" class="form-check-input" name="eula" id="eula" required
135 title="You need to agree to the EULA in order to proceed"
136 <?php echo isset($_POST['eula']) ? 'checked' : '' ?>
137 value="eula">
Marc Kupietz77434282023-02-24 12:04:47 +0100138 <label class="form-check-label" for="eula">I have read and agree to to the
Marc Kupietze5073d42023-03-04 14:15:40 +0100139 <?php echo $SERVICE_ACRONYM; ?> <a
Marc Kupietz77434282023-02-24 12:04:47 +0100140 href="https://www2.ids-mannheim.de/cosmas2/projekt/register/license_agreement.html">End User License
141 Agreement</a> and will use
Marc Kupietze5073d42023-03-04 14:15:40 +0100142 <?php echo $SERVICE_ACRONYM; ?> only for academic and non-commercial purposes.
Marc Kupietz77434282023-02-24 12:04:47 +0100143 </label>
144 <div class="invalid-feedback">
145 You need to agree to the EULA in order to proceed.
146 </div>
147 </div>
148 </div>
Marc Kupietz77434282023-02-24 12:04:47 +0100149 <div class="form-outline mb-3">
Marc Kupietz675b5652023-02-25 13:09:47 +0100150 <label class="form-label font-weight-bold" for="privacy_policy">Privacy Policy</label>
Marc Kupietz77434282023-02-24 12:04:47 +0100151 <div class="form-group form-check">
152 <input type="checkbox" class="form-check-input" name="privacy_policy" id="privacy_policy" required
Marc Kupietz5ad53e72023-02-25 14:49:49 +0100153 title="You need to agree to the privacy policy in order to proceed"
154 <?php echo isset($_POST['privacy_policy']) ? 'checked' : '' ?>
155 value="privacy_policy">
Marc Kupietz77434282023-02-24 12:04:47 +0100156 <label class="form-check-label" for="privacy_policy">I have read and agree
157 to to the
Marc Kupietze5073d42023-03-04 14:15:40 +0100158 <?php echo $SERVICE_ACRONYM; ?> <a
Marc Kupietz77434282023-02-24 12:04:47 +0100159 href="https://www2.ids-mannheim.de/cosmas2/web-app/datenschutz.html">Privacy Policy</a>.
160 </label>
161 <div class="invalid-feedback">
Marc Kupietz1f2b2e92023-02-24 13:04:40 +0100162 You need to agree to the privacy policy in order to proceed.
Marc Kupietz77434282023-02-24 12:04:47 +0100163 </div>
164 </div>
165 </div>
Marc Kupietzd2dfa002023-03-04 14:59:16 +0100166
167 <?php if($CAPTCHA_LENGTH > 0): ?>
matheusfillipeabd513e2021-05-11 03:29:11 -0300168 <!--captcha here-->
169 <div class="form-outline mb-3">
Marc Kupietz675b5652023-02-25 13:09:47 +0100170 <label class="form-label font-weight-bold" for="form3Example4">Captcha</label>
matheusfillipeabd513e2021-05-11 03:29:11 -0300171 <div class="container mb-2 offset-md-2">
172 <img id="captcha" src="<?php echo $BASE_URL.'/captcha.php?token='.$_SESSION['captcha_token']; ?>" />
173 <div id="reload_captcha">
Marc Kupietz675b5652023-02-25 13:09:47 +0100174 <button id="reload" class="btn btn-outline-info" type="button"> <span class="glyphicon glyphicon-refresh"
175 aria-hidden="true"></span></button>
matheusfillipeabd513e2021-05-11 03:29:11 -0300176 </div>
177 </div>
Marc Kupietz77434282023-02-24 12:04:47 +0100178 <input pattern="[^\s]{<?php echo $CAPTCHA_LENGTH; ?>,}" required
Marc Kupietz0375b7e2023-03-04 18:13:26 +0100179 title="Please fill the captcha. It has <?php echo $CAPTCHA_LENGTH; ?> characters" name="captcha" type="text" id="form3Example6"
Marc Kupietz77434282023-02-24 12:04:47 +0100180 class="form-control" placeholder="Type what you see on the image above" />
Marc Kupietz5ad53e72023-02-25 14:49:49 +0100181 <div class="invalid-feedback">
182 Type what you see on the image above.
183 </div>
matheusfillipeabd513e2021-05-11 03:29:11 -0300184 </div>
Marc Kupietzd2dfa002023-03-04 14:59:16 +0100185 <?php endif; ?>
matheusfillipeabd513e2021-05-11 03:29:11 -0300186
187 <!-- Submit button -->
Marc Kupietze5073d42023-03-04 14:15:40 +0100188 <div class="container mt-2 text-right">
189 <button name="type" value="register" type="submit" class="btn btn-primary font-weight-bold fs-4">Sign up</button>
190 </div>
matheusfillipeabd513e2021-05-11 03:29:11 -0300191
192</form>
Marc Kupietz1f2b2e92023-02-24 13:04:40 +0100193</div>