📄 uploadpic.jsp
字号:
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<%@ page import="java.lang.*,java.io.*" %>
<HTML><HEAD><TITLE>上传新图片</TITLE>
<META content="text/html; charset=gb2312" http-equiv=Content-Type>
<link href="/lib/main.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" type="text/css" media="all" href="/lib/calendar/calendar-win2k-cold-1.css" title="win2k-cold-1" />
<style type="text/css">
<!--
body {
margin-left: 3px;
margin-top: 3px;
margin-right: 3px;
margin-bottom: 3px;
}
.fStar { color: #FF0000;
font:Arial;
font-weight: normal;
font-size: 14px;
}
td{
border-left-width:0px;
border-right-width:0px;
border-top-width:0px;
border-bottom-width:0px;
}
-->
</style>
</head>
<script src="/lib/calendar/js/calendar.js"></script>
<script src="/lib/calendar/js/calendar-zh.js"></script>
<script src="/lib/calendar/js/calendar-setup.js"></script>
<script src="/lib/jsFunc.js"></script>
<script src="/office/lib/strfunc.js"></script>
<script language="javascript">
function checkFm(fm)
{
with(document.fm)
{
if(trim(picFile.value)==""){
alert("请选择你要上传的图片!");
picFile.value="";
picFile.focus();
return false;
}
pLength=picFile.value.length;
if(picFile.value.substring(pLength-4,pLength)!=".bmp"){
alert("所传图片必须为bmp格式!");
picFile.select();
return false;
}
else
return(confirm("您确定要上传该图片吗?"));
}
}
</script>
<BODY style="background-color:#FFFFFF " text="000000" link="000099" vlink="000099" alink="ff0000" bgcolor="#FFFFFF">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td>【<strong>基础数据维护</strong>→部件图片管理→上传新图片】</td>
<td width=50 align="center" style="cursor:hand" onclick="history.go(-1)"><img src="../img/back01.gif" width="12" height="10">返回</td>
</tr>
</table>
<br>
<br>
<%
String pID=request.getParameter("pID");
String pName=request.getParameter("pName");
//String picName=request.getParameter("picName");
String bInfo=request.getParameter("bInfo");
%>
<table width="600" border="1" cellpadding="3" cellspacing="0" align="center" bordercolor="#cccccc">
<form name="fm" method="post" action="handle_uploadPic.jsp" enctype="multipart/form-data">
<input type="hidden" name="pID" value="<%=pID%>">
<input type="hidden" name="bInfo" value="<%=bInfo%>">
<tr><td height="23" bgcolor="#efefef" colspan="4">【<strong>上传新图片</strong>】(*为必填项)</td></tr>
<tr>
<td width="96" align="right">零部件编码:</td>
<td align="left"><%=pID%></td>
</tr>
<tr>
<td width="96" align="right">零部件名称:</td>
<td><%=pName%></td>
</tr>
<tr>
<td width="96" align="right" valign="top">上传新图片:</td>
<td width="486">
<input name="picFile" type="file" class="border1Pixel" onChange="if(this.value!=''){preImg.src=this.value;preview.style.display='block'}">
</td>
</tr>
<tr id="preview" style="display:none ">
<td align="right" valign="top">预览效果:</td>
<td><img name="preImg" width="400" height="300"></td>
</tr>
<tr bgcolor="efefef">
<td align="center" colspan="4">
<table border="0" cellpadding="1" cellspacing="1">
<td width=50 align="center" class="flatBtn" onClick="if(checkFm(fm)) fm.submit();">发 布</td>
<td> </td>
<td width=50 align="center" class="flatBtn" onClick="history.back()">取 消</td>
</table>
</td>
</tr>
</form>
</table>
<br>
<table width="100%" border="0" cellpadding="0" cellspacing="0" align="center" bordercolor="#ffffff">
<tr><td align="left" style="padding-left:10px;"><font color="#FF0000">
上传须知:</font><br>
1.所传图片大小必须为:480×360<br>
2.所传图片的颜色位数必须为:16位色<br>
3.所传图片必须是bmp格式,且采用"X1 R5 G5 B5"保存;( 推荐使用photoShop7.0编辑保存)。
</td></tr>
</table>
</BODY>
</HTML>
<script src="/lib/jsFooter.js"></script>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -