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
43988cd8
authored
Jun 01, 2018
by
Wittaya-PIM
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ปรับภาษา
parent
2acc936f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
23 deletions
+23
-23
www/src/Template/Element/card_from/from_add_card.ctp
+11
-11
www/src/Template/Profiles/index.ctp
+12
-12
No files found.
www/src/Template/Element/card_from/from_add_card.ctp
View file @
43988cd8
...
...
@@ -43,7 +43,7 @@
</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>
<?php echo $this->Form->end(); ?>
</div>
...
...
@@ -78,8 +78,8 @@
data = jQuery.parseJSON(data);
if (data['chkuser'] == true) {
$("#noorg_th").text('');
$("#noorg_th").text(
'ลงทะเบียนกับ '
+ data[0]['org_name_th'] +
' แล้ว'
);
$("#noorg_th").text(
<?php echo __('Register with') ?>
+ data[0]['org_name_th'] +
<?php echo __('already') ?>
);
$("#nameorg_th").text('');
$('#employee').attr("disabled", true);
organize_id.val('');
...
...
@@ -94,10 +94,10 @@
}
} else {
$("#noorg_th").text('');
$("#noorg_th").text(
'ไม่พบข้อมูล'
);
$("#noorg_th").text(
<?php echo __('Data not found') ?>
);
$("#nameorg_th").text('');
$("#noepm_th").text('');
$("#nameemp_th").text('');
$("#noepm_th").text('');
$("#nameemp_th").text('');
$('#employee').attr("disabled", true);
organize_id.val('');
employee.val('');
...
...
@@ -118,7 +118,7 @@
data = jQuery.parseJSON(data);
if (data['chkuser'] == true) {
$("#noepm_th").text('');
$("#noepm_th").text(
'ลงทะเบียนแล้ว'
);
$("#noepm_th").text(
<?php echo __('Registered') ?>
);
$("#nameemp_th").text('');
$('#date').attr("disabled", true);
date.val('');
...
...
@@ -130,7 +130,7 @@
}
} else {
$("#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('');
$('#date').attr("disabled", true);
date.val('');
...
...
@@ -152,17 +152,17 @@
function check() {
if ($("#organize_code").val() == '') {
alert(
'กรุณากรอก Company Code'
);
alert(
<?php echo __('Please enter Company Code.') ?>
);
organize_id.focus();
return false;
}
if (employee.val() == '') {
alert(
'กรุณากรอก Ref1'
);
alert(
<?php echo __('Please enter Ref1.') ?>
);
employee.focus();
return false;
}
if (date.val() == '') {
alert(
'กรุณากรอก Ref2'
);
alert(
<?php echo __('Please enter Ref2.') ?>
);
date.focus();
return false;
}
...
...
www/src/Template/Profiles/index.ctp
View file @
43988cd8
...
...
@@ -227,7 +227,7 @@ use Cake\I18n\Time;
<?php echo $value['card_code'] ?>
</div>
<div>
<label style="font-size: 17px">
ชื่อ
</label>
<label style="font-size: 17px">
<?php echo __('Firstname') ?>
</label>
<?php echo $value['prefix_name_th'].$value['firstname_th'].' '.$value['lastname_th'] ?>
</div>
</div>
...
...
@@ -237,7 +237,7 @@ use Cake\I18n\Time;
</div>
<div class="row">
<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'] ?>
</div>
</div>
...
...
@@ -260,10 +260,10 @@ use Cake\I18n\Time;
</div>
<div class="row text-center">
<div class="col-xs-6">
<label style="font-size: 17px">
วันออกบัตร
</label>
<label style="font-size: 17px">
<?php echo __('Card issue') ?>
</label>
</div>
<div class="col-xs-6">
<label style="font-size: 17px">
วันหมดออายุ
</label>
<label style="font-size: 17px">
<?php echo __('Old age') ?>
</label>
</div>
</div>
</div>
...
...
@@ -276,42 +276,42 @@ use Cake\I18n\Time;
<div class="col-xs-12 col-sm-12 col-md-12">
<div class="form-group has-feedback">
<div class="col-xs-12 col-sm-12 col-md-12">
<h4>
ข้อมูลบริษัท
</h4>
<h4>
<?php echo __('Company Information') ?>
</h4>
</div>
</div>
<div class="form-group has-feedback">
<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'] ?>
</div>
</div>
<div class="form-group has-feedback">
<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'] ?>
</div>
</div>
<div class="form-group has-feedback">
<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'] ?>
</div>
</div>
<div class="form-group has-feedback">
<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'] ?>
</div>
</div>
<div class="form-group has-feedback">
<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'] ?>
</div>
</div>
<div class="form-group has-feedback">
<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
$now = new Time($value['date_issued']);
$dateIssued = $now->i18nFormat('yyyy-MM-dd');
...
...
@@ -321,7 +321,7 @@ use Cake\I18n\Time;
</div>
<div class="form-group has-feedback">
<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
$now = new Time($value['date_expiry']);
$dateExpiry = $now->i18nFormat('yyyy-MM-dd');
...
...
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