本文整理汇总了PHP中getUserProfileUrl函数的典型用法代码示例。如果您正苦于以下问题:PHP getUserProfileUrl函数的具体用法?PHP getUserProfileUrl怎么用?PHP getUserProfileUrl使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了getUserProfileUrl函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getUserProfileUrl
$messageid = $random['id'];
$date = $random['pub_date'];
$level = $database->getUserLevelbyid($userid);
if ($level == BORROWER_LEVEL || $level == PARTNER_LEVEL) {
$name13 = $database->getNameById($userid);
} else {
$name13 = $database->getUserNameById($userid);
}
//$name12=$database->getNameById($borrowerid);
//$files =$database->getCommentFile($userid, $borrowerid, $messageid);
$loanid = $database->getUNClosedLoanid($borrowerid);
$user_citycountry = $database->getUserCityCountry($userid);
$u_city = $user_citycountry['City'];
$u_country = $user_citycountry['Country'];
$u_country = $database->mysetCountry($u_country);
$prurl = getUserProfileUrl($borrowerid);
$url = $prurl;
$loanprurl = getLoanprofileUrl($borrowerid, $loanid);
if ($loanid != 0) {
$url = $loanprurl;
}
?>
<p>
<?php
if (strlen($usermessage) > 500) {
$shortMsg = substr($usermessage, 0, 500);
$pos1 = strrpos($shortMsg, ' ');
if ($pos1 !== false) {
$shortMsg = substr($shortMsg, 0, $pos1);
}
echo "\"" . $shortMsg . "....\" <a href='" . $url . "'>Read More</a>";
示例2: getMatchingPhoneNumbers
function getMatchingPhoneNumbers($userid, $phone)
{
global $db;
$match_result = "";
$phone = ltrim($phone, '0');
$q1 = "SELECT * FROM ! as b, ! as bext WHERE b.userid=bext.userid AND b.userid NOT LIKE {$userid} AND b.TelMobile like '%{$phone}%' ";
$result1 = $db->getAll($q1, array('borrowers', 'borrowers_extn'));
if ($result1) {
foreach ($result1 as $row) {
$prurl = getUserProfileUrl($row['userid']);
$match_result .= "<a href='{$prurl}'>" . $row['FirstName'] . " " . $row['LastName'] . "</a>'s own number<br/><br/>";
}
}
$q2 = "SELECT * FROM ! as b, ! as bext WHERE b.userid=bext.userid AND b.userid NOT LIKE {$userid} AND bext.community_leader_mobile_phone like '%{$phone}%' ";
$result2 = $db->getAll($q2, array('borrowers', 'borrowers_extn'));
if ($result2) {
foreach ($result2 as $row) {
$prurl = getUserProfileUrl($row['userid']);
$match_result .= "<a href='{$prurl}'>" . $row['FirstName'] . " " . $row['LastName'] . "</a>'s CL: " . $row['community_leader_first_name'] . " " . $row['community_leader_last_name'] . ", " . $row['community_leader_organization_title'] . "<br/><br/>";
}
}
$q3 = "SELECT * FROM ! as b, ! as bext WHERE b.userid=bext.userid AND b.userid NOT LIKE {$userid} AND bext.family_member1_mobile_phone like '%{$phone}%' ";
$result3 = $db->getAll($q3, array('borrowers', 'borrowers_extn'));
if ($result3) {
foreach ($result3 as $row) {
$prurl = getUserProfileUrl($row['userid']);
$match_result .= "<a href='{$prurl}'>" . $row['FirstName'] . " " . $row['LastName'] . "</a>'s family: " . $row['family_member1_first_name'] . " " . $row['family_member1_last_name'] . "<br/><br/>";
}
}
$q4 = "SELECT * FROM ! as b, ! as bext WHERE b.userid=bext.userid AND b.userid NOT LIKE {$userid} AND bext.family_member2_mobile_phone like '%{$phone}%' ";
$result4 = $db->getAll($q4, array('borrowers', 'borrowers_extn'));
if ($result4) {
foreach ($result4 as $row) {
$prurl = getUserProfileUrl($row['userid']);
$match_result .= "<a href='{$prurl}'>" . $row['FirstName'] . " " . $row['LastName'] . "</a>'s family: " . $row['family_member2_first_name'] . " " . $row['family_member2_last_name'] . "<br/><br/>";
}
}
$q5 = "SELECT * FROM ! as b, ! as bext WHERE b.userid=bext.userid AND b.userid NOT LIKE {$userid} AND bext.family_member3_mobile_phone like '%{$phone}%' ";
$result5 = $db->getAll($q5, array('borrowers', 'borrowers_extn'));
if ($result5) {
foreach ($result5 as $row) {
$prurl = getUserProfileUrl($row['userid']);
$match_result .= "<a href='{$prurl}'>" . $row['FirstName'] . " " . $row['LastName'] . "</a>'s family: " . $row['family_member3_first_name'] . " " . $row['family_member3_last_name'] . "<br/><br/>";
}
}
$q6 = "SELECT * FROM ! as b, ! as bext WHERE b.userid=bext.userid AND b.userid NOT LIKE {$userid} AND bext.neighbor1_mobile_phone like '%{$phone}%' ";
$result6 = $db->getAll($q6, array('borrowers', 'borrowers_extn'));
if ($result6) {
foreach ($result6 as $row) {
$prurl = getUserProfileUrl($row['userid']);
$match_result .= "<a href='{$prurl}'>" . $row['FirstName'] . " " . $row['LastName'] . "</a>'s neighbor: " . $row['neighbor1_first_name'] . " " . $row['neighbor1_last_name'] . "<br/><br/>";
}
}
$q7 = "SELECT * FROM ! as b, ! as bext WHERE b.userid=bext.userid AND b.userid NOT LIKE {$userid} AND bext.neighbor2_mobile_phone like '%{$phone}%' ";
$result7 = $db->getAll($q7, array('borrowers', 'borrowers_extn'));
if ($result7) {
foreach ($result7 as $row) {
$prurl = getUserProfileUrl($row['userid']);
$match_result .= "<a href='{$prurl}'>" . $row['FirstName'] . " " . $row['LastName'] . "</a>'s neighbor: " . $row['neighbor2_first_name'] . " " . $row['neighbor2_last_name'] . "<br/><br/>";
}
}
$q8 = "SELECT * FROM ! as b, ! as bext WHERE b.userid=bext.userid AND b.userid NOT LIKE {$userid} AND bext.neighbor3_mobile_phone like '%{$phone}%' ";
$result8 = $db->getAll($q8, array('borrowers', 'borrowers_extn'));
if ($result8) {
foreach ($result8 as $row) {
$prurl = getUserProfileUrl($row['userid']);
$match_result .= "<a href='{$prurl}'>" . $row['FirstName'] . " " . $row['LastName'] . "</a>'s neighbor: " . $row['neighbor3_first_name'] . " " . $row['neighbor3_last_name'] . "<br/><br/>";
}
}
return $match_result;
}
示例3: RedirectUserprofileurl
function RedirectUserprofileurl()
{
$reqUrl = $_SERVER['REQUEST_URI'];
$parsedurl = parse_url($reqUrl);
if (isset($parsedurl['query'])) {
parse_str($parsedurl['query'], $qryStr);
if (isset($qryStr['p']) && $qryStr['p'] == 12 && isset($qryStr['u'])) {
$prurl = getUserProfileUrl($qryStr['u']);
unset($qryStr['p']);
unset($qryStr['u']);
$qrystrToAppnd = http_build_query($qryStr);
if (!empty($qrystrToAppnd)) {
$urlMovedto = SITE_URL . $prurl . "?" . $qrystrToAppnd;
} else {
$urlMovedto = SITE_URL . $prurl;
}
header("HTTP/1.1 301 Moved Permanently");
header("Location: " . $urlMovedto);
exit;
}
}
}
示例4: count
$lendersforgiven = count($lenderids);
$lenderoptedoutcount = count($lenderoptedout);
$name = $loan['FirstName'] . ' ' . $loan['LastName'];
$prurl = getUserProfileUrl($loan['userid']);
$loanid = $loan['loanid'];
$comment = $loan['comment'];
$date = date('M d, Y', $loan['time']);
$userid = $loan['userid'];
echo "<tr>";
echo "<td><a href='{$prurl}'>{$name}</a></td>";
echo "<td>{$loanid}</td>";
echo "<td>{$comment}</td>";
echo "<td>{$date}</td>";
echo "<td width='150px'>\n\t\t\t\t\t\t\t\t\t\tForgiven:{$lendersforgiven}<br/><br/>\n\t\t\t\t\t\t\t\t\t\tOpted Out:{$lenderoptedoutcount}<br/><br/>\n\t\t\t\t\t\t\t\t\t\t<a href='javascript:void()' id='notresponded_{$loanid}' class='notresponded' style='text-decoration:none' onclcik=''>Not Responded:{$notrespondedcount}</a><br/><br/>\n\t\t\t\t\t\t\t\t\t\t<span id='lendernotresponded{$loanid}' class='lendernotresponded' style='display:none'>\n\t\t\t\t\t\t\t\t\t\t";
foreach ($notresponded as $lenderid) {
$lprurl = getUserProfileUrl($lenderid['lenderid']);
echo "<a href='{$lprurl}' target='_blank'>" . trim($lenderid['FirstName'] . " " . $lenderid['LastName']) . "</a><br/>" . $lenderid['Email'] . "<br/><br/>";
}
echo "</span>\n\t\t\t\t\t\t\t\t\t</td>";
echo "<tr/>";
}
?>
</tbody>
</table>
<?php
}
} else {
echo "<div>";
echo $lang['admin']['allow'];
echo "<br />";
echo $lang['admin']['Please'];
示例5: confirmLoan
function confirmLoan()
{
global $database, $session;
if (isset($_SESSION['loanapp'])) {
$loan = $_SESSION['loanapp'];
$amount = $loan['amount'];
$amount = str_replace(",", "", $amount);
$interest = trim(str_replace("%", "", $loan['interest']));
$period = $loan['period'];
$grace = $loan['grace'];
$summary = $loan['summary'];
$loanuse = $loan['loanuse'];
$tnc = $loan['tnc'];
$loan_installmentDate = $loan['iday'];
$loan_installmentDay = $loan['iwkday'];
$result = $session->confirmLoanApp($amount, $interest, $period, $grace, $summary, $loanuse, $tnc, $loan_installmentDate, $loan_installmentDay);
if ($result) {
header("Location:index.php?p=9&s=4");
} else {
header("Location: index.php?p=9&s=1");
}
exit;
# NOTE: YOU NEED TO EXIT AFTER REDIRECT, WHERE IS THERE A RETURN STATEMENT?
return $result;
} else {
$prurl = getUserProfileUrl($session->userid);
header("Location: {$prurl}");
exit;
}
}
示例6: number_format
$sublevel = $database->getUserSublevelById($leid);
if ($sublevel == LENDER_GROUP_LEVEL) {
$lusername = $lname;
}
$data = $database->getLenderDetails($leid);
$hide_karma = $data['hide_karma'];
//=0 means show karma score
if ($hide_karma != 1) {
$karma_score = "(" . number_format($database->getKarmaScore($leid)) . ")";
$karma_tooltip = $lang['profile']['karma_tooltip'];
} else {
$karma_score = "";
}
$kamount = $rows['bidamount'];
$bidint = $rows['bidint'];
$lendprurl = getUserProfileUrl($leid);
$lamt = convertToDollar($brw2['AmountGot'], $CurrencyRate);
$percentFinanced = $bidamount * 100 / $lamt;
echo "<tr>";
echo "<td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<a href='{$lendprurl}'>{$lusername}</a> <br/><a style='cursor:pointer' class='tt'>{$karma_score}<span class='tooltip'><span class='top'></span><span class='middle'>{$karma_tooltip}</span><span class='bottom'></span></span></a>\n\t\t\t\t\t\t\t\t\t\t\t\t</td>";
echo "<td>" . number_format($bidamount, 2, ".", ",") . "</td>";
echo "<td>" . number_format($bidint, 2, ".", ",") . " %</td>";
echo "</tr>";
}
?>
</tbody>
</table>
</div>
<?php
}
示例7: foreach
</tr>
</thead>
<tbody>
<?php
foreach ($setlender as $row) {
$userid = $row['userid'];
$uid = $row['userid'];
$firstname = $row['FirstName'];
$lastname = $row['LastName'];
$city = $row['City'];
$country = $database->mysetCountry($row['Country']);
$email = $row['Email'];
$joinDatetosort = $row['regdate'];
$joinDate = date('F d, Y', $joinDatetosort);
$username = $row['username'];
$prurl = getUserProfileUrl($userid);
$res = $database->isTranslator($userid);
if ($res == 1) {
$active = 1;
} else {
$active = 0;
}
echo '<tr>';
echo "<td><a href='{$prurl}'>{$firstname} {$lastname}</a><br/><br/>Username: {$username}<br/><br/>Email: {$email}</td>";
echo "<td>{$city}<br /><br/>{$country}</td>";
echo "<td><span style='display:none'>{$joinDatetosort}</span>\n\t\t\t\t\t{$joinDate}</td>";
?>
<td>
<form method='post' action='updateprocess.php'>
<input type='hidden' name='uid' value='<?php
示例8: getEditablePath
$(".expand").toggler();
$("#content").expandAll({trigger: "h4.expand", ref: "div.demo", speed: 300, oneSwitch: false});
});
</script>
<?php
require_once "library/session.php";
include_once "./editables/loginform.php";
$path = getEditablePath('loginform.php');
include_once "./editables/" . $path;
$part = 0;
//sets the default part for the login to either login table or profile links
//chnge to check for if(logged_in)
if ($session->logged_in) {
$userid = $session->userid;
$prurl = getUserProfileUrl($session->userid);
$co_access = $database->isBorrowerAlreadyAccess($session->userid);
if ($session->userlevel == PARTNER_LEVEL) {
?>
<h2><?php
echo $lang['loginform']['my_account'];
?>
</h2>
<p><strong><a href="<?php
echo $prurl;
?>
"><?php
echo $lang['loginform']['profile'];
?>
</a></p>
示例9: VMConfirmation
function VMConfirmation($mentorid, $userid)
{
global $database;
$From = EMAIL_FROM_ADDR;
$templet = "editables/email/simplemail.html";
require "editables/mailtext.php";
$mentor_email = $database->getEmailB($mentorid);
$params['uname'] = $mentor_email['name'];
$res_BEmail = $database->getEmailB($userid);
$params['bname'] = $res_BEmail['name'];
$profile = getUserProfileUrl($userid);
$params['link'] = "https://www.zidisha.org/" . $profile;
$emailsubject = $this->formMessage($lang['mailtext']['vm_confirmation_subject'], $params);
$emailmssg = $this->formMessage($lang['mailtext']['vm_confirmation'], $params);
$reply = $this->mailSendingHtml($From, '', $mentor_email, $emailsubject, '', $emailmssg, 0, $templet, 3);
}
示例10: confirmLoan
function confirmLoan()
{
global $database, $session;
if (isset($_SESSION['loanapp'])) {
$loan = $_SESSION['loanapp'];
$amount = $loan['amount'];
$amount = str_replace(",", "", $amount);
$interest = trim(str_replace("%", "", $loan['interest']));
$period = $loan['period'];
$grace = $loan['grace'];
$summary = $loan['summary'];
$loanuse = $loan['loanuse'];
$tnc = $loan['tnc'];
$loan_installmentDate = $loan['iday'];
$loan_installmentDay = $loan['iwkday'];
$loan_category_id = $loan['loan_category_id'];
$result = $session->confirmLoanApp($amount, $interest, $period, $grace, $summary, $loanuse, $tnc, $loan_installmentDate, $loan_installmentDay, $loan_category_id);
if ($result) {
$_SESSION['loanapplic']['step4'] = true;
header("Location:index.php?p=9&step=5");
} else {
header("Location: index.php?p=9&step=4");
}
exit;
} else {
$prurl = getUserProfileUrl($session->userid);
header("Location: {$prurl}");
exit;
}
}
示例11: foreach
<th>Bid amount</th>
<th>Active</th>
<th>Loan amount</th>
<th></th>
</tr>
</thead>
<tbody>
<?php
foreach ($loans as $loan) {
?>
<tr>
<?php
$borrower = $database->getBorrowerDetails($loan['borrowerid']);
?>
<td><a href="<?php
echo getUserProfileUrl($loan['borrowerid']);
?>
" target="_blank"><?php
echo $borrower['FirstName'] . ' ' . $borrower['LastName'];
?>
</a></td>
<td><a href="<?php
echo getLoanprofileUrl($loan['borrowerid'], $loan['loanid']);
?>
" target="_blank"><?php
echo $loan['loanid'];
?>
</a></td>
<td><?php
echo $loan['sum_amount'];
?>
示例12: header
$lender = $database->getLenderDetailsByUsername(sanitize($_GET['username']));
if (!$lender) {
header("Location: " . SITE_URL);
}
$yc_account_credit = $session->amountToUseForBid(YC_ACCOUNT_ID);
if ($yc_account_credit < 5000) {
return $smarty->display('lender_invite_inactive.tpl');
}
if (!$session->userid) {
if (isset($_GET['h'])) {
$share_type = 1;
$lender_invite = $database->getLenderInviteByHash($_GET['h'], $lender['userid']);
if ($lender_invite) {
if (!$lender_invite_visit || $lender_invite_visit['lender_invite_id'] != $lender_invite['id']) {
$lender_invite_visit = array('lender_id' => $lender['userid'], 'lender_invite_id' => $lender_invite['id'], 'share_type' => $share_type);
$_SESSION['lender_invite_visit'] = $database->addLenderInviteVisit($lender_invite_visit);
header("Location: /i/" . $lender['username']);
}
}
Mixpanel::track('Invite page viewed', array('share_type' => array_get($share_types, $share_type, 'website'), 'email' => $lender_invite['email'], 'lender_id' => $lender['userid']));
} elseif (!$lender_invite_visit || $lender_invite_visit['lender_id'] != $lender['userid']) {
$lender_invite_visit = array('lender_id' => $lender['userid'], 'lender_invite_id' => null, 'share_type' => $share_type);
$_SESSION['lender_invite_visit'] = $database->addLenderInviteVisit($lender_invite_visit);
Mixpanel::track('Invite page viewed', array('share_type' => array_get($share_types, $share_type, 'website'), 'lender_id' => $lender['userid']));
}
}
$lender_name = $lender['FirstName'] ?: $lender['username'];
$lender_url = SITE_URL . getUserProfileUrl($lender['userid']);
$lender_profile_image = $database->getProfileImage($lender['userid']);
$smarty->assign(compact('lender_name', 'lender_url', 'lender_profile_image'));
$smarty->display('lender_invitee.tpl');
示例13: end
$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;
$message = $session->formMessage($lang['about']['desc'], $params);
echo $message;
?>
</div>
示例14: getUserProfileUrl
</div>
<!--- <div style="float:right">
<h4><?php
echo $lang['profile']['Partner_prof'];
?>
<a style='cursor:pointer' class='zz'> <span class='tooltip'><span class='top'></span>
<span class='middle'><?php
echo $lang['profile']['tooltip_field_part'];
?>
</span><span class='bottom'></span></span></a> </h4>
<table class="detail" style="width:280px">
<?php
if ($nonactive == 1) {
$partnername = $database->getUserNameById($partid);
$prurl = getUserProfileUrl($partid);
?>
<tr>
<td><?php
echo "<a href='{$prurl}'>{$partname} </a>";
?>
<br/><?php
echo "<a href='http://{$partweb}'>{$partweb}</a>";
?>
</td>
<td align="right"><a href='$prurl'><img src="library/getimagenew.php?id=<?php
echo $partid;
?>
&width=75&height=75"></a></td>
</tr>
<?php
示例15: getUserProfileUrl
}
}
}
}
}
$mentor_id = $database->getBorrowerVolnteerMentor($session->userid);
$volunteer_mentor = $database->getUserById($mentor_id);
if ($volunteer_mentor['userlevel'] == BORROWER_LEVEL) {
$loanid = $database->getCurrentLoanid($mentor_id);
if (empty($loanid)) {
$link = getUserProfileUrl($mentor_id);
} else {
$link = getLoanprofileUrl($mentor_id, $loanid);
}
} else {
$link = getUserProfileUrl($mentor_id);
}
if ($eligible == 1) {
echo '<br/><br/><br/>' . $lang['loginform']['invite_frnd_msg1'] . ' ' . number_format($brwr_repayrate) . '%. ' . $lang['loginform']['invite_frnd_msg2'] . '<br/><br/><div align="center"><a href="index.php?p=96"><input type="button" value="' . $lang['loginform']['invite_now'] . '" class="btn"></a></div>';
}
echo '<br/><br/><br/>';
if (!empty($volunteer_mentor['TelMobile'])) {
echo "<br/><br/><br/>" . $lang['loginform']['volunteer_text'] . "<a style='cursor:pointer' class='tt'><img src='library/tooltips/help.png' style='border-style: none;' /><span class='tooltip'><span class='top'></span><span class='middle'>" . $lang['loginform']['tooltip_volunteer'] . "</span><span class='bottom'></span></span></a>";
echo "<br/><br/><strong>" . $lang['loginform']['name'] . "</strong> <a href='{$link}'>" . $volunteer_mentor['name'] . "</a>";
echo "<br/><strong>" . $lang['loginform']['Telephone'] . "</strong> <a href='{$link}'>" . $volunteer_mentor['TelMobile'] . "</a>";
}
echo '<br/><br/><br/>';
echo "<br/><br/><br/><br/>" . $lang['loginform']['do_more'] . "<br/><br/><br/>";
}
?>
</div>