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


PHP myclass::split_date方法代码示例

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


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

示例1: intval

            $comment = $st->set_and_show_more_comments($_SESSION['plcnos_sortings'], $showMore_start, $showMore_stop);
            if ($comment == 0) {
                $_SESSION['cTblens'] = 0;
            } else {
                $_SESSION['cTblens'] = intval(count($comment));
            }
            $comment_len = count($comment);
        }
    }
}
if ($comment == 0) {
} else {
    $c = 0;
    for ($i = 0; $i < $comment_len; $i++) {
        $cno = $comment[$i][0];
        $dformat = $mc->split_date('', '', '', $comment[$i][3]);
        $my_rate_look = my_trate_for_look($comment[$i][2], $_SESSION['plno']);
        $ovarating = $mc->user_profile_percentage($comment[$i][2]);
        $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>';
开发者ID:jesus143,项目名称:fs-dev,代码行数:31,代码来源:look-comments_display.php

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