]> git.mjollnir.org Git - moodle.git/commitdiff
Show 'name on card' string instead of moodle.php's user string. Merged from MOODLE_16...
authorethem <ethem>
Fri, 9 Jun 2006 11:00:18 +0000 (11:00 +0000)
committerethem <ethem>
Fri, 9 Jun 2006 11:00:18 +0000 (11:00 +0000)
enrol/authorize/index.php
enrol/authorize/locallib.php

index 58d5a2e230b2329cabe8bc96ef6ef19b74d01eb5..72b82889451e8abe6e4d7944fdef2bb547c81a65 100644 (file)
@@ -17,8 +17,8 @@
     }
 
 /// Load strings. All strings should be defined here. locallib.php uses these strings.
-    $strs = get_strings(array('user','status','action','time','course','confirm','yes','no','all','none','error'));
-    $authstrs = get_strings(array('orderid','void','capture','refund','delete',
+    $strs = get_strings(array('status','action','time','course','confirm','yes','no','all','none','error'));
+    $authstrs = get_strings(array('orderid','nameoncard','void','capture','refund','delete',
                 'authcaptured','authorizedpendingcapture','capturedpendingsettle','capturedsettled',
                 'settled','refunded','cancelled','expired','tested','new',
                 'transid','settlementdate','notsettled','amount','unenrolstudent'), 'enrol_authorize');
index 729f5323f6a5bb343a45f9bb57e1e4585a108289..6b34ec9c2fe937125fce5ffd67c27156b31b05e1 100644 (file)
@@ -65,7 +65,7 @@ function authorize_print_orders()
     $table->set_attribute('class', 'generaltable generalbox');
 
     $table->define_columns(array('id', 'timecreated', 'userid', 'status', ''));
-    $table->define_headers(array($authstrs->orderid, $strs->time, $strs->user, $strs->status, $strs->action));
+    $table->define_headers(array($authstrs->orderid, $strs->time, $authstrs->nameoncard, $strs->status, $strs->action));
     $table->define_baseurl($baseurl."&amp;status=$status");
 
     $table->sortable(true, 'id', SORT_DESC);
@@ -200,7 +200,7 @@ function authorize_print_order_details($orderno)
     if (empty($cmdcapture) and empty($cmdrefund) and empty($cmdvoid) and empty($cmddelete)) {
         $table->data[] = array("<b>$strs->course:</b>", $order->shortname);
         $table->data[] = array("<b>$strs->status:</b>", $authstrs->{$status->status});
-        $table->data[] = array("<b>$strs->user:</b>", $order->ccname);
+        $table->data[] = array("<b>$authstrs->nameoncard:</b>", $order->ccname);
         $table->data[] = array("<b>$strs->time:</b>", userdate($order->timecreated));
         $table->data[] = array("<b>$authstrs->settlementdate:</b>", $settled ?
                                userdate($order->settletime) : $authstrs->notsettled);