-
Notifications
You must be signed in to change notification settings - Fork 0
/
dl_pages_setting.php
211 lines (201 loc) · 10.3 KB
/
dl_pages_setting.php
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
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
<?php if (!defined('SYSTEM_ROOT')) { die('Insufficient Permissions'); }
if(isset($_REQUEST['plug']) && $_REQUEST['plug']=="dl_pages" && $_REQUEST['page']==""){ReDirect('index.php?mod=admin:setplug&plug=dl_pages&page=1');}
if (isset($_GET['ok'])) {
echo '<div class="alert alert-success">设置已成功保存!</div>';
}
if(option::get('dl_pages_title')=="0"){
global $m;
option::set('dl_pages_text' ,'');
option::set('dl_pages_title' ,'');
}
if(option::get('dl_pages_title2')=="0"){
global $m;
option::set('dl_pages_text2' ,'');
option::set('dl_pages_title2' ,'');
}
if(option::get('dl_pages_title3')=="0"){
global $m;
option::set('dl_pages_text3' ,'');
option::set('dl_pages_title3' ,'');
}
if(option::get('dl_pages_title4')=="0"){
global $m;
option::set('dl_pages_text4' ,'');
option::set('dl_pages_title4' ,'');
}
if(option::get('dl_pages_title5')=="0"){
global $m;
option::set('dl_pages_text5' ,'');
option::set('dl_pages_title5' ,'');
}
?>
<h2>自定义页面设置</h2><br/>
<ul class="nav nav-tabs" role="tablist">
<li<?php if(isset($_REQUEST['plug']) && $_REQUEST['plug']=="dl_pages" && $_REQUEST['page']=="1"){echo ' class="active"';}?>><a href="index.php?mod=admin:setplug&plug=dl_pages&page=1">Page①</a></li>
<li<?php if(isset($_REQUEST['page']) && $_REQUEST['page']=="2"){echo ' class="active"';}?>><a href="index.php?mod=admin:setplug&plug=dl_pages&page=2">Page②</a></li>
<li<?php if(isset($_REQUEST['page']) && $_REQUEST['page']=="3"){echo ' class="active"';}?>><a href="index.php?mod=admin:setplug&plug=dl_pages&page=3">Page③</a></li>
<li<?php if(isset($_REQUEST['page']) && $_REQUEST['page']=="4"){echo ' class="active"';}?>><a href="index.php?mod=admin:setplug&plug=dl_pages&page=4">Page④</a></li>
<li<?php if(isset($_REQUEST['page']) && $_REQUEST['page']=="5"){echo ' class="active"';}?>><a href="index.php?mod=admin:setplug&plug=dl_pages&page=5">Page⑤</a></li>
</ul>
<?php
if(isset($_REQUEST['page']) && $_REQUEST['page']=="1")
{echo '<form action="index.php?plugin=dl_pages&add1" method="post">
<p> </p>
<p>常用HTML代码: <br />
换行:<br> <br />
空格:&nbsp; <br />
链接:<a href="链接地址" target="_blank">链接文字</a><br />
段落:<p>段落内容</p> <br />
图片:<img src="图片地址" width="图片宽度" height="图片高度"/> <br />
下划线:<u>加下划线的内容</u><br />
加粗:<b>要加粗的内容</b> </p>
<p>程序自带的提示框:
<p> <div class="alert alert-success">内容</div> <br />
<div class="alert alert-warning">内容</div> <br />
<div class="alert alert-danger">内容</div> <br/>
<div class="alert alert-info">内容</div> <br/>
<br/>
<h3 class="panel-title"><span class="glyphicon glyphicon-chevron-down"></span>自定义页面①设置</h3></br>
<div class="input-group">
<span class="input-group-addon">标题</span>
<input type="text" name="title1" class="form-control" placeholder="温馨提示:不设置标题用户将无法看到您设置的页面哦o(∩_∩)o " value="'.htmlspecialchars(option::get("dl_pages_title")).'">
</div>
<br/>
<p>页面内容:</p>
<p>
<textarea class="form-control" name="text1" style="height:350px">'.htmlspecialchars(option::get("dl_pages_text")).'</textarea>
<br/><br/>
</p>
</p>
<button type="submit" class="btn btn-success">保存设置</button>
</form>';
}
if(isset($_REQUEST['page']) && $_REQUEST['page']=="2")
{echo '<form action="index.php?plugin=dl_pages&add2" method="post">
<p> </p>
<p>常用HTML代码: <br />
换行:<br> <br />
空格:&nbsp; <br />
链接:<a href="链接地址" target="_blank">链接文字</a><br />
段落:<p>段落内容</p> <br />
图片:<img src="图片地址" width="图片宽度" height="图片高度"/> <br />
下划线:<u>加下划线的内容</u><br />
加粗:<b>要加粗的内容</b> </p>
<p>程序自带的提示框:
<p> <div class="alert alert-success">内容</div> <br />
<div class="alert alert-warning">内容</div> <br />
<div class="alert alert-danger">内容</div> <br/>
<div class="alert alert-info">内容</div> <br/>
<br/>
<h3 class="panel-title"><span class="glyphicon glyphicon-chevron-down"></span>自定义页面②设置</h3></br>
<div class="input-group">
<span class="input-group-addon">标题</span>
<input type="text" name="title2" class="form-control" placeholder="温馨提示:不设置标题用户将无法看到您设置的页面哦o(∩_∩)o " value="'.htmlspecialchars(option::get("dl_pages_title2")).'">
</div>
<br/>
<p>页面内容:</p>
<p>
<textarea class="form-control" name="text2" style="height:350px">'.htmlspecialchars(option::get("dl_pages_text2")).'</textarea>
<br/><br/>
</p>
</p>
<button type="submit" class="btn btn-success">保存设置</button>
</form>';
}
if(isset($_REQUEST['page']) && $_REQUEST['page']=="3")
{echo '<form action="index.php?plugin=dl_pages&add3" method="post">
<p> </p>
<p>常用HTML代码: <br />
换行:<br> <br />
空格:&nbsp; <br />
链接:<a href="链接地址" target="_blank">链接文字</a><br />
段落:<p>段落内容</p> <br />
图片:<img src="图片地址" width="图片宽度" height="图片高度"/> <br />
下划线:<u>加下划线的内容</u><br />
加粗:<b>要加粗的内容</b> </p>
<p>程序自带的提示框:
<p> <div class="alert alert-success">内容</div> <br />
<div class="alert alert-warning">内容</div> <br />
<div class="alert alert-danger">内容</div> <br/>
<div class="alert alert-info">内容</div> <br/>
<br/>
<h3 class="panel-title"><span class="glyphicon glyphicon-chevron-down"></span>自定义页面③设置</h3></br>
<div class="input-group">
<span class="input-group-addon">标题</span>
<input type="text" name="title3" class="form-control" placeholder="温馨提示:不设置标题用户将无法看到您设置的页面哦o(∩_∩)o " value="'.htmlspecialchars(option::get("dl_pages_title3")).'">
</div>
<br/>
<p>页面内容:</p>
<p>
<textarea class="form-control" name="text3" style="height:350px">'.htmlspecialchars(option::get("dl_pages_text3")).'</textarea>
<br/><br/>
</p>
</p>
<button type="submit" class="btn btn-success">保存设置</button>
</form>';
}
if(isset($_REQUEST['page']) && $_REQUEST['page']=="4")
{echo '<form action="index.php?plugin=dl_pages&add4" method="post">
<p> </p>
<p>常用HTML代码: <br />
换行:<br> <br />
空格:&nbsp; <br />
链接:<a href="链接地址" target="_blank">链接文字</a><br />
段落:<p>段落内容</p> <br />
图片:<img src="图片地址" width="图片宽度" height="图片高度"/> <br />
下划线:<u>加下划线的内容</u><br />
加粗:<b>要加粗的内容</b> </p>
<p>程序自带的提示框:
<p> <div class="alert alert-success">内容</div> <br />
<div class="alert alert-warning">内容</div> <br />
<div class="alert alert-danger">内容</div> <br/>
<div class="alert alert-info">内容</div> <br/>
<br/>
<h3 class="panel-title"><span class="glyphicon glyphicon-chevron-down"></span>自定义页面④设置</h3></br>
<div class="input-group">
<span class="input-group-addon">标题</span>
<input type="text" name="title4" class="form-control" placeholder="温馨提示:不设置标题用户将无法看到您设置的页面哦o(∩_∩)o " value="'.htmlspecialchars(option::get("dl_pages_title4")).'">
</div>
<br/>
<p>页面内容:</p>
<p>
<textarea class="form-control" name="text4" style="height:350px">'.htmlspecialchars(option::get("dl_pages_text4")).'</textarea>
<br/><br/>
</p>
</p>
<button type="submit" class="btn btn-success">保存设置</button>
</form>';
}
if(isset($_REQUEST['page']) && $_REQUEST['page']=="5")
{echo '<form action="index.php?plugin=dl_pages&add5" method="post">
<p> </p>
<p>常用HTML代码: <br />
换行:<br> <br />
空格:&nbsp; <br />
链接:<a href="链接地址" target="_blank">链接文字</a><br />
段落:<p>段落内容</p> <br />
图片:<img src="图片地址" width="图片宽度" height="图片高度"/> <br />
下划线:<u>加下划线的内容</u><br />
加粗:<b>要加粗的内容</b> </p>
<p>程序自带的提示框:
<p> <div class="alert alert-success">内容</div> <br />
<div class="alert alert-warning">内容</div> <br />
<div class="alert alert-danger">内容</div> <br/>
<div class="alert alert-info">内容</div> <br/>
<br/>
<h3 class="panel-title"><span class="glyphicon glyphicon-chevron-down"></span>自定义页面⑤设置</h3></br>
<div class="input-group">
<span class="input-group-addon">标题</span>
<input type="text" name="title5" class="form-control" placeholder="温馨提示:不设置标题用户将无法看到您设置的页面哦o(∩_∩)o " value="'.htmlspecialchars(option::get("dl_pages_title5")).'">
</div>
<br/>
<p>页面内容:</p>
<p>
<textarea class="form-control" name="text5" style="height:350px">'.htmlspecialchars(option::get("dl_pages_text5")).'</textarea>
<br/><br/>
</p>
</p>
<button type="submit" class="btn btn-success">保存设置</button>
</form>';
}
?>