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
3584bfa3
authored
May 25, 2018
by
Prasong Putichanchai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user signup
parent
5cf12ded
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
6 deletions
+17
-6
www/src/Template/Users/signup.ctp
+13
-4
www/src/Template/Users/verify.ctp
+4
-2
No files found.
www/src/Template/Users/signup.ctp
View file @
3584bfa3
...
...
@@ -224,13 +224,22 @@
alert("กรุณาใส่ข้อมูลที่หมายเลขโทรศัพท์ เป็นตัวเลขเท่านั้น");
}
}
function check_notnum() {
e_k=event.keyCode
if ((e_k== 13 || e_k== 110) && (e_k > 48) || (e_k< 57)) {
event.returnValue = false;
function check_notnum() {
// e_k=event.keyCode
// if ((e_k== 13 || e_k== 110) && (e_k > 48) || (e_k< 57)) {
// event.returnValue = false;
// alert("กรุณาใส่ข้อมูลที่เป็นตัวอักษรภาษาไทยหรือภาษาอังกฤษให้ถูกต้อง");
// }
var letters = /^[A-Za-zก-๙]+$/;
if(letters.test( event.key )==false){
alert("กรุณาใส่ข้อมูลที่เป็นตัวอักษรภาษาไทยหรือภาษาอังกฤษให้ถูกต้อง");
return false;
}
}
function checkeng()
{
e_k=event.keyCode
...
...
www/src/Template/Users/verify.ctp
View file @
3584bfa3
<script type='text/javascript'>
setTimeout(function(){
if (typeof Login == 'undefined') {
location = '<?php echo $
redirectApplicationURL
; ?>';
location = '<?php echo $
paramOptions['url']['url']
; ?>';
} else {
Login.onLogin('<?php echo
$statusCode; ?>','<?php echo $redirectApplicationURL; ?>','<?php echo $topic
; ?>');
Login.onLogin('<?php echo
json_encode($paramOptions['url']); ?>','<?php echo json_encode($paramOptions['token']); ?>','<?php $paramOptions['topic']
; ?>');
}
}, 1000);
</script>;
\ No newline at end of file
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