ins.html 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>远程诊断系统-后台管理-中世康恺</title>
  5. {include file="../application/manage/view/commons/headers.html" }
  6. <script >
  7. // 编辑窗口
  8. var $superWin;
  9. var $userWin;
  10. var superWinWidth=$(window).width()*0.98;
  11. var superWinHeight=$(window).height()-35;
  12. $(function(){
  13. $userWin = $('#super-uwindow').window({
  14. title: '个人信息',
  15. width: 500,height: 350,
  16. left: ($(window).width() -500 ) /2 ,
  17. top: ($(window).height() -350 ) /2 ,
  18. shadow: true,modal: true,
  19. iconCls: 'icon-edit',closed: true,resizable:false,
  20. minimizable: false,maximizable: false,collapsible: false
  21. });
  22. });
  23. // 打开超级窗口
  24. function openSupperWin(title,targetUrl){
  25. $superWin.window({"title":title});
  26. $superWin.window('open');
  27. $('#superFrame').attr('src',targetUrl);
  28. }
  29. // 打开一个Tab
  30. function open_panel(tit, url ) {
  31. //否则添加或选择到相应tab
  32. if ($('#mainTabs').tabs('exists', tit)) { //如果已存在则选择
  33. $('#mainTabs').tabs('select', tit);
  34. } else {
  35. var url_content = '<iframe id="" width="100%" height="100%" src="' + url + '" frameborder="0" allowtransparency="true" scrolling="no"></iframe>';
  36. var mytab=$('#mainTabs').tabs('add', {
  37. title: tit,
  38. content: url_content,
  39. closable: true,
  40. tools: [{
  41. //添加刷新图标
  42. iconCls: 'icon-mini-refresh',
  43. handler: function(event) {
  44. var cur_tab = $('#mainTabs').tabs('getSelected');
  45. $('#mainTabs').tabs('update', {
  46. tab: cur_tab, options: { content: url_content }
  47. });
  48. }
  49. }]
  50. });
  51. }
  52. }
  53. function logout(){
  54. $.ajax({
  55. url:"/manage/login/logout",
  56. data:"t="+new Date(),
  57. success:function(rs){
  58. if(rs=="ok"){
  59. document.location="/manage/login/index";
  60. }
  61. },error:function(e,e1,e2){
  62. alert(e2);
  63. }
  64. });
  65. }
  66. // 保存信息
  67. function save(){
  68. var data=$("#myform").serialize();
  69. $.ajax({
  70. url:"/manage/index/saveUserInfo",
  71. data:data,type:"get",
  72. success:function(rs){
  73. if(rs=="ok"){
  74. alert("保存成功!");
  75. }else{
  76. alert("保存失败!");
  77. }
  78. },error:function(e,e1,e2){
  79. alert(e2);
  80. }
  81. });
  82. }
  83. var urls=new Array();
  84. urls[0]={ name :"医生管理", url :"/manage/insdoctors/index"};
  85. urls[1]={"name":"科室管理","url":"/manage/insdoctors/deptview"};
  86. urls[2]={"name":"数据统计","url":"/manage/insdoctors/stats"};
  87. var intV=null;
  88. function openUserPanels(){
  89. if(urls.length<1){
  90. window.clearInterval(intV);
  91. return;
  92. }
  93. var page=urls[0];
  94. open_panel(page.name,page.url);
  95. urls.splice(0,1);
  96. }
  97. $(function(){
  98. intV=window.setInterval("openUserPanels()",1000);
  99. });
  100. </script>
  101. </head>
  102. <body class="easyui-layout" >
  103. <div data-options="region:'north',split:false,border:false" style="height: 50px; overflow: hidden;" >
  104. <div id="topbar" class="title" style=' background-position:100px 0px;width:100%;height:100%;'>
  105. <div id="topbar-logon" class="right" style="float:right; padding-right:20px;height:50px;margin-top: 10px;">
  106. <a data-options="plain:'true',iconCls:'icon-man' " id="logout" href="#" onclick="$userWin.window('open')" class="easyui-linkbutton" >{$manager["username"]}</a>
  107. <a data-options="plain:'true',iconCls:'icon-remove' " id="logout" href="#" onclick="logout()" class="easyui-linkbutton" >注销</a>
  108. <a data-options="iconCls:'icon-help',menu:'#topbar-menu'" class="easyui-menubutton" >管理</a>
  109. <div id="topbar-menu" style="width: 150px;">
  110. <div onclick="$userWin.window('open')" >修改个人信息</div>
  111. <div class="menu-sep"></div>
  112. <div data-options="iconCls:'icon-help'" onclick="showAbout()">关于</div>
  113. </div>
  114. </div>
  115. <div id="topbar-info" class="left" style="line-height: 50px;width:450px;height: 50px;" >
  116. <img src="/static/images/manage/logo.png" height="45" style="float: left;margin: 2px 0 0 2px;" />
  117. <div style="width: 250px;height: 40px;line-height:40px ;margin: 5px;font-size: 22px;float: left;color: #333;" >(远程诊断系统)</div>
  118. </div>
  119. </div>
  120. </div>
  121. <div data-options="region:'south',split:false,border:true" style="height: 25px;text-align: center;line-height: 25px;" ></div>
  122. <div data-options="region:'center',split:false,border:false" >
  123. <div id="mainTabs" data-options="fit:true,border:false" class="easyui-tabs" >
  124. </div>
  125. </div>
  126. <div id="super-uwindow" class="easyui-window" style="overflow: hidden;display: none" >
  127. <form name="myform" id="myform" action="" method="get" >
  128. <div style="width: 250px;margin:25px 0 0 120px;" >用户名:<input name="username" class="easyui-textbox" id="username" readonly="true" style="width:200px;" value="{$manager.username}" /> </div>
  129. <div style="width: 250px;margin:10px 0 0 120px;" >原密码:<input name="opwd" id="opwd" class="easyui-textbox" type="password" style="width:200px;" value="" /> </div>
  130. <div style="width: 250px;margin:10px 0 0 120px;" >新密码:<input name="upwd" id="upwd" class="easyui-textbox" type="password" style="width:200px;" value="" /> </div>
  131. <div style="width: 250px;margin:10px 0 0 120px;" >手机号:<input name="phone" id="phone" class="easyui-textbox" type="text" style="width:200px;" value="{$manager.phone}" /> </div>
  132. <div style="width: 250px;margin:10px 0 0 120px;" >电子邮:<input name="email" id="email" class="easyui-textbox" type="text" style="width:200px;" value="{$manager.email}" /> </div>
  133. <div style="width: 250px;margin:15px 0 0 168px;" >
  134. <a type="button" class="easyui-linkbutton" data-options="iconCls:'icon-save'" onclick="save()">保存</a>&nbsp;
  135. <a type="button" class="easyui-linkbutton" data-options="iconCls:'icon-cancel'" onclick="$userWin.window('close')">关闭</a>
  136. </div>
  137. </form>
  138. </div>
  139. <script type="text/javascript">
  140. $(function(){
  141. $('#main_layout').layout();
  142. setHeight();
  143. });
  144. function setHeight(){
  145. var c = $('#main_layout');
  146. var p = c.layout('panel','center'); // get the center panel
  147. var oldHeight = p.panel('panel').outerHeight();
  148. p.panel('resize', {height:'auto'});
  149. var newHeight = p.panel('panel').outerHeight();
  150. alert(newHeight);
  151. c.layout('resize',{
  152. height: (c.height() + newHeight - oldHeight)
  153. });
  154. }
  155. </script>
  156. </body>
  157. </html>