📄 photodisp.php
字号:
<?php
include("pwdyb.php");
include("connect.inc.php");
include("char.inc.php");
$updataquery="UPDATE album SET hit=hit+1 WHERE id=".$id." LIMIT 1";
@mysql_query($updataquery)or die("error!");
$query=mysql_query('select * from album where id='.$id,$conn);
$array=mysql_fetch_array($query);
if(!$array){
?>
<script language=vbscript>
alert ("对不起!你要的公告没有找到")
window.history.back()
</script>
<?php
exit();
}
?>
<html>
<head>
<SCRIPT LANGUAGE="JavaScript">
<!--
function showphoto(vid) {
apic=window.open(vid,'apic','resizable=1,scrollbars=1,width=640,height=480');
}
function download(vid,ext) {
window.open('down.php?id='+vid+'&filename='+ext,'download','resizable=1,scrollbars=1,width=320,height=245');
}
function openw(url,n,w,h) {
window.open(url,n,'resizable=1,scrollbars=1,width='+w+',height='+h)
}
function high(which2){
theobject=which2
highlighting=setInterval("highlightit(theobject)",50)
}
function low(which2){
clearInterval(highlighting)
which2.filters.alpha.opacity=60
}
function highlightit(cur2){
if (cur2.filters.alpha.opacity<100)
cur2.filters.alpha.opacity+=10
else if (window.highlighting)
clearInterval(highlighting)
}
//-->
</script>
<style type="text/css">
<!--
td{font-size:12px;line-height:17px;}
a:active {text-decoration: none;}
a:link {text-decoration: none;}
a:hover{text-decoration: underline;}
a:visited {text-decoration: none;}
BODY{font-size:12px;line-height:17px;SCROLLBAR-FACE-COLOR: #83d160; SCROLLBAR-HIGHLIGHT-COLOR: #CCFF00; SCROLLBAR-SHADOW-COLOR: #CCFF00; SCROLLBAR-3DLIGHT-COLOR: #009900; SCROLLBAR-ARROW-COLOR: #006600; SCROLLBAR-TRACK-COLOR: ##99FF00; SCROLLBAR-DARKSHADOW-COLOR: #009900; }
-->
</style>
<title>查看图片</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body bgcolor="#dcf6ce" text="#666600" link="#009900" alink="#00FF00" vlink="#006600">
<table width="500" border="1" cellspacing="2" cellpadding="0" align="center" bordercolorlight="#009900" bordercolordark="#009900">
<tr>
<td colspan="3" bgcolor="#83d160">
<div align="center">
<?php echo $array["title"]; ?>
</div>
</td>
</tr>
<tr>
<td colspan="3" height="346"><IFRAME src="<?php echo "../upload/photo/".$array["filename"];?>" scrolling="auto" width="492" height="344" align="top" frameborder="0" marginwidth=0 marginheight=0>
您的浏览器不支持框架!请使用下面的连接观看。</IFRAME></td>
</tr>
<tr>
<td height="50" width="50"> </td>
<td height="50">
<?php echo $array["title"]; ?>
</td>
<td height="50" width="50"> </td>
</tr>
</table>
<div align="center">*如果您看不到图片的话,请点击这里<a href="javascript:showphoto('<?php echo "../upload/photo/".$array["filename"];?>')">查看</a>或<a href="<?php echo "../upload/photo/".$array["filename"];?>">下载</a>图片。<br>
</div>
<p align="center"><a href="javascript:window.close()">关闭窗口</a></p>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -