Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Display capture/void/delete instead of 'Yes'.

  • Loading branch information...
commit 7a23b4d63c59458de4e3357bfaf7940b20e1bd35 1 parent 00c5890
ethem authored
Showing with 7 additions and 6 deletions.
  1. +1 −1  enrol/authorize/index.php
  2. +6 −5 enrol/authorize/locallib.php
View
2  enrol/authorize/index.php
@@ -17,7 +17,7 @@
}
/// 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',
'authcaptured','authorizedpendingcapture','capturedpendingsettle','capturedsettled',
'settled','refunded','cancelled','expired','tested','new',
View
11 enrol/authorize/locallib.php
@@ -217,8 +217,9 @@ function authorize_print_order_details($orderno)
if (empty($confirm)) {
$strcaptureyes = get_string('captureyes', 'enrol_authorize');
$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>
- &nbsp;&nbsp;&nbsp;&nbsp;<a href='index.php?order=$orderno'>$strs->no</a>");
+ "$strcaptureyes <br />
+ <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 {
$message = '';
@@ -335,7 +336,7 @@ function authorize_print_order_details($orderno)
$table->data[] = array("<b>$strs->confirm:</b>",
"$strvoidyes<br /><input type='hidden' name='".ORDER_VOID."' value='y'>
<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>");
}
else {
@@ -384,7 +385,7 @@ function authorize_print_order_details($orderno)
"$strsubvoidyes<br /><input type='hidden' name='".ORDER_VOID."' value='y'>
<input type='hidden' name='confirm' value='1'>
<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>");
}
else {
@@ -423,7 +424,7 @@ function authorize_print_order_details($orderno)
$table->data[] = array("<b>$strs->confirm:</b>",
"<input type='hidden' name='".ORDER_DELETE."' value='y'>
<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>");
}
else {
Please sign in to comment.
Something went wrong with that request. Please try again.