diff options
author | Nos- <Nos-@users.noreply.github.com> | 2018-09-17 15:52:39 +0200 |
---|---|---|
committer | msquare <msquare@notrademark.de> | 2018-09-23 11:48:09 +0200 |
commit | b2303c07230e477ca3935f6dfbe4086ff2fe1429 (patch) | |
tree | f5c72a62be59eb1551718f2e57f4675221c14495 /includes | |
parent | ad75488464df642b93dcf617a3ba7848b0be4c48 (diff) |
Tried to fix inputfields for date, email, tel
Diffstat (limited to 'includes')
-rw-r--r-- | includes/pages/admin_user.php | 10 | ||||
-rw-r--r-- | includes/sys_form.php | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/includes/pages/admin_user.php b/includes/pages/admin_user.php index 1eb1f08f..a0125604 100644 --- a/includes/pages/admin_user.php +++ b/includes/pages/admin_user.php @@ -52,14 +52,14 @@ function admin_user() . '</p></td></tr>' . "\n"; $html .= ' <tr><td>Name</td><td>' . '<input size="40" name="eName" value="' . $user_source['Name'] . '" class="form-control"></td></tr>' . "\n"; $html .= ' <tr><td>Vorname</td><td>' . '<input size="40" name="eVorname" value="' . $user_source['Vorname'] . '" class="form-control"></td></tr>' . "\n"; - $html .= ' <tr><td>Alter</td><td>' . '<input size="5" name="eAlter" value="' . $user_source['Alter'] . '" class="form-control"></td></tr>' . "\n"; - $html .= ' <tr><td>Telefon</td><td>' . '<input size="40" name="eTelefon" value="' . $user_source['Telefon'] . '" class="form-control"></td></tr>' . "\n"; - $html .= ' <tr><td>Handy</td><td>' . '<input size="40" name="eHandy" value="' . $user_source['Handy'] . '" class="form-control"></td></tr>' . "\n"; + $html .= ' <tr><td>Alter</td><td>' . '<input type="value" size="5" name="eAlter" value="' . $user_source['Alter'] . '" class="form-control"></td></tr>' . "\n"; + $html .= ' <tr><td>Telefon</td><td>' . '<input type="tel" size="40" name="eTelefon" value="' . $user_source['Telefon'] . '" class="form-control"></td></tr>' . "\n"; + $html .= ' <tr><td>Handy</td><td>' . '<input type= "tel" size="40" name="eHandy" value="' . $user_source['Handy'] . '" class="form-control"></td></tr>' . "\n"; $html .= ' <tr><td>DECT</td><td>' . '<input size="4" name="eDECT" value="' . $user_source['DECT'] . '" class="form-control"></td></tr>' . "\n"; if ($user_source['email_by_human_allowed']) { - $html .= " <tr><td>email</td><td>" . '<input size="40" name="eemail" value="' . $user_source['email'] . '" class="form-control"></td></tr>' . "\n"; + $html .= " <tr><td>email</td><td>" . '<input type="email" size="40" name="eemail" value="' . $user_source['email'] . '" class="form-control"></td></tr>' . "\n"; } - $html .= " <tr><td>jabber</td><td>" . '<input size="40" name="ejabber" value="' . $user_source['jabber'] . '" class="form-control"></td></tr>' . "\n"; + $html .= " <tr><td>jabber</td><td>" . '<input type="email" size="40" name="ejabber" value="' . $user_source['jabber'] . '" class="form-control"></td></tr>' . "\n"; $html .= ' <tr><td>Size</td><td>' . html_select_key('size', 'eSize', $tshirt_sizes, $user_source['Size'], __('Please select...')) . '</td></tr>' . "\n"; diff --git a/includes/sys_form.php b/includes/sys_form.php index 73bfe895..edf9542a 100644 --- a/includes/sys_form.php +++ b/includes/sys_form.php @@ -71,7 +71,7 @@ function form_date($name, $label, $value, $start_date = '', $end_date = '') return form_element($label, ' <div class="input-group date" id="' . $dom_id . '"> - <input name="' . $name . '" class="form-control" value="' . htmlspecialchars($value) . '">' + <input type="date" name="' . $name . '" class="form-control" value="' . htmlspecialchars($value) . '">' . '<span class="input-group-addon">' . glyph('th') . '</span> </div> <script type="text/javascript"> |