TranMore.php
12.2 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
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
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
<?php
define('EmpireCMSAdmin','1');
require('../../../../class/connect.php');
require("../../../../class/db_sql.php");
require("../../../../class/functions.php");
$link=db_connect();
$empire=new mysqlquery();
$editor=3;
//驗證用戶
$lur=is_login();
$logininid=$lur['userid'];
$loginin=$lur['username'];
$loginrnd=$lur['rnd'];
$loginlevel=$lur['groupid'];
$loginadminstyleid=$lur['adminstyleid'];
//ehash
$ecms_hashur=hReturnEcmsHashStrAll();
$showmod=(int)$_GET['showmod'];
$type=(int)$_GET['type'];
$classid=(int)$_GET['classid'];
$filepass=(int)$_GET['filepass'];
$infoid=(int)$_GET['infoid'];
$modtype=(int)$_GET['modtype'];
$sinfo=(int)$_GET['sinfo'];
$InstanceName=ehtmlspecialchars($_GET['InstanceName']);
$editor=3;
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Image Properties</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="robots" content="noindex, nofollow" />
<script src="../editor/dialog/common/fck_dialog_common.js" type="text/javascript"></script>
<script src="../editor/dialog/tranpic/fck_image.js" type="text/javascript"></script>
<script type="text/javascript">
document.write( FCKTools.GetStyleHtml( GetCommonDialogCss() ) ) ;
</script>
<script type="text/javascript">
function addpic(){
var i;
var str="";
for(i=1;i<=document.TranMImgForm.trannum.value;i++)
{
str=str+"<tr onmouseout=this.style.backgroundColor='#ffffff' onmouseover=this.style.backgroundColor='#C3EFFF'><td width='8%'><div align=center>"+i+"</div></td><td width='92%'> <div align=center><input name=file[] type=file style='width:100%;FONT-SIZE:12px;' onmouseover=this.focus()></div></td></tr>";
}
document.getElementById("morepic").innerHTML="<table width='100%' align=center border=0 cellspacing=1 cellpadding=3>"+str+"</table>";
}
function foreColor(thedo){
if (!Error()) return;
var arr = showModalDialog("selcolor.html", "", "dialogWidth:18.5em; dialogHeight:17.5em; status:0");
if (arr != null)
{
if(thedo==0)
{
document.TranMImgForm.tbcolor.value=arr;
}
else
{
document.TranMImgForm.tbbordercolor.value=arr;
}
}
else
{
if(thedo==0)
{
document.TranMImgForm.tbcolor.focus();
}
else
{
document.TranMImgForm.tbbordercolor.focus();
}
}
}
function DoFile(imgstr){
oEditor.FCK.InsertHtml(imgstr);
window.parent.Cancel();
}
//上傳多附件時,編輯器
function eTranMoreForEditor(htmlstr){
oEditor.FCK.InsertHtml(htmlstr);
window.parent.Cancel();
}
</script>
</head>
<body>
<form action="../../ecmseditor.php" method="post" enctype="multipart/form-data" target="UploadWindow" name="TranMImgForm" id="TranMImgForm">
<div id="divTranFile">
<table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
<?=$ecms_hashur['form']?>
<tr>
<td height="25">
<table width="98%" border="0" align="center" cellspacing="1" cellpadding="3">
<tr>
<td width="60%">
<div align="center">上傳圖片數目:
<input name="trannum" type="text" id="trannum" value="8" size="6">
<input type="button" name="Submit" value="設定" onclick="addpic()">
</div>
</td>
<td>
<div align="right">
<?php
if(TranmoreIsOpen('editor'))
{
?>
<input type="button" name="Submit" value="多選上傳" onclick="window.open('../../tranmore/tranmore.php?showmod=<?=$showmod?>&type=<?=$type?>&classid=<?=$classid?>&filepass=<?=$filepass?>&infoid=<?=$infoid?>&modtype=<?=$modtype?>&sinfo=<?=$sinfo?>&ecmsdo=ecmstmeditor&tranfrom=1<?=$ecms_hashur['ehref']?>','ecmstmpage','width=700,height=550,scrollbars=yes');">
<?php
}
?>
</div>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td bgcolor="#FFFFFF" id=morepic> <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1">
<tr onmouseout=this.style.backgroundColor='#ffffff' onmouseover=this.style.backgroundColor='#C3EFFF'>
<td width="8%"><div align="center">1</div></td>
<td width="92%"> <div align="center">
<input name="file[]" type="file" id="file[]" style='width:100%;FONT-SIZE:12px;' onmouseover=this.focus()>
</div></td>
</tr>
<tr onmouseout=this.style.backgroundColor='#ffffff' onmouseover=this.style.backgroundColor='#C3EFFF'>
<td><div align="center">2</div></td>
<td> <div align="center">
<input name="file[]" type="file" id="file[]" style='width:100%;FONT-SIZE:12px;' onmouseover=this.focus()>
</div></td>
</tr>
<tr onmouseout=this.style.backgroundColor='#ffffff' onmouseover=this.style.backgroundColor='#C3EFFF'>
<td><div align="center">3</div></td>
<td> <div align="center">
<input name="file[]" type="file" id="file[]" style='width:100%;FONT-SIZE:12px;' onmouseover=this.focus()>
</div></td>
</tr>
<tr onmouseout=this.style.backgroundColor='#ffffff' onmouseover=this.style.backgroundColor='#C3EFFF'>
<td><div align="center">4</div></td>
<td> <div align="center">
<input name="file[]" type="file" id="file[]" style='width:100%;FONT-SIZE:12px;' onmouseover=this.focus()>
</div></td>
</tr>
<tr onmouseout=this.style.backgroundColor='#ffffff' onmouseover=this.style.backgroundColor='#C3EFFF'>
<td><div align="center">5</div></td>
<td> <div align="center">
<input name="file[]" type="file" id="file[]" style='width:100%;FONT-SIZE:12px;' onmouseover=this.focus()>
</div></td>
</tr>
<tr onmouseout=this.style.backgroundColor='#ffffff' onmouseover=this.style.backgroundColor='#C3EFFF'>
<td><div align="center">6</div></td>
<td> <div align="center">
<input name="file[]" type="file" id="file[]" style='width:100%;FONT-SIZE:12px;' onmouseover=this.focus()>
</div></td>
</tr>
<tr onmouseout=this.style.backgroundColor='#ffffff' onmouseover=this.style.backgroundColor='#C3EFFF'>
<td><div align="center">7</div></td>
<td> <div align="center">
<input name="file[]" type="file" id="file[]" style='width:100%;FONT-SIZE:12px;' onmouseover=this.focus()>
</div></td>
</tr>
<tr onmouseout=this.style.backgroundColor='#ffffff' onmouseover=this.style.backgroundColor='#C3EFFF'>
<td><div align="center">8</div></td>
<td> <div align="center">
<input name="file[]" type="file" id="file[]" style='width:100%;FONT-SIZE:12px;' onmouseover=this.focus()>
</div></td>
</tr>
</table></td>
</tr>
</table>
</div>
<div id="divSaveFile" style="display: none">
<table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
<tr>
<td height="25"> <div align="center">遠程保存圖片列表(一張圖片為一行,比本地上傳優先)</div></td>
</tr>
<tr>
<td><div align="center">
<textarea name="saveurl" style="width: 100%" rows="12" id="saveurl"></textarea>
</div></td>
</tr>
</table>
<script type="text/javascript">
document.write( '<iframe name="UploadWindow" style="display: none" src="' + FCKTools.GetVoidUrl() + '"><\/iframe>' ) ;
</script>
</div>
<div id="divSetTran" style="display: none">
<table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
<tr bgcolor="#FFFFFF">
<td width="112" height="25">每行/頁顯示</td>
<td width="351"> <input name="line" type="text" id="line" value="1" size="6">
個圖片</td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="25">對齊方式</td>
<td> <input name="align" type="radio" value="left">
居左
<input name="align" type="radio" value="center" checked>
居中
<input name="align" type="radio" value="right">
居右</td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="25">圖片大小</td>
<td> <input name="width" type="text" id="width2" size="6">
×
<input name="height" type="text" id="height2" size="6">
(寬×高)</td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="25">圖片邊框</td>
<td> <input name="imgborder" type="text" id="imgborder" value="0" size="6"></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="25">分割形式</td>
<td> <select name="exptype" id="exptype">
<option value="0">表格</option>
<option value="1" selected>分頁碼</option>
</select></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="25">生成縮略圖</td>
<td><input name="getsmall" type="checkbox" id="getsmall2" value="1">
同時生成縮略圖. 縮圖寬度:
<input name="swidth" type="text" id="width3" value="<?=$public_r['spicwidth']?>" size="6">
* 高度:
<input name="sheight" type="text" id="sheight" value="<?=$public_r['spicheight']?>" size="6"></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="25">水印</td>
<td><input name="getmark" type="checkbox" id="getmark2" value="1"> <a href="../../../SetEnews.php<?=$ecms_hashur['whehref']?>" target="_blank">加水印</a></td>
</tr>
</table>
</div>
<div id="divSetTable" style="display: none">
<table width="100%" border="0" cellspacing="1" cellpadding="3" class=tableborder>
<tr bgcolor="#FFFFFF">
<td width="25%" height="25">對齊方式</td>
<td width="75%"> <input name="tbalign" type="radio" value="left">
居左
<input name="tbalign" type="radio" value="center" checked>
居中
<input name="tbalign" type="radio" value="right">
居右</td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="25">背景顏色</td>
<td><input name="tbcolor" type="text" id="tbcolor" size="15"> <a onclick="foreColor(0);"><img src="images/color.gif" width="21" height="21" align="absbottom"></a>
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="25">表格寬度</td>
<td><input name="tbwidth" type="text" id="tbwidth" value="100" size="6">
<select name="tbwidthdw" id="tbwidthdw">
<option value="%" selected>百分比</option>
<option value="">像素</option>
</select></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="25">單元格</td>
<td>單元間距:
<input name="tbsp" type="text" id="tbsp" value="1" size="6">
,單元邊距:
<input name="tbpa" type="text" id="tbpa" value="3" size="6"></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="25">邊框</td>
<td>邊框粗細:
<input name="tbborder" type="text" id="tbsp3" value="0" size="6">
,邊框顏色:
<input name="tbbordercolor" type="text" id="tbbordercolor" size="15">
<a onclick="foreColor(1);"><img src="images/color.gif" width="21" height="21" align="absbottom"></a>
</td>
</tr>
</table>
</div>
<table width="100%" border="0" align="center" cellpadding="3" cellspacing="1">
<tr>
<td height="38"><div align="center">
<input type="submit" name="Submit2" value=" 上 傳 ">
<input type="reset" name="Submit3" value="取消" onclick="window.parent.Cancel();">
<input type=hidden name=classid value="<?=$classid?>">
<input type=hidden name=filepass value="<?=$filepass?>">
<input type=hidden name=infoid value="<?=$infoid?>">
<input type=hidden name=modtype value="<?=$modtype?>">
<input type=hidden name=sinfo value="<?=$sinfo?>">
<input type=hidden name=enews value="SaveMoreImg">
<input type=hidden name=type value="1">
<input type=hidden name=doing value="<?=$doing?>">
<input type=hidden name=tranfrom value="1">
<input type=hidden name=InstanceName value="<?=$InstanceName?>">
</div></td>
</tr>
</table>
</form>
</body>
</html>