?> </th> </th> </tr> <?php if (count($paymentArray) > 0) { foreach ($paymentArray as $payment) { ?> <tr> <td><?php echo $payment['fundName']; ?> </td> <td><?php echo $payment['currencyCode'] . " " . integer_to_cost($payment['paymentAmount']); ?> </td> <td><?php echo $payment['orderType']; ?> </td> </tr> <?php } } else { echo "<tr><td colspan='3'><i>" . _("No payment information available.") . "</i></td></tr>"; } ?>
$fundCodeLength = strlen($fund['fundCode']) + 3; $combinedLength = strlen($fund['shortName']) + $fundCodeLength; $fundName = $combinedLength <= 50 ? $fund['shortName'] : substr($fund['shortName'], 0, 49 - $fundCodeLength) . "…"; $fundName .= " [" . $fund['fundCode'] . "]</option>"; echo "<option"; if ($payment['fundID'] == $fund['fundID']) { echo " selected"; } echo " value='" . $fund['fundID'] . "'>" . $fundName . "</option>"; } ?> </select> </td> <td> <input type='text' value='<?php echo integer_to_cost($payment['paymentAmount']); ?> ' class='changeInput paymentAmount costHistoryPayment' /> </td> <td> <select class='changeSelect currencyCode costHistoryCurrency'> <?php foreach ($currencyArray as $currency) { if ($currency['currencyCode'] == $payment['currencyCode']) { echo "<option value='" . $currency['currencyCode'] . "' selected class='changeSelect'>" . $currency['currencyCode'] . "</option>\n"; } else { echo "<option value='" . $currency['currencyCode'] . "' class='changeSelect'>" . $currency['currencyCode'] . "</option>\n"; } } ?> </select>