dd
This commit is contained in:
@@ -0,0 +1,69 @@
|
||||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="uploadimg.aspx.cs" Inherits="RLSB.uploadimg" %>
|
||||
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head runat="server">
|
||||
<title></title>
|
||||
<script src="../Scripts/jquery-1.8.3.js" type="text/javascript"></script>
|
||||
<script src="../Scripts/jquery-ui-1.9.2.custom.min.js" type="text/javascript"></script>
|
||||
<link href="../Styles/sunny/jquery-ui-1.9.2.custom.min.css" rel="stylesheet" type="text/css" />
|
||||
<script type="text/javascript">
|
||||
if (!String.prototype.trim) {
|
||||
String.prototype.trim = function () {
|
||||
return this.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, '');
|
||||
};
|
||||
}
|
||||
|
||||
function Check() {
|
||||
if ($('input[name=file1]').val() == '') {
|
||||
$(".tips").html("<font color=red>没有选择一个文件!</font>");
|
||||
return false;
|
||||
}
|
||||
// var label = $('input[name=label]').val().trim();
|
||||
// if (label == '') {
|
||||
// $(".tips").html("<font color=red>请输入标签!</font>");
|
||||
// return false;
|
||||
// }
|
||||
parent.OnBeginUpload();
|
||||
$(".tips").html("<font color=blue>上传中...</font>");
|
||||
return true;
|
||||
}
|
||||
$(function () {
|
||||
$('input[type=submit]').button();
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<form runat="server" id="form1">
|
||||
</form>
|
||||
<form action="RLSBProccess.ashx" method="post" enctype="multipart/form-data" onsubmit="return Check()">
|
||||
<input type="hidden" name="action" value="train" />
|
||||
<table style="margin: 0 auto;">
|
||||
<tr>
|
||||
<td>
|
||||
图片路径:
|
||||
</td>
|
||||
<td>
|
||||
<input type="file" name="file1" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
标签名:
|
||||
</td>
|
||||
<td>
|
||||
<input type="text" runat="server" id="xunlianlabel" readonly="readonly" name="label" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<input type="submit" value="上传" />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br />
|
||||
</form>
|
||||
<div class="tips">
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user