| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408 |
-
- @{
- Layout = null;
- }
- <!DOCTYPE html>
- <html>
- <head>
- <meta name="viewport" content="width=device-width" />
- <title>苏州工业园区交易市场监管系统</title>
- <link href="~/easyui/themes/default/easyui.css" rel="stylesheet" />
- <link href="~/Content/js/plugins/layer/skin/layer.css" rel="stylesheet" />
- <link rel="stylesheet" type="text/css" href="~/easyui/themes/icon.css" />
- <link href="~/Content/css/bootstrap.min.css" rel="stylesheet" />
- <link href="~/Content/js/plugins/layer/skin/layer.css" rel="stylesheet" />
- <script src="~/Content/js/jquery.min.js"></script>
- <script src="~/Content/js/bootstrap.min.js"></script>
- <script src="~/easyui/jquery.easyui.min.js"></script>
- <script src="~/easyui/jquery.easyui.mobile.js"></script>
- <script src="~/easyui/locale/easyui-lang-zh_CN.js"></script>
- <script src="~/Content/js/plugins/validate/jquery.validate.min.js"></script>
- <script src="~/Content/js/plugins/validate/messages_zh.min.js"></script>
- <script src="~/js/Utils.js"></script>
- <script src="~/Content/js/plugins/layer/layer.min.js"></script>
- <link href="~/Content/css/Style/Markets.css" rel="stylesheet" />
- <script type="text/javascript">
- if (window.top !== window.self) {
- window.top.location = window.location;
- }
- function f_Ok() {
- if (document.getElementById("txtUser").value === "") {
- layer.alert("用户名不能为空!", { icon: 7, title: '信息提示' });
- return;
- }
- if (document.getElementById("txtPassword").value === "") {
- layer.alert("密码不能为空!", { icon: 7, title: '信息提示' });
- return;
- }
- //document.getElementById("frm_edit").action = "Default.aspx"
- document.getElementById("frm_edit").submit();
- }
- function f_EnterToTab() {
- if (window.event.keyCode === 13) {
- if (window.event.srcElement.id.toLowerCase() === "bt_ok")
- window.event.keyCode = 20;
- else
- window.event.keyCode = 9;
- }
- }
- function GetQueryString(name) {
- var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
- var r = window.location.search.substr(1).match(reg);
- if (r != null)
- return unescape(r[2]);
- return null;
- }
- $(function() {
- $("#ImageCheck").click(function() {
- $("#ImageCheck").attr("src", "/Login/ValidateCode?t=" + (new Date()).valueOf());
- });
- if(GetQueryString("timeout")==="true")
- layer.alert('由于您长时间没有操作,请重新登录!', { icon: 5, title: '提示信息:session过期' });
- if ($("#hid_Error").val() !== "") {
- layer.alert($("#hid_Error").val(), { icon: 2, title: '登录失败' });
- }
- });
- function f_Register() {
- $.ajax({
- url: "@Url.Action("Register", "Login")",
- type: "post",
- dataType: "json",
- beforeSend: function () {
- var form = $("#form");
- var lbRetval = true;
- if (form[0] != null) {
- form.validate({
- errorPlacement: function (error, element) {
- $(".onfocus").removeClass("onfocus");
- $("#err_hid").remove();
- element.addClass("onfocus");
- var msg = error.text() === "两次密码不一致" ? error.text() : element.prev().text() + error.text();
- $("body").append("<p id=\"err_hid\" style=\"display:none\">" + msg + "!</p>");
- },
- rules: {
- Password2: {
- equalTo: "#Password"
- }
- },
- messages: {
- Password2:"两次密码不一致"
- }
- });
- lbRetval = form.valid();
- }
- if (!lbRetval) {
- var msg = $("#err_hid").html();
- $("#err_hid").remove();
- layer.alert(msg, { icon: 5, title: '验证提示' }, function (index) {
- $(".onfocus").focus().removeClass("onfocus");
- layer.close(index);
- });
- }
- return lbRetval;
- },
- data: {
- SystemID: $("#SystemID").val(),
- WarrantNumber: $("#WarrantNumber").val(),
- UserName: $("#UserName").val(),
- MarketID: $("#MarketID").val(),
- Password: $("#Password").val(),
- LinkTel: $("#LinkTel").val()
- },
- success: function (data) {
- if (CheckAajxData(data) === false) return;
- var msg = data.ErrorInfo;
- if (data.Success === true) {
- $("#winModal").window("close");
- layer.alert(msg, { icon: 1, title: '提示信息' });
- } else {
- layer.alert(msg, {icon:7, title: '提示信息' });
- }
- }
- });
- }
- function f_HelpOver() {
- document.getElementById("imggszz").style.display = "block";
- }
- function f_HelpOut() {
- document.getElementById("imggszz").style.display = "none";
- }
- //回车时,默认是登陆
- function keyEnterLogin() {
- if (window.event.keyCode === 13) {
- f_Ok();
- }
- }
- </script>
- <style type="text/css">
- html, body {
- height: 100%;
- margin: 0;
- padding: 0;
- overflow: hidden;
- font-size: 12px;
- font-family: Verdana;
- }
- a {
- color: #72a6d5;
- text-decoration: none;
- }
- a:hover {
- color: #72a6d5;
- text-decoration: underline;
- }
- .wrap {
- background: url(../images/login_bg.jpg) no-repeat;
- position: absolute;
- top: 50%;
- left: 50%;
- width: 647px;
- height: 390px;
- margin: -180px 0 0 -328px;
- }
- .form div {
- margin: 60px 0 0 63px;
- width: 210px;
- display: block;
- }
- .form .TextEditor {
- width: 125px;
- height: 23px;
- padding: 3px 0 0 3px;
- border: 1px solid #999;
- background: url(../images/input_bg00.gif) no-repeat;
- color: #b2b2b2;
- }
- .form .ActiveTextEditor {
- width: 123px;
- height: 22px;
- padding: 3px 0 0 3px;
- border: 2px solid #ffba00;
- }
- .form .input01b {
- width: 57px;
- height: 17px;
- padding: 3px 0 0 3px;
- border: 1px solid #C6D6E3;
- background: url(../images/input_bg00.gif) no-repeat;
- color: #b2b2b2;
- position: relative;
- top: -1px;
- }
- .form .input01c {
- width: 128px;
- height: 20px;
- border: 1px solid #C6D6E3;
- }
- .form .input02b {
- width: 57px;
- height: 17px;
- padding: 3px 0 0 3px;
- border: 1px solid #6aa5d1;
- background: url(~/images/input_bg01.gif) no-repeat;
- position: relative;
- top: -1px;
- }
- .form img {
- width: 60px;
- height: 20px;
- border: 1px solid #C6D6E3;
- margin-right: 6px;
- float: left;
- }
- .btn_login {
- background: url(../images/btn_login.gif) no-repeat center;
- width: 120px;
- height: 34px;
- border: 0;
- }
- .help {
- background: url(../images/help.png) no-repeat left 3px;
- vertical-align: bottom;
- padding-top: 3px;
- height: 20px;
- width: 80px;
- display: block;
- text-indent: 20px;
- float: right;
- margin: 4px 20px 0 0;
- }
- .exit {
- background: url(../images/exit.png) no-repeat left 3px;
- vertical-align: bottom;
- padding-top: 3px;
- height: 20px;
- width: 80px;
- display: block;
- text-indent: 20px;
- float: right;
- margin: 4px 20px 0 0;
- }
- .info {
- clear: both;
- float: right;
- width: 435px;
- margin-top: 225px;
- }
- .info p {
- margin: 0 0 10px 0;
- color: #b2b2b2;
- }
- .info span {
- color: #72a6d5;
- }
- .footer {
- text-align: center;
- color: #ffffff;
- margin-top: 25px;
- }
- .style1 {
- height: 35px;
- width: 64px;
- }
- .style3 {
- height: 22px;
- }
- .style4 {
- width: 64px;
- }
- </style>
- </head>
- <body>
- <section class="hidden">
- <input type="hidden" id="hid_Error" value="@ViewBag.ErrorInfo" />
- </section>
- <form id="frm_edit" onkeydown="keyEnterLogin();" action="/Login/Login" method="post">
- <div class="wrap">
- <div style="height: 90px;"></div>
- <div class="form" style="height: 154px">
- <div style="margin-left: 55px;">
- <table width="100%" border="0" cellspacing="5" cellpadding="0">
- <tr>
- <td valign="middle" class="style1">用户名:</td>
- <td colspan="2"><input id="txtUser" name="UserNo" type="text" TabIndex="1" class="TextEditor" value="@ViewBag.UserNo" onBlur="this.className = 'TextEditor'" onFocus="this.className = 'ActiveTextEditor'" /></td>
- </tr>
- <tr>
- <td valign="middle" class="style1">密 码:</td>
- <td colspan="2"><input id="txtPassword" name="Password" type="password" TabIndex="2" value="@ViewBag.Password" class="TextEditor" onBlur="this.className = 'TextEditor'" onFocus="this.className = 'ActiveTextEditor'" /></td>
- </tr>
- @{
- if (SysDataLibs.AppEnv.SysSetObj.GetBool("IsShowValidateCode"))
- {
- <tr>
- <td valign="middle" class="style1">验证码:</td>
- <td>
- <input id="txtIamge" type="text" name="ImageCode" TabIndex="3" class="TextEditor" onBlur="this.className = 'TextEditor'" @ViewBag.RememberMe
- onFocus="this.className = 'ActiveTextEditor'" style="width: 55px" />
- </td>
- <td><img style="width: 50px;" id="ImageCheck" ToolTip="点击刷新" src=@Url.Action("ValidateCode", "Login") /></td>
- </tr>
- }
- }
- <tr>
- <td class="style4"><input type="checkbox" id="cbCookie" name="RememberMe" TabIndex="3" style="font-size: xx-small" /><label for="cbCookie">记住我</label></td>
- <td valign="bottom" colspan="2" class="style3"><input name="bt_ok" id="bt_ok" tabindex="5" class="btn_login" onclick="f_Ok()" type="button" /></td>
- </tr>
- <tr>
- <td height="30" colspan="3" align="center"><a style="color: Black" onclick="$('#winModal').window('open');">注册新用户</a> </td>
- </tr>
- </table>
- </div>
- </div>
- <a href="mailto:softs@iwbnet.com">
- <div class="footer" style="color: white">版权所有:上海玮搏电子科技有限公司 Copyright ©2016</div></a>
- </div>
- </form>
- <div id="winModal" class="easyui-window winModal" title="新用户注册" style="width: 450px; height: 400px; padding: 10px;"
- iconCls="icon-save" data-options="modal:true,closed:true">
- <div class="easyui-layout" data-options="fit:true" style="height: 99%">
- <div data-options="region:'center'" style="padding: 15px 25px 0;">
- <form id="form" class="row">
- <div class="panle-fluid">
- <div class="input-group">
- <label class="input-group-addon control-label" for="SystemID">用户类型</label>
- <select class="form-control input-group-addon" aria-disabled="true" name="SystemID" id="SystemID" type="text" value="">
- @Html.Raw(ViewBag.SelSystemIDInfo)
- </select>
- <strong class="text-requird input-group-addon control-label">*</strong>
- </div>
- <div class="input-group">
- <label class="input-group-addon control-label" for="WarrantNumber">注册号码</label>
- <input class="form-control input-group-addon required" aria-disabled="true" name="WarrantNumber" id="WarrantNumber" type="text" value="" placeholder="注册号码"/>
- <span class="input-group-addon" onmouseover="f_HelpOver()" onmouseout="f_HelpOut()">
- <img alt="帮助" src="/Images/help1.png" style="height: 80%; width: auto"/>
- </span>
- <strong class="text-requird input-group-addon control-label">*</strong>
- </div>
- <div class="input-group">
- <label class="input-group-addon control-label" for="UserName">企业名称</label>
- <input class="form-control input-group-addon required" aria-disabled="true" name="UserName" id="UserName" type="text" value="" placeholder="企业名称"/>
- <strong class="text-requird input-group-addon control-label">*</strong>
- </div>
- <div class="input-group">
- <label class="input-group-addon control-label" for="Password">登录密码</label>
- <input class="form-control input-group-addon required" aria-disabled="true" name="Password" id="Password" type="password" value="" placeholder="密码"/>
- <strong class="text-requird input-group-addon control-label">*</strong>
- </div>
- <div class="input-group">
- <label class="input-group-addon control-label" for="Password2">确认密码</label>
- <input class="form-control input-group-addon required" aria-disabled="true" name="Password2" id="Password2" type="password" value="" placeholder="再次输入密码确认"/>
- <strong class="text-requird input-group-addon control-label">*</strong>
- </div>
- <div class="input-group">
- <label class="input-group-addon control-label" for="LinkTel">联系电话</label>
- <input class="form-control input-group-addon" aria-disabled="true" name="LinkTel" id="LinkTel" type="text" value="" placeholder="联系电话"/>
- </div>
- </div>
- </form>
- </div>
- <div data-options="region:'south',border:false" style="text-align: right; height: 45px; padding: 13px 20px 0;">
- <a class="easyui-linkbutton" id="Save" data-options="iconCls:'icon-ok'" href="javascript:void(0)" onclick="f_Register()" style="width: 80px">注册</a>
- <a class="easyui-linkbutton" data-options="iconCls:'icon-cancel'" href="javascript:void(0)" onclick="$('#winModal').window('close');" style="width: 80px">取消</a>
- </div>
- </div>
- </div>
- <div style="width: 580px; position: absolute; z-index: 10000; top: 140px; left: 90px;">
- <img alt="工商营业执照-范本" id="imggszz" src="/Images/gszz.jpg" style="display: none"/>
- </div>
- </body>
- </html>
|