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.

76 lines
2.8 KiB

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta name="viewport" content="width=device-width" />
  5. <title>连接字符串加密</title>
  6. <link href="~/Content/css/framework-font.css" rel="stylesheet" />
  7. <script src="~/Content/js/jquery/jquery-2.1.1.min.js"></script>
  8. <script src="~/Content/js/bootstrap/bootstrap.js"></script>
  9. <link href="~/Content/js/bootstrap/bootstrap.min.css" rel="stylesheet" />
  10. <script src="~/Content/js/dialog/dialog.js"></script>
  11. <script src="~/Content/js/cookie/jquery.cookie.js"></script>
  12. <link href="~/Content/css/framework-theme.css" rel="stylesheet" />
  13. <script src="~/Content/js/framework-ui.js"></script>
  14. </head>
  15. <body id="page">
  16. <p style="padding-top: 150px; margin-right: 20px;text-align:center"><label style="font-size:20px">连接字符串加密</label></p>
  17. <div>
  18. <form id="form1">
  19. <div style="padding-top: 50px; margin-right: 20px;text-align:center;">
  20. <table class="form" style="margin-left:400px">
  21. <tr>
  22. <th class="formTitle"><span style="color: red;">*</span>需加密的字符串:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</th>
  23. <td class="formValue">
  24. <input id="Encipherment" name="Encipherment" style="width: 800px;" type="text" class="form-control required" placeholder="请输入需要加密的字符串" />
  25. </td>
  26. </tr>
  27. </table>
  28. </div>
  29. </form>
  30. <div class="toolbar" style="padding-top: 50px; margin-right: 20px;text-align:center;">
  31. <div class="btn-group" style="margin-left:-5px">
  32. <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>
  33. </div>
  34. </div>
  35. </div>
  36. </body>
  37. </html>
  38. <script>
  39. $(function () {
  40. debugger;
  41. var host = window.location.host;
  42. var Url= host.substring(0, 9);
  43. if (Url != 'localhost') {
  44. $("#page").hide();
  45. }
  46. })
  47. function btnEncrypted() {
  48. debugger;
  49. var Encipherments = $("#Encipherment").val();
  50. if (Encipherments == '' || Encipherments == undefined) {
  51. $.modalAlertNew("WMS00002");
  52. return;
  53. }
  54. var obj = {
  55. Encipherment: Encipherments,
  56. }
  57. $.submitForm({
  58. url: "/Encrypt/Encipherment/Encryption" + "?" + Math.random(),
  59. param: { ICSInspections: JSON.stringify(obj) },
  60. success: function () {
  61. }
  62. })
  63. }
  64. </script>