当前位置: 首页>>代码示例>>PHP>>正文


PHP myclass::user方法代码示例

本文整理汇总了PHP中myclass::user方法的典型用法代码示例。如果您正苦于以下问题:PHP myclass::user方法的具体用法?PHP myclass::user怎么用?PHP myclass::user使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在myclass的用法示例。


在下文中一共展示了myclass::user方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1:

        $get_def_user_profile_percentage = get_def_user_profile_percentage($ovarating);
        $get_def_mem_rating_look = get_def_mem_rating_look($my_rate_look);
        if ($comment[$i][2] == $_SESSION['mno']) {
            $shadow = 'box-shadow: inset 0px 0px 4px 0px #000;';
            // $borders = 'border: 2px solid #000;';
        } else {
            $shadow = '';
            // $borders = 'border: 1px solid #000;';
        }
        // I_liked_store_session($comment[$i][0],$_SESSION['mno']);
        /*
        				$plcno = $comment[$i][0];
        				echo  "session comment id  $plcno = ".$_SESSION["total_like_$plcno"].' I LIKED ? =   '.$_SESSION["I_liked_$plcno"].'<br>';
        */
        $c++;
        $mem_info = $mc->user($comment[$i][2]);
        // echo "$cno";
        if (strlen($comment[$i][4]) < 224) {
            ?>
<style type="text/css">
				   /*start css*/
				   /* new comment css */
 
						#comment_<?php 
            echo $cno;
            ?>
 {						 
							width: 540px;
							/*height: 40px;*/
							/*border: 1px solid #000;*/
							/*border-radius: 0px 0px 0px 20px;*/
开发者ID:jesus143,项目名称:fs-dev,代码行数:31,代码来源:look-comments_display.php

示例2: topmember

function topmember($page)
{
    $mc = new myclass();
    $tm = $mc->top_member();
    $initpage = $page;
    $endpage = $page + 6;
    // $_SESSION['Tuser'] = count($tm) ;
    // $_SESSION['pageNum'] = $initpage;
    if ($initpage < count($tm)) {
        # code...
        for ($i = $initpage; $i < $endpage; $i++) {
            if ($i < count($tm)) {
                $mno = intval($tm[$i][0]);
                $mem_info = $mc->user($mno);
                echo "\n\t\t\t\t\t\t\t\t\t<style>\n\t\t\t\t\t\t\t\t\t\t.stands b{\n\t\t\t\t\t\t\t\t\t\t\tcolor:#000\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t</style>\n\t\t\t\t\t\t\t\t";
                echo "\n\t\t\t\t\t\t\t\t\t<li >\n\t\t\t\t\t\t\t\t\t\t<div id='Tframe'>";
                // echo"<div style='display:none' ><a href='".$mem_info['username']."'><img style='width:287px' src='images/members/$mno.jpg'  /></a></div>";
                if (file_exists("../images/members/{$mno}.jpg")) {
                    echo "\n\t\t\t\t\t\t\t\t\t\t\t\t<a href='" . $mem_info['username'] . "' class='with_avatar_big' id='{$mno}' >\n\t\t\t\t\t\t\t\t\t\t\t\t<span id='about_with_profile'>\n\n  \t\t\t\t\t\t\t\t\t\t\t\t\t<span id='about_container';  class='a_{$mno}'; > \n  \t\t\t\t\t\t\t\t\t\t\t\t\t</span> \n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t<span id='accup_state';  class='a_{$mno}' >  \n  \t\t\t\t\t\t\t\t\t\t\t\t\t\t{$mem_info['occupation']} living in {$mem_info['city']}, {$mem_info['state_']} \n  \t\t\t\t\t\t\t\t\t\t\t\t\t</span>   \t\t\t\t\t\n\n  \t\t\t\t\t\t\t\t\t\t\t\t\t<span id='about_contain';  class='a_{$mno}' >  \n  \t\t\t\t\t\t\t\t\t\t\t\t\t \t<b id='red' >About:</b>  {$m}{$mem_info['about']}  \n  \t\t\t\t\t\t\t\t\t\t\t\t\t</span> \n\n  \t\t\t\t\t\t\t\t\t\t\t\t\t<span id='date_member'  class='a_{$mno}' > \n  \t\t\t\t\t\t\t\t\t\t\t\t\t\tMember Since " . arrangedate($mem_info['datemember']) . " \n  \t\t\t\t\t\t\t\t\t\t\t\t\t</span>\n\n\t\t\t\t\t\t\t\t\t\t\t\t</span>\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t<img width=100% src='images/members/{$mno}.jpg' style='width:287px;height:300px' />\n\t\t\t\t\t\t\t\t\t\t\t\t</a>";
                } else {
                    echo "\n\t\t\t\t\t\t\t\t\t\t\t\t<a href='" . $mem_info['username'] . "' class='no_avatar_big'  id='{$mno}'>\n\t\t\t\t\t\t\t\t\t\t\t\t<span id='about_no_profile'>\n\n\t  \t\t\t\t\t\t\t\t\t\t\t\t<span id='about_container';  class='a_{$mno}'; > \n\t  \t\t\t\t\t\t\t\t\t\t\t\t</span> \n\n\t\t\t\t\t\t\t\t\t\t\t\t\t<span id='accup_state';  class='a_{$mno}' >  \n\t  \t\t\t\t\t\t\t\t\t\t\t\t\t{$mem_info['occupation']} living in {$mem_info['state_']}  \n\t  \t\t\t\t\t\t\t\t\t\t\t\t</span> \n\n\t  \t\t\t\t\t\t\t\t\t\t\t\t<span id='about_contain';  class='a_{$mno}' > \n\t  \t\t\t\t\t\t\t\t\t\t\t\t\t<b id='red' >About:</b>  {$mem_info['about']} \n\t  \t\t\t\t\t\t\t\t\t\t\t\t</span> \n\n\t  \t\t\t\t\t\t\t\t\t\t\t\t<span id='date_member'  class='a_{$mno}' >\n\t  \t\t\t\t\t\t\t\t\t\t\t\t\t Member Since " . arrangedate($mem_info['datemember']) . " \n\t  \t\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t\t\t\t\t<img width=100% src='images/members/0.jpg' style='width:287px;height:300px' />\n\t\t\t\t\t\t\t\t\t\t\t\t</a>";
                }
                echo "<div style='padding:5px;'></div>\n\n\t\t\t\t\t\t\t\t\t\t\t<table width=100% class='stands' border=0>";
                // echo"<div style='display:none' ><a href='".$mem_info["username"]."'><img width=100% src='images/members/.$mno.jpg'   /></a></div>";
                if (file_exists("../images/members/{$mno}.jpg")) {
                    echo "<td width=1><a href='{$mem_info['username']}'><img src='images/members/{$mno}.jpg'  width=50px height=50px style='margin-top:8px' /></a></td>";
                } else {
                    echo "<td width=1><a href='{$mem_info['username']}'><img src='images/members/0.jpg'  width=50px height=50px style='margin-top:8px' /></a></td>";
                }
                echo "\n\t\t\t\t\t\t\t\t\t\t\t\t<td style='padding:5px;'>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<a href='" . $mem_info["username"] . "' style='color:#454545;font:15px helveticaBold;text-decoration:none;//text-transform:uppercase'>" . $mem_info["firstname"] . " " . $mem_info["lastname"] . "</a><br>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t<span style='color:#454545;font:10px helvetica' >\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<b>{$mem_info['tfollowers']}</b> Follower | Folowing <b>{$mem_info['tfollowed']}</b>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</span><br>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<span style='color:#454545;font:10px helvetica' >\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t <b>{$mem_info['tplook']}</b> Total Looks | Total Blog <b>0</b>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</span> <br>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<span style='color:#454545;font:10px helvetica' >\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<b> " . $tm[$i][3] . "</b> Total Rating | OVERALL RATING <b>" . $tm[$i][1] . " % \n\t\t\t\t\t\t\t\t\t\t\t\t\t</span> <br>";
                // <span style='color:#454545;font:10px helvetica' >
                // 	<b>".$tm[$i][2]." </b> Total Points | ".$tm[$i][3]." Total Rating
                // </span><br>
                // <table style='width:auto;color:#454545;font:bold 10px helvetica'>
                // 	<td>   <b>$mem_info[tdrip]</b></td><td><img src='images/drip.png' height=10 /></td>
                // 	<td> | <b>$mem_info[tlove]</b></td><td><img src='images/love.png' height=10 /></td>
                // 	<td> | OVERALL RATING <b>".$tm[$i][1]." %  $endpage < ".count($tm)." </b></td><tr>
                // </table>
                echo "\n\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t<td valign=center ><br><img src='images/person.jpg' /></td>\n\t\t\t\t\t\t\t\t\t\t\t</table>\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</li>\n\t\t\t\t\t\t\t\t";
            } else {
                $i = $endpage;
            }
        }
    }
}
开发者ID:jesus143,项目名称:fs-dev,代码行数:45,代码来源:program.php

示例3: reply_print

function reply_print($plcno, $plcr_no, $allow_reply, $isMainReply = null, $mno = null, $isReplyIndented = null, $userprofilepicpath = '../../../')
{
    $mc = new myclass();
    // echo "plcr_no = $plcr_no <br>";
    $c = 0;
    $mc->auto_detect_path();
    if ($isMainReply == 'YES') {
        $replies = selectV1('*', 'fs_plcm_reply', array('plcno' => $plcno, 'operand1' => 'and', 'mno' => $mno), 'order by plcr_no desc', 'limit 1');
    } else {
        $replies = selectV1('*', 'fs_plcm_reply', array('plcr_no' => $plcr_no));
    }
    // print_r($replies);
    $rplcr_no = $replies[$c]['plcr_no'];
    $plcrno = $rplcr_no;
    $rplcno = $replies[$c]['plcno'];
    $replied_no = $replies[$c]['replied_no'];
    $rmno = $replies[$c]['mno'];
    $rplcr_message = $replies[$c]['plcr_message'];
    $rclen = strlen($rplcr_message);
    $rplcr_date = $replies[$c]['plcr_date'];
    $rmem_info = $mc->user($rmno);
    $rdformat = $mc->split_date('', '', '', $rplcr_date);
    $rmy_rate_look = my_trate_for_look($rmno, $_SESSION['plno']);
    $ryou_liked = check_if_user_liked($plcrno, $_SESSION['mno']);
    $ryou_disliked = check_if_user_disliked($plcrno, $_SESSION['mno']);
    $likeDislike_style = 'height:13px;cursor: pointer;';
    // if ( $rclen< 224) {
    // echo "if comment len lessthan $rclen ";
    $style = 'height: auto; border: 1px solid none;';
    // $cpadding = 'border: 1px solid red; height:20px;';
    // }
    // else {
    // echo "else comment len greater than $rclen ";
    // $style = 'height: auto; border: 1px solid  none; width:500px';
    // }
    // echo " i like =  $ryou_liked  | i disliked  $ryou_disliked <br>";
    // $you_liked =replyYouLikeThis($rplcno,$rmno);
    // echo "rno = $rplcr_no ";
    $ovarating = $mc->user_profile_percentage($rmno);
    $member_avatar = $mc->ppic_thumbnail . "/" . $rmno . ".jpg";
    // echo " member avatar $member_avatar";
    ?>

 

							<table border=0   id='replied_comment_table_<?php 
    echo $plcrno;
    ?>
' class='rcomment_container' style='display:block'> 
								<td  > 
									<table border=0   id='img' class='img' > 
										<td>	
										<?php 
    $mc->member_thumbnail_display($mc->ppic_thumbnail, $rmno, "{$userprofilepicpath}" . $mc->ppic_thumbnail);
    ?>
											<!-- <img id='rprofile_pic_<?php 
    echo $cno;
    ?>
'  src=" <?php 
    echo "{$member_avatar}";
    ?>
" title="<?php 
    echo strtoupper($rmem_info['firstname'] . ' ' . $rmem_info['lastname']);
    ?>
"  onclick='look_comment_attr_clicked("<?php 
    echo "profile_" . $comment[$i][2];
    ?>
")' >  -->
										
										</td><tr>
										<td><span class='red_bold' id='percentage' title='<?php 
    echo $get_def_user_profile_percentage;
    ?>
' ><?php 
    echo "{$ovarating}% ";
    ?>
</span></td>
									</table>
									<div id='rcomment_body_container' class='rcomment_body_container'> 
										<div id='comment_header_container' > 
											<table  border=0   > 
												<td><span id='rfull_name_<?php 
    echo $rplcr_no;
    ?>
' class='blue_bold' title="<?php 
    echo strtoupper($rmem_info['firstname'] . ' ' . $rmem_info['lastname']);
    ?>
"  ><?php 
    echo strtoupper($rmem_info['firstname'] . ' ' . $rmem_info['lastname']);
    ?>
  </span> </td> <td></td><td></td>

												<td><span class='blue_bold' > ( </span> <span  id='gender' class='blue'  > <?php 
    echo strtoupper($rmem_info['sub_gen']);
    ?>
  RATED </span> 
													<span class='rating_view' >

														<?php 
    $rmy_rate_look = 1;
//.........这里部分代码省略.........
开发者ID:jesus143,项目名称:fs-dev,代码行数:101,代码来源:test_reply.php


注:本文中的myclass::user方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。