add Cancel Button in user dashboard
This commit is contained in:
parent
8fcca70ead
commit
d71eb37f48
@ -39,7 +39,11 @@ class Lang
|
|||||||
|
|
||||||
public static function dateTimeFormat($date){
|
public static function dateTimeFormat($date){
|
||||||
global $config;
|
global $config;
|
||||||
return date($config['date_format']. ' H:i', strtotime($date));
|
if(strtotime($date) < strtotime("2000-01-01 00:00:00")){
|
||||||
|
return "";
|
||||||
|
}else{
|
||||||
|
return date($config['date_format']. ' H:i', strtotime($date));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function dateAndTimeFormat($date, $time){
|
public static function dateAndTimeFormat($date, $time){
|
||||||
|
@ -12,8 +12,7 @@
|
|||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td>{Lang::T('expired')}</td>
|
<td>{Lang::T('expired')}</td>
|
||||||
<td>{date({$_c['date_format']}, strtotime($unpaid['expired_date']))}
|
<td>{Lang::dateTimeFormat($unpaid['expired_date'])} </td>
|
||||||
{date('H:i', strtotime($unpaid['expired_date']))} </td>
|
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>{$_L['Plan_Name']}</td>
|
<td>{$_L['Plan_Name']}</td>
|
||||||
@ -30,10 +29,22 @@
|
|||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<div class="box-footer p-2">
|
<div class="box-footer p-2">
|
||||||
<a class="btn btn-danger btn-block btn-sm" href="{$_url}order/view/{$unpaid['id']}">
|
<div class="btn-group btn-group-justified mb15">
|
||||||
<span class="icon"><i class="ion ion-card"></i></span>
|
<div class="btn-group">
|
||||||
<span>{Lang::T('PAY NOW')}</span>
|
<a href="{$_url}order/view/{$unpaid['id']}/cancel" class="btn btn-danger btn-sm"
|
||||||
</a>
|
onclick="return confirm('{Lang::T('Cancel it?')}')">
|
||||||
|
<span class="glyphicon glyphicon-trash"></span>
|
||||||
|
{Lang::T('Cancel')}
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
<div class="btn-group">
|
||||||
|
<a class="btn btn-success btn-block btn-sm" href="{$_url}order/view/{$unpaid['id']}">
|
||||||
|
<span class="icon"><i class="ion ion-card"></i></span>
|
||||||
|
<span>{Lang::T('PAY NOW')}</span>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
|
@ -70,10 +70,10 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="btn-group btn-group-justified mb15">
|
<div class="btn-group btn-group-justified mb15">
|
||||||
<div class="btn-group">
|
<div class="btn-group">
|
||||||
<button type="submit" class="btn btn-primary">{$_L['Login']}</button>
|
<a href="{$_url}register" class="btn btn-success">{$_L['Register']}</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="btn-group">
|
<div class="btn-group">
|
||||||
<a href="{$_url}register" class="btn btn-success">{$_L['Register']}</a>
|
<button type="submit" class="btn btn-primary">{$_L['Login']}</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user