|
Server : Apache/2.4.62 System : FreeBSD fbsdweb2.web.rcn.net 14.1-RELEASE FreeBSD 14.1-RELEASE releng/14.1-n267679-10e31f0946d8 GENERIC amd64 User : www ( 80) PHP Version : 8.3.8 Disable Function : NONE Directory : /domains/abtechsci/quickcart/templates/admin/ |
Upload File : |
<?php
if( !defined( 'ADMIN_PAGE' ) )
exit;
$oOrder = new OrdersAdmin( );
if( isset( $_POST['sName'] ) ){
$iId = $oOrder->savePaymentShipping( $_POST, 1 );
if( isset( $_POST['sOptionList'] ) )
header( 'Location: '.$_SERVER['PHP_SELF'].'?p=payments-list&sOption=save' );
else
header( 'Location: '.$_SERVER['PHP_SELF'].'?p=payments-form&sOption=save&iId='.$iId );
exit;
}
if( isset( $iId ) && is_numeric( $iId ) ){
$aData = $oOrder->throwPaymentShipping( $iId, 1 );
}
if( !isset( $aData['iId'] ) )
$aData['iId'] = null;
require_once DIR_TEMPLATES.'admin/_header.php'; // include headers
require_once DIR_TEMPLATES.'admin/_menu.php'; // include menu
if( isset( $sOption ) ){
echo '<div id="msg">'.$lang['Operation_completed'].'</div>';
}
?>
<h1><?php echo $lang['Payment_method_form']; ?><a href="<?php echo $config['manual_link']; ?>instruction#1.19" title="<?php echo $lang['Manual']; ?>" target="_blank"></a></h1>
<form action="?p=<?php echo $p; ?>" method="post" id="mainForm" onsubmit="return checkForm( this );">
<fieldset id="type2">
<input type="hidden" name="iId" value="<?php echo $aData['iId']; ?>" />
<input type="hidden" name="iType" value="1" />
<table cellspacing="1" class="mainTable" id="payment">
<thead>
<tr class="save">
<th colspan="2">
<input type="submit" value="<?php echo $lang['save_list']; ?> »" name="sOptionList" />
<input type="submit" value="<?php echo $lang['save']; ?> »" name="sOption" />
</th>
</tr>
</thead>
<tfoot>
<tr class="save">
<th colspan="2">
<input type="submit" value="<?php echo $lang['save_list']; ?> »" name="sOptionList" />
<input type="submit" value="<?php echo $lang['save']; ?> »" name="sOption" />
</th>
</tr>
</tfoot>
<tbody>
<!-- name start -->
<tr class="l0">
<th>
<?php echo $lang['Name']; ?>
</th>
<td>
<input type="text" name="sName" value="<?php if( isset( $aData['sName'] ) ) echo $aData['sName']; ?>" size="30" maxlength="30" class="input" alt="simple" />
</td>
</tr>
<!-- name end -->
<tr class="l1">
<th>
<?php echo $lang['Status']; ?>
</th>
<td>
<?php echo throwYesNoBox( 'iStatus', isset( $aData['iStatus'] ) ? $aData['iStatus'] : 1 ); ?>
</td>
</tr>
<tr class="end">
<td colspan="2"> </td>
</tr>
</tbody>
</table>
</fieldset>
</form>
<?php
require_once DIR_TEMPLATES.'admin/_footer.php'; // include footer
?>