當前位置: 首頁>>代碼示例>>PHP>>正文


PHP myclass::print_look_comment_v1方法代碼示例

本文整理匯總了PHP中myclass::print_look_comment_v1方法的典型用法代碼示例。如果您正苦於以下問題:PHP myclass::print_look_comment_v1方法的具體用法?PHP myclass::print_look_comment_v1怎麽用?PHP myclass::print_look_comment_v1使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在myclass的用法示例。


在下文中一共展示了myclass::print_look_comment_v1方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1:

} else {
    $rate = 'dislike';
}
switch ($type) {
    case 'thumbs-up-or-down':
        $mc->add_look_comment_thumb_up_or_down($plcno, $mno, $plcld_action, $dtime);
        // $action =   "<span class='fs-text-red'> commented </span> ";
        // $mc->set_session_notification( $mno , $table_name , $table_id , $action , $comment );
        // $mc->set_notification_info( 'postedlooks' , $plno , "<span class='fs-text-red'>$rate</span> a comment" , $mno2 , 0 );
        $response = select_v3('posted_looks_comments', '*', "plcno = {$plcno}");
        $mno2 = $response[0]['mno'];
        $comment = $response[0]['msg'];
        $mc->set_notification_info('postedlooks', $plno, $rate, null, null, 0, 'rate_comment', $mno2, $comment);
        break;
    default:
        // echo " default";
        //this is the new version comment
        // lookdetails-dev.php is using this one
        $mc->print_look_comment_v1($mno, $plno, $comment, $post_comment, $dtime, $st, $nexprev, $_SESSION['sort_comment'], '../../../');
        /*
        	//this is the old version comment 
        	//lookdetails.php is using this one
        	$mc->post_look_comment(  $mno , $plno , $comment , $post_comment , $dtime , $st , $nexprev ,  $_SESSION['sort_comment'] , '../../../'  ); 	 
        */
        // $mc->set_notification_info( 'postedlooks' , $plno , "  <span class='fs-text-red'>commented</span> says: $comment " , $mno2 , 0 );
        $action = "<span class='fs-text-red'> commented </span> ";
        $mc->set_session_notification($mno, 'postedlooks', $plno, $action, $comment);
        break;
}
?>
  
開發者ID:jesus143,項目名稱:fs-dev,代碼行數:30,代碼來源:look-comments_display.php

示例2:

                                    <!--Reply Text-->
                                    <div>
                                        <img src="fs_folders/images/details/grey-comment-icon.png"><a href="#"> <span class="red font-arial comment-reply">REPLY</span> </a>
                                        <img class="like" src="http://localhost/fs/new_fs/alphatest/fs_folders/images/genImg/commen-like-unlike.png"> <span class="like-dislike-rating">32</span>
                                        <img class="dislike" src="http://localhost/fs/new_fs/alphatest/fs_folders/images/genImg/comment-dislike-un-disliked.png"> <span class="like-dislike-rating">100</span>
                                    </div>
                                </div>
                            </li>
                            <?php 
// $plno = 10;
$st = null;
$dtime = null;
$comment1 = null;
$profilepath = null;
$mc->print_look_comment_v1($mno, $plno, $comment1, 'init', $dtime, $st, $nexprev = null, $sort = 'order by plcno desc', $profilepath = null);
?>
                        </ul>


                        <div style="clear:both"> </div>

                        <ul id="look-comment-cotainer-ul"  style="width: 783px;margin-left: -41px;margin-top: 18px;" >
                            <li class="media border-top "  >
                                   <?php 
$mc->print_next_prev_numbers($np, $plno, null, 'loader-up');
?>
                            </li>
                        </ul>

                        <div style="clear:both"> </div>
開發者ID:jesus143,項目名稱:fs-dev,代碼行數:30,代碼來源:lookdetails-dev.php


注:本文中的myclass::print_look_comment_v1方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。