Change button

This commit is contained in:
Ibnu Maksum 2024-03-12 11:48:17 +07:00
parent 3bb55320e3
commit b95788262d
No known key found for this signature in database
GPG Key ID: 7FC82848810579E5
2 changed files with 23 additions and 16 deletions

View File

@ -10,10 +10,10 @@
{foreach $pgs as $pg} {foreach $pgs as $pg}
<tr> <tr>
<td width="10" align="center" valign="center"><input type="checkbox" name="pgs[]" <td width="10" align="center" valign="center"><input type="checkbox" name="pgs[]"
{if in_array($pg, $actives)}checked{/if} {if in_array($pg, $actives)}checked{/if} value="{$pg}"></td>
value="{$pg}"></td>
<td><a href="{$_url}paymentgateway/{$pg}" <td><a href="{$_url}paymentgateway/{$pg}"
class="btn btn-block btn-{if in_array($pg, $actives)}info{else}default{/if} text-left">{ucwords($pg)}</a></td> class="btn btn-block btn-{if in_array($pg, $actives)}info{else}default{/if} text-left">{ucwords($pg)}</a>
</td>
<td width="10"><a href="{$_url}paymentgateway/delete/{$pg}" <td width="10"><a href="{$_url}paymentgateway/delete/{$pg}"
onclick="return confirm('{Lang::T('Delete')} {$pg}?')" class="btn btn-danger"><i onclick="return confirm('{Lang::T('Delete')} {$pg}?')" class="btn btn-danger"><i
class="glyphicon glyphicon-trash"></i></a></td> class="glyphicon glyphicon-trash"></i></a></td>
@ -22,8 +22,8 @@
</tbody> </tbody>
</table> </table>
</div> </div>
<div class="panel-footer"><button type="submit" <div class="panel-footer"><button type="submit" class="btn btn-primary btn-block" name="save"
class="btn btn-primary btn-block" name="save" value="actives">{Lang::T('Save Changes')}</button></div> value="actives">{Lang::T('Save Changes')}</button></div>
</div> </div>
</div> </div>
</div> </div>

View File

@ -53,10 +53,10 @@
<h3 class="box-title">{Lang::T('Announcement')}</h3> <h3 class="box-title">{Lang::T('Announcement')}</h3>
</div> </div>
<div class="box-body"> <div class="box-body">
{$Announcement_Customer = "{$PAGES_PATH}/Announcement_Customer.html"} {$Announcement_Customer = "{$PAGES_PATH}/Announcement_Customer.html"}
{if file_exists($Announcement_Customer)} {if file_exists($Announcement_Customer)}
{include file=$Announcement_Customer} {include file=$Announcement_Customer}
{/if} {/if}
</div> </div>
</div> </div>
</div> </div>
@ -131,11 +131,8 @@
<td class="small text-primary text-uppercase text-normal">{Lang::T('Plan Name')}</td> <td class="small text-primary text-uppercase text-normal">{Lang::T('Plan Name')}</td>
<td class="small mb15"> <td class="small mb15">
{$_bill['namebp']} {$_bill['namebp']}
{if $_bill['status'] == 'on'} {if $_bill['status'] != 'on'}
<a class="label label-danger pull-right" href="{$_url}home&deactivate={$_bill['id']}" <a class="label label-danger pull-right" href="{$_url}order/package">{Lang::T('expired')}</a>
onclick="return confirm('{Lang::T('Deactivate')}?')">{Lang::T('Deactivate')}</a>
{else}
<a class="label label-warning pull-right" href="{$_url}order/package">{Lang::T('expired')}</a>
{/if} {/if}
</td> </td>
</tr> </tr>
@ -149,8 +146,6 @@
<td class="small text-danger text-uppercase text-normal">{Lang::T('Expires On')}</td> <td class="small text-danger text-uppercase text-normal">{Lang::T('Expires On')}</td>
<td class="small mb15 text-danger"> <td class="small mb15 text-danger">
{if $_bill['time'] ne ''}{Lang::dateAndTimeFormat($_bill['expiration'],$_bill['time'])}{/if}&nbsp; {if $_bill['time'] ne ''}{Lang::dateAndTimeFormat($_bill['expiration'],$_bill['time'])}{/if}&nbsp;
<a class="label label-primary pull-right" href="{$_url}home&recharge={$_bill['id']}"
onclick="return confirm('{Lang::T('Recharge')}?')">{Lang::T('Recharge')}</a>
</td> </td>
</tr> </tr>
{if $nux_ip} {if $nux_ip}
@ -173,6 +168,18 @@
</td> </td>
</tr> </tr>
{/if} {/if}
<tr>
<td class="small text-primary text-uppercase text-normal">
{if $_bill['status'] == 'on'}
<a href="{$_url}home&deactivate={$_bill['id']}" onclick="return confirm('{Lang::T('Deactivate')}?')"
class="btn btn-danger btn-xs"><i class="glyphicon glyphicon-trash"></i></a>
{/if}
</td>
<td class="small row">
<a class="btn btn-primary pull-right btn-sm" href="{$_url}home&recharge={$_bill['id']}"
onclick="return confirm('{Lang::T('Recharge')}?')">{Lang::T('Recharge')}</a>
</td>
</tr>
</table> </table>
{/foreach} {/foreach}
</div> </div>