Commit 4f81c251 by Zen-PC\Zen

Zen : update big card

parent a9028a7d
...@@ -24,8 +24,7 @@ class ProfilesController extends AppController ...@@ -24,8 +24,7 @@ class ProfilesController extends AppController
$this->loadModel('MasterCountries'); $this->loadModel('MasterCountries');
$Country = $this->MasterCountries->find('list', [ $Country = $this->MasterCountries->find('list', [
'conditions' => [ 'conditions' => [
'is_used' => true, 'is_used' => true],
'MasterCountries.id' => 1],
'keyField' => 'id', 'keyField' => 'id',
'valueField' => 'country_name_th' 'valueField' => 'country_name_th'
]); ]);
...@@ -35,8 +34,7 @@ class ProfilesController extends AppController ...@@ -35,8 +34,7 @@ class ProfilesController extends AppController
$this->loadModel('MasterProvinces'); $this->loadModel('MasterProvinces');
$Province = $this->MasterProvinces->find('list', [ $Province = $this->MasterProvinces->find('list', [
'conditions' => [ 'conditions' => [
'is_used' => true, 'is_used' => true],
'master_country_id' => 1],
'keyField' => 'id', 'keyField' => 'id',
'valueField' => 'province_name_th' 'valueField' => 'province_name_th'
]); ]);
...@@ -86,6 +84,7 @@ class ProfilesController extends AppController ...@@ -86,6 +84,7 @@ class ProfilesController extends AppController
$birthdate = explode("/", $this->request->data['UserPersonals']['birthdate']); $birthdate = explode("/", $this->request->data['UserPersonals']['birthdate']);
$birthdate = $birthdate[2].'-'.$birthdate[1].'-'.$birthdate[0]; $birthdate = $birthdate[2].'-'.$birthdate[1].'-'.$birthdate[0];
$userPersonals = $this->UserPersonals->patchEntity($userPersonals, $data['UserPersonals']); $userPersonals = $this->UserPersonals->patchEntity($userPersonals, $data['UserPersonals']);
$userPersonals['firstname_th'] = $this->request->data['UserPersonals']['firstname_th']; $userPersonals['firstname_th'] = $this->request->data['UserPersonals']['firstname_th'];
$userPersonals['lastname_th'] = $this->request->data['UserPersonals']['lastname_th']; $userPersonals['lastname_th'] = $this->request->data['UserPersonals']['lastname_th'];
...@@ -110,9 +109,6 @@ class ProfilesController extends AppController ...@@ -110,9 +109,6 @@ class ProfilesController extends AppController
} }
/*****************************************************************************/ /*****************************************************************************/
/*****************************************************************************/
public function settingProfile() public function settingProfile()
{ {
//prr($this->request->getHeaderLine('Accept-Language')); //prr($this->request->getHeaderLine('Accept-Language'));
...@@ -593,30 +589,4 @@ if (!empty($SubjectEnrolls)) { ...@@ -593,30 +589,4 @@ if (!empty($SubjectEnrolls)) {
$this->viewBuilder()->layout('blank'); $this->viewBuilder()->layout('blank');
} }
// public function getProvince() {
// $this->autoRender = false;
// $this->loadModel('MasterProvinces');
// $states = array();
// // pr($this->request->data);die;
// // echo 'jjjj';
// $states = $this->MasterProvinces->find('list', array(
// 'keyField' => 'id',
// 'valueField' => 'province_name_th',
// 'conditions' => array(
// 'master_country_id' => 2
// )
// ))->toArray();
// $arr = array();
// foreach($states as $key => $val){
// $arr[$key] = $val;
// }
// //pr($states);die;
// // $arr['1'] = "ไทยยยย";
// // $arr['2'] = "ไทยยยยยยยยยย";
// echo json_encode($arr);
// // $data = jQuery.parseJSON($f);
// // pr($data);die;
// }
} }
...@@ -94,7 +94,7 @@ class UsersController extends AppController ...@@ -94,7 +94,7 @@ class UsersController extends AppController
$countries = $this->MasterCountries->find('list', $countries = $this->MasterCountries->find('list',
[ [
'conditions' => ['is_used' => true,'id'=>1], 'conditions' => ['is_used' => true],
'keyField' => 'id', 'keyField' => 'id',
'valueField' => ['country_name_th'] 'valueField' => ['country_name_th']
] ]
...@@ -103,7 +103,7 @@ class UsersController extends AppController ...@@ -103,7 +103,7 @@ class UsersController extends AppController
$provinces = $this->MasterProvinces->find('list', $provinces = $this->MasterProvinces->find('list',
[ [
'conditions' => ['is_used' => true,'master_country_id'=>1], 'conditions' => ['is_used' => true],
'keyField' => 'id', 'keyField' => 'id',
'valueField' => 'province_name_th' 'valueField' => 'province_name_th'
] ]
...@@ -217,7 +217,7 @@ class UsersController extends AppController ...@@ -217,7 +217,7 @@ class UsersController extends AppController
$user_personals = $this->UserPersonals->patchEntity($user_personals, $this->request->getData()); $user_personals = $this->UserPersonals->patchEntity($user_personals, $this->request->getData());
$this->UserPersonals->save($user_personals); $this->UserPersonals->save($user_personals);
$this->Flash->success(__('The register success.')); // $this->Flash->success(__('The register success.'));
return $this->redirect(['controller' => 'Users', 'action' => 'pinCode/'.$users['token']]); return $this->redirect(['controller' => 'Users', 'action' => 'pinCode/'.$users['token']]);
return $this->redirect(['action' => 'signin']); return $this->redirect(['action' => 'signin']);
} }
...@@ -356,61 +356,124 @@ class UsersController extends AppController ...@@ -356,61 +356,124 @@ class UsersController extends AppController
#--------------------------------------------------------------------------------------------------- #---------------------------------------------------------------------------------------------------
#Change Password #Change Password
public function changePassword() // public function changePassword()
{ // {
$this->viewBuilder()->layout('blank'); // $users = $this->Users->newEntity();
// // $this->viewBuilder()->layout('blank');
$data = $this->request->data();#debug($data);exit();
// pr($data);die; // $data = $this->request->data();#debug($data);exit();
// pr($this->validateAccount($data));die; // // pr($data);die;
if(!empty($data)){ // // if(!empty($data)){
// pr($data);die; // // if($this->validateAccount($data)){
if($this->validateAccount($data)){ // if ($this->request->is('post')) {
$data['data']['ip'] = $this->request->clientIp();#debug($data);exit();
// $data['ip'] = $this->request->clientIp();#debug($data);exit();
// pr($data);die; // $hasher = new DefaultPasswordHasher();
$api_core_change_password = Configure::read('Config.apiCore.changePassword');#debug($api_core_change_password);exit(); // $data['id'] = 59445;
$http = new Client();
// pr($http);die;
#$response = json_decode($http->post($api_core_change_password,$data)->body(),'_full'); // $users = $this->Users->find('all',[
$response = $http->post($api_core_change_password,$data)->body(); // 'conditions'=>[
// pr($data);die; // 'Users.id' => $data['id'],
#debug($response);exit(); // ]
$response = json_decode($response,'_full'); // ])->first();
// pr($response);die; // // pr($data['password']);
#debug($response);exit(); // // pr($users['password']);die;
// // $sss = check( $data['password'] , $users['password'] );
if(!empty($response)){ // $user['password'] = $hasher->hash($data['password']);
// pr($response);die; // // pr($user);die;
// $users = $this->Users->patchEntity($users, $this->request->getData());
// $this->Users->save($users);
// $this->Flash->error(__('Change Password Success'));
// // return $this->redirect(['controller' => 'Users', 'action' => 'signin']);
// // $response = json_decode($users['password'],'_full');
// // pr($response);die;
// #debug($response);exit();
// // pr($data);die;
// // if(!empty($response)){
// // // pr($response);die;
#if(trim($response['status']) == 'Success' && !empty($response['result']['type'])){ // // #if(trim($response['status']) == 'Success' && !empty($response['result']['type'])){
if(trim($response['status']) == 'Success'){ // // if(trim($response['status']) == 'Success'){
#$this->response->withHeader('Authorization', 'Bearer '.$response['result']['token']); // // #$this->response->withHeader('Authorization', 'Bearer '.$response['result']['token']);
#$url = $this->Url->build(['controller' => 'Homes', 'action' => 'index'], true); // // #$url = $this->Url->build(['controller' => 'Homes', 'action' => 'index'], true);
$url = Router::url(['controller' => 'Users', 'action' => 'signup'], true); // // $url = Router::url(['controller' => 'Users', 'action' => 'signup'], true);
#echo "<script>Login.onLogin('".$response['result']['token']."','".$url."');</script>";die; // // #echo "<script>Login.onLogin('".$response['result']['token']."','".$url."');</script>";die;
$this->Flash->success(__('change Password completed.')); // // $this->Flash->success(__('change Password completed.'));
return $this->redirect(['controller' => 'Users', 'action' => 'signin']); // // return $this->redirect(['controller' => 'Users', 'action' => 'signin']);
}else{ // // }else{
$this->Flash->error(__('change Password Fail')); // // $this->Flash->error(__('change Password Fail'));
return $this->redirect(['controller' => 'Users', 'action' => 'signup']); // // return $this->redirect(['controller' => 'Users', 'action' => 'signup']);
} // // }
} // // }
}else{ // }else{
$this->Flash->error(__('Data Empty')); // $this->Flash->error(__('Data Empty'));
return $this->redirect(['controller' => 'Users', 'action' => 'signin']); // return $this->redirect(['controller' => 'Users', 'action' => 'signin']);
} // }
} // // }
} // }
public function changePassword()
{
// $users = $this->Users->newEntity();
if ($this->request->is('post')) {
$hasher = new DefaultPasswordHasher();
$confirm_password = $this->request->data['confirm_password'];
$this->request->data['password'] = $hasher->hash($this->request->data['password']);
$userid = 59445;
$users = $this->Users->find('all',[
'conditions' => [
'Users.id' => $userid
]
])->first();
// if($this->request->data['old']!=$users['password'])
$users = $this->Users->patchEntity($users, $this->request->getData());
$this->Users->save($users);
pr($users);die;
// return $this->redirect(['controller' => 'Users', 'action' => 'pinCode/'.$users['token']]);
return $this->redirect(['action' => 'signin']);
// }
// $this->Flash->error(__('Username or Email Address already used by others.'));
// return $this->redirect(['action' => 'signup']);
// $this->Flash->error(__('The article could not be saved. Please, try again.'));
}
}
#--------------------------------------------------------------------------------------------------- #---------------------------------------------------------------------------------------------------
public function signout() public function signout()
{ {
$this->checkToken(); $this->checkToken();
} }
public function getProvince() {
$this->autoRender = false;
$this->loadModel('MasterProvinces');
$states = array();
$id = $this->request->data('id');
$states = $this->MasterProvinces->find('list', array(
'keyField' => 'id',
'valueField' => 'province_name_th',
'conditions' => array(
'master_country_id' =>$id
)
))->toArray();
$arr = array();
if(!empty($states)){
echo '<option value=""> ---Select--- </option>';
foreach($states as $key => $val){
echo '<option value="' . $key . '">' . $val. '</option>';
}
}else{
return false;
}
}
} }
<?php
class QRGenerator {
protected $size;
protected $data;
protected $encoding;
protected $errorCorrectionLevel;
protected $marginInRows;
protected $debug;
public function __construct($data='1334554 5454 545',$size='300',$encoding='UTF-8',$errorCorrectionLevel='L',$marginInRows=4,$debug=false) {
$this->data=urlencode($data);
$this->size=($size>100 && $size<800)? $size : 300;
$this->encoding=($encoding == 'Shift_JIS' || $encoding == 'ISO-8859-1' || $encoding == 'UTF-8') ? $encoding : 'UTF-8';
$this->errorCorrectionLevel=($errorCorrectionLevel == 'L' || $errorCorrectionLevel == 'M' || $errorCorrectionLevel == 'Q' || $errorCorrectionLevel == 'H') ? $errorCorrectionLevel : 'L';
$this->marginInRows=($marginInRows>0 && $marginInRows<10) ? $marginInRows:4;
$this->debug = ($debug==true)? true:false;
}
public function generate(){
$QRLink = "https://chart.googleapis.com/chart?cht=qr&chs=".$this->size."x".$this->size. "&chl=" . $this->data .
"&choe=" . $this->encoding .
"&chld=" . $this->errorCorrectionLevel . "|" . $this->marginInRows;
if ($this->debug) echo $QRLink;
return $QRLink;
}
}
?>
<div class="row"> <div class="row">
<div class="col-xs-12 col-sm-12 col-md-12"> <div class="col-xs-1 col-sm-1 col-md-1" style="font-size:36px; height: 200px; padding-top:20%;" >
</div>
<div style="position: absolute;z-index: 2;">
<a href="profile_setting"><img src="/img/core/img/setting-icon@3x.png"/></a> <div class="col-xs-10 col-sm-10 col-md-10">
</div> <div data-toggle="modal" data-target="#defaultModal" style="text-align: center;">
<div class="box"> <img src="/img/core/img/card-bg-front@3x-V2.png" class="img-responsive" id="img-upload" alt="Profile picture">
<div class="absolute-right"><img src="/img/core/img/location-profile-icon@3x.png"/> สีลม ,บางรัก</div>
</div> </div>
<div style="text-align: center;"> </div>
<!--<div class="">-->
<?php //echo @$this->Html->image($responseUserProfile['UserProfiles']['img_path'], ['class' => 'imgCircle profile-img', 'id' => 'img-upload', 'alt' => 'Profile picture']); ?> <div class="col-xs-1 col-sm-1 col-md-1" style="font-size:36px; height: 200px; padding-top:20%;" >
<!-- <img src="/porto/core/img/profile-img@3x.png" class="imgCircle profile-img" id="img-upload" alt="Profile picture"> --> <div >
<img src="/img/core/img/profile-img@3x.png" class="imgCircle profile-img" id="img-upload" alt="Profile picture"> <i class = "fa fa-angle-right">
<!--</div>--> </i>
<input type="file" id="uploadProfile" class="profile-img form-control form-input Profile-input-file" name="data[UserProfiles][img_path]" >
</div> </div>
<div class="bg-profile"></div> </div>
<!--<div class="col-xs-12 col-sm-12 col-md-12" style="padding-top: 20px;">--> <div style="clear: both"></div>
</div><!--/col-xs-12-->
</div><!--/row--> </div><!--/row-->
<br><br>
<div class="row"> <div class="row">
<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']); ?> <?php echo $this->Form->create('UserProfiles', ['id' => 'frmSignIn', 'type' => 'file']); ?>
<?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">
<?php echo $this->Form->hidden('Users.user_id', ['class' => 'form-control-reg border-bottom-from label-text-sub required', 'value' => $responseUserProfile['id'], 'id' => 'userId', 'type' => 'text', 'label' => __('ชื่อผู้ใช้งาน'), 'placeholder' => 'USERNAME']); ?> <?php echo $this->Form->hidden('Users.user_id', ['class' => 'form-control-reg border-bottom-from label-text-sub required', 'value' => $responseUserProfile['id'], 'id' => 'userId', 'type' => 'text', 'label' => __('ชื่อผู้ใช้งาน'), 'placeholder' => 'USERNAME']); ?>
<?php echo $this->Form->input('Users.username', ['class' => 'form-control-reg border-bottom-from label-text-sub required', 'value' => $username, 'id' => 'username', 'type' => 'text', 'label' => __('ชื่อผู้ใช้งาน'), 'placeholder' => 'USERNAME', 'readonly']); ?> <?php echo $this->Form->input('Users.username', ['class' => 'form-control-reg border-bottom-from label-text-sub required', 'value' => $username, 'id' => 'username', 'type' => 'text', 'label' => __('ชื่อผู้ใช้งาน'), 'placeholder' => 'USERNAME', 'readonly']); ?>
<?php // echo $this->Form->input('user_id', ['class' => 'form-control-reg border-bottom-from label-text-sub required', '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 required', 'value' => $userProfile->username, 'id' => 'userId', 'type' => 'text', 'label' => __('ชื่อผู้ใช้งาน'), 'placeholder' => 'USERNAME']); ?>
</div>
</div> </div>
</div>
<?php // foreach ($userProfile->user['user_personals'] as $k => $userProfiles): ?> <?php // foreach ($userProfile->user['user_personals'] as $k => $userProfiles): ?>
<?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>--> <!--<label class="label-text-sub">เพศ</label>-->
<?php echo __('เพศ'); ?> <?php echo __('เพศ'); ?>
<div class="radio-group"> <div class="radio-group">
<label class="radio-inline"> <label class="radio-inline">
<input type="radio" name="UserPersonals[gender]" id="male" value="M" <?php echo ($responseUserProfile['gender'] == 'M') ? 'checked="checked"' : null; ?>> <?php echo __('ชาย'); ?> <input type="radio" name="UserPersonals[gender]" id="male" value="M" <?php echo ($responseUserProfile['gender'] == 'M') ? 'checked="checked"' : null; ?>> <?php echo __('ชาย'); ?>
</label> </label>
<label class="radio-inline"> <label class="radio-inline">
<input type="radio" name="UserPersonals[gender]" id="female" value="F" <?php echo ($responseUserProfile['gender'] == 'F') ? 'checked="checked"' : null; ?>> <?php echo __('หญิง'); ?> <input type="radio" name="UserPersonals[gender]" id="female" value="F" <?php echo ($responseUserProfile['gender'] == 'F') ? 'checked="checked"' : null; ?>> <?php echo __('หญิง'); ?>
</label> </label>
</div>
</div> </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"> <?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> </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->input('UserPersonals.lastname_th', ['class' => 'form-control-reg border-bottom-from label-text-sub required', 'value' => $responseUserProfile['lastname_th'], 'id' => 'lastname_th', 'type' => 'text', 'label' => __('นามสกุล'), 'placeholder' => 'นามสกุล', 'required']); ?>
<?php echo $this->Form->input('UserPersonals.lastname_th', ['class' => 'form-control-reg border-bottom-from label-text-sub required', 'value' => $responseUserProfile['lastname_th'], 'id' => 'lastname_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> </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->input('UserPersonals.birthdate', ['class' => 'form-control-reg border-bottom-from required', 'value' => $dateNow, 'id' => 'datepicker', 'type' => 'text', 'label' => __('วันเดือนปีเกิด'), 'placeholder' => 'DD-MM-YYYY', 'required']); ?>
<?php echo $this->Form->input('UserPersonals.birthdate', ['class' => 'form-control-reg border-bottom-from required', 'value' => $dateNow, 'id' => 'datepicker', 'type' => 'text', 'label' => __('วันเดือนปีเกิด'), 'placeholder' => 'DD-MM-YYYY', 'required']); ?> <span class="glyphicon glyphicon-calendar form-control-feedback datepicker"></span>
<span class="glyphicon glyphicon-calendar form-control-feedback datepicker"></span> </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"> <?php echo __('กรุ๊ปเลือด'); ?>
<?php echo __('กรุ๊ปเลือด'); ?> <div class="radio-group">
<div class="radio-group"> <label class="radio-inline">
<label class="radio-inline"> <input type="radio" name="UserPersonals[blood_group]" id="blood-A" value="A" <?php echo ($responseUserProfile['blood_group'] == 'A') ? 'checked="checked"' : null; ?>> <?php echo __('A'); ?>
<input type="radio" name="UserPersonals[blood_group]" id="blood-A" value="A" <?php echo ($responseUserProfile['blood_group'] == 'A') ? 'checked="checked"' : null; ?>> <?php echo __('A'); ?> </label>
</label> <label class="radio-inline">
<label class="radio-inline"> <input type="radio" name="UserPersonals[blood_group]" id="blood-B" value="B" <?php echo ($responseUserProfile['blood_group'] == 'B') ? 'checked="checked"' : null; ?>> <?php echo __('B'); ?>
<input type="radio" name="UserPersonals[blood_group]" id="blood-B" value="B" <?php echo ($responseUserProfile['blood_group'] == 'B') ? 'checked="checked"' : null; ?>> <?php echo __('B'); ?> </label>
</label> <label class="radio-inline">
<label class="radio-inline"> <input type="radio" name="UserPersonals[blood_group]" id="blood-AB" value="AB" <?php echo ($responseUserProfile['blood_group'] == 'AB') ? 'checked="checked"' : null; ?>> <?php echo __('AB'); ?>
<input type="radio" name="UserPersonals[blood_group]" id="blood-AB" value="AB" <?php echo ($responseUserProfile['blood_group'] == 'AB') ? 'checked="checked"' : null; ?>> <?php echo __('AB'); ?> </label>
</label> <label class="radio-inline">
<label class="radio-inline"> <input type="radio" name="UserPersonals[blood_group]" id="blood-O" value="O" <?php echo ($responseUserProfile['blood_group'] == 'O') ? 'checked="checked"' : null; ?>> <?php echo __('O'); ?>
<input type="radio" name="UserPersonals[blood_group]" id="blood-O" value="O" <?php echo ($responseUserProfile['blood_group'] == 'O') ? 'checked="checked"' : null; ?>> <?php echo __('O'); ?> </label>
</label> </div>
</div> </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"> <?php echo $this->Form->input('UserPersonals.moblie_no', ['class' => 'form-control-reg border-bottom-from label-text-sub required', 'value' => $responseUserProfile['moblie_no'], 'id' => 'moblieNo', 'type' => 'text', 'label' => __('เบอร์โทรศัพท์'), 'placeholder' => '000-000-0000']); ?>
<?php echo $this->Form->input('UserPersonals.moblie_no', ['class' => 'form-control-reg border-bottom-from label-text-sub required', 'value' => $responseUserProfile['moblie_no'], 'id' => 'moblieNo', 'type' => 'text', 'label' => __('เบอร์โทรศัพท์'), 'placeholder' => '000-000-0000']); ?> <?php // echo $this->Form->input('moblie_no', ['class' => 'form-control-reg border-bottom-from label-text-sub', 'value' => $userProfiles->moblie_no, 'id' => 'moblieNo', 'type' => 'text', 'label' => __('เบอร์โทรศัพท์'), 'placeholder' => '000-000-0000']); ?>
<?php // echo $this->Form->input('moblie_no', ['class' => 'form-control-reg border-bottom-from label-text-sub', 'value' => $userProfiles->moblie_no, 'id' => 'moblieNo', 'type' => 'text', 'label' => __('เบอร์โทรศัพท์'), 'placeholder' => '000-000-0000']); ?> </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"> <?php echo $this->Form->input('UserPersonals.email', ['class' => 'form-control-reg border-bottom-from label-text-sub required', 'value' => $responseUserProfile['email'], 'id' => 'email', 'type' => 'email', 'label' => __('Email'), 'placeholder' => 'mail@xxx.com']); ?>
<?php echo $this->Form->input('UserPersonals.email', ['class' => 'form-control-reg border-bottom-from label-text-sub required', 'value' => $responseUserProfile['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']); ?>
<?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']); ?> </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"> <?php echo $this->Form->input('UserPersonals.address', ['class' => 'form-control-reg border-bottom-from label-text-sub required', 'value' => $responseUserProfile['address'], 'id' => 'address', 'type' => 'text', 'label' => __('ที่อยู่อาศัย'), 'placeholder' => __('112/3 สุขุมวิท 22 ทองหล่อ กทม 10523')]); ?>
<?php echo $this->Form->input('UserPersonals.address', ['class' => 'form-control-reg border-bottom-from label-text-sub required', 'value' => $responseUserProfile['address'], 'id' => 'address', 'type' => 'text', 'label' => __('ที่อยู่อาศัย'), 'placeholder' => __('112/3 สุขุมวิท 22 ทองหล่อ กทม 10523')]); ?> <?php // echo $this->Form->input('address', ['class' => 'form-control-reg border-bottom-from label-text-sub', 'value' => $userProfiles->address, 'id' => 'address', 'type' => 'text', 'label' => __('ที่อยู่อาศัย'), 'placeholder' => __('112/3 สุขุมวิท 22 ทองหล่อ กทม 10523')]); ?>
<?php // echo $this->Form->input('address', ['class' => 'form-control-reg border-bottom-from label-text-sub', 'value' => $userProfiles->address, 'id' => 'address', 'type' => 'text', 'label' => __('ที่อยู่อาศัย'), 'placeholder' => __('112/3 สุขุมวิท 22 ทองหล่อ กทม 10523')]); ?> </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"> <?php echo __('ประเทศ'); ?>
<?php echo __('ประเทศ'); ?> <?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', 'options' => $Country,
'options' => $Country, 'value' => $responseUserProfile['master_country_id'],
'value' => $responseUserProfile['master_country_id'], 'empty' => '---Select---',
'empty' => '---Select---', 'default' => !empty($responseUserProfile['master_country_id'])? $responseUserProfile['master_country_id']:'',
'default' => !empty($responseUserProfile['master_country_id'])? $responseUserProfile['master_country_id']:'', 'class' => 'form-control border-bottom-from label-text-sub required',
'class' => 'form-control border-bottom-from label-text-sub required', 'style' => 'width:100%'
'style' => 'width:100%' ));
)); ?>
?> </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"> <?php echo __('จังหวัด'); ?>
<?php echo __('จังหวัด'); ?> <?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', 'options' => $Province,
'options' => $Province, 'value' => $responseUserProfile['master_province_id'],
'value' => $responseUserProfile['master_province_id'], 'empty' => '---Select---',
'empty' => '---Select---', 'default' => !empty($responseUserProfile['master_province_id'])? $responseUserProfile['master_province_id']:'',
'default' => !empty($responseUserProfile['master_province_id'])? $responseUserProfile['master_province_id']:'', 'class' => 'form-control border-bottom-from label-text-sub required',
'class' => 'form-control border-bottom-from label-text-sub required', 'style' => 'width:100%'
'style' => 'width:100%' ));
)); ?>
?> </div>
</div> </div>
</div>
<?php // endforeach; ?> <?php // endforeach; ?>
<div> <div>
<?php // echo $this->Form->submit(__('SAVE')) ?> <?php // echo $this->Form->submit(__('SAVE')) ?>
...@@ -146,6 +173,40 @@ ...@@ -146,6 +173,40 @@
<?php echo $this->Form->end(); ?> <?php echo $this->Form->end(); ?>
</div> </div>
</div> </div>
<div class="row">
<div class="col-xs-12 col-sm-12 col-md-12">
<div class="modal fade" id="defaultModal" tabindex="-1" role="dialog" aria-labelledby="defaultModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="">
<div class="">
<div class="container login-container">
<div class="owl-carousel owl-theme" data-plugin-options="{'items': 1}">
<div>
<img src="/img/core/img/card-bg-front@3x.png" class="img-responsive" id="img-upload" alt="Profile picture">
</div>
<div>
<div class="qrcode-profile"><br>
<?php echo __('แสดง QR Code เพื่อรับสิทธิ์');?>
</div>
<img src="/img/core/img/card-bg-back@3x.png" class="img-responsive" id="img-upload" alt="Profile picture">
<div class="qrcode-name">
<?php
$ex1 = new QRGenerator();
echo "<img src=".$ex1->generate()." style='position: absolute;width: 150px;border: solid 1px #000;' class='qrcode-name'>";
?>
<?php //echo $this->Html->image('/img/core/img/qr-code.jpg', array('div' => false, 'class' => 'qrcode-name','style' => 'position: absolute;width: 120px;')); ?>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript"> <script type="text/javascript">
$(function () { $(function () {
$('#moblieNo').inputmask('999-999-9999'); $('#moblieNo').inputmask('999-999-9999');
...@@ -206,25 +267,23 @@ ...@@ -206,25 +267,23 @@
//================================================== //==================================================
// CHANGE Province According Country // CHANGE Province According Country
//================================================== //==================================================
// $(document).ready(function() {
// $("#loding1").hide(); $(document).ready(function () {
// $("#loding2").hide(); $("#master_country_id").on('change', function () {
// $("#master_country_id").on('change',function() { var id = $(this).val();
// var id = $(this).val(); if (id) {
// // alert('dddd'); var dataString = 'id=' + id;
// $("#loding1").show(); $.ajax({
// $("#master_province_id").find('option').remove(); type: "POST",
// if (id) { url: '/users/getProvince',
// var dataString = 'id='+ id; data: dataString,
// alert(dataString); cache: false,
// $.post("/Profiles/getProvince", {id: id}, function(data) { success: function (html) {
// console.log(data); $("#master_province_id").html(html);
// data = jQuery.parseJSON(data); }
// console.log(data); });
// }); }
// // $('<option>').val('').text('---Select---'); });
// // $('<option>').val(key).text(value).appendTo($("#master_province_id")); });
// }
// });
// });
</script> </script>
\ No newline at end of file
<div class="row"> <div class="row">
<!--
<div style="position: absolute;z-index: 2;"> <div style="position: absolute;z-index: 2;">
<a href="settingProfile"><img src="webroot/porto/core/img/setting-icon@3x.png"/></a> <a href="../core/Profiles/settingProfile">
<?php echo $this->Html->image('/img/core/img/setting-icon@3x.png', ['alt' => 'setting-icon']); ?>
</a>
</div> </div>
-->
<div class="box"> <!------------------------------->
<div class="absolute-right"><img src="webroot/porto/core/img/location-profile-icon@3x.png"/> สีลม ,บางรัก</div>
<?php
class QRGenerator {
protected $size;
protected $data;
protected $encoding;
protected $errorCorrectionLevel;
protected $marginInRows;
protected $debug;
public function __construct($data='1334554 5454 545',$size='300',$encoding='UTF-8',$errorCorrectionLevel='L',$marginInRows=4,$debug=false) {
$this->data=urlencode($data);
$this->size=($size>100 && $size<800)? $size : 300;
$this->encoding=($encoding == 'Shift_JIS' || $encoding == 'ISO-8859-1' || $encoding == 'UTF-8') ? $encoding : 'UTF-8';
$this->errorCorrectionLevel=($errorCorrectionLevel == 'L' || $errorCorrectionLevel == 'M' || $errorCorrectionLevel == 'Q' || $errorCorrectionLevel == 'H') ? $errorCorrectionLevel : 'L';
$this->marginInRows=($marginInRows>0 && $marginInRows<10) ? $marginInRows:4;
$this->debug = ($debug==true)? true:false;
}
public function generate(){
$QRLink = "https://chart.googleapis.com/chart?cht=qr&chs=".$this->size."x".$this->size. "&chl=" . $this->data .
"&choe=" . $this->encoding .
"&chld=" . $this->errorCorrectionLevel . "|" . $this->marginInRows;
if ($this->debug) echo $QRLink;
return $QRLink;
}
}
?>
<!------------------------------->
<div class="box">
<div class="absolute-right">
<?php echo $this->Html->image('/img/core/img/location-profile-icon@3x.png', ['alt' => 'location-profile-icon']); ?> สีลม ,บางรัก</div>
</div> </div>
<div style="text-align: center;"> <div style="text-align: center;">
<img src="<?php echo !empty($Profiles['UserProfiles']['img_path'])? $Profiles['UserProfiles']['img_path']:'http://connect06.pakgon.com/core/webroot/img/user/user128x128.png'?>" class="profile-img"/> <?php if (empty($Profiles['UserProfiles'][0]['img_path'])) { ?>
<?php echo $this->Html->image('/img/core/img/user-profile@3x.png', array('div' => false, 'class' => 'profile-img','id'=>'output','style'=>'width: 169px;height: 169px;-webkit-border-radius: 85px;
-moz-border-radius: 85px;
border-radius: 85px;')); ?>
<?php }else{ ?>
<img src="<?php echo $Profiles['UserProfiles'][0]['img_path'];?>" class="profile-img" id="output" style="width: 169px;height: 169px;-webkit-border-radius: 85px;-moz-border-radius: 85px;border-radius: 85px;"/>
<?php }?>
</div> </div>
<div data-toggle="modal" data-target="#defaultModal" style="text-align: center;"> <div data-toggle="modal" data-target="#defaultModal" style="text-align: center;">
<a href="#"><img src="webroot/porto/core/img/id-card-button@3x.png" class="id-card-button"/></a> <a href="#">
<?php echo $this->Html->image('/img/core/img/id-card-button@3x.png', array('div' => false, 'class' => 'id-card-button')); ?>
</a>
</div> </div>
<div class="bg-profile"></div>
<div class="bg-profile"></div>
<div style="margin: 11% 0% -12% 0%;text-align: center;position: relative;"><?php echo $this->Flash->render() ?></div>
<div style="padding: 40px 20px 0px 20px;"> <div style="padding: 40px 20px 0px 20px;">
<ul class="list list-icons list-primary list-borders"> <ul class="list list-icons list-primary list-borders">
<li class="promotion-li"> <li class="promotion-li">
<a href="../Homes/promotion"> <a href="#">
<div class="row"> <div class="row">
<div class="col-xs-6 col-sm-7 color-profile"> <div class="col-xs-6 col-sm-7 color-profile">
<!--<img src="webroot/porto/core/img/View-the-latest-icon@3x.png" width="53" height="53" style="vertical-align: middle;"/> --> <!--<img src="../img/core/img/eWallet-icon@3x.png" width="53" height="53" style="vertical-align: middle;"/> -->
<?php echo __('ดูล่าสุด'); ?>
</div>
<div class="col-xs-6 col-sm-5 right-icon-view">
ที่เคยดูล่าสุด <img src="webroot/porto/core/img/next-icon-profile@3x.png" style="vertical-align: middle;"/>
</div>
</div>
</a>
</li>
<li class="promotion-li">
<a href="../Homes/promotion">
<div class="row">
<div class="col-xs-6 col-sm-7 color-profile">
<!--<img src="webroot/porto/core/img/eWallet-icon@3x.png" width="53" height="53" style="vertical-align: middle;"/> -->
My eWallet by Connect My eWallet by Connect
</div> </div>
<div class="col-xs-6 col-sm-5 right-icon-view"> <div class="col-xs-6 col-sm-5 right-icon-view">
$150 <img src="webroot/porto/core/img/next-icon-profile@3x.png" style="vertical-align: middle;"/> $150 <?php echo $this->Html->image('/img/core/img/next-icon-profile@3x.png', array('div' => false, 'style' => 'vertical-align: middle;')); ?>
<!--<img src="../img/core/img/next-icon-profile@3x.png" style="vertical-align: middle;"/>-->
</div> </div>
</div> </div>
</a> </a>
</li> </li>
<li class="promotion-li"> <li class="promotion-li">
<a href="../Homes/promotion"> <a href="#">
<div class="row"> <div class="row">
<div class="col-xs-6 col-sm-7 color-profile"> <div class="col-xs-6 col-sm-7 color-profile">
<!--<img src="webroot/porto/core/img/point-icon@3x.png" width="53" height="53" style="vertical-align: middle;"/> --> <!--<img src="../img/core/img/point-icon@3x.png" width="53" height="53" style="vertical-align: middle;"/> -->
Point ของฉัน Point ของฉัน
</div> </div>
<div class="col-xs-6 col-sm-5 right-icon-view"> <div class="col-xs-6 col-sm-5 right-icon-view">
P200 <img src="webroot/porto/core/img/next-icon-profile@3x.png" style="vertical-align: middle;"/> P200 <?php echo $this->Html->image('/img/core/img/next-icon-profile@3x.png', array('div' => false, 'style' => 'vertical-align: middle;')); ?>
</div> <!--<img src="../img/core/img/next-icon-profile@3x.png" style="vertical-align: middle;"/>-->
</div>
</a>
</li>
<li class="promotion-li">
<a href="../Homes/promotion">
<div class="row">
<div class="col-xs-6 col-sm-7 color-profile">
<!--<img src="webroot/porto/core/img/Transcript@3x.png" width="53" height="53" style="vertical-align: middle;"/> -->
ผลการศึกษา
</div>
<div class="col-xs-6 col-sm-5 right-icon-view">
<img src="webroot/porto/core/img/next-icon-profile@3x.png" style="vertical-align: middle;"/>
</div>
</div>
</a>
</li>
<li class="promotion-li">
<a href="../Homes/promotion">
<div class="row">
<div class="col-xs-6 col-sm-7 color-profile">
<!--<img src="webroot/porto/core/img/Talent-icon@3x.png" width="53" height="53" style="vertical-align: middle;"/> -->
แบบทดสอบพรสวรรค์
</div>
<div class="col-xs-6 col-sm-5 right-icon-view">
<img src="webroot/porto/core/img/next-icon-profile@3x.png" style="vertical-align: middle;"/>
</div>
</div>
</a>
</li>
<li class="promotion-li">
<a href="../Homes/promotion">
<div class="row">
<div class="col-xs-6 col-sm-7 color-profile">
<!--<img src="webroot/porto/core/img/graph-icon@3x.png" width="53" height="53" style="vertical-align: middle;"/> -->
ผลกราฟพรสวรรค์
</div>
<div class="col-xs-6 col-sm-5 right-icon-view">
<img src="webroot/porto/core/img/next-icon-profile@3x.png" style="vertical-align: middle;"/>
</div> </div>
</div> </div>
</a> </a>
</li> </li>
</ul> </ul>
</div> </div>
</div> </div>
<!---------------------------------------------------------> <!--------------------------------------------------------->
<style type="text/css">
</style>
<!--------------------------------------------------------->
<style type="text/css">
</style>
<?php //debug($Profiles);?>
<div class="modal fade" id="defaultModal" tabindex="-1" role="dialog" aria-labelledby="defaultModalLabel" aria-hidden="true"> <div class="modal fade" id="defaultModal" tabindex="-1" role="dialog" aria-labelledby="defaultModalLabel" aria-hidden="true">
<div class="modal-dialog"> <div class="modal-dialog">
<div class=""> <div class="">
...@@ -108,10 +112,63 @@ ...@@ -108,10 +112,63 @@
<div class="col-md-6"> <div class="col-md-6">
<div class="owl-carousel owl-theme" data-plugin-options="{'items': 1, 'margin': 10}"> <div class="owl-carousel owl-theme" data-plugin-options="{'items': 1, 'margin': 10}">
<div> <div>
<img alt="" class="img-responsive img-rounded" src="webroot/porto/core/img/crad01@3x.png">
<div class="idcard-profile"><?php echo __('ID Card');?></div>
<?php echo $this->Html->image('/img/core/img/card-bg-front@3x.png', array('div' => false, 'class' => 'img-responsive img-rounded','style' => 'position: absolute;')); ?>
<?php if (empty($Profiles['UserProfiles'][0]['img_path'])) { ?>
<?php echo $this->Html->image('/img/core/img/user-profile@3x.png', array('div' => false, 'class' => '','style' => 'position: absolute;width: 150px; margin: 85% 0% 0% 20%; -webkit-transform: rotate(270deg);
-moz-transform: rotate(270deg); -o-transform: rotate(270deg);')); ?>
<?php }else{ ?>
<img src="<?php echo $Profiles['UserProfiles'][0]['img_path'];?>" class="" id="" style="position: absolute;width: 150px; height: 150px; margin: 85% 0% 0% 20%; -webkit-border-radius: 85px;-moz-border-radius: 85px;border-radius: 85px; -webkit-transform: rotate(270deg);
-moz-transform: rotate(270deg); -o-transform: rotate(270deg);"/>
<?php }?>
<div class="idcard-text"><?php echo __('เลขบัตรประจำตัว');?></div>
<div class="idcard-number"><?php echo $Profiles['UserProfiles'][0]['card_code'];?></div>
<div class="idcard-name-th"><?php echo $Profiles['UserPersonals']['firstname_th'];?> <?php echo $Profiles['UserPersonals']['lastname_th'];?></div>
<div class="idcard-name-en"><?php echo $Profiles['UserPersonals']['firstname_en'];?> <?php echo $Profiles['UserPersonals']['lastname_en'];?></div>
<?php if (!empty($Profiles['UserProfiles'][0]['dept_id'])) { ?>
<div class="idcard-faculty"><b><?php echo __('คณะ');?></b> <?php echo $MasterDepartments_v[0]['dept_name_th'];?></div>
<?php }else{?>
<div class="idcard-faculty"><b><?php echo __('คณะ');?></b> <?php echo __('-');?></div>
<?php }?>
<?php if (!empty($Profiles['UserProfiles'][0]['section_id'])) { ?>
<div class="idcard-branch"><b><?php echo __('สาขา');?></b> <?php echo $MasterSections_v[0]['section_name_th'];?></div>
<?php }else{?>
<div class="idcard-branch"><b><?php echo __('สาขา');?></b> <?php echo __('-');?></div>
<?php }?>
<!-- <div class="idcard-faculty"><b><?php //echo __('คณะ');?></b> <?php //echo __('วิทยาการจัดการ');?></div>
<div class="idcard-branch"><b><?php //echo __('สาขา');?></b> <?php //echo __('คอมพิวเตอร์ธุรกิจ');?></div>-->
<div class="idcard-tel"><b><?php echo __('เบอร์');?></b> <?php echo $Profiles['UserProfiles'][0]['phone_no'];?></div>
<div class="idcard-email"><b><?php echo __('email');?></b> <?php echo $Profiles['UserPersonals']['email'];?></div>
<?php echo $this->Html->image('/img/core/img/thumbs-id@3x.png', array('div' => false, 'class' => '','style' => 'width:78px;height:78px;position: absolute;margin: -4px 0px 0px 96px;')); ?>
</div> </div>
<div> <div>
<img alt="" class="img-responsive img-rounded" src="webroot/porto/core/img/crad02@3x.png"> <div class="qrcode-profile"><?php echo __('แสดง QR Code เพื่อรับสิทธิ์');?></div>
<?php echo $this->Html->image('/img/core/img/card-bg-back@3x.png', array('div' => false, 'class' => 'img-responsive img-rounded','style' => '3position: absolute;')); ?>
<div class="qrcode-name">
<?php
$ex1 = new QRGenerator();
echo "<img src=".$ex1->generate()." style='position: absolute;width: 150px;border: solid 1px #000;' class='qrcode-name'>";
?>
<?php //echo $this->Html->image('/img/core/img/qr-code.jpg', array('div' => false, 'class' => 'qrcode-name','style' => 'position: absolute;width: 120px;')); ?>
</div>
<div class="qrcode-faculty"><?php echo __('Date of Issue');?> <?php echo date("m/Y",strtotime($Profiles['Users']['created']));?></div>
<div class="qrcode-branch">| &nbsp;&nbsp;<?php echo __('Date of Expire');?> <?php echo date("m/Y",strtotime($Profiles['Users']['token_expiry'])); ?></div>
<?php echo $this->Html->image('/img/core/img/card-university-logo.png', array('div' => false, 'class' => '','style' => 'width: 25px;position: absolute;margin: -17% 0% 0% 86%;')); ?>
<?php if (!empty($Profiles['UserProfiles'][0]['organize_id'])) { ?>
<div class="qrcode-university"><?php echo $MasterDepartmentEducations[0]['org_name_th'];?></div>
<?php }else{?>
<div class="qrcode-university"><?php echo __('-');?></div>
<?php }?>
<?php //echo __('มหาวิทยาลัยราชภัฏจันทรเกษม');?>
<?php echo $this->Html->image('/img/core/img/card-logo-connect.png', array('div' => false, 'class' => '','style' => 'width: 26px;position: absolute;margin: -114% 0% 0% 86%;')); ?>
<div class="qrcode-connect"><?php echo __('connect');?></div>
<?php echo $this->Html->image('/img/core/img/thumbs-id2@3x.png', array('div' => false, 'class' => '','style' => 'width:78px;height:78px;position: absolute;margin: -152% 0% 0% 28%;')); ?>
</div> </div>
</div> </div>
</div> </div>
...@@ -120,3 +177,4 @@ ...@@ -120,3 +177,4 @@
</div> </div>
</div> </div>
</div> </div>
<!------------------------------------------------------------------------------->
\ No newline at end of file
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