Commit 4d6ad11c by Zen-PC\Zen

Zen : จัดโค้ดให้ดูง่ายขึ้น

parent 1fe14090
...@@ -45,7 +45,13 @@ use Cake\I18n\Time; ...@@ -45,7 +45,13 @@ use Cake\I18n\Time;
<div style="clear: both"></div> <div style="clear: both"></div>
<br><br> <br><br>
<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->Form->create('UserProfiles', ['id' => 'frmSignIn', 'type' => 'file','name' => 'frmSignIn','role' => 'form', 'onsubmit' => 'return validateForm()']); ?> <?php echo $this->Form->create('UserProfiles', [
'id' => 'frmSignIn',
'type' => 'file',
'name' => 'frmSignIn',
'role' => 'form',
'onsubmit' => 'return validateForm()'
]); ?>
<?php echo $this->Flash->render() ?> <?php echo $this->Flash->render() ?>
<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">
...@@ -56,8 +62,23 @@ use Cake\I18n\Time; ...@@ -56,8 +62,23 @@ 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">
<?php echo $this->Form->hidden('Users.user_id', ['class' => 'form-control-reg border-bottom-from label-text-sub', 'value' => $responseUserProfile['id'], 'id' => 'userId', 'type' => 'text', 'label' => __('username'), 'placeholder' => 'USERNAME']); ?> <?php echo $this->Form->hidden('Users.user_id', [
<?php echo $this->Form->input('Users.username', ['class' => 'form-control-reg border-bottom-from label-text-sub', 'value' => $username, 'id' => 'username', 'type' => 'text', 'label' => __('username'), 'placeholder' => 'USERNAME', 'readonly']); ?> 'class' => 'form-control-reg border-bottom-from label-text-sub',
'value' => $responseUserProfile['id'],
'id' => 'userId',
'type' => 'text',
'label' => __('username'),
'placeholder' => 'USERNAME'
]); ?>
<?php echo $this->Form->input('Users.username', [
'class' => 'form-control-reg border-bottom-from label-text-sub',
'value' => $username,
'id' => 'username',
'type' => 'text',
'label' => __('username'),
'placeholder' => 'USERNAME',
'readonly'
]); ?>
<?php // echo $this->Form->input('user_id', ['class' => 'form-control-reg border-bottom-from label-text-sub', 'value' => $userProfile->username, 'id' => 'userId', 'type' => 'text', 'label' => __('ชื่อผู้ใช้งาน'), 'placeholder' => 'USERNAME']); ?> <?php // echo $this->Form->input('user_id', ['class' => 'form-control-reg border-bottom-from label-text-sub', 'value' => $userProfile->username, 'id' => 'userId', 'type' => 'text', 'label' => __('ชื่อผู้ใช้งาน'), 'placeholder' => 'USERNAME']); ?>
</div> </div>
</div> </div>
...@@ -69,7 +90,8 @@ use Cake\I18n\Time; ...@@ -69,7 +90,8 @@ use Cake\I18n\Time;
'class' => 'form-control-reg border-bottom-from label-text-sub required letterthai', 'class' => 'form-control-reg border-bottom-from label-text-sub required letterthai',
'value' => $responseUserPersonal['firstname_th'], 'value' => $responseUserPersonal['firstname_th'],
'id' => 'firstname_th', 'id' => 'firstname_th',
'type' => 'text', 'label' => false, 'type' => 'text',
'label' => false,
'minlength' => '4', 'minlength' => '4',
'placeholder' => 'firstname' 'placeholder' => 'firstname'
]); ?> ]); ?>
...@@ -84,7 +106,8 @@ use Cake\I18n\Time; ...@@ -84,7 +106,8 @@ use Cake\I18n\Time;
'class' => 'form-control-reg border-bottom-from label-text-sub required letterthai', 'class' => 'form-control-reg border-bottom-from label-text-sub required letterthai',
'value' => $responseUserPersonal['lastname_th'], 'value' => $responseUserPersonal['lastname_th'],
'id' => 'lastname_th', 'id' => 'lastname_th',
'type' => 'text', 'label' => false, 'type' => 'text',
'label' => false,
'minlength' => '4', 'minlength' => '4',
'placeholder' => 'lastname' 'placeholder' => 'lastname'
]); ?> ]); ?>
...@@ -179,8 +202,7 @@ use Cake\I18n\Time; ...@@ -179,8 +202,7 @@ use Cake\I18n\Time;
'id' => 'email', 'id' => 'email',
'name' => 'email', 'name' => 'email',
'label' => false, 'label' => false,
'placeholder' => 'placeholder' => 'mail@xxx.com'
'mail@xxx.com'
]); ?> ]); ?>
<?php // echo $this->Form->input('email', ['class' => 'form-control-reg border-bottom-from label-text-sub', 'value' => $userProfiles->email, 'id' => 'email', 'type' => 'email', 'label' => __('Email'), 'placeholder' => 'mail@xxx.com']); ?> <?php // echo $this->Form->input('email', ['class' => 'form-control-reg border-bottom-from label-text-sub', 'value' => $userProfiles->email, 'id' => 'email', 'type' => 'email', 'label' => __('Email'), 'placeholder' => 'mail@xxx.com']); ?>
<!-- <input type="text" name="email" id="email" value="<?php echo $responseUserPersonal['email'] ?>" placeholder="mail@xxx.com" <!-- <input type="text" name="email" id="email" value="<?php echo $responseUserPersonal['email'] ?>" placeholder="mail@xxx.com"
......
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