[freeside-commits] freeside/httemplate/edit/process
payment_gateway.html, NONE, 1.1
Ivan,,,
ivan at wavetail.420.am
Wed Aug 17 22:12:04 PDT 2005
Update of /home/cvs/cvsroot/freeside/httemplate/edit/process
In directory wavetail:/tmp/cvs-serv4109
Added Files:
payment_gateway.html
Log Message:
oops another missing file
--- NEW FILE: payment_gateway.html ---
<%
my $gatewaynum = $cgi->param('gatewaynum');
my $old = qsearchs('payment_gateway',{'gatewaynum'=>$gatewaynum}) if $gatewaynum;
my $new = new FS::payment_gateway ( {
map {
$_, scalar($cgi->param($_));
} fields('payment_gateway')
} );
my $error;
if ( $gatewaynum ) {
$error=$new->replace($old);
} else {
$error=$new->insert;
$gatewaynum=$new->getfield('gatewaynum');
}
if ( $error ) {
$cgi->param('error', $error);
print $cgi->redirect(popurl(2). "payment_gateway.html?". $cgi->query_string );
} else {
print $cgi->redirect(popurl(3). "browse/payment_gateway.html");
}
%>
More information about the freeside-commits
mailing list