📄 selpic.jsp
字号:
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<HTML>
<HEAD>
<title>龙讯网络内容发布系统Ver1.5--上载图片</title>
<LINK REL="stylesheet" TYPE="text/css" HREF="../css/InputStyle.css">
<SCRIPT ID=clientEventHandlersJS LANGUAGE=javascript>
<!--
var ViewPath,PreViewWin;
PreViewWin = 0;
function preview_onclick() {
ViewPath = form1.UploadFileName.value;
if (ViewPath!="")
{
PreViewWin = window.open (ViewPath,"ViewImage","top=200,left=600,height=300,width=300");
}
}
function ChangeStyle(MyButtonObject){
MyButtonObject.style.backgroundColor = "lightsteelblue";
MyButtonObject.style.borderColor = "mediumslateblue";
MyButtonObject.style.cursor = "hand";
}
function RemoveStyle(MyButtonObject){
MyButtonObject.style.backgroundColor = "buttonface";
MyButtonObject.style.borderColor = "buttonface";
}
//-->
</SCRIPT>
</HEAD>
<BODY onLoad="uploadcheck();">
<%
response.setContentType("text/html;charset=GBK");
request.setCharacterEncoding("GBK");
int blog_id = com.beijingnews.util.ParamUtils.getInt(request,"blog_id",-1);
if(blog_id < 1) {
%><script>window.close();</script><%
return;
}
%>
<form name="form1" ENCTYPE="multipart/form-data" method="post" action="upload.jsp">
<input type="hidden" name="blog_id" value="<%=blog_id%>">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><input type="button" value="预览" onClick="preview_onclick();" name=OpenPreview class="InputStyle" onMouseOver="ChangeStyle(this)" onMouseOut="RemoveStyle(this)">
<input type="button" value="关闭预览" onClick="if(PreViewWin!=0){PreViewWin.close();PreViewWin = 0;}" name=ClosePreview class="InputStyle" onMouseOver="ChangeStyle(this)" onMouseOut="RemoveStyle(this)"></td>
</tr>
<tr>
<td> <script language="JavaScript">
<!--
function uploadcheck() {
if(form1.uc[0].checked) {
form1.UploadFileName.disabled = true;
form1.imgurl.disabled = false;
imgurl1.style.color="#000000";
imgupload1.style.color="#999999";
}
if(form1.uc[1].checked) {
form1.UploadFileName.disabled = false;
form1.imgurl.disabled = true;
imgurl1.style.color="#999999";
imgupload1.style.color="#000000";
}
}
-->
</script>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><input name="uc" type="radio" onClick="uploadcheck();" value="radiobutton" checked></td>
<td><div id=imgurl1 style="font-size:9pt">图片地址</div></td>
<td><input name="imgurl" type="text" id="imgurl" value="http://"></td>
</tr>
<tr>
<td><input type="radio" name="uc" value="radiobutton" onClick="uploadcheck();"></td>
<td width="80"><div id=imgupload1 style="font-size:9pt">图片上传</div></td>
<td><input type="file" name="UploadFileName" size="20"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td><input type="submit" value="插入" name=submit class="InputStyle" onMouseOver="ChangeStyle(this)" onMouseOut="RemoveStyle(this)">
<input type="button" value="关闭" name=ex class="InputStyle" onClick="parent.close ()" onMouseOver="ChangeStyle(this)" onMouseOut="RemoveStyle(this)">
</td>
</tr>
</table>
</form>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -