Skip to content

Commit

Permalink
Display capture/void/delete instead of 'Yes'.
Browse files Browse the repository at this point in the history
  • Loading branch information
ethem committed Aug 18, 2006
1 parent 00c5890 commit 7a23b4d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion enrol/authorize/index.php
Expand Up @@ -17,7 +17,7 @@
} }


/// Load strings. All strings should be defined here. locallib.php uses these strings. /// Load strings. All strings should be defined here. locallib.php uses these strings.
$strs = get_strings(array('status','action','time','course','confirm','yes','no','all','none','error')); $strs = get_strings(array('status','action','time','course','confirm','no','all','none','error'));
$authstrs = get_strings(array('orderid','nameoncard','void','capture','refund','delete', $authstrs = get_strings(array('orderid','nameoncard','void','capture','refund','delete',
'authcaptured','authorizedpendingcapture','capturedpendingsettle','capturedsettled', 'authcaptured','authorizedpendingcapture','capturedpendingsettle','capturedsettled',
'settled','refunded','cancelled','expired','tested','new', 'settled','refunded','cancelled','expired','tested','new',
Expand Down
11 changes: 6 additions & 5 deletions enrol/authorize/locallib.php
Expand Up @@ -217,8 +217,9 @@ function authorize_print_order_details($orderno)
if (empty($confirm)) { if (empty($confirm)) {
$strcaptureyes = get_string('captureyes', 'enrol_authorize'); $strcaptureyes = get_string('captureyes', 'enrol_authorize');
$table->data[] = array("<b>$strs->confirm:</b>", $table->data[] = array("<b>$strs->confirm:</b>",
"$strcaptureyes<br /><a href='index.php?order=$orderno&amp;sesskey=$USER->sesskey&amp;".ORDER_CAPTURE."=y&amp;confirm=1'>$strs->yes</a> "$strcaptureyes <br />
&nbsp;&nbsp;&nbsp;&nbsp;<a href='index.php?order=$orderno'>$strs->no</a>"); <input type='hidden' name='confirm' value='1'><input type='submit' name='". ORDER_CAPTURE ."' value='$authstrs->capture' />
&nbsp;&nbsp;&nbsp;<a href='index.php?order=$orderno'>$strs->no</a>");
} }
else { else {
$message = ''; $message = '';
Expand Down Expand Up @@ -335,7 +336,7 @@ function authorize_print_order_details($orderno)
$table->data[] = array("<b>$strs->confirm:</b>", $table->data[] = array("<b>$strs->confirm:</b>",
"$strvoidyes<br /><input type='hidden' name='".ORDER_VOID."' value='y'> "$strvoidyes<br /><input type='hidden' name='".ORDER_VOID."' value='y'>
<input type='hidden' name='confirm' value='1'> <input type='hidden' name='confirm' value='1'>
<input type='submit' value='$strs->yes'> <input type='submit' value='$authstrs->void'>
&nbsp;&nbsp;&nbsp;&nbsp;<a href='index.php?order=$orderno'>$strs->no</a>"); &nbsp;&nbsp;&nbsp;&nbsp;<a href='index.php?order=$orderno'>$strs->no</a>");
} }
else { else {
Expand Down Expand Up @@ -384,7 +385,7 @@ function authorize_print_order_details($orderno)
"$strsubvoidyes<br /><input type='hidden' name='".ORDER_VOID."' value='y'> "$strsubvoidyes<br /><input type='hidden' name='".ORDER_VOID."' value='y'>
<input type='hidden' name='confirm' value='1'> <input type='hidden' name='confirm' value='1'>
<input type='hidden' name='suborder' value='$suborderno'> <input type='hidden' name='suborder' value='$suborderno'>
<input type='submit' value='$strs->yes'> <input type='submit' value='$authstrs->void'>
&nbsp;&nbsp;&nbsp;&nbsp;<a href='index.php?order=$orderno'>$strs->no</a>"); &nbsp;&nbsp;&nbsp;&nbsp;<a href='index.php?order=$orderno'>$strs->no</a>");
} }
else { else {
Expand Down Expand Up @@ -423,7 +424,7 @@ function authorize_print_order_details($orderno)
$table->data[] = array("<b>$strs->confirm:</b>", $table->data[] = array("<b>$strs->confirm:</b>",
"<input type='hidden' name='".ORDER_DELETE."' value='y'> "<input type='hidden' name='".ORDER_DELETE."' value='y'>
<input type='hidden' name='confirm' value='1'> <input type='hidden' name='confirm' value='1'>
<input type='submit' value='$strs->yes'> <input type='submit' value='$authstrs->delete'>
&nbsp;&nbsp;&nbsp;&nbsp;<a href='index.php?order=$orderno'>$strs->no</a>"); &nbsp;&nbsp;&nbsp;&nbsp;<a href='index.php?order=$orderno'>$strs->no</a>");
} }
else { else {
Expand Down

0 comments on commit 7a23b4d

Please sign in to comment.