PlNav.php
4.76 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
<?php
define('EmpireCMSAdmin','1');
require("../../class/connect.php");
require("../../class/db_sql.php");
require("../../class/functions.php");
$link=db_connect();
$empire=new mysqlquery();
$editor=1;
//驗證用戶
$lur=is_login();
$logininid=$lur['userid'];
$loginin=$lur['username'];
$loginrnd=$lur['rnd'];
$loginlevel=$lur['groupid'];
$loginadminstyleid=$lur['adminstyleid'];
//ehash
$ecms_hashur=hReturnEcmsHashStrAll();
//驗證權限
//CheckLevel($logininid,$loginin,$classid,"pl");
$gr=ReturnLeftLevel($loginlevel);
$plr=$empire->fetch1("select pldatatbs,pldeftb from {$dbtbpre}enewspl_set limit 1");
$tr=explode(',',$plr['pldatatbs']);
//今日評論
$pur=$empire->fetch1("select lasttimepl,lastnumpl,lastnumpltb,todaytimeinfo,todaytimepl,todaynumpl,yesterdaynumpl from {$dbtbpre}enewspublic_update limit 1");
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>菜單</title>
<link href="../adminstyle/<?=$loginadminstyleid?>/adminstyle.css" rel="stylesheet" type="text/css">
<SCRIPT lanuage="JScript">
function DisplayImg(ss,imgname,phome)
{
if(imgname=="plimg")
{
img=todisplay(dopl,phome);
document.images.plimg.src=img;
}
else if(imgname=="plotherimg")
{
img=todisplay(doplother,phome);
document.images.plotherimg.src=img;
}
else
{
}
}
function todisplay(ss,phome)
{
if(ss.style.display=="")
{
ss.style.display="none";
theimg="../openpage/images/add.gif";
}
else
{
ss.style.display="";
theimg="../openpage/images/noadd.gif";
}
return theimg;
}
function turnit(ss,img)
{
DisplayImg(ss,img,0);
}
</SCRIPT>
</head>
<body topmargin="0">
<br>
<?php
if($gr['dopl'])
{
?>
<table width="100%" border="0" align="center" cellpadding="4" cellspacing="1" class="tableborder" id="doplid">
<tr>
<td height="25" class="header"><img src="../openpage/images/noadd.gif" name="plimg" width="20" height="9" border="0"><a href="#ecms" onMouseUp=turnit(dopl,"plimg"); style="CURSOR: hand">管理評論</a></td>
</tr>
<tbody id="dopl">
<?php
$count=count($tr)-1;
for($i=1;$i<$count;$i++)
{
$thistb=$tr[$i];
$restbname="評論表".$thistb;
$pltbname=$dbtbpre.'enewspl_'.$thistb;
if($thistb==$plr['pldeftb'])
{
$restbname='<b>'.$restbname.'</b>';
}
$exp='|'.$thistb.',';
$addnumr=explode($exp,$pur['lastnumpltb']);
$addnumrt=explode('|',$addnumr[1]);
$addnum=(int)$addnumrt[0];
?>
<tr>
<td height="25" bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#EFEFEF'" onMouseOut="this.style.backgroundColor='#FFFFFF'"> <a href="ListAllPl.php?restb=<?=$tr[$i]?><?=$ecms_hashur['ehref']?>" title="+<?=$addnum?>" target="apmain"><?=$restbname?></a></td>
</tr>
<?php
}
?>
</tbody>
</table>
<br>
<br>
<?php
}
?>
<?php
if($gr['doplf']||$gr['dopltable']||$gr['dopl']||$gr['dopublic'])
{
?>
<table width="100%" border="0" align="center" cellpadding="4" cellspacing="1" class="tableborder" id="doplotherid">
<tr>
<td height="25" class="header"><img src="../openpage/images/noadd.gif" name="ztimg" width="20" height="9" border="0"><a href="#ecms" onMouseUp=turnit(doplother,"plotherimg"); style="CURSOR: hand">其他管理</a></td>
</tr>
<tbody id="doplother">
<?php
if($gr['doplf'])
{
?>
<tr>
<td height="25" bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#EFEFEF'" onMouseOut="this.style.backgroundColor='#FFFFFF'"> <a href="ListPlF.php<?=$ecms_hashur['whehref']?>" target="apmain">自定義評論字段</a></td>
</tr>
<?php
}
?>
<?php
if($gr['dopl'])
{
?>
<tr>
<td height="25" bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#EFEFEF'" onMouseOut="this.style.backgroundColor='#FFFFFF'"> <a href="DelMorePl.php<?=$ecms_hashur['whehref']?>" target="apmain">批量刪除評論</a></td>
</tr>
<tr>
<td height="25" bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#EFEFEF'" onMouseOut="this.style.backgroundColor='#FFFFFF'"> <a href="plface.php<?=$ecms_hashur['whehref']?>" target="apmain">管理評論表情</a></td>
</tr>
<?php
}
?>
<?php
if($gr['dopublic'])
{
?>
<tr>
<td height="25" bgcolor="#FFFFFF" onMouseOver="this.style.backgroundColor='#EFEFEF'" onMouseOut="this.style.backgroundColor='#FFFFFF'"> <a href="SetPl.php<?=$ecms_hashur['whehref']?>" target="apmain">設置評論參數</a></td>
</tr>
<?php
}
?>
</tbody>
</table>
<?php
}
?>
<br>
</body>
</html>
<?php
db_close();
$empire=null;
?>