RepTemp.php
6.92 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
<?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,"template");
$enews=$_POST['enews'];
if($enews)
{
hCheckEcmsRHash();
}
if($enews=="RepTemp")
{
include("../../class/tempfun.php");
DoRepTemp($_POST,$logininid,$loginin);
}
$gid=(int)$_GET['gid'];
$gname=CheckTempGroup($gid);
$urlgname=$gname." -> ";
$url=$urlgname."<a href=RepTemp.php?gid=$gid".$ecms_hashur['ehref'].">批量替換模板內容</a>";
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">
<title>批量替換模板內容</title>
<link href="../adminstyle/<?=$loginadminstyleid?>/adminstyle.css" rel="stylesheet" type="text/css">
<script>
function CheckAll(form)
{
for (var i=0;i<form.elements.length;i++)
{
var e = form.elements[i];
if (e.name != 'chkall')
e.checked = form.chkall.checked;
}
}
</script>
</head>
<body>
<table width="100%" border="0" align="center" cellpadding="3" cellspacing="1">
<tr>
<td height="25">位置:<?=$url?></td>
</tr>
</table>
<form name="form1" method="post" action="RepTemp.php" onsubmit="return confirm('確認要替換?');">
<table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
<?=$ecms_hashur['form']?>
<tr class="header">
<td height="25"><div align="center"><strong>批量替換模板內容</strong>
<input name="enews" type="hidden" id="enews" value="RepTemp">
<input name="gid" type="hidden" id="gid" value="<?=$gid?>">
</div></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="25"><table width="100%" border="0" align="center" cellpadding="3" cellspacing="1">
<tr>
<td width="21%" height="23"><div align="center"> </div>
<div align="center"><strong>原字符</strong></div></td>
<td width="79%" height="23"><textarea name="oldword" cols="78" rows="8" id="textarea3"></textarea></td>
</tr>
<tr>
<td height="23"><div align="center"><strong>新字符</strong></div></td>
<td height="23"><textarea name="newword" cols="78" rows="8" id="textarea4"></textarea></td>
</tr>
</table></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="25"><div align="center">
<table width="98%" border="0" cellspacing="1" cellpadding="3">
<tr>
<td width="16%" height="25"> <div align="left">
<input name="classtemp" type="checkbox" id="classtemp" value="1">
封面模板</div></td>
<td width="16%"> <div align="left">
<input name="bqtemp" type="checkbox" id="bqtemp" value="1">
標籤模板</div></td>
<td width="16%"> <div align="left">
<input name="listtemp" type="checkbox" id="listtemp" value="1">
列表模板</div></td>
<td width="16%"> <div align="left">
<input name="newstemp" type="checkbox" id="classtemp3" value="1">
內容模板</div></td>
<td width="16%"> <div align="left">
<input name="searchtemp" type="checkbox" id="newstemp" value="1">
搜索模板</div></td>
</tr>
<tr>
<td height="25"> <div align="left">
<input name="pltemp" type="checkbox" id="pltemp3" value="1">
評論列表模板 </div></td>
<td> <div align="left">
<input name="indextemp" type="checkbox" id="indextemp2" value="1">
首頁模板</div></td>
<td> <div align="left">
<input name="cptemp" type="checkbox" id="cptemp" value="1">
控制面板模板</div></td>
<td> <div align="left">
<input name="sformtemp" type="checkbox" id="sformtemp" value="1">
高級搜索表單模板</div></td>
<td> <div align="left">
<input name="printtemp" type="checkbox" id="searchtemp" value="1">
打印模板</div></td>
</tr>
<tr>
<td height="25"> <input name="userpage" type="checkbox" id="userpage" value="1">
自定義頁面</td>
<td> <input name="tempvar" type="checkbox" id="tempvar" value="1">
模板變量</td>
<td><input name="gbooktemp" type="checkbox" id="gbooktemp" value="1">
留言板模板</td>
<td><input name="loginiframe" type="checkbox" id="loginiframe" value="1">
登陸狀態模板</td>
<td><input name="votetemp" type="checkbox" id="votetemp" value="1">
投票模板</td>
</tr>
<tr>
<td height="25"><input name="pagetemp" type="checkbox" id="pagetemp" value="1">
自定義頁面模板</td>
<td> <input name="pljstemp" type="checkbox" id="pljstemp" value="1">
評論JS模板</td>
<td> <input name="schalltemp" type="checkbox" id="schalltemp" value="1">
全站搜索模板</td>
<td><input name="loginjstemp" type="checkbox" id="loginjstemp" value="1">
JS調用登陸狀態模板 </td>
<td><input name="downpagetemp" type="checkbox" id="downpagetemp" value="1">
最終下載頁模板</td>
</tr>
<tr>
<td height="25"><input name="jstemp" type="checkbox" id="feedbackbtemp" value="1">
JS模板</td>
<td><input name="otherlinktemp" type="checkbox" id="jstemp" value="1">
相關信息模板</td>
<td><input name="feedbackbtemp" type="checkbox" id="feedbackbtemp3" value="1">
反饋表單模板</td>
<td> </td>
<td> </td>
</tr>
</table>
</div></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="30">
<div align="center">
<input type="submit" name="Submit" value=" 替 換 ">
<input type="reset" name="Submit2" value="重置">
<input type=checkbox name=chkall value=on onclick=CheckAll(this.form)>
選中全部</div></td>
</tr>
</table>
</form>
</body>
</html>