<?php

/**
 *
 * MemberMouse(TM) (http://www.membermouse.com)
 * (c) MemberMouse, LLC. All rights reserved.
 */
$view = new MM_PayPalIPNLogView();
if (!empty($_REQUEST["sortby"])) {
    $dataGrid = new MM_DataGrid($_REQUEST, $_REQUEST["sortby"], "desc", 20);
} else {
    $dataGrid = new MM_DataGrid($_REQUEST, "received", "desc", 20);
}
$data = $view->getViewData($_REQUEST, $dataGrid);
$dataGrid->setTotalRecords($data);
$dataGrid->recordName = "IPN";
$rows = array();
$headers = array();
foreach ($data as $key => $item) {
    // member link
    $user = new MM_User($item->user_id);
    $memberLink = MM_NO_DATA;
    if ($user->isValid()) {
        $memberLink = $user->getUsername();
        $memberLink = "<a href='?page=" . MM_MODULE_MANAGE_MEMBERS . "&module=details_general&user_id=" . $item->user_id . "'>" . $user->getUsername() . "</a>";
    }
    // order link
    $orderLink = MM_NO_DATA;
    if (!empty($item->order_number)) {
        $orderLink = "<span style='font-family:courier;'><a href='" . MM_ModuleUtils::getUrl(MM_MODULE_MANAGE_MEMBERS, MM_MODULE_MEMBER_DETAILS_TRANSACTION_HISTORY) . "&user_id={$item->user_id}'>{$item->order_number}</a></span>";
    }
Beispiel #2
0
<?php

/**
 *
 * MemberMouse(TM) (http://www.membermouse.com)
 * (c) MemberMouse, LLC. All rights reserved.
 */
$view = new MM_PayPalIPNLogView();
$memberIdValue = "";
if (!empty($_REQUEST["member_id"])) {
    $memberIdValue = $_REQUEST["member_id"];
}
$transactionIdValue = "";
if (!empty($_REQUEST["transaction_id"])) {
    $transactionIdValue = $_REQUEST["transaction_id"];
}
$fromDateValue = "";
if (!empty($_REQUEST["from_date"])) {
    $fromDateValue = $_REQUEST["from_date"];
}
$toDateValue = "";
if (!empty($_REQUEST["to_date"])) {
    $toDateValue = $_REQUEST["to_date"];
}
?>
<script type='text/javascript'>
jQuery(document).ready(function()
{
	jQuery("#from_date").datepicker();
	jQuery("#to_date").datepicker();
});