📄 picup.php
字号:
<? session_start(); ?>
<html>
<head>
<title>校友录相册->上传图片</title>
<meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312">
<!-- 360*250 -->
<link rel="stylesheet" type="text/css" href="main.css">
<script>
function pic_up_submit(objForm) {
var pb=new String(objForm.pic_brief.value);
pb=pb.replace( /^\s*/, "" ) //去掉左边的空格
pb=pb.replace( /\s*$/, "" ); //去掉右边的空格
if(objForm.pic_file.value.length<4) alert("请选择图片文件");
else if(pb=="") alert("请写图片介绍");
else objForm.submit();
}
</script>
</head>
<body bgcolor=#00588F text=#00588F leftmargin=0 topmargin=0>
<table width=360 border=0 cellpadding=0 cellspacing=0 background="images/picup_bg.gif">
<tr><td colspan=3><img src="images/picup_t.gif" width=360 height=18></td></tr>
<tr>
<td width=11></td>
<td width=338 align="center">
<font color=#000000><b><? echo htmlspecialchars($_SESSION['id']); ?> 正在上传图片……</b></font><br><br>
<form action="deal_pic.php?action=add" method="post" enctype="multipart/form-data" name="pic_upload" style="margin:0;text-align:left">
请按<strong><font color=#FF6700>[浏览]</font></strong>找到要添加的照片,再点击<strong><font color=#FF6700>[添加]</font></strong><br>
图片允许 <font color="#FF6700">GIF和JPEG</font> 的格式,需 <font color=#FF6700>小于200KB</font><br>
<input name="pic_file" type="file" class="input" id="pic_file" size=32><br>
图片说明(限30字):<br>
<textarea name="pic_brief" cols=32 style="height:64px" class="input" id="pic_brief"></textarea>
<img src="images/button_tj.gif" width=34 height=19 style="cursor:hand " onClick="pic_up_submit(document.pic_upload)">
<br>
·请确保您上传的图片不得违反国家有关规定;<br>
·校友录将对您的图片保留最终决定权;
</form>
</td>
<td width=11></td>
</tr>
<tr><td colspan=3><img src="images/picup_b.gif" width=360 height=31></td></tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -