Skip to content

Commit

Permalink
Fixed fixo.
Browse files Browse the repository at this point in the history
  • Loading branch information
ethem committed Aug 31, 2006
1 parent 695d225 commit c024e8c
Showing 1 changed file with 17 additions and 13 deletions.
30 changes: 17 additions & 13 deletions enrol/authorize/enrol.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,14 @@

case AN_METHOD_ECHECK:
{
print_eheck_form($this);
print_echeck_form($this);
break;
}
}
?>

<?php
function print_cc_form($classreference)
{
global $form, $course, $paymentmethodsenabled;
global $form, $course;
global $CFG, $USER;

$formvars = array(
Expand Down Expand Up @@ -60,9 +58,10 @@

<form name="form" method="post" action="enrol.php" autocomplete="off">
<input type="hidden" name="id" value="<?php p($course->id) ?>" />
<input type="hidden" name="paymentmethod" value="<?php p(AN_METHOD_CC) ?>" />
<table align="center" width="100%" border=0>
<tr>
<td align="right" colspan="2">&nbsp;<?php print_other_method(AN_METHOD_CC, $paymentmethodsenabled, $course); ?></td>
<td align="right" colspan="2">&nbsp;<?php print_other_method(AN_METHOD_CC); ?></td>
</tr>
<tr>
<td align="right"><?php print_string("ccno", "enrol_authorize") ?>: </td>
Expand Down Expand Up @@ -142,11 +141,12 @@
</form>
</div>
<!-- END CC -->
<?php } /* end: print_cc_form */ ?>
<?php
}

function print_echeck_form($classreference)
{
global $form, $course, $paymentmethodsenabled;
{
global $form, $course;
global $CFG, $USER;

$formvars = array('password', 'abacode', 'accnum', 'acctype', 'bankname', 'firstname', 'lastname');
Expand All @@ -170,12 +170,13 @@

<form name="form" method="post" action="enrol.php" autocomplete="off">
<input type="hidden" name="id" value="<?php p($course->id) ?>" />
<input type="hidden" name="paymentmethod" value="<?php p(AN_METHOD_ECHECK) ?>" />

echeck form (not ready)

<table align="center" width="100%" border=0>
<tr>
<td align="right" colspan="2">&nbsp;<?php print_other_method(AN_METHOD_ECHECK, $paymentmethodsenabled, $course); ?></td>
<td align="right" colspan="2">&nbsp;<?php print_other_method(AN_METHOD_ECHECK); ?></td>
</tr>
<tr>
<td align="right"><?php print_string("echeckabacode", "enrol_authorize") ?>: </td>
Expand Down Expand Up @@ -216,17 +217,20 @@
</form>
</div>
<!-- END ECHECK -->
<?php } /* end: print_echeck_form */ ?>
<?php
function print_other_method($currentmethod, $paymentmethodsenabled, $course)
}

function print_other_method($currentmethod)
{
global $course;

if ($currentmethod == AN_METHOD_CC) {
$otheravailable = in_array(AN_METHOD_ECHECK, $paymentmethodsenabled);
$otheravailable = in_array(AN_METHOD_ECHECK, enrolment_plugin_authorize::get_list_of_payment_methods());
$url = 'enrol.php?id='.$course->id.'&amp;paymentmethod='.AN_METHOD_ECHECK;
$stringtofetch = 'usingecheckmethod';
}
else {
$otheravailable = in_array(AN_METHOD_CC, $paymentmethodsenabled);
$otheravailable = in_array(AN_METHOD_CC, enrolment_plugin_authorize::get_list_of_payment_methods());
$url = 'enrol.php?id='.$course->id.'&amp;paymentmethod='.AN_METHOD_CC;
$stringtofetch = 'usingccmethod';
}
Expand Down

0 comments on commit c024e8c

Please sign in to comment.