Skip to content

Commit

Permalink
Fix Special Char Bug
Browse files Browse the repository at this point in the history
  • Loading branch information
lamsri1992 committed Nov 16, 2018
1 parent 99a66e2 commit 3166801
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 17 deletions.
10 changes: 5 additions & 5 deletions element/header.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,28 +53,28 @@
<div class="form-group">
<label class="col-md-2 control-label" for="textinput">หัวข้อ</label>
<div class="col-md-8">
<input name="title" type="text" class="form-control" required>
<input name="maker" type="hidden" class="form-control" value="<?=$_SESSION['user_id']?>" required>
<input name="title" type="text" class="form-control" required pattern="[0-9a-zA-Z_.-@]*">
<input name="maker" type="hidden" class="form-control" value="<?=$_SESSION['user_id']?>" required pattern="[0-9a-zA-Z_.-@]*">
</div>
</div>
<div id="basicExample">
<div class="form-group">
<label class="col-md-2 control-label" for="textinput">วันที่</label>
<div class="col-md-8">
<input id="d_start" name="d_start" type="text" class="form-control date start" placeholder="เลือกวันที่" required>
<input id="d_start" name="d_start" type="text" class="form-control date start" placeholder="เลือกวันที่" required pattern="[0-9a-zA-Z_.-@]*">
<input id="d_end" name="d_end" type="hidden" class="form-control date end">
</div>
</div>
<div class="form-group">
<label class="col-md-2 control-label" for="textinput">ตั้งแต่</label>
<div class="col-md-8">
<input id="t_start" name="t_start" type="text" class="form-control time start" placeholder="เลือกช่วงเวลา" required>
<input id="t_start" name="t_start" type="text" class="form-control time start" placeholder="เลือกช่วงเวลา" required pattern="[0-9a-zA-Z_.-@]*">
</div>
</div>
<div class="form-group">
<label class="col-md-2 control-label" for="textinput">ถึง</label>
<div class="col-md-8">
<input name="t_end" id="timeEnd" type="text" class="form-control time end" placeholder="เลือกช่วงเวลา" required>
<input name="t_end" id="timeEnd" type="text" class="form-control time end" placeholder="เลือกช่วงเวลา" required pattern="[0-9a-zA-Z_.-@]*">
</div>
</div>
<div class="form-group">
Expand Down
4 changes: 2 additions & 2 deletions login.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@
<span class="login100-form-title p-b-34 p-t-27"><i class="fa fa-calendar"></i> ระบบจองห้องประชุม</span>

<div class="wrap-input100 validate-input" data-validate = "Enter username">
<input class="input100" type="text" name="txtuser" placeholder="ชื่อผู้ใช้งาน">
<input class="input100" type="text" name="txtuser" placeholder="ชื่อผู้ใช้งาน" pattern="[0-9a-zA-Z_.-@]*">
<span class="focus-input100" data-placeholder="&#xf207;"></span>
</div>

<div class="wrap-input100 validate-input" data-validate="Enter password">
<input class="input100" type="password" name="txtpass" placeholder="รหัสผ่าน">
<input class="input100" type="password" name="txtpass" placeholder="รหัสผ่าน" pattern="[0-9a-zA-Z_.-@]*">
<span class="focus-input100" data-placeholder="&#xf191;"></span>
</div>

Expand Down
2 changes: 1 addition & 1 deletion page/edit_room.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
<div class="form-group">
<label class="col-md-2 control-label" for="textinput">ชื่อห้องประชุม</label>
<div class="col-md-8">
<input name="room_name" type="text" class="form-control" required>
<input name="room_name" type="text" class="form-control" required pattern="[0-9a-zA-Z_.-@]*">
</div>
</div>
<div class="form-group">
Expand Down
6 changes: 3 additions & 3 deletions page/edit_user.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,19 +75,19 @@
<div class="form-group">
<label class="col-md-2 control-label" for="textinput">ชื่อ-สกุล</label>
<div class="col-md-8">
<input name="user_name" type="text" class="form-control" required>
<input name="user_name" type="text" class="form-control" required pattern="[0-9a-zA-Z_.-@]*">
</div>
</div>
<div class="form-group">
<label class="col-md-2 control-label" for="textinput">Email</label>
<div class="col-md-8">
<input name="user_email" type="text" class="form-control" required>
<input name="user_email" type="text" class="form-control" required pattern="[0-9a-zA-Z_.-@]*">
</div>
</div>
<div class="form-group">
<label class="col-md-2 control-label" for="textinput">Password</label>
<div class="col-md-8">
<input name="user_pass" type="password" class="form-control" required>
<input name="user_pass" type="password" class="form-control" required pattern="[0-9a-zA-Z_.-@]*">
</div>
</div>
<div class="form-group">
Expand Down
4 changes: 2 additions & 2 deletions page/report.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,10 @@
<div id="basicExample" class="form-group">
<label class="col-md-2 control-label" for="textinput">วันที่</label>
<div class="col-md-4">
<input id="d_start" name="d_start" type="text" class="form-control date" placeholder="เลือกวันที่เริ่มต้น">
<input id="d_start" name="d_start" type="text" class="form-control date" placeholder="เลือกวันที่เริ่มต้น" pattern="[0-9a-zA-Z_.-@]*">
</div>
<div class="col-md-4">
<input id="d_end" name="d_end" type="text" class="form-control date" placeholder="เลือกวันที่สิ้นสุด">
<input id="d_end" name="d_end" type="text" class="form-control date" placeholder="เลือกวันที่สิ้นสุด" pattern="[0-9a-zA-Z_.-@]*">
</div>
</div>
<div class="form-group">
Expand Down
2 changes: 1 addition & 1 deletion page/room.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<div class="form-group">
<label class="col-md-2 control-label" for="textinput">ชื่อห้องประชุม</label>
<div class="col-md-8">
<input name="room_name" type="text" class="form-control" value="<?=$result['room_name']?>" required>
<input name="room_name" type="text" class="form-control" value="<?=$result['room_name']?>" required pattern="[0-9a-zA-Z_.-@]*">
<input name="room_id" type="hidden" class="form-control" value="<?=$result['room_id']?>">
</div>
</div>
Expand Down
6 changes: 3 additions & 3 deletions page/user.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,20 @@
<div class="form-group">
<label class="col-md-2 control-label" for="textinput">ชื่อ-สกุล</label>
<div class="col-md-8">
<input name="user_name" type="text" class="form-control" value="<?=$result['user_name']?>" required>
<input name="user_name" type="text" class="form-control" value="<?=$result['user_name']?>" required pattern="[0-9a-zA-Z_.-@]*">
<input name="user_id" type="hidden" class="form-control" value="<?=$result['user_id']?>">
</div>
</div>
<div class="form-group">
<label class="col-md-2 control-label" for="textinput">Email</label>
<div class="col-md-8">
<input name="user_email" type="text" class="form-control" value="<?=$result['user_email']?>" required>
<input name="user_email" type="text" class="form-control" value="<?=$result['user_email']?>" required pattern="[0-9a-zA-Z_.-@]*">
</div>
</div>
<div class="form-group">
<label class="col-md-2 control-label" for="textinput">Password</label>
<div class="col-md-8">
<input name="user_pass" type="text" class="form-control" value="<?=$result['user_pass']?>" required>
<input name="user_pass" type="text" class="form-control" value="<?=$result['user_pass']?>" required pattern="[0-9a-zA-Z_.-@]*">
</div>
</div>
<div class="form-group">
Expand Down

0 comments on commit 3166801

Please sign in to comment.