AddYh.php
6.85 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
166
167
168
169
170
171
172
173
174
175
176
<?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,"yh");
$enews=RepPostStr($_GET['enews'],1);
$url="<a href=ListYh.php".$ecms_hashur['whehref'].">管理優化方案</a> > 增加優化方案";
$r[hlist]=30;
$r[qlist]=30;
$r[bqnew]=30;
$r[bqhot]=30;
$r[bqpl]=30;
$r[bqgood]=30;
$r[bqfirst]=30;
$r[bqdown]=30;
$r[otherlink]=30;
$r[qmlist]=0;
$r[dobq]=1;
$r[dojs]=1;
$r[dosbq]=0;
$r[rehtml]=0;
//複製
if($enews=="AddYh"&&$_GET['docopy'])
{
$id=(int)$_GET['id'];
$r=$empire->fetch1("select * from {$dbtbpre}enewsyh where id='$id'");
$url="<a href=ListYh.php".$ecms_hashur['whehref'].">管理優化方案</a> > 複製優化方案:<b>".$r[yhname]."</b>";
}
//修改
if($enews=="EditYh")
{
$id=(int)$_GET['id'];
$r=$empire->fetch1("select * from {$dbtbpre}enewsyh where id='$id'");
$url="<a href=ListYh.php".$ecms_hashur['whehref'].">管理優化方案</a> -> 修改優化方案:<b>".$r[yhname]."</b>";
}
db_close();
$empire=null;
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="../adminstyle/<?=$loginadminstyleid?>/adminstyle.css" rel="stylesheet" type="text/css">
<title>優化方案</title>
</head>
<body>
<table width="100%" border="0" align="center" cellpadding="3" cellspacing="1">
<tr>
<td>位置:<?=$url?></td>
</tr>
</table>
<form name="form1" method="post" action="ListYh.php">
<table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
<?=$ecms_hashur['form']?>
<tr class="header">
<td height="25" colspan="2">增加優化方案
<input name="enews" type="hidden" id="enews" value="<?=$enews?>"> <input name="id" type="hidden" id="id" value="<?=$id?>">
</td>
</tr>
<tr>
<td width="20%" height="25" bgcolor="#FFFFFF">方案名稱:</td>
<td width="80%" height="25" bgcolor="#FFFFFF"> <input name="yhname" type="text" id="yhname" value="<?=$r[yhname]?>" size="42">
</td>
</tr>
<tr>
<td height="25" bgcolor="#FFFFFF">方案說明:</td>
<td height="25" bgcolor="#FFFFFF"> <textarea name="yhtext" cols="45" rows="4" id="yhtext"><?=ehtmlspecialchars($r[yhtext])?></textarea></td>
</tr>
<tr>
<td height="25" colspan="2">信息列表</td>
</tr>
<tr>
<td height="25" bgcolor="#FFFFFF">後台管理列表:</td>
<td height="25" bgcolor="#FFFFFF"> 顯示
<input name="hlist" type="text" id="hlist" value="<?=$r[hlist]?>" size="8">
天內的信息 <font color="#666666">(0為不限)</font></td>
</tr>
<tr>
<td height="25" bgcolor="#FFFFFF">前台管理列表:</td>
<td height="25" bgcolor="#FFFFFF">顯示
<input name="qmlist" type="text" id="qmlist" value="<?=$r[qmlist]?>" size="8">
天內的信息 <font color="#666666">(0為不限)</font></td>
</tr>
<tr>
<td height="25" bgcolor="#FFFFFF">前台信息列表:</td>
<td height="25" bgcolor="#FFFFFF">顯示
<input name="qlist" type="text" id="qlist" value="<?=$r[qlist]?>" size="8">
天內的信息 <font color="#666666">(0為不限)</font></td>
</tr>
<tr>
<td height="25" colspan="2">標籤調用 </td>
</tr>
<tr>
<td height="25" bgcolor="#FFFFFF">優化範圍:</td>
<td height="25" bgcolor="#FFFFFF"><input name="dobq" type="checkbox" id="dobq" value="1"<?=$r[dobq]==1?' checked':''?>>
標籤調用
<input name="dojs" type="checkbox" id="dojs" value="1"<?=$r[dojs]==1?' checked':''?>>
JS調用
<input name="dosbq" type="checkbox" id="dosbq" value="1"<?=$r[dosbq]==1?' checked':''?>>
會員空間標籤調用</td>
</tr>
<tr>
<td height="25" bgcolor="#FFFFFF">最新信息:</td>
<td height="25" bgcolor="#FFFFFF">調用
<input name="bqnew" type="text" id="hlist3" value="<?=$r[bqnew]?>" size="8">
天內的信息 <font color="#666666">(0為不限)</font></td>
</tr>
<tr>
<td height="25" bgcolor="#FFFFFF">點擊排行:</td>
<td height="25" bgcolor="#FFFFFF">調用
<input name="bqhot" type="text" id="bqnew" value="<?=$r[bqhot]?>" size="8">
天內的信息 <font color="#666666">(0為不限)</font></td>
</tr>
<tr>
<td height="25" bgcolor="#FFFFFF">推薦信息:</td>
<td height="25" bgcolor="#FFFFFF">調用
<input name="bqgood" type="text" id="bqnew2" value="<?=$r[bqgood]?>" size="8">
天內的信息 <font color="#666666">(0為不限)</font></td>
</tr>
<tr>
<td height="25" bgcolor="#FFFFFF">評論排行:</td>
<td height="25" bgcolor="#FFFFFF">調用
<input name="bqpl" type="text" id="bqnew3" value="<?=$r[bqpl]?>" size="8">
天內的信息 <font color="#666666">(0為不限)</font></td>
</tr>
<tr>
<td height="25" bgcolor="#FFFFFF">頭條信息:</td>
<td height="25" bgcolor="#FFFFFF">調用
<input name="bqfirst" type="text" id="bqnew4" value="<?=$r[bqfirst]?>" size="8">
天內的信息 <font color="#666666">(0為不限)</font></td>
</tr>
<tr>
<td height="25" bgcolor="#FFFFFF">下載排行:</td>
<td height="25" bgcolor="#FFFFFF">調用
<input name="bqdown" type="text" id="bqnew5" value="<?=$r[bqdown]?>" size="8">
天內的信息 <font color="#666666">(0為不限)</font></td>
</tr>
<tr>
<td height="25" colspan="2">其它相關</td>
</tr>
<tr>
<td height="25" bgcolor="#FFFFFF">內容頁生成範圍:</td>
<td height="25" bgcolor="#FFFFFF">生成
<input name="rehtml" type="text" id="rehtml" value="<?=$r[rehtml]?>" size="8">
天內的信息 <font color="#666666">(0為不限)</font></td>
</tr>
<tr>
<td height="25" bgcolor="#FFFFFF">相關鏈接檢索範圍:</td>
<td height="25" bgcolor="#FFFFFF"> 查詢
<input name="otherlink" type="text" id="otherlink" value="<?=$r[otherlink]?>" size="8">
天內的信息 <font color="#666666">(0為不限)</font></td>
</tr>
<tr>
<td height="25" bgcolor="#FFFFFF"> </td>
<td height="25" bgcolor="#FFFFFF"> <input type="submit" name="Submit" value="提交">
<input type="reset" name="Submit2" value="重置"></td>
</tr>
</table>
</form>
</body>
</html>