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
53deb96f
authored
May 22, 2018
by
Zen-PC\Zen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Zen : update viewCard BG
parent
671cae96
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
106 additions
and
16 deletions
+106
-16
.gitignore
+1
-0
www/src/Controller/CheckemailsController.php
+55
-0
www/src/Template/UserCards/view_card.ctp
+50
-16
No files found.
.gitignore
View file @
53deb96f
...
...
@@ -4,3 +4,4 @@ www/tmp/
www/webroot/img/img/demos/shop/products/shop8/product2.jpg
www/webroot/img/img/demos/
www/src/Controller/UsersController.php.bg20180515
www/config/app.backup
www/src/Controller/CheckemailsController.php
0 → 100644
View file @
53deb96f
<?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
;
}
}
}
}
www/src/Template/UserCards/view_card.ctp
View file @
53deb96f
...
...
@@ -10,6 +10,7 @@ use Cake\I18n\Time;
</div>
</div>
<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="col-xs-1">
</div>
...
...
@@ -26,9 +27,9 @@ use Cake\I18n\Time;
</div>
</div>
<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">
</div>
</div>
</div>
<div class="row">
...
...
@@ -67,6 +68,8 @@ use Cake\I18n\Time;
</div>
</div>
</div>
</div>
<!--/.box-card -->
<div class="col-xs-1 col-sm-1 col-md-1 box-arrow">
<div>
<i class = "fa fa-angle-right next" ></i>
...
...
@@ -175,10 +178,11 @@ use Cake\I18n\Time;
<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="col-md-6">
<div class="modal-dialog box-ads">
<a class="close-modal" data-dismiss="modal">X </a>
<div class="container login-container">
<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">
<?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">
...
...
@@ -197,11 +201,9 @@ use Cake\I18n\Time;
</div>
</div>
<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">
</div>
</div>
</div>
<div class="row date-position">
<div class="col-xs-1">
</div>
...
...
@@ -237,11 +239,14 @@ use Cake\I18n\Time;
<label style="font-size: 17px">วันหมดออายุ</label>
</div>
</div>
</div>
<!--/ .font-card-->
<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>
<!--/ .back-card-->
</div>
<
/div
>
<
!--/.owl-carousel--
>
</div>
</div>
</div>
...
...
@@ -265,32 +270,61 @@ use Cake\I18n\Time;
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{
-webkit-transform: rotate(270deg);
-moz-transform: rotate(270deg);
-o-transform: rotate(270deg);
writing-mode: rl-tb;
position: absolute;
font-size: 20px;
}
.form_1 .date-name{
width:
1
50px;
margin:
100% 0% 0% 62
%;
width:
3
50px;
margin:
70% 0% 0% -20
%;
}
.form_1 .date-position{
width:
1
50px;
margin:
100% 0% 0% 62
%;
width:
3
50px;
margin:
55% 0% 0% 5
%;
}
.form_1 .date-time{
width:
1
50px;
margin:
100% 0% 0% 62
%;
width:
3
50px;
margin:
70% 0% 0% 17
%;
}
.form_1 .date-label{
width:
1
50px;
margin:
100% 0% 0% 62
%;
width:
3
50px;
margin:
70% 0% 0% 25
%;
}
</style>
<?php $this->append('scriptBottom'); ?>
...
...
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