Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
smart_core_connect
/
core-connect
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
9a435aea
authored
Jun 01, 2018
by
Wittaya-PIM
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'integration' into wittaya
parents
c8c06908
ee9eab72
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
432 additions
and
57 deletions
+432
-57
www/src/Controller/UserCardsController.php
+3
-3
www/src/Controller/UsersController.php
+3
-5
www/src/Locale/en_EN/default.mo
+0
-0
www/src/Locale/en_EN/default.po
+182
-2
www/src/Locale/th_TH/default.mo
+0
-0
www/src/Locale/th_TH/default.po
+202
-2
www/src/Template/UserCards/view_card.ctp
+24
-27
www/src/Template/Users/change_forgotpassword.ctp
+10
-10
www/src/Template/Users/forgot_password.ctp
+5
-5
www/src/Template/Users/pin_codepassword.ctp
+3
-3
No files found.
www/src/Controller/UserCardsController.php
View file @
9a435aea
...
@@ -302,15 +302,15 @@ class UserCardsController extends AppController
...
@@ -302,15 +302,15 @@ class UserCardsController extends AppController
}
}
$this
->
Flash
->
success
(
__
(
'
บันทึกสำเร็จ
'
));
$this
->
Flash
->
success
(
__
(
'
Save Complete
'
));
return
$this
->
redirect
([
'controller'
=>
'Profiles'
,
'action'
=>
'index'
]);
return
$this
->
redirect
([
'controller'
=>
'Profiles'
,
'action'
=>
'index'
]);
}
}
}
else
{
}
else
{
$this
->
Flash
->
error
(
__
(
'
ลงทะเบียนไว้อยู่แล้ว
'
));
$this
->
Flash
->
error
(
__
(
'
Already registered
'
));
return
$this
->
redirect
([
'controller'
=>
'UserCards'
,
'action'
=>
'viewCard'
]);
return
$this
->
redirect
([
'controller'
=>
'UserCards'
,
'action'
=>
'viewCard'
]);
}
}
}
else
{
}
else
{
$this
->
Flash
->
error
(
__
(
'
ไม่พบข้อมูล
'
));
$this
->
Flash
->
error
(
__
(
'
Data not found
'
));
return
$this
->
redirect
([
'controller'
=>
'UserCards'
,
'action'
=>
'viewCard'
]);
return
$this
->
redirect
([
'controller'
=>
'UserCards'
,
'action'
=>
'viewCard'
]);
}
}
}
}
...
...
www/src/Controller/UsersController.php
View file @
9a435aea
...
@@ -18,13 +18,11 @@ class UsersController extends AppController {
...
@@ -18,13 +18,11 @@ class UsersController extends AppController {
*/
*/
public
function
initialize
()
{
public
function
initialize
()
{
parent
::
initialize
();
parent
::
initialize
();
// $this->Auth->allow(['signin', 'signout', 'signup', 'verify', 'forgotPassword', 'createAccount', 'pinCode', 'pinCodepassword', 'changeForgotpassword']);
// $this->Auth->allow(['signin', 'signout', 'signup', 'verify', 'forgotPassword', 'createAccount', 'pinCode', 'pinCodepassword', 'changeForgotpassword']);
$this
->
Auth
->
allow
([
'signin'
,
'signout'
,
'signup'
,
'verify'
,
'forgotPassword'
,
'createAccount'
,
'pinCode'
,
'pinCodepassword'
,
'registersendpin'
,
'forgotsendpin'
,
'changeForgotpassword'
,
'reautorize'
]);
$this
->
Auth
->
allow
([
'signin'
,
'signout'
,
'signup'
,
'verify'
,
'forgotPassword'
,
'createAccount'
,
'pinCode'
,
'pinCodepassword'
,
'registersendpin'
,
'forgotsendpin'
,
'changeForgotpassword'
]);
}
}
public
function
index
()
{
public
function
index
()
{
return
$this
->
redirect
([
'controller'
=>
'Users'
,
'action'
=>
'signin'
]);
return
$this
->
redirect
([
'controller'
=>
'Users'
,
'action'
=>
'signin'
]);
}
}
...
...
www/src/Locale/en_EN/default.mo
View file @
9a435aea
No preview for this file type
www/src/Locale/en_EN/default.po
View file @
9a435aea
...
@@ -43,6 +43,10 @@ msgstr "Gender"
...
@@ -43,6 +43,10 @@ msgstr "Gender"
msgid "blood group"
msgid "blood group"
msgstr "Blood group"
msgstr "Blood group"
#: Controller/ProfilesController.php/index.ctp:199
msgid "Show QR Code to get permission"
msgstr "Show QR Code to get permission"
#: Controller/ProfilesController.php/index.ctp:122,123
#: Controller/ProfilesController.php/index.ctp:122,123
msgid "mobile"
msgid "mobile"
msgstr "Mobile"
msgstr "Mobile"
...
@@ -137,4 +141,180 @@ msgstr "Email address format wrong Please enter the correct."
...
@@ -137,4 +141,180 @@ msgstr "Email address format wrong Please enter the correct."
#: Controller/UsersController.php/forgot_password.ctp:3
#: Controller/UsersController.php/forgot_password.ctp:3
msgid "Forgot password"
msgid "Forgot password"
msgstr "Forgot password"
msgstr "Forgot password"
\ No newline at end of file
#: Controller/UsersController.php/pin_codepassword.ctp:3
msgid "Verify PIN"
msgstr "Verify PIN"
#: Controller/UsersController.php/pin_codepassword.ctp:18
msgid "4 digit PIN in the email address specified for access"
msgstr "4 digit PIN in the email address specified for access"
#: Controller/UsersController.php/pin_codepassword.ctp:40
msgid "Re-send pin code"
msgstr "Re-send pin code"
#: Controller/UsersController.php/change_forgotpassword.ctp:14
msgid "new password"
msgstr "New password"
#: Controller/UsersController.php/change_forgotpassword.ctp:22
msgid "confirm password"
msgstr "confirm password"
#: Controller/UsersController.php/change_forgotpassword.ctp:32
#: Controller/UsersController.php/forgot_password.ctp:21
msgid "submit"
msgstr "Submit"
#: Controller/UsersController.php/change_forgotpassword.ctp:49
#: Controller/UsersController.php/change_forgotpassword.ctp:58
msgid "Please enter only English letters and numbers."
msgstr "Please enter only English letters and numbers."
#: Controller/UsersController.php/change_forgotpassword.ctp:67
msgid "Please enter a new password."
msgstr "Please enter a new password."
#: Controller/UsersController.php/change_forgotpassword.ctp:72
msgid "Please enter a new password at least 8 characters."
msgstr "Please enter a new password at least 8 characters."
#: Controller/UsersController.php/change_forgotpassword.ctp:77
msgid "Please enter your password."
msgstr "Please enter your password."
#: Controller/UsersController.php/change_forgotpassword.ctp:82
msgid "Please enter at least 8 characters."
msgstr "Please enter at least 8 characters."
#: Controller/UsersController.php/change_forgotpassword.ctp:86
msgid "Please provide the same password."
msgstr "Please provide the same password."
#: Controller/UsersController.php/change_forgotpassword.ctp:3
msgid "change password"
msgstr "change password"
#: Controller/UsersController.php:444
msgid "You are now logged out."
msgstr "You are now logged out."
#: Controller/UsersController.php:391
msgid "Pin Completed."
msgstr "Pin Completed."
#: Controller/UsersController.php:394
msgid "Pin Invalid."
msgstr "Pin Invalid."
#: Controller/UsersController.php:369
msgid "send password to email success."
msgstr "Send password to email success."
#: Controller/UsersController.php:374
msgid "Invalid Email."
msgstr "Invalid Email."
#: Controller/UserCardsController.php/view_card.ctp:21
msgid "id"
msgstr "Id"
#: Controller/UserCardsController.php/view_card.ctp:27
msgid "Name"
msgstr "Name"
#: Controller/UserCardsController.php/view_card.ctp:37
#: Controller/UserCardsController.php/view_card.ctp:105
msgid "Position"
msgstr "Position"
#: Controller/UserCardsController.php/view_card.ctp:60
#: Controller/UserCardsController.php/view_card.ctp:111
msgid "Card issue"
msgstr "Card issue"
#: Controller/UserCardsController.php/view_card.ctp:63
#: Controller/UserCardsController.php/view_card.ctp:121
msgid "Old age"
msgstr "Old age"
#: Controller/UserCardsController.php/view_card.ctp:76
msgid "Company Information"
msgstr "Company Information"
#: Controller/UserCardsController.php/view_card.ctp:81
msgid "Firstname"
msgstr "Firstname"
#: Controller/UserCardsController.php/view_card.ctp:87
msgid "Lastname"
msgstr "Lastname"
#: Controller/UserCardsController.php/view_card.ctp:93
msgid "Company Name"
msgstr "Company Name"
#: Controller/UserCardsController.php/view_card.ctp:99
msgid "Department"
msgstr "Department"
#: Controller/UserCardsController.php/view_card.ctp:177
msgid "Ref 2"
msgstr "Ref 2"
#: Controller/UserCardsController.php/view_card.ctp:185
msgid "Check"
msgstr "Check"
#: Controller/UserCardsController.php/view_card.ctp:515
msgid "Register with"
msgstr "Register with"
#: Controller/UserCardsController.php/view_card.ctp:516
msgid "already"
msgstr "Already"
#: Controller/UserCardsController.php/view_card.ctp:530
#: Controller/UserCardsController:313
msgid "Data not found"
msgstr "Data not found"
#: Controller/UserCardsController.php/view_card.ctp:550
msgid "Registered"
msgstr "Registered"
#: Controller/UserCardsController.php/view_card.ctp:564
msgid "Did not find the information you need", Please enter the correct information and press the check."
msgstr "Did not find the information you need", Please enter the correct information and press the check."
#: Controller/UserCardsController.php/view_card.ctp:576
msgid "Please enter Company Code."
msgstr "Please enter Company Code."
#: Controller/UserCardsController.php/view_card.ctp:581
msgid "Please enter Ref1."
msgstr "Please enter Ref1."
#: Controller/UserCardsController.php/view_card.ctp:586
msgid "Please enter Ref2."
msgstr "Please enter Ref2."
#: Controller/UserCardsController.php/view_card.ctp:161
msgid "ID Active"
msgstr "ID Active"
#: Controller/UserCardsController.php/view_card.ctp:162
msgid "Company Code"
msgstr "Company Code"
#: Controller/UserCardsController:305
msgid "Save Complete"
msgstr "Save Complete"
#: Controller/UserCardsController:309
msgid "Already registered"
msgstr "Already registered"
\ No newline at end of file
www/src/Locale/th_TH/default.mo
View file @
9a435aea
No preview for this file type
www/src/Locale/th_TH/default.po
View file @
9a435aea
...
@@ -137,4 +137,204 @@ msgstr "กรุณาระบุประเทศ"
...
@@ -137,4 +137,204 @@ msgstr "กรุณาระบุประเทศ"
#: View/Profiles/index:296
#: View/Profiles/index:296
msgid "Please specify province"
msgid "Please specify province"
msgstr "กรุณาระบุจังหวัด"
msgstr "กรุณาระบุจังหวัด"
\ No newline at end of file
#: View/UserCards/view_card:21
msgid "id"
msgstr "ไอดี"
#: View/UserCards/view_card:27
msgid "Name"
msgstr "ชื่อ"
#: View/UserCards/view_card:37
#: View/UserCards/view_card:105
msgid "Position"
msgstr "ตำแหน่ง"
#: View/UserCards/view_card:60
#: View/UserCards/view_card:111
msgid "Card issue"
msgstr "วันออกบัตร"
#: View/UserCards/view_card:63
#: View/UserCards/view_card:121
msgid "Old age"
msgstr "วันหมดอายุ"
#: View/UserCards/view_card:76
msgid "Company Information"
msgstr "ข้อมูลบริษัท"
#: View/UserCards/view_card:81
msgid "Firstname"
msgstr "ชื่อ"
#: View/UserCards/view_card:87
msgid "Lastname"
msgstr "นามสกุล"
#: View/UserCards/view_card:93
msgid "Company Name"
msgstr "ชื่อบริษัท"
#: View/UserCards/view_card:99
msgid "Department"
msgstr "แผนก"
#: View/UserCards/view_card:161
msgid "ID Active"
msgstr "ไอดี ผู้ใช้งาน"
#: View/UserCards/view_card:162
msgid "Company Code"
msgstr "รหัสบริษัท"
#: View/UserCards/view_card:169
msgid "Ref 1"
msgstr "อ้างอิง 1"
#: View/UserCards/view_card:177
msgid "Ref 2"
msgstr "อ้างอิง 2"
#: View/UserCards/view_card:185
msgid "Check"
msgstr "ตรวจสอบ"
#: View/UserCards/view_card:515
msgid "Register with"
msgstr "ลงทะเบียนกับ"
#: View/UserCards/view_card:516
msgid "already"
msgstr "แล้ว"
#: View/UserCards/view_card:550
msgid "Registered"
msgstr "ลงทะเบียนแล้ว"
#: View/UserCards/view_card:564
msgid ""Did not find the information you need", Please enter the correct information and press the check."
msgstr ""ไม่พบข้อมูลที่คุณต้องการ" โปรดป้อนข้อมูลที่ถูกต้องและกดเช็ค"
#: View/UserCards/view_card:576
msgid "Please enter Company Code"
msgstr "กรุณากรอกรหัสบริษัท"
#: View/UserCards/view_card:581
msgid "Please enter Ref1"
msgstr "กรุณากรอกอ้างอิง 1"
#: View/UserCards/view_card:586
msgid "Please enter Ref2"
msgstr "กรุณากรอกอ้างอิง 2"
#: View/Users/forgot_password:3
msgid "Forgot password"
msgstr "ลืมรหัสผ่าน"
#: View/Users/forgot_password:14
msgid "Email"
msgstr "อีเมล"
#: View/Users/forgot_password:34
msgid "Please enter your email."
msgstr "กรุณากรอกที่อยู่อีเมลของท่าน"
#: View/Users/forgot_password:40
msgid "Email address format wrong Please enter the correct."
msgstr "รูปแบบอีเมลไม่ถูกต้อง กรุณากรอกให้ถูกต้อง"
#: View/Users/change_forgotpassword:3
msgid "change password"
msgstr "เปลี่ยนรหัสผ่าน"
#: View/Users/change_forgotpassword:14
msgid "new password"
msgstr "รหัสผ่านใหม่"
#: View/Users/change_forgotpassword:22
msgid "confirm password"
msgstr "ยืนยันรหัสผ่าน"
#: View/Users/change_forgotpassword:49
#: View/Users/change_forgotpassword:58
msgid "Please enter only English letters and numbers."
msgstr "กรุณาใส่ข้อมูลที่เป็นตัวอักษรภาษาอังกฤษและตัวเลขเท่านั้น"
#: View/Users/change_forgotpassword:67
msgid "Please enter a new password."
msgstr "กรุณากรอก รหัสผ่านใหม่"
#: View/Users/change_forgotpassword:72
msgid "Please enter a new password at least 8 characters."
msgstr "กรุณาระบุรหัสผ่านใหม่อย่างน้อย 8 ตัวอักษร่"
#: View/Users/change_forgotpassword:77
msgid "Please enter your password."
msgstr "กรุณากรอก ยืนยันรหัสผ่าน"
#: View/Users/change_forgotpassword:82
msgid "Please enter at least 8 characters."
msgstr "กรุณาระบุยืนยันรหัสผ่านอย่างน้อย 8 ตัวอักษร"
#: View/Users/change_forgotpassword:86
msgid "Please provide the same password."
msgstr "กรุณาระบุรหัสผ่านให้ตรงกัน"
#: View/Users/pin_codepassword:3
msgid "Verify PIN"
msgstr "ยืนยัน PIN"
#: View/Users/pin_codepassword:18
msgid "4 digit PIN in the email address specified for access"
msgstr "กรุณาใส่ PIN 4 หลัก ที่ถูกส่งไปยังอีเมลของท่าน"
#: View/Users/pin_codepassword:40
msgid "Re-send pin code"
msgstr "ส่ง PIN ใหม่อีกครั้ง"
#: Controller/UsersController:369
msgid "send password to email success"
msgstr "ส่งรหัสผ่านไปยังอีเมลเรียบร้อย"
#: Controller/UsersController:372
msgid "Invalid Email."
msgstr "อีเมลไม่ถูกต้อง"
#: Controller/UsersController:391
msgid "Pin Completed."
msgstr "PIN ถูกต้อง"
#: Controller/UsersController:394
msgid "Pin Invalid"
msgstr "PIN ไม่ถูกต้อง"
#: Controller/UsersController:444
msgid "You are now logged out."
msgstr "ตอนนี้คุณออกจะระบบแล้ว"
#: Controller/ProfilesController:119
msgid "Update Complete."
msgstr "อัปเดตสำเร็จ"
#: Controller/ProfilesController:123
msgid "Email Address already used by others."
msgstr "ที่อยู่อีเมลนี้มีผู้ใช้งานแล้ว"
#: Controller/ProfilesController:125
msgid "Not update. Please, try again."
msgstr "ไม่สามารถอัปเดตได้ กรุณาลองใหม่อีกครั้ง"
#: Controller/UserCardsController:305
msgid "Save Complete"
msgstr "บันทึกสำเร็จ"
#: Controller/UserCardsController:309
msgid "Already registered"
msgstr "ลงทะเบียนอยู่แล้ว"
#: Controller/UserCardsController:313
msgid "Data not found"
msgstr "ไม่พบข้อมูล"
\ No newline at end of file
www/src/Template/UserCards/view_card.ctp
View file @
9a435aea
...
@@ -18,13 +18,13 @@ use Cake\I18n\Time;
...
@@ -18,13 +18,13 @@ use Cake\I18n\Time;
<div class="col-xs-8">
<div class="col-xs-8">
<div style="font-size: 17px">
<div style="font-size: 17px">
<br>
<br>
<label>
id
<label>
<label>
<?php echo __('id') ?>
<label>
</div>
</div>
<div>
<div>
<?php echo $value['card_code'] ?>
<?php echo $value['card_code'] ?>
</div>
</div>
<div>
<div>
<label style="font-size: 17px">
ชื่อ
</label>
<label style="font-size: 17px">
<?php echo __('Name') ?>
</label>
<?php echo $value['prefix_name_th'].$value['firstname_th'].' '.$value['lastname_th'] ?>
<?php echo $value['prefix_name_th'].$value['firstname_th'].' '.$value['lastname_th'] ?>
</div>
</div>
</div>
</div>
...
@@ -34,7 +34,7 @@ use Cake\I18n\Time;
...
@@ -34,7 +34,7 @@ use Cake\I18n\Time;
</div>
</div>
<div class="row">
<div class="row">
<div class="col-xs-10">
<div class="col-xs-10">
<label style="font-size: 17px">
ตำแหน่ง
</label>
<label style="font-size: 17px">
<?php echo __('Position') ?>
</label>
<?php echo $value['position_name'] ?>
<?php echo $value['position_name'] ?>
</div>
</div>
</div>
</div>
...
@@ -57,10 +57,10 @@ use Cake\I18n\Time;
...
@@ -57,10 +57,10 @@ use Cake\I18n\Time;
</div>
</div>
<div class="row text-center">
<div class="row text-center">
<div class="col-xs-6">
<div class="col-xs-6">
<label style="font-size: 17px">
วันออกบัตร
</label>
<label style="font-size: 17px">
<?php echo __('Card issue') ?>
</label>
</div>
</div>
<div class="col-xs-6">
<div class="col-xs-6">
<label style="font-size: 17px">
วันหมดออายุ
</label>
<label style="font-size: 17px">
<?php echo __('Old age') ?>
</label>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -73,42 +73,42 @@ use Cake\I18n\Time;
...
@@ -73,42 +73,42 @@ use Cake\I18n\Time;
<div class="col-xs-12 col-sm-12 col-md-12">
<div class="col-xs-12 col-sm-12 col-md-12">
<div class="form-group has-feedback">
<div class="form-group has-feedback">
<div class="col-xs-12 col-sm-12 col-md-12">
<div class="col-xs-12 col-sm-12 col-md-12">
<h4>
ข้อมูลบริษัท
</h4>
<h4>
<?php echo __('Company Information') ?>
</h4>
</div>
</div>
</div>
</div>
<div class="form-group has-feedback">
<div class="form-group has-feedback">
<div class="col-xs-12 col-sm-12 col-md-12">
<div class="col-xs-12 col-sm-12 col-md-12">
<label style="font-size: 17px" class="col-xs-4 col-sm-4 col-md-4">
ชื่อ
</label>
<label style="font-size: 17px" class="col-xs-4 col-sm-4 col-md-4">
<?php echo __('Firstname') ?>
</label>
<?php echo $value['prefix_name_th'].$value['firstname_th'] ?>
<?php echo $value['prefix_name_th'].$value['firstname_th'] ?>
</div>
</div>
</div>
</div>
<div class="form-group has-feedback">
<div class="form-group has-feedback">
<div class="col-xs-12 col-sm-12 col-md-12">
<div class="col-xs-12 col-sm-12 col-md-12">
<label style="font-size: 17px" class="col-xs-4 col-sm-4 col-md-4">
นามสกุล
</label>
<label style="font-size: 17px" class="col-xs-4 col-sm-4 col-md-4">
<?php echo __('Lastname') ?>
</label>
<?php echo $value['lastname_th'] ?>
<?php echo $value['lastname_th'] ?>
</div>
</div>
</div>
</div>
<div class="form-group has-feedback">
<div class="form-group has-feedback">
<div class="col-xs-12 col-sm-12 col-md-12">
<div class="col-xs-12 col-sm-12 col-md-12">
<label style="font-size: 17px" class="col-xs-4 col-sm-4 col-md-4">
ชื่อบริษัท
</label>
<label style="font-size: 17px" class="col-xs-4 col-sm-4 col-md-4">
<?php echo __('Company Name') ?>
</label>
<?php echo $value['morg']['org_name_th'] ?>
<?php echo $value['morg']['org_name_th'] ?>
</div>
</div>
</div>
</div>
<div class="form-group has-feedback">
<div class="form-group has-feedback">
<div class="col-xs-12 col-sm-12 col-md-12">
<div class="col-xs-12 col-sm-12 col-md-12">
<label style="font-size: 17px" class="col-xs-4 col-sm-4 col-md-4">
แผนก
</label>
<label style="font-size: 17px" class="col-xs-4 col-sm-4 col-md-4">
<?php echo __('Department') ?>
</label>
<?php echo $value['section_name'] ?>
<?php echo $value['section_name'] ?>
</div>
</div>
</div>
</div>
<div class="form-group has-feedback">
<div class="form-group has-feedback">
<div class="col-xs-12 col-sm-12 col-md-12">
<div class="col-xs-12 col-sm-12 col-md-12">
<label style="font-size: 17px" class="col-xs-4 col-sm-4 col-md-4">
ตำแหน่ง
</label>
<label style="font-size: 17px" class="col-xs-4 col-sm-4 col-md-4">
<?php echo __('Position') ?>
</label>
<?php echo $value['position_name'] ?>
<?php echo $value['position_name'] ?>
</div>
</div>
</div>
</div>
<div class="form-group has-feedback">
<div class="form-group has-feedback">
<div class="col-xs-12 col-sm-12 col-md-12">
<div class="col-xs-12 col-sm-12 col-md-12">
<label style="font-size: 17px" class="col-xs-4 col-sm-4 col-md-4">
วันที่ออกบัตร
</label>
<label style="font-size: 17px" class="col-xs-4 col-sm-4 col-md-4">
<?php echo __('Card issue') ?>
</label>
<?php
<?php
$now = new Time($value['date_issued']);
$now = new Time($value['date_issued']);
$dateIssued = $now->i18nFormat('yyyy-MM-dd');
$dateIssued = $now->i18nFormat('yyyy-MM-dd');
...
@@ -118,7 +118,7 @@ use Cake\I18n\Time;
...
@@ -118,7 +118,7 @@ use Cake\I18n\Time;
</div>
</div>
<div class="form-group has-feedback">
<div class="form-group has-feedback">
<div class="col-xs-12 col-sm-12 col-md-12">
<div class="col-xs-12 col-sm-12 col-md-12">
<label style="font-size: 17px" class="col-xs-4 col-sm-4 col-md-4">
วันที่หมดอายุ
</label>
<label style="font-size: 17px" class="col-xs-4 col-sm-4 col-md-4">
<?php echo __('Old age') ?>
</label>
<?php
<?php
$now = new Time($value['date_expiry']);
$now = new Time($value['date_expiry']);
$dateExpiry = $now->i18nFormat('yyyy-MM-dd');
$dateExpiry = $now->i18nFormat('yyyy-MM-dd');
...
@@ -158,8 +158,8 @@ use Cake\I18n\Time;
...
@@ -158,8 +158,8 @@ use Cake\I18n\Time;
<div class="col-xs-12 col-sm-12 col-md-12">
<div class="col-xs-12 col-sm-12 col-md-12">
<?php echo $this->Flash->render(); ?>
<?php echo $this->Flash->render(); ?>
<?php echo $this->Form->hidden('UserCards.user_id', ['class' => 'form-control-reg border-bottom-from label-text-sub required', 'id' => 'userId', 'type' => 'text', 'placeholder' => 'USERNAME']); ?>
<?php echo $this->Form->hidden('UserCards.user_id', ['class' => 'form-control-reg border-bottom-from label-text-sub required', 'id' => 'userId', 'type' => 'text', 'placeholder' => 'USERNAME']); ?>
<?php echo $this->Form->hidden('UserCards.organize_id', ['class' => 'form-control-reg border-bottom-from label-text-sub required', 'id' => 'organize_id', 'type' => 'text', 'label' => __('
ไอดีใช้งาน'), 'placeholder' => 'USERNAME
']); ?>
<?php echo $this->Form->hidden('UserCards.organize_id', ['class' => 'form-control-reg border-bottom-from label-text-sub required', 'id' => 'organize_id', 'type' => 'text', 'label' => __('
ID Active'), 'placeholder' => 'USERNAME', 'required
']); ?>
<?php echo $this->Form->input('UserCards.organize_code', ['class' => 'form-control-reg border-bottom-from label-text-sub required', 'id' => 'organize_code', 'type' => 'text', 'label' => __('Company Code'), 'placeholder' => 'Company Code']); ?>
<?php echo $this->Form->input('UserCards.organize_code', ['class' => 'form-control-reg border-bottom-from label-text-sub required', 'id' => 'organize_code', 'type' => 'text', 'label' => __('Company Code'), 'placeholder' => 'Company Code'
, 'required'
]); ?>
<label id="nameorg_th" style="color: green"></label>
<label id="nameorg_th" style="color: green"></label>
<label id="noorg_th" style="color: red"></label>
<label id="noorg_th" style="color: red"></label>
</div>
</div>
...
@@ -182,7 +182,7 @@ use Cake\I18n\Time;
...
@@ -182,7 +182,7 @@ use Cake\I18n\Time;
</div>
</div>
</div>
</div>
<div>
<div>
<button type="submit" class="btn btn-quaternary mr-xs mb-sm button-text-profile" id="checkbutton">
ตรวจสอบ
</button>
<button type="submit" class="btn btn-quaternary mr-xs mb-sm button-text-profile" id="checkbutton">
<?php echo __('Check') ?>
</button>
</div>
</div>
<?php echo $this->Form->end(); ?>
<?php echo $this->Form->end(); ?>
</div>
</div>
...
@@ -512,9 +512,8 @@ use Cake\I18n\Time;
...
@@ -512,9 +512,8 @@ use Cake\I18n\Time;
if (data != 'false') {
if (data != 'false') {
data = jQuery.parseJSON(data);
data = jQuery.parseJSON(data);
if (data['chkuser'] == true) {
if (data['chkuser'] == true) {
$("#noorg_th").text('');
$("#noorg_th").text(<?php echo __('Register with') ?> + data[0]['org_name_th'] +
$("#noorg_th").text('ลงทะเบียนกับ ' + data[0]['org_name_th'] +
<?php echo __('already') ?>);
' แล้ว');
$("#nameorg_th").text('');
$("#nameorg_th").text('');
$('#employee').attr("disabled", true);
$('#employee').attr("disabled", true);
organize_id.val('');
organize_id.val('');
...
@@ -528,8 +527,7 @@ use Cake\I18n\Time;
...
@@ -528,8 +527,7 @@ use Cake\I18n\Time;
organize_id.val(data[0]['id']);
organize_id.val(data[0]['id']);
}
}
} else {
} else {
$("#noorg_th").text('');
$("#noorg_th").text(<?php echo __('Data not found') ?>);
$("#noorg_th").text('ไม่พบข้อมูล');
$("#nameorg_th").text('');
$("#nameorg_th").text('');
$('#employee').attr("disabled", true);
$('#employee').attr("disabled", true);
organize_id.val('');
organize_id.val('');
...
@@ -549,8 +547,7 @@ use Cake\I18n\Time;
...
@@ -549,8 +547,7 @@ use Cake\I18n\Time;
if (data != 'false') {
if (data != 'false') {
data = jQuery.parseJSON(data);
data = jQuery.parseJSON(data);
if (data['chkuser'] == true) {
if (data['chkuser'] == true) {
$("#noepm_th").text('');
$("#noepm_th").text(<?php echo __('Registered') ?>);
$("#noepm_th").text('ลงทะเบียนแล้ว');
$("#nameemp_th").text('');
$("#nameemp_th").text('');
$('#date').attr("disabled", true);
$('#date').attr("disabled", true);
date.val('');
date.val('');
...
@@ -564,7 +561,7 @@ use Cake\I18n\Time;
...
@@ -564,7 +561,7 @@ use Cake\I18n\Time;
} else {
} else {
$("#noepm_th").text('');
$("#noepm_th").text('');
$("#noepm_th").text(
$("#noepm_th").text(
'"ไม่พบข้อมูลที่ต้องการ" กรุณากรอกรหัสข้อมูลที่ถูกต้องและกดตรวจสอบ'
<?php echo __('"Did not find the information you need", Please enter the correct information and press the check.') ?>
);
);
$("#nameemp_th").text('');
$("#nameemp_th").text('');
$('#date').attr("disabled", true);
$('#date').attr("disabled", true);
...
@@ -576,17 +573,17 @@ use Cake\I18n\Time;
...
@@ -576,17 +573,17 @@ use Cake\I18n\Time;
function check() {
function check() {
if ($("#organize_code").val() == '') {
if ($("#organize_code").val() == '') {
alert(
'กรุณากรอก Company Code'
);
alert(
<?php echo __('Please enter Company Code.') ?>
);
organize_id.focus();
organize_id.focus();
return false;
return false;
}
}
if (employee.val() == '') {
if (employee.val() == '') {
alert(
'กรุณากรอก Ref1'
);
alert(
<?php echo __('Please enter Ref1.') ?>
);
employee.focus();
employee.focus();
return false;
return false;
}
}
if (date.val() == '') {
if (date.val() == '') {
alert(
'กรุณากรอก Ref2'
);
alert(
<?php echo __('Please enter Ref2.') ?>
);
date.focus();
date.focus();
return false;
return false;
}
}
...
...
www/src/Template/Users/change_forgotpassword.ctp
View file @
9a435aea
<div class="row">
<div class="row">
<div class="center">
<div class="center">
<div class="title_header" style="padding-top: 20px;"><a href="javascript:history.go(-1)"><?php echo $this->Html->image('/img/core/img/back-icon@3x.png', ['style' => 'float: left;padding-left: 15px;padding-top: 5px;']); ?></a><?php echo __('
เปลี่ยนรหัสผ่าน
');?></div>
<div class="title_header" style="padding-top: 20px;"><a href="javascript:history.go(-1)"><?php echo $this->Html->image('/img/core/img/back-icon@3x.png', ['style' => 'float: left;padding-left: 15px;padding-top: 5px;']); ?></a><?php echo __('
change password
');?></div>
</div>
</div>
<div class="col-md-12">
<div class="col-md-12">
<!-- <div class="alert alert-warning" role="alert" style="margin: 10px 0px 10px 0px;font-size: 17px;text-align: center;">
<!-- <div class="alert alert-warning" role="alert" style="margin: 10px 0px 10px 0px;font-size: 17px;text-align: center;">
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
<div>
<div>
<div class="form-group has-feedback">
<div class="form-group has-feedback">
<div class="col-md-12">
<div class="col-md-12">
<label class="label-text-sub"><?php echo __('new password');
//รหัสผ่านใหม่
?></label>
<label class="label-text-sub"><?php echo __('new password');?></label>
<input data-toggle="password" data-placement="before" onkeyup="check();" type="password" name="password" id="password" value="" placeholder="********" class="form-control input-lg color-button-border border-bottom-from" style="padding:0px 0px !important;">
<input data-toggle="password" data-placement="before" onkeyup="check();" type="password" name="password" id="password" value="" placeholder="********" class="form-control input-lg color-button-border border-bottom-from" style="padding:0px 0px !important;">
</div>
</div>
</div>
</div>
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
<div>
<div>
<div class="form-group has-feedback">
<div class="form-group has-feedback">
<div class="col-md-12">
<div class="col-md-12">
<label class="label-text-sub"><?php echo __('confirm password');
//ยืนยันรหัสผ่าน
?></label>
<label class="label-text-sub"><?php echo __('confirm password');?></label>
<input data-toggle="password" data-placement="before" onkeyup="check();" type="password" name="confirm_password" id="confirm_password" value="" placeholder="********" class="form-control input-lg color-button-border border-bottom-from" style="padding:0px 0px !important;">
<input data-toggle="password" data-placement="before" onkeyup="check();" type="password" name="confirm_password" id="confirm_password" value="" placeholder="********" class="form-control input-lg color-button-border border-bottom-from" style="padding:0px 0px !important;">
</div>
</div>
</div>
</div>
...
@@ -46,7 +46,7 @@
...
@@ -46,7 +46,7 @@
var elem = document.getElementById('password').value;
var elem = document.getElementById('password').value;
// console.log(elem);
// console.log(elem);
if(!elem.match(/^([A-Za-z0-9])+$/i)){
if(!elem.match(/^([A-Za-z0-9])+$/i)){
alert(
"Please enter only English letters and numbers.");//กรุณาใส่ข้อมูลที่เป็นตัวอักษรภาษาอังกฤษและตัวเลขเท่านั้น
alert(
<?php echo __('Please enter only English letters and numbers.');?>);
return false;
return false;
}
}
})
})
...
@@ -55,7 +55,7 @@
...
@@ -55,7 +55,7 @@
var elem = document.getElementById('confirm_password').value;
var elem = document.getElementById('confirm_password').value;
// console.log(elem);
// console.log(elem);
if(!elem.match(/^([A-Za-z0-9])+$/i)){
if(!elem.match(/^([A-Za-z0-9])+$/i)){
alert(
"Please enter only English letters and numbers.");//กรุณาใส่ข้อมูลที่เป็นตัวอักษรภาษาอังกฤษและตัวเลขเท่านั้น
alert(
<?php echo __('Please enter only English letters and numbers.');?>);
return false;
return false;
}
}
})
})
...
@@ -64,26 +64,26 @@
...
@@ -64,26 +64,26 @@
var password = document.forms["changePressword"]["password"].value;
var password = document.forms["changePressword"]["password"].value;
if (password == null || password == "") {
if (password == null || password == "") {
alert(
"Please enter a new password.");//กรุณากรอก รหัสผ่านใหม่
alert(
<?php echo __('Please enter a new password.');?>);
return false;
return false;
}
}
if(document.forms["changePressword"]["password"].value.length < 8)
if(document.forms["changePressword"]["password"].value.length < 8)
{
{
alert(
'Please enter a new password at least 8 characters.');//กรุณาระบุรหัสผ่านใหม่อย่างน้อย 8 ตัวอักษร
alert(
<?php echo __('Please enter a new password at least 8 characters.');?>);
return false;
return false;
}
}
var confirm_password = document.forms["changePressword"][["confirm_password"]].value;
var confirm_password = document.forms["changePressword"][["confirm_password"]].value;
if (confirm_password == null || confirm_password == "") {
if (confirm_password == null || confirm_password == "") {
alert(
"Please enter your password.");//กรุณากรอก ยืนยันรหัสผ่าน
alert(
<?php echo __('Please enter your password.');?>);
return false;
return false;
}
}
if(document.forms["changePressword"]["confirm_password"].value.length < 8)
if(document.forms["changePressword"]["confirm_password"].value.length < 8)
{
{
alert(
'Please enter at least 8 characters.');//กรุณาระบุยืนยันรหัสผ่านอย่างน้อย 8 ตัวอักษร
alert(
<?php echo __('Please enter at least 8 characters.');?>);
return false;
return false;
}
}
if(document.forms["changePressword"]["password"].value != document.forms["changePressword"]["confirm_password"].value){
if(document.forms["changePressword"]["password"].value != document.forms["changePressword"]["confirm_password"].value){
alert(
'Please provide the same password.');//กรุณาระบุรหัสผ่านให้ตรงกัน
alert(
<?php echo __('Please provide the same password.');?>);
//document.createAccount.confirm_password.focus();
//document.createAccount.confirm_password.focus();
return false;
return false;
}
}
...
...
www/src/Template/Users/forgot_password.ctp
View file @
9a435aea
<div class="row">
<div class="row">
<div class="center">
<div class="center">
<div class="title_header"><a href="javascript:history.go(-1)"><?php echo $this->Html->image('/img/core/img/back-icon@3x.png', ['style' => 'float: left;padding-left: 15px;padding-top: 5px;']); ?></a><?php echo __('Forgot password');
//ลืมรหัสผ่าน
?></div>
<div class="title_header"><a href="javascript:history.go(-1)"><?php echo $this->Html->image('/img/core/img/back-icon@3x.png', ['style' => 'float: left;padding-left: 15px;padding-top: 5px;']); ?></a><?php echo __('Forgot password');?></div>
</div>
</div>
<div class="col-md-12">
<div class="col-md-12">
...
@@ -11,14 +11,14 @@
...
@@ -11,14 +11,14 @@
<div>
<div>
<div class="form-group has-feedback">
<div class="form-group has-feedback">
<div class="col-md-12">
<div class="col-md-12">
<label class="label-text-sub"><?php echo __('Email');
//อีเมล
?><em>* </em></label>
<label class="label-text-sub"><?php echo __('Email');?><em>* </em></label>
<input type="text" value="" name="email" placeholder="mail@xxx.com" class="form-control-reg border-bottom-from" id="fremail">
<input type="text" value="" name="email" placeholder="mail@xxx.com" class="form-control-reg border-bottom-from" id="fremail">
</div>
</div>
</div>
</div>
</div>
</div>
<div>
<div>
<?php
<?php
echo $this->Form->submit('
ตรวจสอบ
', array('div' => false, 'class' => 'btn btn-quaternary mr-xs mb-sm button-text',
echo $this->Form->submit('
submit
', array('div' => false, 'class' => 'btn btn-quaternary mr-xs mb-sm button-text',
'name' => 'btn', 'id' => '', 'title' => 'Title'));
'name' => 'btn', 'id' => '', 'title' => 'Title'));
?>
?>
</div>
</div>
...
@@ -31,13 +31,13 @@
...
@@ -31,13 +31,13 @@
function validateForm() {
function validateForm() {
var email = document.forms["forgotPressword"]["email"].value;
var email = document.forms["forgotPressword"]["email"].value;
if (email == null || email == "") {
if (email == null || email == "") {
alert(
"Please enter your email.");//กรุณากรอกอีเมลล์
alert(
<?php echo __('Please enter your email.');?>);
return false;
return false;
}
}
// Validate Email
// Validate Email
var email = $("#fremail").val();
var email = $("#fremail").val();
if ((/(.+)@(.+){2,}\.(.+){2,}/.test(email)) || email=="" || email==null) { } else {
if ((/(.+)@(.+){2,}\.(.+){2,}/.test(email)) || email=="" || email==null) { } else {
alert(
"Email address format wrong Please enter the correct.");//รูปแบบที่อยู่อีเมลล์ผิด กรุณากรอกให้ถูกต้อง
alert(
<?php echo __('Email address format wrong Please enter the correct.');?>);
return false;
return false;
}
}
}
}
...
...
www/src/Template/Users/pin_codepassword.ctp
View file @
9a435aea
<div>
<div>
<div class=" row center">
<div class=" row center">
<div class="title_header"><?php echo __('Verify PIN');
//ยืนยันตัวตนด้วยรหัส PIN
?></div>
<div class="title_header"><?php echo __('Verify PIN');?></div>
</div>
</div>
<div style="padding-top: 20px;"></div>
<div style="padding-top: 20px;"></div>
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
<div class="form-group has-feedback">
<div class="form-group has-feedback">
<div class="col-md-12">
<div class="col-md-12">
<div class=" row center">
<div class=" row center">
<?php echo __('4 digit PIN in the email address specified for access');
//รหัส PIN 4 หลัก ในอีเมลล์ที่ระบุเพื่อเข้าใช้งาน
?>
<?php echo __('4 digit PIN in the email address specified for access');?>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -37,7 +37,7 @@
...
@@ -37,7 +37,7 @@
<div class="col-md-12">
<div class="col-md-12">
<div class=" row center">
<div class=" row center">
<?php
<?php
echo $this->Html->link('Re-send pin code', ['controller' => 'Users', 'action' => 'forgotsendpin/'.$token]);
//ส่ง pin ใหม่อีกครั้ง
echo $this->Html->link('Re-send pin code', ['controller' => 'Users', 'action' => 'forgotsendpin/'.$token]);
?>
?>
</div>
</div>
</div>
</div>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment