44 $this->form .= $this->getGroupSelect(
$db);
58 $this->html .=
"<form id=\"form\" action=\"welcome.html\" method=\"POST\">";
78 $this->html .=
"<div id=\"0_hidden\">";
80 $this->html .=
"</div>";
82 $this->html .=
"<div id=\"1_hidden\">";
84 $this->html .=
"</div>";
86 $this->html .=
"<div id=\"2_hidden\">";
88 $this->html .=
"</div>";
90 $this->html .=
"<div id=\"3_hidden\">";
92 $this->html .=
"</div>";
94 $this->html .=
"<div id=\"4_hidden\">";
96 $this->html .=
"</div>";
98 $this->html .=
"<div id=\"5_hidden\">";
100 $this->html .=
"</div>";
116 $this->html .=
"<div class=\"col-md-6\">";
118 $this->html .=
"</div>";
119 $this->html .=
"<div class=\"col-md-6\">";
122 $this->html .=
"</div>";
125 $this->html .=
"<div class=\"col-md-6\">";
128 $this->html .=
"</div><div class=\"col-md-6\">";
130 $this->html .=
"</div>";
133 $this->html .=
"<div class=\"col-lg-12\">";
136 $this->html .=
"</div>";
139 $this->html .=
"<div class=\"col-md-4\"> </div>";
140 $this->html .=
"<div class=\"col-md-4\">";
143 $this->html .=
"</div>";
144 $this->html .=
"<div class=\"col-md-4\"> </div>";
154 $this->html .=
"</form>";
161 public function getGroupSelect(
$db)
165 if (
$res =
$db->query(
"SELECT * FROM {user_groups} WHERE signup_allowed = '1'"))
167 $this->html.=
"<label for=\"gid\">Signup as:</label>
168 <select id=\"gid\" name=\"gid\" class=\"form-control\">
169 <option value=\"\" disabled selected>please select</option>";
170 while ($row = mysqli_fetch_assoc(
$res))
172 $this->html .=
"<option value=\"".$row[
'id'].
"\">".$row[
'value'].
"</option>";
174 $this->html .=
"</select>";
187 $this->html .=
"<label for=\"username\">Username</label>
188 <input type=\"text\" id=\"username\" name=\"username\" class=\"form-control\" placeholder=\"Benutzername\">
190 <label for=\"email\">Email</label>
191 <input type=\"text\" id=\"email\" name=\"email\" class=\"form-control\" placeholder=\"[email protected]\">
193 <label for=\"password1\">Password</label>
194 <input type=\"password\" id=\"password1\" name=\"password1\" class=\"form-control\" placeholder=\"Passwort\">
196 <label for=\"password2\">Password (repeat)</label>
197 <input type=\"password\" id=\"password2\" name=\"password2\" class=\"form-control\" placeholder=\"Passwort wiederholen\">
198 <input type=\"hidden\" name=\"sent\" value=\"1\">";
206 $this->html .=
"<input type=\"checkbox\" id=\"checkTerms\" name=\"checkTerms\" class=\"form-control\" checked=\"checked\">
207 <div class=\"text-center\">
208 <label for=\"checkTerms\">
227 $this->html .=
"<label for=\"firstname\">Firstname</label>
228 <input type=\"text\" id=\"firstname\" name=\"firstname\" class=\"form-control\" placeholder=\"Vorname\">";
231 $this->html .=
"<label for=\"lastname\">Lastname</label>
232 <input type=\"text\" id=\"lastname\" name=\"lastname\" class=\"form-control\" placeholder=\"Nachname\">";
235 $this->html .=
"<label for=\"street\">Street</label>
236 <input type=\"text\" id=\"street\" name=\"street\" class=\"form-control\" placeholder=\"Straße\">";
239 $this->html .=
"<label for=\"zipcode\">ZIP Code</label>
240 <input type=\"text\" id=\"zipcode\" name=\"zipcode\" class=\"form-control\" placeholder=\"Postleitzahl\">";
243 $this->html .=
"<label for=\"city\">City</label>
244 <input type=\"text\" id=\"city\" name=\"city\" class=\"form-control\" placeholder=\"Stadt\">";
247 $this->html .=
"<label for=\"country\">Country</label>
248 <input type=\"text\" id=\"country\" name=\"country\" class=\"form-control\" placeholder=\"Land\">";
262 $this->html .=
"<div class=\"text-center\"><input type=\"submit\" class=\"btn btn-$btnStyle\" value=\"$btnText\"></div>";
264 $this->html .=
"<br><input type=\"submit\" class=\"btn btn-$btnStyle\" value=\"$btnText\">";
static getSetting($db, $property)
Get and return value for property from settings database.
static getLongSetting($db, $property)
Get and return longValue for property from settings database.
This class serves methods to create backup from files.
if(isset($_POST['sent'])) $layout