Example #1
0
 }
    }).mouseout(function(){
      //  $(this).removeClass('red');
		 $(this).attr('rel',0);
    });
});
</script>

<div id="wall"> <br />
  <div class="bluebox" >
    <div class="blueboxcontent">
      <? if(!empty($msg)): 
	  
	  ?>
      <?php foreach ($msg as $ms)  : ?>
      <? $message = get_message_by_id($ms); ?>
      <? // p( $message); ?>
      <? $thread = CI::model('messages')->messagesThread($message['id']);	?>
      <? if(!empty($thread)):
		//$message = $thread[0];
		?>
      <div  id="messageItem-<?php echo $message['id']?>" class="inbox_msg">
        <?php $your_id = $user_id ;
 
 if(intval($your_id ) == intval($message['from_user'])){
	 $between1 = 'you';
	 
	 $between1_link = profile_link($message['from_user']);
	 
	 $contevsation_with = $message['to_user'];
	  $between2 = user_name(intval($message['to_user']), 'first'); 
Example #2
0
echo '<!-- 导航条 -->';
show_bar();
echo '<!-- 导航条结束 -->
<!-- 主体部分 -->';
//print_r($user);
?>
    <?php 
echo '<div class="container">';
show_alert();
echo '</div>';
global $message;
if (!@$_GET['messageid']) {
    header("location: messagelist.php?action=err&mes=信息不存在!");
    exit;
}
$message = get_message_by_id($_GET['messageid']);
show_message($message);
?>





<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="js/jquery.js"></script>
<script src="js/bootstrap.min.js"></script>
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
<script src="js/ie10-viewport-bug-workaround.js"></script>
</body>
Example #3
0
function comment_message($messageid, $userid, $content)
{
    if (get_user_by_id($userid) and get_message_by_id($messageid)) {
        if (get_row_count("comment", "WHERE messageid = {$messageid} AND userid = {$userid}")) {
            return '您已评论过该状态!无法再次评论';
        } else {
            $a = "INSERT INTO comment(messageid, userid, content) VALUE('{$messageid}', '{$userid}' , '{$content}')";
            $r = mysql_query($a) or die(mysql_error());
            return false;
        }
    } else {
        return '用户名或状态不存在!';
    }
}