<?php $time=time();
$time_out=$time-60*24;
if($userInfo['deleteTime'] < $time_out){
$countTime=$userInfo['deleteTime'] - $time_out
?>
<small class="showExpire"><i class="glyphicon glyphicon-time" style="color:#F00"> </i> Timeout</small> |
<a href="#" rel="<?php echo $userInfo['reqID']; ?>" class="confirmDelete"> Delete </a>
<?php }else { ?>
<i class="glyphicon glyphicon-remove-sign" style="color:#F00"> </i> Recieved
<?php } } ?>
so the above code work like
when a user delete something then he/she has 24hrs to reverse back the delete option and if 24hrs are finished then timeout message will be printed so want I want is that the user must be aware of the time in countdown manner every user when delete records then for that record the time should stats for 24 hr in a reverse manner so that he/she can know how much time he/she has left
how can I do this ?
1 Answer(s)