co_trimrule.html
3.47 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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
<title>规则选择框</title>
<style type="text/css">
* {
font-size:14px;
line-height:150%;
padding:0px;
margin:0px auto;
}
td { padding-left:10px; }
body {
margin-top:6px;
background-color: #E6E4D5;
}
.bt
{
height:24px;
width:60px;
border-bottom:1px solid #726B36;
border-right:1px solid #726B36;
border-left:1px solid #DAD5B1;
border-top:1px solid #DAD5B1;
}
</style>
<script language='javascript'>
function SelOK()
{
var okstr = '';
var tmpvalue = '';
var totalbox = 12;
var selid = location.search.replace('?','');
for(var i=1;i<=totalbox;i++)
{
if(document.getElementById('font'+i).checked)
{
tmpvalue = document.getElementById('font'+i).value;
tmpvalue = tmpvalue.replace(/</,'<');
tmpvalue = tmpvalue.replace(/>/,'>');
okstr += (okstr=='' ? "{dede:trim replace=''}"+tmpvalue+"{/dede:trim}" : "\r\n{dede:trim replace=''}"+tmpvalue+"{/dede:trim}");
}
}
if(okstr!='')
{
var nobj = window.opener.document.getElementById(selid);
if(nobj != null) nobj.value = (nobj.value=='' ? okstr : "\r\n"+okstr);
}
window.opener = true;
window.close();
}
</script>
</head>
<body>
<form id="form1" name="form1" method="post" action="">
<table width="300" border="0" cellpadding="1" cellspacing="1" bgcolor="#BCC083">
<tr>
<td width="149" bgcolor="#FFFFFF">
<input name="font1" type="checkbox" id="font1" value="<a([^>]*)>(.*)</a>" />
超链接 </td>
<td width="151" bgcolor="#FFFFFF"><input name="font7" type="checkbox" id="font7" value="<object([^>]*)>(.*)</object>" />
Object</td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><input name="font2" type="checkbox" id="font2" value="<script([^>]*)>(.*)</script>" />
javascript脚本</td>
<td bgcolor="#FFFFFF"><input name="font8" type="checkbox" id="font8" value="<embed([^>]*)>(.*)</embed>" />
embed</td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><input name="font3" type="checkbox" id="font3" value="<!--(.*)-->" />
<!--()--></td>
<td bgcolor="#FFFFFF"><input name="font9" type="checkbox" id="font9" value="<iframe([^>]*)>(.*)</iframe>" />
iframe</td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><input name="font4" type="checkbox" id="font4" value="<table([^>]*)>(.*)</table>" />
table</td>
<td bgcolor="#FFFFFF"><input name="font10" type="checkbox" id="font10" value="<param([^>]*)>(.*)</param>" />
param</td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><input name="font5" type="checkbox" id="font5" value="<style([^>]*)>(.*)</style>" />
style</td>
<td bgcolor="#FFFFFF"><input name="font11" type="checkbox" id="font11" value="<div([^.]*)>" />
<div([^.]*)></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><input name="font6" type="checkbox" id="font6" value="<img([^>]*)>" />
img</td>
<td bgcolor="#FFFFFF"><input name="font12" type="checkbox" id="font12" value="</div>" />
</div></td>
</tr>
<tr>
<td height="32" colspan="2" align="center" bgcolor="#FFFFFF">
<input type="button" name="sb" id="sb" value="确定" class='bt' onclick="SelOK();" />
</td>
</tr>
</table>
</form>
</body>
</html>