Commit 53deb96f by Zen-PC\Zen

Zen : update viewCard BG

parent 671cae96
...@@ -4,3 +4,4 @@ www/tmp/ ...@@ -4,3 +4,4 @@ www/tmp/
www/webroot/img/img/demos/shop/products/shop8/product2.jpg www/webroot/img/img/demos/shop/products/shop8/product2.jpg
www/webroot/img/img/demos/ www/webroot/img/img/demos/
www/src/Controller/UsersController.php.bg20180515 www/src/Controller/UsersController.php.bg20180515
www/config/app.backup
<?php
namespace App\Controller;
use App\Controller\AppController;
class CheckemailsController extends AppController {
public function checkemailregister(){
// die('jjjjj');
$this->autoRender = false;
if ($this->request->is('post')) {
$this->loadModel('UserPersonals');
$emails = $this->UserPersonals->find('all',[
'conditions' => [
'email' => $this->request->data['email']
]
])->first();
if(!empty($emails)){
$emails['chk'] = 'false';
$data = json_encode($emails);
echo $data;
}else{
$emails['chk'] = 'true';
$data = json_encode($emails);
echo $data;
}
}
}
public function checkemailedit(){
// die('jjjjj');
$this->autoRender = false;
if ($this->request->is('post')) {
$this->loadModel('UserPersonals');
$emails = $this->UserPersonals->find('all',[
'conditions' => [
'email' => $this->request->data['email']
]
])->first();
if(!empty($emails)){
if($this->request->data['userId'] == $emails['user_id']){
$emails['chk'] = 'true';
$data = json_encode($emails);
echo $data;
} else {
$emails['chk'] = 'false';
$data = json_encode($emails);
echo $data;
}
}else{
$emails['chk'] = 'true';
$data = json_encode($emails);
echo $data;
}
}
}
}
...@@ -10,6 +10,7 @@ use Cake\I18n\Time; ...@@ -10,6 +10,7 @@ use Cake\I18n\Time;
</div> </div>
</div> </div>
<div class="col-xs-9 col-sm-9 col-md-9 box-card"> <div class="col-xs-9 col-sm-9 col-md-9 box-card">
<div data-toggle="modal" data-target="#defaultModal" style="text-align: center; cursor: pointer;">
<div class="row"> <div class="row">
<div class="col-xs-1"> <div class="col-xs-1">
</div> </div>
...@@ -26,9 +27,9 @@ use Cake\I18n\Time; ...@@ -26,9 +27,9 @@ use Cake\I18n\Time;
</div> </div>
</div> </div>
<div class="col-xs-4"> <div class="col-xs-4">
<div data-toggle="modal" data-target="#defaultModal" style="text-align: center; cursor: pointer;">
<img src="/img/core/img/user-profile@3x.png" class="img-responsive"> <img src="/img/core/img/user-profile@3x.png" class="img-responsive">
</div>
</div> </div>
</div> </div>
<div class="row"> <div class="row">
...@@ -67,6 +68,8 @@ use Cake\I18n\Time; ...@@ -67,6 +68,8 @@ use Cake\I18n\Time;
</div> </div>
</div> </div>
</div> </div>
</div>
<!--/.box-card -->
<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">
<div> <div>
<i class = "fa fa-angle-right next" ></i> <i class = "fa fa-angle-right next" ></i>
...@@ -175,10 +178,11 @@ use Cake\I18n\Time; ...@@ -175,10 +178,11 @@ use Cake\I18n\Time;
<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">
<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 box-ads">
<div class="col-md-6"> <a class="close-modal" data-dismiss="modal">X </a>
<div class="container login-container">
<div class = ""> <div class = "">
<div class="owl-carousel owl-theme" data-plugin-options="{'items': 1, 'margin': 10}"> <div class="owl-carousel owl-theme" data-plugin-options="{'items': 1}">
<div class = "row rotate270 form_1"> <div class = "row rotate270 form_1">
<?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 echo $this->Html->image('/img/core/img/card-bg-front@3x.png', array('div' => false, 'class' => 'img-responsive img-rounded','style' => 'position: absolute;')); ?>
<div class="row date-name"> <div class="row date-name">
...@@ -197,11 +201,9 @@ use Cake\I18n\Time; ...@@ -197,11 +201,9 @@ use Cake\I18n\Time;
</div> </div>
</div> </div>
<div class="col-xs-4"> <div class="col-xs-4">
<div data-toggle="modal" data-target="#defaultModal" style="text-align: center; cursor: pointer;">
<img src="/img/core/img/user-profile@3x.png" class="img-responsive"> <img src="/img/core/img/user-profile@3x.png" class="img-responsive">
</div> </div>
</div> </div>
</div>
<div class="row date-position"> <div class="row date-position">
<div class="col-xs-1"> <div class="col-xs-1">
</div> </div>
...@@ -237,11 +239,14 @@ use Cake\I18n\Time; ...@@ -237,11 +239,14 @@ use Cake\I18n\Time;
<label style="font-size: 17px">วันหมดออายุ</label> <label style="font-size: 17px">วันหมดออายุ</label>
</div> </div>
</div> </div>
</div>
<!--/ .font-card-->
<div> <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;')); ?> <?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> </div>
<!--/ .back-card-->
</div> </div>
</div> <!--/.owl-carousel-->
</div> </div>
</div> </div>
</div> </div>
...@@ -265,32 +270,61 @@ use Cake\I18n\Time; ...@@ -265,32 +270,61 @@ use Cake\I18n\Time;
cursor: pointer; cursor: pointer;
} }
.box-ads{
width: 1%;
display: table;
margin: auto;
position: relative;
padding-top: 10px;
margin-top: 5px;
}
.box-ads .close-modal{
position:absolute;
top:0;
right: 0;
width: 40px;
height: 40px;
background-color: #000;
color: #fff;
cursor: pointer;
font-size: 20px;
border-radius: 20px;
padding-top: 10px;
margin-right: 10px;
text-align: center;
z-index: 9999;
}
.box-ads .close-modal:hover{
text-decoration: none;
}
.rotate270 .row{ .rotate270 .row{
-webkit-transform: rotate(270deg); -webkit-transform: rotate(270deg);
-moz-transform: rotate(270deg); -moz-transform: rotate(270deg);
-o-transform: rotate(270deg); -o-transform: rotate(270deg);
writing-mode: rl-tb; writing-mode: rl-tb;
position: absolute; position: absolute;
font-size: 20px;
} }
.form_1 .date-name{ .form_1 .date-name{
width: 150px; width: 350px;
margin: 100% 0% 0% 62%; margin: 70% 0% 0% -20%;
} }
.form_1 .date-position{ .form_1 .date-position{
width: 150px; width: 350px;
margin: 100% 0% 0% 62%; margin: 55% 0% 0% 5%;
} }
.form_1 .date-time{ .form_1 .date-time{
width: 150px; width: 350px;
margin: 100% 0% 0% 62%; margin: 70% 0% 0% 17%;
} }
.form_1 .date-label{ .form_1 .date-label{
width: 150px; width: 350px;
margin: 100% 0% 0% 62%; margin: 70% 0% 0% 25%;
} }
</style> </style>
<?php $this->append('scriptBottom'); ?> <?php $this->append('scriptBottom'); ?>
......
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