123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517 |
- <!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>
- <meta http-equiv="Cache-Control" content="no-store" />
- <meta http-equiv="Pragma" content="no-cache" />
- <meta http-equiv="Expires" content="-1" />
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
- <meta http-equiv="X-UA-Compatible" content="IE=edge" />
- <link rel="shortcut icon" href="themes/logo.ico" type="image/x-icon" />
- <title>西安前沿动力仿真管理平台</title>
- <script type="text/javascript" src="scripts/jquery-1.8.3.js"></script>
- <link rel="stylesheet" type="text/css" href="themes/icon.css">
- <link rel="stylesheet" type="text/css" href="themes/blue/easyui.css">
- <link rel="stylesheet" type="text/css" href="themes/blue/mc.css">
- <script type="text/javascript" src="scripts/jquery.easyui.js"></script>
- <script type="text/javascript" src="scripts/easyui-lang-zh_CN.js"></script>
- <script type="text/javascript"
- src="scripts/jquery.validate.rules.generate.js"></script>
- <script type="text/javascript" src="scripts/config.js"></script>
- <script type="text/javascript" src="scripts/comment.js"></script>
- <script type="text/javascript" src="scripts/utils.js"></script>
- <script type="text/javascript" src="scripts/loginutil.js"></script>
- <script type="text/javascript" src="scripts/init.js"></script>
- <script type="text/javascript" src="scripts/jquery.edatagrid.js"></script>
- <style type="text/css">
- .rumustyle{
- width: 48px;
- }
- .leftcurtain {
- width: 50%;
- height: 100%;
- top: 0px;
- left: 0px;
- background-color: #000000;
- position: absolute;
- z-index: 30001;
- }
- .rightcurtain {
- width: 51%;
- height: 100%;
- right: 0px;
- top: 0px;
- background-color: #000000;
- position: absolute;
- z-index: 30001;
- }
- .login{
- position: relative;
- }
- #loginTitle{
- position: absolute;
- top: 12px;
- left: 105px;
- color: #FC962D;
- font-size: 18px;
- background-color: #58B7C2;
- padding: 5px 44px 5px 0;
- font-weight: 600;
- letter-spacing: 2px;
- text-shadow: -1px 0 #fff, 0 1px #fff, 1px 0 #fff, 0 -1px #fff;
- }
- #indexTitle{
- position: absolute;
- top: 6px;
- display: flex;
- }
- #indexTitle>span{
- position: relative;
- top: -6px;
- font-size: 20px;
- padding: 0 135px 0 128px;
- color:#FC962D;
- background: linear-gradient(to top,#094abe,#2287e3);
- line-height: 60px;
- border-radius: 0 30px 30px 0;
- margin: 0;
- font-weight: 600;
- letter-spacing: 2px;
- text-shadow: -1px 0 #fff, 0 1px #fff, 1px 0 #fff, 0 -1px #fff;
- }
- #indexTitle>img{
- position: absolute;
- z-index: 20;
- left: 37px;
- }
- </style>
- <script type="text/javascript">
- //设置随机的临时tocken
- $.__token = uuid();
- /* $(function(){
-
- }); */
-
- //切换样式
- $(function(){
- $("input[type=text]",$("#ff")).val("");
- $("input[type=password]",$("#ff")).val("");
- changeImage();
- $("#__thems").find("b").each(function(){
- $(this).click(function(){
- var $style = $(this).attr("class");
- if($style.indexOf(" ")>-1){
- $style = $style.split(" ")[0];
- }
- var headLink = $('link[title="swicth"]',window.document.head);
- $(headLink[0]).attr("href","themes/"+$style+"/easyui.css");
- $(headLink[1]).attr("href","themes/"+$style+"/mc.css");
-
- if(window.frames.length>0){
- var i=0;
- for(;i<window.frames.length;i++){
- var _headLink = $('link[title="swicth"]',$(window.frames[i].document).find("head"));
- if(_headLink.length === 3){
- $(_headLink[0]).attr('href',"../../themes/"+$style+"/workflow/css/workflow.css");
- }
- $(_headLink[0]).attr('href',"../../themes/"+$style+"/easyui.css");
- $(_headLink[1]).attr('href',"../../themes/"+$style+"/mc.css");
- }
- }
- $(this).attr("class",$style);
- setCookie("thems",$style);
- });
- });
- $('#tt').tabs({
- onContextMenu:function(e,title,index){
- e.preventDefault();
- if(title==="首页"){
- $('#mm_index').menu('show', {
- left: e.pageX,
- top: e.pageY
- });
- }else
- {
- $('#mm').menu('show', {
- left: e.pageX,
- top: e.pageY
- });
- };
- },
- onBeforeClose: function(title,index){
- var target = this;
- var flag = true;
- var trobj = $(target).find("iframe").contents().find("div.datagrid-view2 div.datagrid-body tr:visible");
- if(!forceCloseFlag){
- $.each(trobj, function (){
- var action = $(this).attr("__actiontype");
- if(action){
- flag = false;
- return;
- }
- });
- }
- if(!flag){
- flag = true;
- return false;
- }
- }
- });
- $("#mm_index").menu({
- onClick:function(item){
- var tabs = $("#tt"),type = item.name;
- // var allTabs = tabs.tabs("tabs");
- // var tableTiles = [],allTableTile = [];
- // var frames = [];
- // var trobj = $(tabs.tabs('getSelected').find("iframe").contents()).find("div.datagrid-view2 div.datagrid-body tr");
- // var title = tabs.tabs('getSelected').panel("options").title;
- var url = $(tabs.tabs('getSelected').panel("options").content).attr("src");
- if(type === "refresh"){
- //alert(url);
- tabs.tabs('update',{
- tab:tabs.tabs('getSelected'),
- options:{
- content:createFrame(url)
- }
- })
- }
- }
- });
- $("#mm").menu({
- onClick:function(item){
- var tabs = $("#tt"),type = item.name;
- var allTabs = tabs.tabs("tabs");
- var tableTiles = [],allTableTile = [];
- var frames = [];
- var trobj = $(tabs.tabs('getSelected').find("iframe").contents()).find("div.datagrid-view2 div.datagrid-body tr");
- var title = tabs.tabs('getSelected').panel("options").title;
- var url = $(tabs.tabs('getSelected').panel("options").content).attr("src");
- if(type === "close"){
- var flag = true;
- $.each(trobj, function (){
- var action = $(this).attr("__actiontype");
- if(action){
- flag = false;
- return;
- }
- });
- if(flag){
- tabs.tabs("close", title);
- return;
- }
- }else if(type === "other"){
- tableTiles = [];
- allTableTile = [];
- for(var a in allTabs){
- var trobjs = allTabs[a].find("iframe").contents().find("div.datagrid-view2 div.datagrid-body tr");
- var titles = allTabs[a].panel("options").title;
-
- $.each(trobjs, function (){
- if($(this).attr("__actiontype")){
- tableTiles.push(titles);
- }
- });
- if(allTabs[a].panel("options").closable){
- allTableTile.push(titles);
- }
- }
- if(contain(tableTiles,title)){
- remove(title,tableTiles);
- }
- remove(title,allTableTile);
- var str = "";
- if(tableTiles.length>0){
- str = "["+tableTiles.join("] [")+"]";
- }else{
- for(var i = 0; i < allTableTile.length; i++) {
- tabs.tabs("close", allTableTile[i]);
- }
- }
-
-
- }else if(type === "all"){
- for(var a in allTabs){
- var trobjs = allTabs[a].find("iframe").contents().find("div.datagrid-view2 div.datagrid-body tr");
- var titles = allTabs[a].panel("options").title;
- $.each(trobjs, function (){
- if($(this).attr("__actiontype")){
- tableTiles.push(titles);
- }
- });
- if(allTabs[a].panel("options").closable){
- allTableTile.push(titles);
- }
- }
- var str = "";
- if(tableTiles.length>0){
- str = "["+tableTiles.join("] [")+"]";
- }else{
- for(var i = 0; i < allTableTile.length; i++) {
- tabs.tabs("close", allTableTile[i]);
- }
- }
- }else if(type === "refresh"){
- tabs.tabs('update',{
- tab:tabs.tabs('getSelected'),
- options:{
- content:createFrame(url)
- }
- })
- }
- }
- });
- });
- function indexOf(val,arr){
- for (var i = 0; i <arr.length; i++) {
- if (arr[i] == val) return i;
- }
- return -1;
- }
- function remove(val,arr) {
- var index = indexOf(val,arr);
- if (index > -1) {
- arr.splice(index, 1);
- }
- }
- function resetForm(){
- $("input[type=text]",$("#ff")).val("");
- $("input[type=password]",$("#ff")).val("");
- changeImage();
- }
-
- </script>
- <style type="text/css">
- body table tr td {
- font-size: 12px;
- }
- </style>
- </head>
- <body class="easyui-layout" data-options="fit:true">
- <div class="leftcurtain"></div>
- <div class="rightcurtain"></div>
- <!-- 右键菜单开始 -->
- <div id="mm_index" class="easyui-menu" style="width: 90px;">
- <div name="refresh" data-options="iconCls:'icon-reload'">刷新</div>
- </div>
- <div id="mm" class="easyui-menu" style="width: 90px;">
- <div name="refresh" data-options="iconCls:'icon-reload'">刷新</div>
- <div class="menu-sep"></div>
- <div name="close" data-options="iconCls:'icon-save'">关闭</div>
- <div name="other" data-options="iconCls:'icon-save'">关闭其它</div>
- <div name="all" data-options="iconCls:'icon-save'">关闭全部</div>
- </div>
- <!-- 右键菜单结束 -->
- <!--登陆开始-->
- <div class="login" style="z-index: 30002;">
- <div id="loginTitle"> 西安前沿动力仿真管理平台</div>
- <form id="ff" method="post" style="font-family: '宋体'">
- <p>
- <span style="font-size: 12px;" class="rumustyle">用户名:</span> <span><input
- autocomplete="off" class="easyui-validatebox"
- data-options="required:true" name="userId" id="_userId" type="text"></span>
- </p>
- <div id="passwordcontext"></div>
- <script>
- $(function(){
- var context = '<p><span style="font-size: 12px;" class="rumustyle"> 密码:</span> <span><input autocomplete="off" class="easyui-validatebox" data-options="required:true" name="password" id="password" type="password"></span></p>';
- // var context1 = '<p><span style="font-size: 12px;"> 密码:</span><span><input autocomplete="off" class="easyui-validatebox" data-options="required:true" name="password" id="password" type="password"></span></p>';
- // var context2 = '<p><span style="font-size: 12px;"> 密码:</span><span><input autocomplete="off" class="easyui-validatebox" data-options="required:true" name="password" id="password" type="password"></span></p>';
- // var context3 = '<p><span style="font-size: 12px;"> 密码:</span><span><input autocomplete="off" class="easyui-validatebox" data-options="required:true" name="password" id="password" type="password"></span></p>';
- // var windows = (navigator.userAgent.indexOf("Windows",0) != -1)?1:0;
- // if(windows){
- // if(window.navigator.userAgent.indexOf("Chrome")>=1){
- // $("#passwordcontext").append(context1);
- // }else if(window.navigator.userAgent.indexOf("MSIE")>=1||window.navigator.userAgent.indexOf("Safari")>=1){
- // $("#passwordcontext").append(context2);
- // }else {
- // $("#passwordcontext").append(context1);
- // }
- // }else{
- // $("#passwordcontext").append(context3);
- // }
- $("#passwordcontext").append(context);
- });
- </script>
- <p>
- <span style="font-size: 12px;" class="rumustyle">验证码:</span> <span> <input
- autocomplete="off" class="easyui-validatebox"
- data-options="required:true" type="text" name="verifygraph"
- id="verifygraph" style="width: 120px"> </span>
- </p>
- <p>
- <img id="validateNoImage"
- style="vertical-align: top; margin-left: 63px; height: 25px; weight: 120px;"
- alt="" border="0" src="" onclick="changeImage()" /> <span
- style="font-size: 12px;">图片不清晰,请点击图片更换!</span>
- </p>
- <div class="loginbtn" align="center">
- <input id="_logBtn" type="button" onclick="LoginSubmit()"
- value="确 定"> <input type="button" class="m-l8" value="重 置"
- onclick="resetForm()" />     
- </div>
- <div id="copyright1"></div>
- </form>
- </div>
- <!--登陆结束-->
- <!--顶部开始-->
- <div data-options="region:'north',split:false" class="northCss"
- border="false" style="height: 81px;">
- <div class="top-posi" style="position: relative; color: #fff">
- <div id="indexTitle">
- <img src="./themes/blue/blueimg/adilog.png" alt="" width="60" height="60">
- <span>西安前沿动力仿真管理平台</span>
- </div>
- <p id="__thems" style="position: absolute; right: 15px; top: 15px">
- <b class="blue"></b><b class="green"></b> <b class="red"></b><b
- class="black"> </b> <span>  <span id="nickname"></span>  |  <a
- href="#" onclick="openPassword()"> 密码修改 </a>  |  <a
- href="#" onclick="loginOut()"> 安全退出 </a>
- </span>
- </p>
- <p style="position: absolute; right: 15px; top: 35px">
- <span> 上次登录IP: <span id="preloginip"></span>  |  上次登录时间: <span
- id="prlogintime"></span></span>
- </p>
- </div>
- </div>
- <!--顶部结束-->
- <!--左边开始-->
- <div id="menus"
- data-options="region:'west',split:true,collapsible:true,title:' '"
- style="width: 170px;"></div>
- <!--左边结束-->
- <!--内容开始-->
- <div data-options="region:'center'" style="overflow: auto">
- <div id="tt" class="easyui-tabs" data-options="fit:true">
- <div title="首页" style="color: red">
- </div>
- </div>
- </div>
- <!--内容结束-->
- <!--底部开始-->
- <div id="copyright2" data-options="region:'south'" class="bottom-bg"
- style="height: 30px;"></div>
- <!--底部结束-->
- <!-- 下面为密码修改弹出窗体部分 -->
- <div id="dlgModify" iconCls="icon-edit" class="easyui-dialog"
- title="密码修改"
- style="width: 380px; height: 180px; padding: 10px; align: 'center'; top: 220px;"
- data-options="modal:true,closed:true,buttons: '#dlg_tb'">
- <div data-options="region:'center'" style="width: auto">
- <form id="passwordForm" action="" method="post">
- <table>
- <tr style="height: 28px;">
- <td align="right" class="self_td" style="width: 100px;">原 密
- 码:</td>
- <td style="width: 100px;"><input autocomplete="off"
- type="password" id="oldPassword" class="easyui-validatebox"
- data-options="panelHeight:'auto',editable:true,required:true,validType:['length[8,64]','vBaseEcnName']" />
- </td>
- </tr>
- <tr style="height: 28px;">
- <td style="width: 100px; text-align: right;" class="self_td">新
- 密 码:</td>
- <td style="width: 150px;"><input autocomplete="off"
- type="password" id="newPassword" class="easyui-validatebox"
- data-options="panelHeight:'auto',editable:true,required:true,validType:['length[8,64]','vBaseEcnName']" />
- </td>
- </tr>
- <tr style="height: 28px;">
- <td style="width: 100px; text-align: right;" class="self_td">再次输入:</td>
- <td style="width: 150px;"><input autocomplete="off"
- type="password" id="newPassword1" class="easyui-validatebox"
- data-options="panelHeight:'auto',editable:true,required:true,validType:['length[8,64]','vBaseEcnName']" />
- </td>
- </tr>
- </table>
- </form>
- </div>
- <div id="dlg_tb"
- style="text-align: center; width: 300px; height: 30px; vertical-align: middle;">
- <a id="ok_modify" href="javascript:void(0)" class="easyui-linkbutton"
- data-options="iconCls:'icon-ok',plain:true"
- onclick="javascript:{checkPassword();}">确定</a> <a id="no_modify"
- href="javascript:void(0)" class="easyui-linkbutton"
- data-options="iconCls:'icon-cancel',plain:true"
- onclick="javascript:{$('#passwordForm').form('clear');$('#dlgModify').dialog('close')}">关闭</a>
- </div>
- </div>
- <!-- 密码修改弹出窗体部分结束 -->
- <script>
- $(function(){
- //动态修改,版权所有
- var context ='<div id="copyright1" style="font-size: 12px; padding-right: 50px; padding-top: ';
- var _uat=navigator.userAgent;
- if(_uat.indexOf("Firefox")>0){
- context=context+'5px;';
- }else{
- context=context+'5px;';
- }
-
- context=context+'font-family: 微软雅黑;">';
- context = context + copyRight+' </div>';
- $("#copyright1").append(context);
- $("#copyright2").append(copyRight);
- $(window).resize();
- });
- function openPassword(){
- $('#passwordForm').form('clear');
- $('#dlgModify').dialog('open');
- };
-
- function checkPassword(){
- var arr = $("#passwordForm").form('validate');
- if(arr){
-
- var oldpassword=$("#oldPassword").val();
- var newpassword=$("#newPassword").val();
- var password1=$("#newPassword1").val();
-
- if(newpassword!=password1){
- $.messager.alert('系统提示','两次新密码输入不同,请您重新输入!','info');
- return;
- }
-
- oldpassword=enPasswd(oldpassword);
- newpassword=enPasswd(newpassword);
- password1=enPasswd(password1);
-
- var params = 'oldpassword='+oldpassword+'&newpassword='+newpassword;
- syncAjaxCall('HM0003',params,function(data){
- $('#passwordForm').form('clear');
- $('#dlgModify').dialog('close');
- if(!data)return;
- if(data.returnCode=='000000000'){
- $.messager.alert('系统提示','恭喜您,您的新密码设置成功!','info');
- }
- },function(data){
- $('#passwordForm').form('clear');
- $('#dlgModify').dialog('close');
- $.messager.alert('系统错误','错误码:['+data.returnCode+'],错误信息:['+data.returnMsg+'].','error');
- });
- }
- return arr;
- };
-
- </script>
- </body>
- </html>
|