index.php
2.49 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
<?php
require("../../class/connect.php");
require("../../class/q_functions.php");
require("../../class/db_sql.php");
$link=db_connect();
$empire=new mysqlquery();
$editor=1;
$picid=(int)$_GET['picid'];
if(empty($picid))
{
printerror("ErrorUrl","history.go(-1)",1);
}
$r=$empire->fetch1("select picid,title,pictext,pic_url from {$dbtbpre}enewspic where picid='$picid'");
if(empty($r[picid]))
{
printerror("ErrorUrl","history.go(-1)",1);
}
db_close();
$empire=null;
?>
<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title><?=$r[title]?></title>
<style>
td {
font-size: 12px;
}
body {
font-size: 12px;
text-align: center;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
margin-left: 0px;
}
hr { height: 1px; color: #000000 }
textarea {
font-size: 12px;FONT-FAMILY: "Tahoma", "MS Shell Dlg";
}
A:link, A:active
{
color: #333366;
text-decoration: none;
}
A:visited
{
color: #333366;
text-decoration: none;
}
A:hover
{
color: #FF0000;
text-decoration: underline;
}
SELECT {
FONT-SIZE: 12px; FONT-FAMILY: "MS Shell Dlg"
}
FORM {
MARGIN-TOP: 3px; FONT-SIZE: 12px; MARGIN-BOTTOM: 0px; FONT-FAMILY: "Tahoma", "MS Shell Dlg"
}
INPUT {
FONT-SIZE: 12px; FONT-FAMILY: "Tahoma", "MS Shell Dlg"
}
</style>
<script>
function bbimg(o){
var zoom=parseInt(o.style.zoom, 10)||100;zoom+=event.wheelDelta/12;if (zoom>0) o.style.zoom=zoom+'%';
return false;
}
</script>
</head><body>
<table width="100%" border="0" align="center" cellpadding="3" cellspacing="0">
<tr>
<td><div align="center"></div></td>
</tr>
<tr>
<td align="center"><img src="<?=$r[pic_url]?>" border=0 onmousewheel="return bbimg(this)" onload="if(this.width>screen.width-500)this.style.width=screen.width-500;"></td>
</tr>
<tr>
<td><div align="center">圖片名稱:
<?=$r[title]?>
</div></td>
</tr>
<tr>
<td valign="top"> <div align="center">
<table width="80%" border="0" align="center" cellpadding="3" cellspacing="0">
<tr>
<td>簡介:<br>
<?=nl2br($r[pictext])?>
</td>
</tr>
</table>
<br>
</div></td>
</tr>
<tr>
<td><div align="center">注:支持鼠標滾輪放大&縮小圖片.</div></td>
</tr>
<tr>
<td><div align="center">
<input type="button" name="Submit" value="關閉" onclick="window.close();">
</div></td>
</tr>
</table>
</body>
</html>