Commit b6b4639e by Zen-PC\Zen

Zen : viewCard change lable EN

parent 46764a3e
...@@ -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,7 +158,7 @@ use Cake\I18n\Time; ...@@ -158,7 +158,7 @@ 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', 'required']); ?> <?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', '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', '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>
...@@ -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>
...@@ -513,8 +513,8 @@ use Cake\I18n\Time; ...@@ -513,8 +513,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('ลงทะเบียนกับ ' + data[0]['org_name_th'] + $("#noorg_th").text(<?php echo __('Register with') ?> + 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('');
...@@ -527,7 +527,7 @@ use Cake\I18n\Time; ...@@ -527,7 +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') ?>);
$("#nameorg_th").text(''); $("#nameorg_th").text('');
$('#employee').attr("disabled", true); $('#employee').attr("disabled", true);
organize_id.val(''); organize_id.val('');
...@@ -547,7 +547,7 @@ use Cake\I18n\Time; ...@@ -547,7 +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') ?>);
$("#nameemp_th").text(''); $("#nameemp_th").text('');
$('#date').attr("disabled", true); $('#date').attr("disabled", true);
date.val(''); date.val('');
...@@ -559,7 +559,7 @@ use Cake\I18n\Time; ...@@ -559,7 +559,7 @@ use Cake\I18n\Time;
} }
} else { } else {
$("#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);
...@@ -571,12 +571,12 @@ use Cake\I18n\Time; ...@@ -571,12 +571,12 @@ use Cake\I18n\Time;
function check() { function check() {
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;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment