<!--中间内容-->
<p id=
"zhongjian"
>
<p id=
"kuangjia"
style=
"height: 550px;width: 620px; margin: 0px auto;border: 1px solid gainsboro;background-color: white;"
>
<p id=
"neirong"
style=
"height: 400px;width: 600px;"
>
<p style=
"height: 100px;width: 620px;background-image: url(../img/bj4.jpg);"
>
$uid
=
$_SESSION
[
"uid"
];
$sql
=
"select * from users where uid='zhangsan'"
;
$arr
=
$db
->query(
$sql
);
foreach
(
$arr
as
$v
)
{
echo
"
<p style='height:100px;float:left;width:100px;float:left;'>
<p style='border:2px solid grey;height:84px;width:84px;margin:7px auto; border-radius:10px;overflow:hidden'>
<img src='{
$v
[6]}' height='80px' width='80px'/>
</p>
</p>
<p style='height:100px;width:500px;float:left;'>
<p style='height:50px;width:500px;text-align:left;line-height:50px'>
亲爱的店主
</p>
<p style='height:50px;width:500px;text-align:left;'>个性签名:
<input type='text' placeholder='不读书怎么对得起今天!' style='width:280px'>
</p>
</p>
";
}
?>
</p>
<p style=
"height: 300px;width: 620px;overflow: auto;overflow-x:hidden ;"
><br>
<?php
$uid
=
$_SESSION
[
"uid"
];
$sql3
=
"select * from users where uid='{$uid}'"
;
$arr3
=
$db
->query(
$sql3
);<br>
$sql2
=
"select * from duihua where uid='{$uid}' or jsid='{$uid}' order by dhtime"
;
$arr2
=
$db
->query(
$sql2
);
foreach
(
$arr2
as
$n
)
{<br>
if
(
$n
[2]=='zhangsan')
{
echo
"<p style='height:100px;width:600px;'>
<p style='height:100px;width:250px;float:left'>
<p style='height:20px;width:250px;font-size:13px;padding-left:20px'>
{
$n
[6]}</p>
<p style='height:80px;width:50px;float:left'>
<p style='height:50px;width:50px;margin:0px auto; border-radius:90px;overflow:hidden;'>
<img src='{
$v
[6]}' height='50px' width='50px'/>
</p>
</p>
<p style='min-height:40px;width:200px;float:left;background-color:cornflowerblue; border-bottom-right-radius: 10px;border-top-right-radius: 10px;border-top-left-radius: 40px;border-bottom-left-radius: 40px;'>
<p style='padding-left:20px; line-height:40px'>
{
$n
[4]}</p>
</p>
</p></p>";
} <br>
if
(
$n
[2]==
$uid
)
{
echo
"<p style='height:100px;width:600px;margin-right:20px'>
<p style='height:100px;width:250px; float:right'>
<p style='height:20px;width:250px;font-size:13px;padding-right:20px'>
{
$n
[6]}</p>
<p style='height:80px;width:50px;float:right'>
<p style='height:50px;width:50px;margin:0px auto; border-radius:90px;overflow:hidden;'>
<img src='{
$arr3
[0][6]}' height='50px' width='50px'/>
</p>
</p>
<p style='min-height:40px;width:200px;float:right;background-color:pink; border-bottom-left-radius: 10px;border-top-left-radius: 10px;border-top-right-radius: 40px;border-bottom-right-radius: 40px;'>
<p style='padding-left:20px; line-height:40px'>
{
$n
[4]}</p>
</p>
</p></p>";
}
}
?>
</p>
</p> <!--id=
"neirong"
--><br>
<form role=
"form"
>
<p
class
=
"form-group"
>
<textarea
class
=
"form-control"
rows=
"3"
id=
"words"
></textarea>
</p>
</form>
<p id=
"fs"
style=
"height: 50px; width: 600px;text-align: right; padding-right: 50px;"
>
<button type=
"button"
class
=
"btn btn-success fasong"
>发送</button>
</p>
</p>
</p> <!--id=zhongjian-->