Commit 5681bf63 by Wittaya-PIM

Merge branch 'integration' into wittaya

parents 80675538 fc44746c
......@@ -37,7 +37,7 @@ public function generate(){
</div>
<div class="col-xs-1 col-sm-1 col-md-1 box-arrow" >
<i class = "fa fa-angle-right"></i>
<i class = "fa fa-angle-right"></i>
</div>
<div style="clear: both"></div>
</div><!--/row-->
......@@ -57,20 +57,6 @@ public function generate(){
<?php // debug($userProfiles); exit;?>
<div class="form-group has-feedback">
<div class="col-xs-12 col-sm-12 col-md-12">
<!--<label class="label-text-sub">เพศ</label>-->
<?php echo __('เพศ'); ?>
<div class="radio-group">
<label class="radio-inline">
<input type="radio" name="UserPersonals[gender]" id="male" value="M" <?php echo ($responseUserProfile['gender'] == 'M') ? 'checked="checked"' : null; ?>> <?php echo __('ชาย'); ?>
</label>
<label class="radio-inline">
<input type="radio" name="UserPersonals[gender]" id="female" value="F" <?php echo ($responseUserProfile['gender'] == 'F') ? 'checked="checked"' : null; ?>> <?php echo __('หญิง'); ?>
</label>
</div>
</div>
</div>
<div class="form-group has-feedback">
<div class="col-xs-12 col-sm-12 col-md-12">
<?php echo $this->Form->input('UserPersonals.firstname_th', ['class' => 'form-control-reg border-bottom-from label-text-sub required', 'value' => $responseUserProfile['firstname_th'], 'id' => 'firstname_th', 'type' => 'text', 'label' => __('ชื่อ'), 'placeholder' => 'ชื่อ', 'required']); ?>
<?php // echo $this->Form->input('fullname', ['class' => 'form-control-reg border-bottom-from label-text-sub', 'value' => $userProfiles->firstname_th . ' ' . $userProfiles->lastname_th, 'id' => 'fullName', 'type' => 'text', 'label' => __('ชื่อ - นามสกุล'), 'placeholder' => 'ชื่อ - นามสกุล', 'required']); ?>
</div>
......@@ -89,6 +75,20 @@ public function generate(){
</div>
<div class="form-group has-feedback">
<div class="col-xs-12 col-sm-12 col-md-12">
<!--<label class="label-text-sub">เพศ</label>-->
<?php echo __('เพศ'); ?>
<div class="radio-group">
<label class="radio-inline">
<input type="radio" name="UserPersonals[gender]" id="male" value="M" <?php echo ($responseUserProfile['gender'] == 'M') ? 'checked="checked"' : null; ?>> <?php echo __('ชาย'); ?>
</label>
<label class="radio-inline">
<input type="radio" name="UserPersonals[gender]" id="female" value="F" <?php echo ($responseUserProfile['gender'] == 'F') ? 'checked="checked"' : null; ?>> <?php echo __('หญิง'); ?>
</label>
</div>
</div>
</div>
<div class="form-group has-feedback">
<div class="col-xs-12 col-sm-12 col-md-12">
<?php echo __('กรุ๊ปเลือด'); ?>
<div class="radio-group">
<label class="radio-inline">
......@@ -205,63 +205,16 @@ public function generate(){
$('#moblieNo').inputmask('999-999-9999');
$('#officePhone').inputmask('99-999-9999');
//==================================================
// CHANGE UNIVERSITY PROFILES
//==================================================
$("#OrganizetionId").change(function () {
getDepartment();
});
$("#DepartmentId").change(function () {
getSection();
});
$("#SectionId").change(function () {
updateChosen();
});
//==================================================
// CHANGE COMPAMY PROFILES
// CHANGE Date Times
//==================================================
$("#companyName").change(function () {
getCompanyDepartment();
});
$("#department").change(function () {
getCompanySection();
});
$("#cottonId").change(function () {
getCompanyPosition();
});
$(".datepicker").change(function () {
updateChosen();
});
$('#datepicker').datepicker({
format: 'dd/mm/yyyy'
});
//==================================================
// CHANGE PROFILES PICTURE
//==================================================
$("#uploadProfile").change(function () {
readURL(this);
});
});
function readURL(input) {
if (input.files && input.files[0]) {
var reader = new FileReader();
reader.onload = function (e) {
$('#img-upload')
.attr('src', e.target.result)
.width(150)
.height(150);
}
reader.readAsDataURL(input.files[0]);
}
}
//==================================================
// CHANGE Province According Country
//==================================================
$(document).ready(function () {
$(document).ready(function () {
$("#master_country_id").on('change', function () {
var id = $(this).val();
if (id) {
......
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