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


PHP myclass::get_username_by_mno方法代码示例

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


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

示例1: count

$variables['len'] = count($variables['response']);
?>

<table border="1" cellpadding="0" cellspacing="0" >
	<?php 
$limit_start = 0;
$limit_end = 1;
for ($i = 0; $i < $variables['len']; $i++) {
    //  each msgno
    $variables['msgno'] = intval($variables['response'][$i]['msgno']);
    $variables['mno'] = intval($variables['response'][$i]['mno']);
    $variables['mno1'] = intval($variables['response'][$i]['mno1']);
    // get chat mate
    $variables['mno1'] = $variables['mno'] == $mno ? $variables['mno1'] : $variables['mno'];
    // get username chat mate
    $username = $mc->get_username_by_mno($variables['mno1']);
    // get from fs_comment table via table id and table name from fs_message
    $variables['comment_r'] = $mc->posted_modals_comment_Query(array('comment_query' => 'get-all-comment-by-tbn_and_tbid', 'table_name' => 'fs_message', 'table_id' => intval($variables['msgno']), 'orderby' => 'order by date desc', 'limit_start' => $limit_start, 'limit_end' => $limit_end));
    $variables['comment'] = $variables['comment_r'][0]['comment'];
    $variables['mno'] = intval($variables['comment_r'][0]['mno']);
    $variables['date'] = $variables['comment_r'][0]['date'];
    $fullname = $mc->get_full_name_by_id($variables['mno1']);
    // header title desc
    $mc->header_attribute("OOTD | Trends | Fashion Blogs | Beauty Tips | Fashion Inspiration | Fashion Sponge ", "Fashion Sponge is the easiest & fastest way to: Show your ootd, see the latest trends, discover fashionable people & blogs, get beauty & style tips & find fashion inspiration.", "OOTD | Trends | Fashion Blogs | Beauty Tips | Fashion Inspiration ");
    ?>
		<tr> 
			<td>  
				<?php 
    $mc->member_thumbnail_display($mc->ppic_thumbnail, $variables['mno1'], "{$mc->ppic_thumbnail}", null, '35px;');
    ?>
 
开发者ID:jesus143,项目名称:fs-dev,代码行数:30,代码来源:chat-list.php

示例2: array

                $response = $mc->resize_image(
                    array(
                        'id' =>$table_id,
                        'source' => "$mc->ppic_orginal/$mno.jpg",
                        'destination1' => "$mc->ppic_profile/$mppno.jpg",
                        'destination2' => "$mc->ppic_thumbnail/$mppno.jpg",
                        'width1' => 420,
                        'width2' => 170
                    )
                );

                // $mc->set_notification_info( 'fs_members' , $mno , null  ,  null , 0 , 'change-profile' );
                // $mc->set_session_notification( $mno , 'fs_member_profile_pic' , $mppno , 'updated' , null , null , 'change-profile' , 0 );
                $mc->set_notification_info( 'fs_member_profile_pic' ,  $mppno , null , null , null , 0 ,  'change-profile' );
                 //$mc->go( 'home' );
                 $mc->go( $mc->get_username_by_mno( $mno ) );
                // $mc->go( $mc->get_username_by_mno( $mno ) );
            break;
		case 'profile-timeline':  
			    $mptno = $mc->member_profile_timeline_query( array('mno'=>$mno , 'action'=> 'Update Timeline' , 'type'=>'insert-new-profile-pic-db' ) );
			    $mc->resize_profile_timeline( $mno , $mptno );    
			    $username =$mc->get_username_by_mno( $mno );
			    echo " profile time line cropped <br>"; 	 
				// $mc->set_notification_info( 'fs_member_timeline' , $mptno , null  ,  null , 0 , 'change-profile-cover-photo' ); 
				// $mc->set_session_notification( $mno , 'fs_member_timeline' , $mptno , 'updated' , null , null , 'change-profile-cover-photo' , 0 );    
				$mc->set_notification_info( 'fs_member_timeline' ,  $mptno , null , null , null , 0 ,  'change-profile-cover-photo' );  
				// $this->set_notification_info( $table_name , $table_id , $action , $action1 , $action2 , $status , $noti_type=null  ) 
				$mc->go("$username"); 
			break;
		case 'posted-look': 
				$plno = $mc->postedlook_query( array('mno' =>$mno , 'type'=>'get-latest-plno' ) ); 
开发者ID:jesus143,项目名称:fs-dev,代码行数:31,代码来源:photo.resize.php


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