Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
TimeOutAdmin
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
TimeOut
TimeOutAdmin
Commits
30d5c680
Commit
30d5c680
authored
5 years ago
by
Tobin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into 'dev_production'
promocode timing issue See merge request
!310
parents
92d2cdc9
354f60fc
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
promocodeList.php
application/views/Promocode/promocodeList.php
+3
-3
No files found.
application/views/Promocode/promocodeList.php
View file @
30d5c680
...
@@ -76,10 +76,10 @@
...
@@ -76,10 +76,10 @@
Total: '
.
$promo
->
use_limit
?>
</td>
Total: '
.
$promo
->
use_limit
?>
</td>
<td
id=
"statusFlag_
<?=
encode_param
(
$promo
->
promocode_id
)
?>
"
>
<?php
<td
id=
"statusFlag_
<?=
encode_param
(
$promo
->
promocode_id
)
?>
"
>
<?php
if
(
$promo
->
status
==
1
){
if
(
$promo
->
status
==
1
){
if
(
strtotime
(
$promo
->
start_date
)
<
strtotime
(
date
(
'd-M-y H:i:s
'
))){
if
(
strtotime
(
$promo
->
start_date
)
>
strtotime
(
date
(
'y-m-d
'
))){
echo
'Yet to Activate'
;
echo
'Yet to Activate'
;
}
else
if
(
strtotime
(
$promo
->
start_date
)
>
strtotime
(
date
(
'd-M-y H:i:s
'
))
&&
}
else
if
(
strtotime
(
$promo
->
start_date
)
<=
strtotime
(
date
(
'y-m-d
'
))
&&
strtotime
(
$promo
->
end_date
)
<
strtotime
(
date
(
'd-M-y H:i:s
'
))){
strtotime
(
$promo
->
end_date
)
>=
strtotime
(
date
(
'y-m-d
'
))){
echo
'Active'
;
echo
'Active'
;
}
else
echo
'Offer Expired'
;
}
else
echo
'Offer Expired'
;
}
else
echo
'De-active'
;
?>
}
else
echo
'De-active'
;
?>
...
...
This diff is collapsed.
Click to expand it.
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