<?php foreach(PageContext::$response->message_details->records as $message){ ?>
           
            <div class="row">
                <div class="colside1">
                    <div class="colside1_pic">
                        <a href="<?php echo PageContext::$response->baseUrl;?>profile/<?php echo $message->user_alias;?>"><img src="<?php if($message->user_image_name==''){echo PageContext::$response->userImagePath;?>small/member_noimg.jpg<?php }else{?><?php echo PageContext::$response->userImagePath;?>small/<?php echo $message->user_image_name;}?>"></a>
                    </div>
                    <div class="clear"></div>
                </div>
                <div class="colmiddle" style="width:500px">
                    <h6 class="normal_head"><a href="#" onclick="return show_message(<?php echo $message->message_id; ?>)"><?php echo stripslashes($message->message_subject);?></a></h6>
                    <h5 class="normal_user"><a href="<?php echo PageContext::$response->baseUrl;?>profile/<?php echo $message->user_alias;?>"><?php echo $message->user_firstname.' '.$message->user_lastname;?></a></h5>
                     <p class="mesage_txt">
                        <?php echo stripslashes(substr($message->message_detail,0,140));?>
                    </p>
					
					<div class="replymessage">
						<a name="reply_message" id="<?php echo $message->message_id; ?>" onclick="return reply_message(<?php echo $message->user_id; ?>,'<?php echo $message->message_subject; ?>')" title="Reply Message"  src="#">Reply</a>
					</div>
					<div class="fullmessage">
						<a href="#" onclick="return show_message(<?php echo $message->message_id; ?>)">Show full Message</a>
					</div>
					<div class="deletemessage">
						<a href="#">Delete</a>
					</div>
					
					
					
                </div>
                <div class="colside3" style="width:60px;">
                    
                       
                        <span class="floatright">
                        <h4 class="msg_date_1"><?php echo date('m/d/Y',time($message->message_date));?></h4>
                        </span>

                </div>
                
            </div>
			<?php }?>