Commit db5e17f1 by Zen-PC\Zen

Zen : remove scritp and move gender feild

parent cddd26f3
...@@ -37,7 +37,7 @@ public function generate(){ ...@@ -37,7 +37,7 @@ public function generate(){
</div> </div>
<div class="col-xs-1 col-sm-1 col-md-1 box-arrow" > <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>
<div style="clear: both"></div> <div style="clear: both"></div>
</div><!--/row--> </div><!--/row-->
...@@ -57,20 +57,6 @@ public function generate(){ ...@@ -57,20 +57,6 @@ public function generate(){
<?php // debug($userProfiles); exit;?> <?php // debug($userProfiles); exit;?>
<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 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('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']); ?> <?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> </div>
...@@ -89,6 +75,20 @@ public function generate(){ ...@@ -89,6 +75,20 @@ public function generate(){
</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 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 __('กรุ๊ปเลือด'); ?> <?php echo __('กรุ๊ปเลือด'); ?>
<div class="radio-group"> <div class="radio-group">
<label class="radio-inline"> <label class="radio-inline">
...@@ -205,63 +205,16 @@ public function generate(){ ...@@ -205,63 +205,16 @@ public function generate(){
$('#moblieNo').inputmask('999-999-9999'); $('#moblieNo').inputmask('999-999-9999');
$('#officePhone').inputmask('99-999-9999'); $('#officePhone').inputmask('99-999-9999');
//================================================== //==================================================
// CHANGE UNIVERSITY PROFILES // CHANGE Date Times
//==================================================
$("#OrganizetionId").change(function () {
getDepartment();
});
$("#DepartmentId").change(function () {
getSection();
});
$("#SectionId").change(function () {
updateChosen();
});
//==================================================
// CHANGE COMPAMY PROFILES
//================================================== //==================================================
$("#companyName").change(function () {
getCompanyDepartment();
});
$("#department").change(function () {
getCompanySection();
});
$("#cottonId").change(function () {
getCompanyPosition();
});
$(".datepicker").change(function () {
updateChosen();
});
$('#datepicker').datepicker({ $('#datepicker').datepicker({
format: 'dd/mm/yyyy' 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 // CHANGE Province According Country
//================================================== //==================================================
$(document).ready(function () {
$(document).ready(function () {
$("#master_country_id").on('change', function () { $("#master_country_id").on('change', function () {
var id = $(this).val(); var id = $(this).val();
if (id) { 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