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
4d6ad11c
authored
Jun 07, 2018
by
Zen-PC\Zen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Zen : จัดโค้ดให้ดูง่ายขึ้น
parent
1fe14090
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
55 additions
and
33 deletions
+55
-33
www/src/Template/Profiles/index.ctp
+55
-33
No files found.
www/src/Template/Profiles/index.ctp
View file @
4d6ad11c
...
@@ -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"
...
@@ -205,19 +227,19 @@ use Cake\I18n\Time;
...
@@ -205,19 +227,19 @@ use Cake\I18n\Time;
<?php echo __('country'); ?>
<?php echo __('country'); ?>
<em>* </em>
<em>* </em>
<?php
<?php
echo $this->Form->input( 'master_country_id', array(
echo $this->Form->input( 'master_country_id', array(
'id' => 'master_country_id',
'id' => 'master_country_id',
'label' => false,
'label' => false,
'type' => 'select',
'type' => 'select',
'require'=>'require',
'require'=>'require',
'options' => $Country,
'options' => $Country,
'value' => $responseUserPersonal['master_country_id'],
'value' => $responseUserPersonal['master_country_id'],
'empty' => '---Select---',
'empty' => '---Select---',
'default' => !empty($responseUserPersonal['master_country_id'])? $responseUserPersonal['master_country_id']:'',
'default' => !empty($responseUserPersonal['master_country_id'])? $responseUserPersonal['master_country_id']:'',
'class' => 'form-control border-bottom-from label-text-sub require required',
'class' => 'form-control border-bottom-from label-text-sub require required',
'style' => 'width:100%'
'style' => 'width:100%'
));
));
?>
?>
</div>
</div>
</div>
</div>
<div class="form-group has-feedback">
<div class="form-group has-feedback">
...
@@ -225,19 +247,19 @@ use Cake\I18n\Time;
...
@@ -225,19 +247,19 @@ use Cake\I18n\Time;
<?php echo __('province'); ?>
<?php echo __('province'); ?>
<em>* </em>
<em>* </em>
<?php
<?php
echo $this->Form->input( 'master_province_id', array(
echo $this->Form->input( 'master_province_id', array(
'id' => 'master_province_id',
'id' => 'master_province_id',
'label' => false,
'label' => false,
'type' => 'select',
'type' => 'select',
'require'=>'require',
'require'=>'require',
'options' => $Province,
'options' => $Province,
'value' => $responseUserPersonal['master_province_id'],
'value' => $responseUserPersonal['master_province_id'],
'empty' => '---Select---',
'empty' => '---Select---',
'default' => !empty($responseUserPersonal['master_province_id'])? $responseUserPersonal['master_province_id']:'',
'default' => !empty($responseUserPersonal['master_province_id'])? $responseUserPersonal['master_province_id']:'',
'class' => 'form-control border-bottom-from label-text-sub require required',
'class' => 'form-control border-bottom-from label-text-sub require required',
'style' => 'width:100%'
'style' => 'width:100%'
));
));
?>
?>
</div>
</div>
</div>
</div>
<div>
<div>
...
...
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