本文整理汇总了PHP中getLoanprofileUrl函数的典型用法代码示例。如果您正苦于以下问题:PHP getLoanprofileUrl函数的具体用法?PHP getLoanprofileUrl怎么用?PHP getLoanprofileUrl使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了getLoanprofileUrl函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: ProcessCart
function ProcessCart()
{
global $session;
$_POST = sanitize_custom($_POST);
$result = $session->ProcessMyCart($session->userid, $_POST['paypal_donation']);
Logger("ProcessCart PayNow \n" . serialize($result) . "session lender bid success \n" . $_SESSION['lender_bid_success1']);
if (isset($_SESSION['lender_bid_success1']) && isset($result['borrowerid'])) {
$loanprurl = getLoanprofileUrl($result['borrowerid'], $result['loanid']);
header("Location: {$loanprurl}#e5");
} else {
if (isset($_SESSION['gifcardids'])) {
header("Location: index.php?p=28");
} else {
header("Location: index.php?p=75");
}
}
exit;
}
示例2: getLoanprofileUrl
echo $lang['profile']['disp_text'];
?>
");
//return false;
});
});
</script>
<?php
$senderid1 = $commns['senderid'];
$receiverid = $commns['receiverid'];
$level = $database->getUserLevelbyid($senderid1);
if ($level == BORROWER_LEVEL || $level == PARTNER_LEVEL) {
$name12 = $database->getNameById($senderid1);
$borrower_loanid = $database->getCurrentLoanid($senderid1);
if (!empty($borrower_loanid)) {
$prurl = getLoanprofileUrl($senderid1, $borrower_loanid);
} else {
$prurl = getUserProfileUrl($senderid1);
}
} else {
$sublevel = $database->getUserSublevelById($senderid1);
$prurl = getUserProfileUrl($senderid1);
if ($sublevel == LENDER_GROUP_LEVEL) {
$name12 = $database->getNameById($senderid1);
} else {
$name12 = $database->getUserNameById($senderid1);
}
}
?>
<table class="zebra-striped">
<tbody>
示例3: elseif
} else {
if ($assigned_status == 2) {
$status = $lang['invite']['app_decline'];
} elseif ($assigned_status == 0) {
$status = $lang['invite']['app_pend_review'];
} else {
$status = $lang['invite']['no_loan'];
}
}
$brwrrepayratep = '';
$bonus = 0;
$deletable = true;
} else {
$loan_status = $database->getBorrowerCurrentLoanStatus($borrowerid);
$ontime = $database->isAllInstallmentOnTime($borrowerid, $last_loan['loanid']);
$loanurl = getLoanprofileUrl($borrowerid, $last_loan['loanid']);
$name = "<a href='{$loanurl}'>" . trim($bdetail['FirstName'] . " " . $bdetail['LastName']) . "</a>";
if ($loan_status == 0) {
$status = $lang['invite']['fundraising_loan'];
} elseif ($ontime['missedInst'] == 0 && ($loan_status = 2)) {
$status = $lang['invite']['ontime_loan'];
} elseif ($ontime['missedInst'] != 0 && ($loan_status = 2)) {
$status = $lang['invite']['due_loan'];
}
$brwrrepayrate = $session->RepaymentRate($borrowerid);
$brwrrepayratep = number_format($brwrrepayrate) . "%";
if ($brwrrepayrate >= $minrepayrate) {
$bonus = $binvitecredit['loanamt_limit'];
} else {
$bonus = 0;
}
示例4: RedirectLoanprofileurl
function RedirectLoanprofileurl()
{
$RequestUrl = $_SERVER['REQUEST_URI'];
$parsedurl = parse_url($RequestUrl);
if (isset($parsedurl['query'])) {
parse_str($parsedurl['query'], $qryStr);
if (isset($qryStr['p']) && $qryStr['p'] == 14 && isset($qryStr['u']) && isset($qryStr['l'])) {
$loanprurl = getLoanprofileUrl($qryStr['u'], $qryStr['l']);
unset($qryStr['p']);
unset($qryStr['u']);
unset($qryStr['l']);
$qrystrToAppnd = http_build_query($qryStr);
if (!empty($qrystrToAppnd)) {
$urlMovedto = SITE_URL . $loanprurl . "?" . $qrystrToAppnd;
} else {
$urlMovedto = SITE_URL . $loanprurl;
}
header("HTTP/1.1 301 Moved Permanently");
header("Location: " . $urlMovedto);
exit;
}
}
}
示例5: set_include_path
<?php
set_include_path(get_include_path() . PATH_SEPARATOR . dirname(dirname(__FILE__)));
include "library/session.php";
global $database, $session, $form;
$loans = $database->getLoansAboutToExpire();
foreach ($loans as $loan) {
$totalBid = $database->getTotalBid($loan['borrowerid'], $loan['loanid']);
$stillNeed = $loan['reqdamt'] - $totalBid;
if ($stillNeed <= 0) {
continue;
}
$database->updateAboutToExpireNotification($loan['loanid']);
$borrower = $database->getBorrowerDetails($loan['borrowerid']);
$params = array('amount_still_needed' => number_format($stillNeed, 2, '.', ','), 'borrower_name' => ucwords(strtolower($borrower['FirstName'] . ' ' . $borrower['LastName'])), 'borrower_link' => SITE_URL . getLoanprofileUrl($loan['borrowerid'], $loan['loanid']), 'invite_link' => SITE_URL . 'invite', 'country' => ucwords(strtolower($database->mysetCountry($borrower['Country']))), 'summary' => $loan['tr_summary'] ?: $loan['summary'], 'image_src' => $database->getProfileImage($loan['borrowerid'], 300));
$bids = $database->getLoanBids($loan['borrowerid'], $loan['loanid']);
foreach ($bids as $bid) {
if ($bid['loan_about_to_expire_notify']) {
$params['recent_bid_date'] = date('F j', $bid['biddate']);
$session->sendLoanAboutToExpireMail($bid['email'], $params);
}
}
}
示例6: number_format
USD<br /><strong><?php
echo $lang['loaners']['interest'];
?>
:</strong> <?php
echo number_format($interest, 2, '.', ',');
?>
%</p>
<div style="overflow:hidden;">
<p><?php
echo $statusbar;
?>
</p>
</div>
<?php
$loanprurl = getLoanprofileUrl($userid, $loanid);
?>
<p><a class="btn lender_read_more" id="lend_button" href="<?php
echo $loanprurl;
?>
"><?php
echo $statusMsg;
?>
</a></p>
</div><!-- /listing-info -->
</div><!-- /browse-listing -->
<div class="divider"> </div>
<?php
}
}
?>
示例7: getLoanprofileUrl
echo $lang['profile']['disp_text'];
?>
");
//return false;
});
});
</script>
<?php
$senderid1 = $commns['senderid'];
$imagesrc_comment = $database->getProfileImage($senderid1);
$receiverid = $commns['receiverid'];
$level = $database->getUserLevelbyid($senderid1);
if ($level == BORROWER_LEVEL) {
$name12 = $database->getNameById($senderid1);
if (!empty($senderloanid)) {
$sender_url = getLoanprofileUrl($senderid1, $senderloanid);
} else {
$sender_url = '';
}
} else {
$sender_url = getUserProfileUrl($senderid1);
$karma_score = number_format($database->getKarmaScore($senderid1));
$karma_tooltip = $lang['profile']['karma_tooltip'];
$sublevel = $database->getUserSublevelById($senderid1);
if ($sublevel == LENDER_GROUP_LEVEL) {
$name12 = $database->getNameById($senderid1);
} else {
$name12 = $database->getUserNameById($senderid1);
}
}
?>
示例8: ProcessCart
function ProcessCart()
{
global $session;
$_POST = sanitize_custom($_POST);
if (empty($session->userid)) {
// We cannot use $_SESSION['value_array'] because $form is global
// and the login form is already using it
$_SESSION['lending_cart_values'] = $_POST;
$_SESSION['lending_cart_login'] = true;
$_SESSION['login_alert'] = "Please log in to continue.";
header("Location: index.php?p=116");
exit;
}
$result = $session->ProcessMyCart($session->userid, $_POST['paypal_donation']);
Logger("ProcessCart PayNow \n" . serialize($result) . "session lender bid success \n" . $_SESSION['lender_bid_success1']);
if (isset($_SESSION['lender_bid_success1']) && isset($result['borrowerid'])) {
$loanprurl = getLoanprofileUrl($result['borrowerid'], $result['loanid']);
header("Location: {$loanprurl}#e5");
} else {
if (isset($_SESSION['gifcardids'])) {
header("Location: index.php?p=28");
} else {
header("Location: index.php?p=75");
}
}
exit;
}
示例9: unset
<?php
unset($_SESSION['flash']);
?>
<?php
}
?>
<a href="/outbid_report.php">Back</a>
<h1>
<?php
echo $borrower['FirstName'] . ' ' . $borrower['LastName'];
?>
-
<a href="<?php
echo getLoanprofileUrl($loan['borrowerid'], $loan['loanid']);
?>
" target="_blank"><?php
echo $loan['loanid'];
?>
</a>
</h1>
<form action="" method="post">
<input type="hidden" name="fix"/>
<input type="submit" value="Fix"/>
</form>
<?php
foreach ($tables as $table => $rows) {
?>
示例10: getLoanprofileUrl
<div style="margin-top:10px">
<?php
if ($session->userlevel == PARTNER_LEVEL) {
echo "<a href='index.php?p=7'>" . $lang['loginform']['pending_app'] . "</a>";
} else {
if ($session->userlevel == LENDER_LEVEL) {
echo "<a href='index.php?p=75'>Lending Cart</a>";
echo " ";
echo "<a href='index.php?p=119'>My Account</a>";
} else {
if ($session->userlevel == BORROWER_LEVEL) {
$lastLoan = $database->getLastloan($session->userid);
if (isset($lastLoan['loanid'])) {
$loanprurl = getLoanprofileUrl($session->userid, $lastLoan['loanid']);
echo "<a href='{$loanprurl}'>" . $lang['loginform']['my_profile'] . "</a>";
}
}
}
}
?>
<a href='process.php'><?php
echo $lang['loginform']['Logout'];
?>
</a>
</div> <!-- /margin-top:10px -->
</div> <!-- /welcome -->
<?php
示例11: getLoanprofileUrl
if ($session->userlevel == LENDER_LEVEL) {
$isMyLender = $database->isMyLender($id, $session->userid);
}
$b_name = $database->getNameById($ud);
$loanDetail = $database->getLastloan($ud);
?>
<div id="maincontainer" style="padding-top:10px;">
<div style="float:left">
<h3 class="subhead" style="border-bottom:none;margin-bottom:0px"><?php
echo $lang['profile']['endorsement'] . " " . $b_name;
?>
</h3>
</div>
<div style="float:right">
<?php
$loanprurl = getLoanprofileUrl($ud, $loanDetail['loanid']);
?>
<a href="<?php
echo $loanprurl;
?>
"><?php
echo $lang['profile']['back_loan_page'];
?>
</a>
</div>
<div style="clear:both;border-top:1px solid #DFDCDC;height:20px;"> </div>
<div id='feedback_desc'>
<?php
$feeddetail = $database->getEndorserRecived($ud);
if (!empty($feeddetail)) {
$i = 0;
示例12: foreach
$table_class = 'table_sorter_co' . $key;
$Co_section .= "<table style='margin-top: -14px;margin-bottom:0px;' class='detail {$table_class}'>";
$Co_section .= "<thead><th style='padding:1px;border-bottom:none;border-bottom-width:0px;'><h4>" . $Organizers['name'] . "</h4></th></thead><tbody>";
if (count($Organizers['co']) > 0) {
foreach ($Organizers['co'] as $key1 => $co_org) {
$Co_section .= "<tr>";
$co_lname = $co_org['lname'];
if (empty($co_lname)) {
$co_lname = end(explode(" ", $co_org['name']));
}
$Co_section .= "<td><span style='display:none'>{$co_lname}</span>";
$userdetail = $database->getUserById($co_org['user_id']);
if ($userdetail['userlevel'] == BORROWER_LEVEL) {
$loanid = $database->getCurrentLoanid($co_org['user_id']);
if (!empty($loanid)) {
$url = getLoanprofileUrl($co_org['user_id'], $loanid);
} else {
$url = getUserProfileUrl($co_org['user_id']);
}
} else {
$url = getUserProfileUrl($co_org['user_id']);
}
$Co_section .= "<a href={$url} target='_blank'> " . $co_org['name'] . "</a>";
$Co_section .= "</td>";
$Co_section .= "</tr>";
}
}
$Co_section .= "</tbody></table>";
}
}
$params['co_organizers_by_cntry'] = $Co_section;
示例13: getLoanprofileUrl
} else {
if ($activestate == 8) {
$active_state = "LOAN All";
}
}
}
}
}
}
}
}
if ($database->isLenderForgivenThisLoan($loan_id, $session->userid)) {
$active_state = "Forgiven";
}
$loanprurl = getLoanprofileUrl($borrowerid, $loan_id);
$loanprurl1 = getLoanprofileUrl($session->userid, $loan_id);
echo '<tr>';
echo "<td style='text-align:left;padding-left:10px'><a href='{$loanprurl}'>{$firstname} {$lastname}</a> {$city}, {$country}</td>";
echo "<td style='text-align:left;padding-left:10px'>" . number_format($amountgiven, 2, '.', ',') . "</td>";
echo "<td style='text-align:left;padding-left:10px'><a href='{$loanprurl1}'>{$active_state}</a></td>";
echo '</tr>';
$amtgivenTotal += $amountgiven;
}
?>
</tbody>
<tfoot>
<tr>
<td><strong><?php
echo $lang['profile']['tot_amt_lnt'];
?>
</strong></td>
示例14: foreach
<a href="microfinance/lend.html">Add another loan</a>
<a href="microfinance/gift-cards.html">Add a gift card - Your friend chooses a loan!</a>
</div>
<table class='zebra-striped' style="width:75%; padding-top:20px;">
<tbody>
<?php
foreach ($Lendingcart as $cart) {
if ($cart['type'] == 1) {
$bname = ucwords(strtolower(trim($cart['FirstName'] . " " . $cart['LastName'])));
$borrowerid = $cart['borrowerid'];
$loan_id = $cart['loanid'];
$city = ucwords(strtolower($cart['City']));
$country = $database->mysetCountry($cart['Country']);
$amtincart += $cart['bidamt'];
$donateamt += $cart['bidamt'];
$loanprurl = getLoanprofileUrl($cart['borrowerid'], $cart['loanid']);
$imagesrc = $database->getProfileImage($borrowerid);
?>
<tr style="height:55px">
<td style="width:60px"><a href='<?php
echo $loanprurl;
?>
'><img width="60px;" class="my_port_img" src="<?php
echo $imagesrc;
?>
"/></a></td>
<td style="width:300px">Loan for <a href='<?php
echo $loanprurl;
?>
'><?php
echo $bname;
示例15: header
}
}
if ($result == 0) {
$_SESSION['value_array'] = $_POST;
$_SESSION['error_array'] = $form->getErrorArray();
if (!empty($_POST['MessType'])) {
header("Location: ../index.php?p=12&u={$receiverid}&fdb=2");
} else {
header("Location: ../index.php?p=12&u={$senderid}#e4");
}
}
if ($result == 1) {
$divid = $_POST['divid'];
$ld = $_REQUEST['loanid'];
if (!empty($_REQUEST['MessType'])) {
$loanprurl = getLoanprofileUrl($receiverid, $ld);
if ($_REQUEST['return'] == "down") {
header("Location: ../index.php?p=12&u={$receiverid}");
} else {
if ($_REQUEST['return'] == "up") {
header("Location: ../index.php?p=12&u={$receiverid}&fdb=1");
} else {
if ($_REQUEST['return'] == "down1") {
header("Location: ../{$loanprurl}");
} else {
header("Location: ../index.php?p=12&u={$receiverid}");
}
}
}
} else {
echo "error";