friend.php
2.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<?php
if(!defined('InEmpireCMS'))
{
exit();
}
?>
<?php
$public_diyr['pagetitle']='好友列表';
$url="<a href=../../../>首頁</a> > <a href=../cp/>會員中心</a> > 好友列表";
require(ECMS_PATH.'e/template/incfile/header.php');
?>
<table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
<form name="form1" method="post" action="">
<tr>
<td width="50%" height="30" bgcolor="#FFFFFF">選擇分類:
<select name="cid" id="select" onchange=window.location='../friend/?cid='+this.options[this.selectedIndex].value>
<option value="0">顯示全部</option>
<?=$select?>
</select></td>
<td width="50%" bgcolor="#FFFFFF"><div align="right">[<a href="FriendClass/">管理分類</a>] [<a href="add/?fcid=<?=$cid?>">添加好友</a>] </div></td>
</tr>
</form>
</table>
<br>
<table width="100%" border="0" cellpadding="3" cellspacing="1" class="tableborder">
<form name=favaform method=post action="../doaction.php" onsubmit="return confirm('確認要操作?');">
<input type=hidden value=hy name=enews>
<tr class="header">
<td width="5%" height="25"><div align="center"></div></td>
<td width="30%"><div align="center">用戶名</div></td>
<td width="45%"><div align="center">備註</div></td>
<td width="20%"><div align="center">操作</div></td>
</tr>
<?php
while($r=$empire->fetch($sql))
{
?>
<tr bgcolor="#FFFFFF">
<td height="25"> <div align="center"><img src="../../data/images/man.gif" width="16" height="16" border=0></div></td>
<td> <div align="center"><a href="../ShowInfo/?username=<?=$r[fname]?>" target=_blank>
<?=$r[fname]?>
</a></div></td>
<td> <div align="center">
<input name="fsay[]" type="text" id="fsay[]" value="<?=stripSlashes($r[fsay])?>" size="32">
</div></td>
<td> <div align="center">[<a href="add/?enews=EditFriend&fid=<?=$r[fid]?>&fcid=<?=$cid?>">修改</a>]
[<a href="../doaction.php?enews=DelFriend&fid=<?=$r[fid]?>&fcid=<?=$cid?>" onclick="return confirm('確認要刪除?');">刪除</a>]</div></td>
</tr>
<?php
}
?>
<tr bgcolor="#FFFFFF">
<td height="25" colspan="4">
<?=$returnpage?></td>
</tr>
</form>
</table>
<?php
require(ECMS_PATH.'e/template/incfile/footer.php');
?>