Multiple Payment gateway Fix

This commit is contained in:
Ibnu Maksum
2024-03-12 11:17:05 +07:00
parent 7a9f937a9e
commit 3bb55320e3
7 changed files with 88 additions and 47 deletions

View File

@ -1,22 +1,31 @@
{include file="sections/header.tpl"}
<div class="row">
<div class="col-md-6 col-md-offset-3">
<div class="panel panel-info panel-hovered">
<div class="panel-heading">{Lang::T('Payment Gateway')}</div>
<div class="table-responsive">
<table class="table table-striped table-condensed">
<tbody>
{foreach $pgs as $pg}
<tr>
<td><a href="{$_url}paymentgateway/{$pg}"
class="btn btn-block btn-default text-left">{ucwords($pg)}</a></td>
<td width="10"><a href="{$_url}paymentgateway/delete/{$pg}" onclick="return confirm('{Lang::T('Delete')} {$pg}?')" class="btn btn-danger"><i
class="glyphicon glyphicon-trash"></i></a></td>
</tr>
{/foreach}
</tbody>
</table>
<form method="post">
<div class="row">
<div class="col-md-6 col-md-offset-3">
<div class="panel panel-info panel-hovered">
<div class="panel-heading">{Lang::T('Payment Gateway')}</div>
<div class="table-responsive">
<table class="table table-striped table-condensed">
<tbody>
{foreach $pgs as $pg}
<tr>
<td width="10" align="center" valign="center"><input type="checkbox" name="pgs[]"
{if in_array($pg, $actives)}checked{/if}
value="{$pg}"></td>
<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>
<td width="10"><a href="{$_url}paymentgateway/delete/{$pg}"
onclick="return confirm('{Lang::T('Delete')} {$pg}?')" class="btn btn-danger"><i
class="glyphicon glyphicon-trash"></i></a></td>
</tr>
{/foreach}
</tbody>
</table>
</div>
<div class="panel-footer"><button type="submit"
class="btn btn-primary btn-block" name="save" value="actives">{Lang::T('Save Changes')}</button></div>
</div>
</div>
</div>
</form>
{include file="sections/footer.tpl"}

View File

@ -11,8 +11,8 @@
<div class="col-md-8">
<select name="gateway" id="gateway" class="form-control">
{foreach $pgs as $pg}
<option value="{$pg}">
{ucwords($pg)}</option>
<option value="{$pg}">
{ucwords($pg)}</option>
{/foreach}
</select>
</div>