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
10d3f1e6
authored
Jun 06, 2018
by
Zen-PC\Zen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Zen : จัดโค้ด
parent
27609774
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
12 deletions
+15
-12
www/src/Controller/ProfilesController.php
+1
-1
www/src/Template/Profiles/index.ctp
+14
-11
No files found.
www/src/Controller/ProfilesController.php
View file @
10d3f1e6
...
...
@@ -43,7 +43,7 @@ class ProfilesController extends AppController
$this
->
loadModel
(
'MasterProvinces'
);
$Province
=
$this
->
MasterProvinces
->
find
(
'list'
,
[
'conditions'
=>
[
'is_used'
=>
true
],
'is_used'
=>
true
],
'keyField'
=>
'id'
,
'valueField'
=>
'province_name_th'
])
...
...
www/src/Template/Profiles/index.ctp
View file @
10d3f1e6
...
...
@@ -67,7 +67,8 @@ use Cake\I18n\Time;
<em>* </em>
<?php echo $this->Form->input('UserPersonals.firstname_th', [
'class' => 'form-control-reg border-bottom-from label-text-sub required',
'value' => $responseUserPersonal['firstname_th'], 'id' => 'firstname_th',
'value' => $responseUserPersonal['firstname_th'],
'id' => 'firstname_th',
'type' => 'text', 'label' => false,
'minlength' => '4',
'placeholder' => 'firstname'
...
...
@@ -81,7 +82,8 @@ use Cake\I18n\Time;
<em>* </em>
<?php echo $this->Form->input('UserPersonals.lastname_th', [
'class' => 'form-control-reg border-bottom-from label-text-sub required',
'value' => $responseUserPersonal['lastname_th'], 'id' => 'lastname_th',
'value' => $responseUserPersonal['lastname_th'],
'id' => 'lastname_th',
'type' => 'text', 'label' => false,
'minlength' => '4',
'placeholder' => 'lastname'
...
...
@@ -157,7 +159,8 @@ use Cake\I18n\Time;
<?php echo $this->Form->input('UserPersonals.moblie_no', [
'class' => 'form-control-reg border-bottom-from label-text-sub required digits',
'value' => $responseUserPersonal['moblie_no'],
'id' => 'moblieNo', 'type' => 'text',
'id' => 'moblieNo',
'type' => 'text',
'label' => false,
'maxlength' => '10',
'minlength' => '10',
...
...
@@ -652,14 +655,14 @@ use Cake\I18n\Time;
});
});
$("#moblieNo").on('change',function(){
var elem = document.getElementById('moblieNo').value;
// console.log(elem);
if(!elem.match(/^([A-Za-zก-๙])+$/i)){
alert("<?php echo __('only numbers'); ?>");
return false;
}
});
//
$("#moblieNo").on('change',function(){
//
var elem = document.getElementById('moblieNo').value;
//
// console.log(elem);
//
if(!elem.match(/^([A-Za-zก-๙])+$/i)){
//
alert("<?php echo __('only numbers'); ?>");
//
return false;
//
}
//
});
//==================================================
// CHANGE Province According Country
...
...
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