You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

77 lines
2.8 KiB

<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width" />
<title>连接字符串加密</title>
<link href="~/Content/css/framework-font.css" rel="stylesheet" />
<script src="~/Content/js/jquery/jquery-2.1.1.min.js"></script>
<script src="~/Content/js/bootstrap/bootstrap.js"></script>
<link href="~/Content/js/bootstrap/bootstrap.min.css" rel="stylesheet" />
<script src="~/Content/js/dialog/dialog.js"></script>
<script src="~/Content/js/cookie/jquery.cookie.js"></script>
<link href="~/Content/css/framework-theme.css" rel="stylesheet" />
<script src="~/Content/js/framework-ui.js"></script>
</head>
<body id="page">
<p style="padding-top: 150px; margin-right: 20px;text-align:center"><label style="font-size:20px">连接字符串加密</label></p>
<div>
<form id="form1">
<div style="padding-top: 50px; margin-right: 20px;text-align:center;">
<table class="form" style="margin-left:400px">
<tr>
<th class="formTitle"><span style="color: red;">*</span>需加密的字符串:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</th>
<td class="formValue">
<input id="Encipherment" name="Encipherment" style="width: 800px;" type="text" class="form-control required" placeholder="请输入需要加密的字符串" />
</td>
</tr>
</table>
</div>
</form>
<div class="toolbar" style="padding-top: 50px; margin-right: 20px;text-align:center;">
<div class="btn-group" style="margin-left:-5px">
<a id="NF-Encrypted" authorize="yes" style="margin-left:3px;" class="btn btn-primary" onclick="btnEncrypted()"><i class="fa fa-pencil-square-o"></i>加密字符串</a>
</div>
</div>
</div>
</body>
</html>
<script>
$(function () {
debugger;
var host = window.location.host;
var Url= host.substring(0, 9);
if (Url != 'localhost') {
$("#page").hide();
}
})
function btnEncrypted() {
debugger;
var Encipherments = $("#Encipherment").val();
if (Encipherments == '' || Encipherments == undefined) {
$.modalAlertNew("WMS00002");
return;
}
var obj = {
Encipherment: Encipherments,
}
$.submitForm({
url: "/Encrypt/Encipherment/Encryption" + "?" + Math.random(),
param: { ICSInspections: JSON.stringify(obj) },
success: function () {
}
})
}
</script>