本文整理汇总了PHP中user::user_profile方法的典型用法代码示例。如果您正苦于以下问题:PHP user::user_profile方法的具体用法?PHP user::user_profile怎么用?PHP user::user_profile使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类user
的用法示例。
在下文中一共展示了user::user_profile方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: while
}
if ($countreview) {
while ($row = mysql_fetch_assoc($res_review)) {
$review_array[] = $row;
// array of all reviews did by some one on this item
}
//print_r($review_array);
$start_record = $limit * ($page - 1);
$end_record = $limit * $page;
$output_array = array_slice($review_array, $start_record, $end_record);
$count_output_array = count($output_array);
$divide = $countreview / $limit;
}
if ($countreview) {
foreach ($output_array as $row) {
$user_profile = user::user_profile($row['user_id']);
?>
<div class="itemprofile">
<div class="itemprofileL">
<img src="<?php
echo $URL_SITE;
?>
/classes/show_image.php?filename=../images/profile/<?php
echo $user_profile['user_picture'];
?>
&height=67px&width=47px" alt="no picture"/>
示例2: while
?>
<div class="dashboardinbox">
<div class="dasbmessagesbdr fontbld font18">
<div class="datediv">S.No</div>
<div class="inboxcnt">Item</div>
<div class="datediv">Renter</div>
<div class="datediv pL20">Amount</div>
<div class="datediv">Date</div>
</div>
<?php
$i = 1;
while ($renter = mysql_fetch_array($res_trans)) {
//echo "<pre>";print_r($owner);echo "</pre>";
$payerDetail = user::user_profile($renter['payer_id']);
// renter profile
$rentitemdetail = user::mainDetailOfItem($renter['item_id']);
?>
<div class="dasbmessagesbdr">
<div class="datediv"><?php
echo $i;
?>
</div>
<div class="inboxcnt"><p class="nametitle"><?php
echo ucwords($rentitemdetail['item_name']);
?>
</p></div>
<div class="datediv"><p class="nametitle"><?php
echo ucwords($payerDetail['user_fname']);
?>
示例3: mysql_query
$sql = "select * from user_reservations where item_id='" . $all_item['id'] . "'";
$res = mysql_query($sql);
if (mysql_num_rows($res) > 0) {
while ($item_resrve_data = mysql_fetch_assoc($res)) {
if ($item_resrve_data['issue_date'] > $pick and $item_resrve_data['end_date'] < $drop or $item_resrve_data['issue_date'] < $drop and $item_resrve_data['issue_date'] > $pick) {
continue;
$continue = 1;
}
}
if (isset($continue) and $continue == 1) {
continue;
}
}
}
$image_item = itemClass::select_featured_image($all_item['item_id']);
$user = user::user_profile($all_item['owner_id']);
$reiwe = itemClass::countReview($all_item['item_id']);
$lat1 = $location['latitude'];
//surfer latitude
$lng1 = $location['longitude'];
//surfer longitude
@($lat2 = $all_item['latitude']);
@($lng2 = $all_item['longitude']);
$distances[$all_item['id']]['distance'] = distance($lat1, $lng1, $lat2, $lng2, $miles = false);
?>
<!--left_1-->
<div class="srcpfl">
<div class="cycle">
<img src="<?php
echo $URL_SITE;
示例4: mail_to_all_user
$subject = 'A renter wants to rent your item in Spark Swap';
mail_to_all_user($receivename, $receivermail, $fromname, $fromemail, $mailbody, $subject);
// sends mail to user who did checked for new items mail function
$_SESSION['msg'] = '19';
header('location:' . $URL_SITE . 'front/home.php');
}
}
$allItemdetail = user::mainDetailOfItem($item_id);
// details of item
$feature_image = itemClass::select_featured_image($item_id);
//feture image of item
$res = user::select_settings_for_user($allItemdetail['owner_id']);
//settigs of item owner
$owner_settings = mysql_fetch_assoc($res);
//print_r($owner_settings);
$user_detail = user::user_profile($_SESSION['user']['id']);
$phoneRequired = 0;
// check wherter to show phone nbr varification
if ($owner_settings['persona_desc'] == 0) {
$descriptionClass = '';
} else {
$descriptionClass = 'required';
}
if ($owner_settings['phone'] == 1 or $owner_settings['profile'] == 1) {
if ($user_detail['varified_phone'] == $owner_settings['phone']) {
?>
<script>
var phone=0;
</script>
<?php
} else {
示例5: mysql_fetch_assoc
?>
<?php
if ($_GET['action'] == 'denySuccus') {
$action = $_GET['action'];
$reserve_id = $_GET['id'];
$item_id = $_GET['item_id'];
$msg_id = $_GET['msg_id'];
//$user_id=$_GET['user_id'];
//$owner_id=$_GET['owner_id'];
$rentitemdetail = user::mainDetailOfItem($item_id);
$featurimage = itemClass::select_featured_image($item_id);
$renter = $user_id;
$msg_detail = inbox::select_msg_by_id($msg_id);
$msg_detail = mysql_fetch_assoc($msg_detail);
$renter_detail = user::user_profile($msg_detail['sender_id']);
// renter profile
$message_detail = inbox::select_notification($msg_id);
?>
<div id="container">
<!--container search-->
<div class="containersearch">
<div id="" class="pT10 pB10">
<?php
if (isset($_SESSION['msg'])) {
echo $_SESSION['msg'] = "18";
}
?>
</div>
<!--Listing Confirm-->
示例6: dirname
<?php
$basedir = dirname(__FILE__) . "../../";
include $basedir . 'include/header.php';
$latest_item = itemClass::select_latest_item();
$feture_image = itemClass::select_featured_image($latest_item['id']);
$user = user::user_profile($latest_item['owner_id']);
$riew = itemClass::viewReview($latest_item['id']);
$riew = mysql_num_rows(mysql_query($riew));
?>
<!--Content Left-->
<div class="contentL">
<form id='' method="POST" action ="searchListing.php" >
<h2> Rent Anything! </h2>
<h4 class="pT15 pB15"> Rent with ease. We'll take care of the details! </h4>
<div class="submit">
<input class="need" type="text" name="word" onclick="if(this.value=='What do you need?'){this.value=''}" onblur="if(this.value==''){this.value='What do you need?'}"value="What do you need?" />
<div class="wdth278">
<input class="zip mR20 " type="text" name="zip"
onclick="if(this.value=='Zip code'){this.value=''}" onblur="if(this.value==''){this.value='Zip code'}" value="Zip code" />
<input class="search" type="submit" name="search" value="search " />
</div>
</div>
示例7: foreach
);">Received By You</a></li>
</ul>
</div>
<div class="dashboardinbox">
<div class="dasbmessagesbdr fontbld font18">
<div class="datediv">S.No</div>
<div class="inboxcnt">Item</div>
<div class="datediv">Renter</div>
<div class="datediv">Amount</div>
<div class="datediv">Date</div>
</div>
<?php
$i = 1;
foreach ($output_info as $key => $owner) {
$ownerDetail = user::user_profile($owner['owner_id']);
// renter profile
$rentitemdetail = user::mainDetailOfItem($owner['item_id']);
?>
<div class="dasbmessagesbdr">
<div class="datediv"><?php
echo $i;
?>
</div>
<div class="inboxcnt"><p class="nametitle"><?php
echo ucwords($rentitemdetail['item_name']);
?>
</p></div>
<div class="datediv"><p class="nametitle"><?php
echo ucwords($owner['payfirstname']);
?>
示例8: array
$transaction_array = array();
while ($row = mysql_fetch_assoc($res)) {
$transaction_array[] = $row;
}
$transaction_array = array_slice($transaction_array, 0, 4);
?>
<div class="dashwhitebg mB10">
<div class="dasbmessages">
<h3>Transactions (<?php
echo $count_of_transcation;
?>
New)</h3>
<?php
if ($count_of_transcation > 0) {
foreach ($transaction_array as $row) {
$payer_details = user::user_profile($row['payer_id']);
?>
<div class="dasbmessagesbdr">
<div class="dasbmessagespicdiv"><img src="<?php
echo $URL_SITE;
?>
classes/show_image.php?filename=../images/profile/<?php
echo $payer_details['user_picture'];
?>
&width=45px&heigth=50px" alt="No image" /></div>
<div class="dasbmessagesdatediv"> <br /><?php
echo date('Y/m/d', strtotime($row['payment_date']));
?>
</div>
<div class="dasbmessagescontdiv txtright">
<span class="dashpriceshow">$<?php
示例9: dirname
$basedir = dirname(__FILE__) . "../../";
include $basedir . '/include/actionHeader.php';
if ($_GET['type'] == 'stared') {
$msg_id = $_GET['msg'];
if ($_GET['action'] == 'not_a_stared') {
$affected = inbox::update_msg_status('starred', $msg_id, 1);
}
if ($_GET['action'] == 'all_ready_stared') {
$affected = inbox::update_msg_status('starred', $msg_id, 0);
}
$res_inbox = inbox::select_msg_by_id($msg_id);
while ($mesg = mysql_fetch_assoc($res_inbox)) {
$on_which_reply_did = inbox::select_msg_by_id($mesg['replied_on_id']);
$checkacepteddeniedPost_res = user::checkRentStatus($mesg['reservation_id']);
$checkRentStatusOfUSer = mysql_fetch_assoc($checkacepteddeniedPost_res);
$frnd_user = user::user_profile($mesg['sender_id']);
//print_r($frnd_user);
?>
<div class="picdiv">
<?php
if (!empty($frnd_user['user_picture'])) {
?>
<img src="<?php
echo $URL_SITE;
?>
/classes/show_image.php?filename=../images/profile/<?php
echo $frnd_user['user_picture'];
?>
&width=46px&heigth=45px">
示例10: while
<div class="swaprighttxtR">
<div class="swaplinksbut">
<ul>
<li><p class="digit"> <?php
echo $item_res_num;
?>
</p>Upcoming Rentals</li>
</ul>
</div>
</div>
<!-- -->
<?php
$deliver = '';
$drop = '';
while ($row = mysql_fetch_assoc($item_reserved)) {
$renter_detail = user::user_profile($row['user_id']);
// renter detail
//print_r($renter_detail);
if ($row['end_date'] < date('Y-m-d')) {
$deliver = '<div class="wdthpercent20 left pR10"><p class="font11 color1">Deliver:</p>
<p class="font9 color2">' . date('m/d/y', strtotime($row['issue_date'])) . '</p></div>';
$drop = '<div class="wdthpercent20 left pR10"><p class="font11 color1">Drop Off:</p>
<p class="font9 color2">' . date('m/d/y', strtotime($row['end_date'])) . '</p></div>';
}
if ($row['end_date'] > date('Y-m-d')) {
$deliver = '<div class="wdthpercent20 left pR10"><p class="font11 color1">They will pick up:</p>
<p class="font9 color2">' . date('m/d/y', strtotime($row['issue_date'])) . '</p></div>';
$drop = '<div class="wdthpercent20 left pR10"><p class="font11 color1">They will drop off:</p>
<p class="font9 color2">' . date('m/d/y', strtotime($row['end_date'])) . '</p></div>';
}
?>
示例11: registration_facebook
function registration_facebook($user_id, $fname, $lname, $gender, $email)
{
$sql = "select * from user where user_email='" . $email . "'";
//checks whether email already present or not
$result = mysql_query($sql) or die(mysql_error());
$already = mysql_num_rows($result);
if ($already > 0) {
$user = user::user_profile($result['id']);
return $user;
} else {
$sql = "insert into user set user_fname='" . $fname . "',user_lname='" . $lname . "',user_email='" . $email . "',gender='" . $gender . "',created=now()";
$result = mysql_query($sql);
$latest_id = mysql_insert_id();
if ($latest_id > 0) {
mysql_query('update setting set user_id=' . $latest_id . ',facebook_connect=1');
$sql = "select * from user where id='" . $latest_id . "'";
$result = mysql_query($sql) or die(mysql_error());
$return = mysql_fetch_array($result);
return $return;
}
}
}