" class="user-linda" style="display:block;width:40%;<?php 
if ($user['id'] == 10086) {
    echo 'margin-left: 55%';
}
?>
">
	<span class="msg-block" style="border-radius:10px; left:25px;">
    	<img class="userhead" src="<?php 
echo $user['headUrl'];
?>
" alt=""><strong><?php 
echo $user['nickname'];
?>
</strong> 
    	<span class="time"><?php 
echo JY_timeFormat($pubTime);
?>
</span>
    	<?php 
if (isset($resUrl) && $resUrl != "") {
    ?>
    	<span class="msg"><img alt="img" src="<?php 
    echo $resUrl;
    ?>
" width="100px"></span>
    	<?php 
} else {
    ?>
    	<span class="msg"><?php 
    echo $content;
    ?>
Exemple #2
0
"  class="user-linda" style="display: block;width:40%;<?php 
    if ($item['user']['id'] == 10086) {
        echo 'margin-left: 55%';
    }
    ?>
">
	                	<span class="msg-block" style="border-radius: 10px;left: 25px;">
		                	<img class="userhead" src="<?php 
    echo $item['user']['headUrl'];
    ?>
" alt=""><strong><?php 
    echo $item['user']['nickname'];
    ?>
</strong> 
		                	<span class="time"><?php 
    echo JY_timeFormat($item['pubTime']);
    ?>
</span>
		                	<?php 
    if ($item['type'] == '0') {
        ?>
		                	<span class="msg" style="display:block;overflow:auto;word-break:break-all;"><?php 
        echo $item['content'];
        ?>
</span>
		                	<?php 
    } elseif ($item['type'] == '1') {
        ?>
		                	<span class="msg"><img width="120" src="<?php 
        echo $item['resUrl'];
        ?>