FriendClass.php
2.81 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<?php
if(!defined('InEmpireCMS'))
{
exit();
}
?>
<?php
$public_diyr['pagetitle']='好友分類';
$url="<a href=../../../../>首頁</a> > <a href=../../cp/>會員中心</a> > <a href=../../friend/>好友列表</a> > 管理分類";
require(ECMS_PATH.'e/template/incfile/header.php');
?>
<script>
function DelFriendClass(cid)
{
var ok;
ok=confirm("確認要刪除?");
if(ok)
{
self.location.href='../../doaction.php?enews=DelFriendClass&doing=1&cid='+cid;
}
}
</script>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="84%" valign="top"> <div align="center">
<table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
<form name="form1" method="post" action="../../doaction.php">
<tr class="header">
<td height="25">增加好友分類</td>
</tr>
<tr>
<td height="25" bgcolor="#FFFFFF">分類名稱:
<input name="cname" type="text" id="cname"> <input type="submit" name="Submit" value="增加">
<input name="enews" type="hidden" id="enews" value="AddFriendClass">
<input name="doing" type="hidden" id="doing" value="1"></td>
</tr>
</form>
</table>
<br>
<table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
<tr class="header">
<td width="10%" height="25"> <div align="center">ID</div></td>
<td width="56%"><div align="center">分類名稱</div></td>
<td width="34%"><div align="center">操作</div></td>
</tr>
<?php
while($r=$empire->fetch($sql))
{
?>
<form name=form method=post action=../../doaction.php>
<tr bgcolor="#FFFFFF">
<td height="25"> <div align="center">
<?=$r[cid]?>
</div></td>
<td><div align="center">
<input name="doing" type="hidden" id="doing" value="1">
<input name="enews" type="hidden" id="enews" value="EditFriendClass">
<input name="cid" type="hidden" value="<?=$r[cid]?>">
<input name="cname" type="text" id="cname" value="<?=$r[cname]?>">
</div></td>
<td><div align="center">
<input type="submit" name="Submit2" value="修改">
<input type="button" name="Submit3" value="刪除" onclick="javascript:DelFriendClass(<?=$r[cid]?>);">
</div></td>
</tr>
</form>
<?php
}
?>
</table>
</div></td>
</tr>
</table>
<?php
require(ECMS_PATH.'e/template/incfile/footer.php');
?>