Ejemplo n.º 1
0
        $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>";
Ejemplo n.º 2
0
 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;
 }
Ejemplo n.º 3
0
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;
        }
    }
}
Ejemplo n.º 4
0
            $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'];
Ejemplo n.º 5
0
 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;
     }
 }
Ejemplo n.º 6
0
            $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 
    }
Ejemplo n.º 7
0
			</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 
Ejemplo n.º 8
0
    $(".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>
Ejemplo n.º 9
0
 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);
 }
Ejemplo n.º 10
0
 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;
     }
 }
Ejemplo n.º 11
0
                <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'];
        ?>
Ejemplo n.º 12
0
$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');
Ejemplo n.º 13
0
                $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>
Ejemplo n.º 14
0
			</div>

	<!---		<div style="float:right">
				<h4><?php 
        echo $lang['profile']['Partner_prof'];
        ?>
<a style='cursor:pointer' class='zz'>&nbsp<span class='tooltip'><span class='top'></span>
		<span class='middle'><?php 
        echo $lang['profile']['tooltip_field_part'];
        ?>
</span><span class='bottom'></span></span></a>&nbsp;</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 
Ejemplo n.º 15
0
                    }
                }
            }
        }
    }
    $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>&nbsp;&nbsp;&nbsp;<a href='{$link}'>" . $volunteer_mentor['name'] . "</a>";
        echo "<br/><strong>" . $lang['loginform']['Telephone'] . "</strong>&nbsp;&nbsp;&nbsp;<a href='{$link}'>" . $volunteer_mentor['TelMobile'] . "</a>";
    }
    echo '<br/><br/><br/>';
    echo "<br/><br/><br/><br/>" . $lang['loginform']['do_more'] . "<br/><br/><br/>";
}
?>
		</div>
Ejemplo n.º 16
0
				<br/>
				<?php 
if (!empty($members)) {
    echo "<table class='detail'>";
    echo "<h3 class='subhead'>Members</h3>";
    foreach ($members as $member) {
        $memberid = $member['member_id'];
        $username = $member['username'];
        // Anupam 10-Jan-2013 we are no more showing total individual impact in lending groups as per 'Quick repair: Lending team impacts' email
        /*$impact = $database->getMyImpact($memberid);
        		$total_invested=$database->totalAmountLend($memberid);
        		$active_investamtDisplay = $database->amountInActiveBidsDisplay($memberid);
        		$totlat_impact = number_format($active_investamtDisplay + $total_invested + $impact['invite_AmtLent']+$impact['Giftrecp_AmtLent'], 2, '.', ',');*/
        $groupleader = '';
        $trnferleader = '';
        $prurl = getUserProfileUrl($memberid);
        if ($member['member_id'] == $grp_leader) {
            $groupleader = ' (Group Leader)';
        }
        if ($session->userid == $grp_leader && $grp_leader == $member['member_id']) {
            $trnferleader = "<a href='includes/transffer_leader.php?gid={$gid}' rel='facebox'>Transfer Leadership</a>";
        }
        echo "<tr><td width='200px'>\n\t\t\t\t\t\t\t\t<a href='{$prurl}' target='_blank'>{$username}</a>{$groupleader}\n\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t<td>\n\t\t\t\t\t\t\t\t{$trnferleader}\n\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t</tr>";
    }
    ?>
		</table>
		<?php 
}
?>

	</div>
Ejemplo n.º 17
0
									</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>
											<tr>
												<td style="width:200px">
													<img src="library/getimagenew.php?id=<?php 
                    echo $senderid1;
                    ?>
&width=200&height=200">
Ejemplo n.º 18
0
    echo "invalid value for any client";
}
?>
</div><!-- /row -->
<?php 
if ($getulevel == BORROWER_LEVEL && empty($_GET['fdb'])) {
    ?>
	<div class="row">
		<div class="span16">
			<?php 
    $fb = 0;
    include_once "includes/b_comments.php";
    ?>
		</div><!-- /span16 -->
	</div><!-- /row -->
	<div style="clear: both;">
		<div align="right" style="margin-right: 40px;">
		<?php 
    $prurl = getUserProfileUrl($id);
    ?>
			<a href="<?php 
    echo $prurl;
    ?>
?l=<?php 
    echo $ld;
    ?>
&fdb=1">View All</a>
		</div>
	</div>
<?php 
}
Ejemplo n.º 19
0
<br/><br/><br/><br/>

<?php 
    $endorse_details = $database->getEndorserRecived($userid);
    if (!empty($endorse_details)) {
        ?>
	
	6.  Please review the <strong>endorsement(s)</strong> received by this applicant below. If you have reason to doubt that the responses are genuine (for example, the wording is too similar, too many from the same IP address, or the responses are not consistent with the information in the rest of the application) then please ensure a telephone interview is conducted before activating this applicant.<br/><br/>
	If the endorsements are obviously not genuine (for example, more than three from the same IP address or the exact same wording across multiple endorsements) then please decline this applicant without an interview.
	
	<br/><br/><br/>

	<?php 
        foreach ($endorse_details as $endorse_detail) {
            if (!empty($endorse_detail['endorserid'])) {
                $e_profile = getUserProfileUrl($endorse_detail['endorserid']);
                $e_number = $database->getPrevMobile($endorse_detail['endorserid']);
                $e_ip_address = $database->getUserIP($endorse_detail['endorserid']);
                $endorsedbrwr = $database->getBrwrDetailFrmEndorser($endorse_detail['endorserid']);
                echo "<a href='{$e_profile}'>" . $endorse_detail['ename'] . "</a>, " . $e_number . "<br/>" . $endorsedbrwr['e_know_brwr'] . "<br/>" . $endorsedbrwr['e_cnfdnt_brwr'] . "<br/>IP Address:" . $e_ip_address . "<br/><br/>";
            }
        }
    }
    ?>

<br/><br/><br/><br/>

					<strong>Please select one of the following:</strong><br/><br/>
					<input type='radio' name='is_eligible_ByAdmin' id="is_eligible_yes" value='1' onclick="show_no_text(this.value)"  <?php 
    if ($is_eligible_ByAdmin == '1') {
        echo "checked";
Ejemplo n.º 20
0
 function subEditPartner()
 {
     global $session, $form;
     $id = $session->userid;
     $_POST_ORG = $_POST;
     $_POST = sanitize_custom($_POST);
     $result = $session->editprofile_p($_POST['pusername'], $_POST['ppass1'], $_POST['ppass2'], $_POST['pname'], $_POST['paddress'], $_POST['pcity'], $_POST['pcountry'], $_POST['pemail'], $_POST['emails_notify'], $_POST['pwebsite'], $_POST['postcomment'], $_POST['pdesc'], $id, $_POST["labellang"]);
     if ($result) {
         if (is_uploaded_file($_FILES['pphoto']['tmp_name'])) {
             $img_file = $_FILES['pphoto']['tmp_name'];
             $ext = split('/', $_FILES['pphoto']['type']);
             imageUpload($img_file, $ext, $id);
         }
         $prurl = getUserProfileUrl($id);
         if ($_POST["labellang"] != "en") {
             $url = SITE_URL . $_POST["labellang"] . $prurl;
         } else {
             $url = SITE_URL . $prurl;
         }
         header("Location: {$url}");
     } else {
         $_SESSION['value_array'] = $_POST_ORG;
         $_SESSION['error_array'] = $form->getErrorArray();
         header("Location: index.php?p=13&err=1008");
     }
 }
Ejemplo n.º 21
0
        ?>
"><?php 
        echo $name;
        ?>
</a></td>
						<td><?php 
        echo $country;
        ?>
</td>
						<td><?php 
        echo $last_modified;
        ?>
</td>
						<td>
			<?php 
        foreach ($endorsers as $endorser) {
            $prurl = getUserProfileUrl($endorser['endorserid']);
            $e_name = $endorser['ename'];
            echo "<a href='{$prurl}' target='_blank'>{$e_name}</a><br/>";
            ?>
			<?php 
        }
        ?>
				</td></tr>
	<?php 
    }
}
?>
		</tbody>
	</table>
</div>
Ejemplo n.º 22
0
            $link_date = date('d M Y', $rows['date']);
            $fb_post = '';
            $email = '';
            $exist_user = '';
            if (!empty($fbdata['user_profile']['email'])) {
                $email = $fbdata['user_profile']['email'];
            }
            if (!empty($fbdata['posts'])) {
                if (isset($fbdata['posts'][0]['story'])) {
                    $fb_post = $fbdata['posts'][0]['story'] . ',<br/>' . $fbdata['posts'][0]['created_time'];
                } elseif (isset($fbdata['posts']['story'])) {
                    $fb_post = $fbdata['posts']['story'] . ',<br/>' . $fbdata['posts']['created_time'];
                }
            }
            if (!empty($fbdata['exist_user'])) {
                $prurl = getUserProfileUrl($fbdata['exist_user']['userid']);
                $exist_user = "******" . $fbdata['exist_user']['username'] . "</a>";
            }
            if ($rows['accept'] == 1) {
                $web_acc = 'Yes';
            } else {
                $web_acc = 'No';
            }
            $fb_rej_reason = $rows['fail_reason'];
            ?>
						<tr>
							<td><a href="<?php 
            echo 'http://www.facebook.com/' . $fbdata['user_profile']['id'];
            ?>
"><?php 
            echo $fbdata['user_profile']['name'];
Ejemplo n.º 23
0
				<th>Activation Date</th>
			</tr>
		</thead>
		<tbody>
		<?php 
$activationdate = 0;
// variable defined by mohit 21-10-13
$activate_date = 0;
// variable defined by mohit 21-10-13
foreach ($endorsers as $rows) {
    $name = trim($rows['FirstName'] . " " . $rows['LastName']);
    $country = $database->mysetCountry($rows['Country']);
    $last_modified = $rows['LastModified'];
    $created = $rows['Created'];
    $endorserid = $rows['userid'];
    $prurl = getUserProfileUrl($endorserid);
    //added by Julia 19-10-2013
    $activationdate = $database->getendorserActivatedDate($endorserid);
    if (!empty($activationdate)) {
        $activate_date = date('F d, Y', $activationdate);
    } else {
        $activate_date = '';
    }
    ?>
				<tr>
					<td><?php 
    echo "<a href='{$prurl}' target='_blank'>{$name}</a>";
    ?>
</td>
					<td><?php 
    echo $country;
Ejemplo n.º 24
0
</strong></th>
				</tr>
			</thead>
			<tbody>
		<?php 
        $set = $database->getPaidCommissions($session->userid);
        foreach ($set as $row) {
            $applicant_id = $row['applicant_id'];
            $referrer_id = $row['referrer_id'];
            $paid_amt = number_format(round_local($row['paid_amt']), 0, '.', ',');
            $paid_date = date('d M Y', $row['paid_date']);
            $applicant_name = $database->getNameById($applicant_id);
            $referrer_name = $database->getNameById($referrer_id);
            $currency = $database->getUserCurrency($referrer_id);
            $refurl = getUserProfileUrl($referrer_id);
            $aplcurl = getUserProfileUrl($applicant_id);
            echo "<tr align='center'>";
            echo "<td><a href='{$aplcurl}'>{$applicant_name}</a></td>";
            echo "<td><a href='{$refurl}'>{$referrer_name}</a></td>";
            echo "<td>{$paid_amt} ({$currency})</td>";
            echo "<td>{$paid_date}</td>";
            echo "</tr>";
        }
        if (empty($set)) {
            echo "<tr align='center'><td colspan=5>No Data</td></tr>";
        }
        ?>
			</tbody>
		</table>
	</div>
	<br/>