23d73028c1aaa534e22a134f076d7c8f.php 9.6 KB

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