d0eb084fd2d26ad7242796120f54735a.php 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211
  1. <?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:72:"D:\wamp\www\yczd\yczd\public/../application/manage\view\index\agent.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. $superWin = $('#super-window').window({
  24. title: '查看',
  25. width: superWinWidth,height: superWinHeight,
  26. left: ($(window).width() -superWinWidth ) /2 ,
  27. top: ($(window).height() -superWinHeight ) /2 ,
  28. shadow: true,modal: true,
  29. iconCls: 'icon-edit',closed: true,resizable:true,
  30. minimizable: false,maximizable: true,collapsible: false
  31. });
  32. $userWin = $('#super-uwindow').window({
  33. title: '个人信息',
  34. width: 500,height: 350,
  35. left: ($(window).width() -500 ) /2 ,
  36. top: ($(window).height() -350 ) /2 ,
  37. shadow: true,modal: true,
  38. iconCls: 'icon-edit',closed: true,resizable:false,
  39. minimizable: false,maximizable: false,collapsible: false
  40. });
  41. });
  42. $(window).resize(function() {
  43. superWinWidth=$(window).width()*0.98;
  44. $('#super-window').window('resize',{
  45. width: editWinWidth,height: editWinHeight
  46. });
  47. });
  48. // 打开超级窗口
  49. function openSupperWin(title,targetUrl){
  50. $superWin.window({"title":title});
  51. $superWin.window('open');
  52. $('#superFrame').attr('src',targetUrl);
  53. }
  54. $(function(){
  55. var treeData=new Array();
  56. treeData.push({"id":"1","text":"第一个菜单"});
  57. var msgChildTreeData=new Array();
  58. msgChildTreeData.push({"id":"sys_menu","text":"菜单管理","url":"/manage/menu/index","target":"tabindex" });
  59. treeData.push({"id":"sys","text":"系统管理","children":msgChildTreeData});
  60. $('#menutree').tree({
  61. url:"/manage/index/menudata",
  62. onClick:function(menuEl){
  63. if(menuEl.href!=null){
  64. open_panel(menuEl.text,menuEl.href);
  65. }
  66. }
  67. });
  68. });
  69. // 打开一个Tab
  70. function open_panel(tit, url) {
  71. //否则添加或选择到相应tab
  72. if ($('#mainTabs').tabs('exists', tit)) { //如果已存在则选择
  73. $('#mainTabs').tabs('select', tit);
  74. } else {
  75. var url_content = '<iframe id="" width="100%" height="100%" src="' + url + '" frameborder="0" allowtransparency="true" scrolling="no"></iframe>';
  76. var mytab=$('#mainTabs').tabs('add', {
  77. title: tit,
  78. content: url_content,
  79. closable: true,
  80. tools: [{
  81. //添加刷新图标
  82. iconCls: 'icon-mini-refresh',
  83. handler: function() {
  84. var cur_tab = $('#mainTabs').tabs('getSelected');
  85. $('#mainTabs').tabs('update', {
  86. tab: cur_tab, options: { content: url_content }
  87. });
  88. }
  89. }]
  90. });
  91. }
  92. }
  93. function logout(){
  94. $.ajax({
  95. url:"/manage/login/logout",
  96. data:"t="+new Date(),
  97. success:function(rs){
  98. if(rs=="ok"){
  99. document.location="/manage/login/index";
  100. }
  101. },error:function(e,e1,e2){
  102. alert(e2);
  103. }
  104. });
  105. }
  106. // 保存信息
  107. function save(){
  108. var data=$("#myform").serialize();
  109. $.ajax({
  110. url:"/manage/index/saveUserInfo",
  111. data:data,type:"get",
  112. success:function(rs){
  113. if(rs=="ok"){
  114. alert("保存成功!");
  115. }else{
  116. alert("保存失败!");
  117. }
  118. },error:function(e,e1,e2){
  119. alert(e2);
  120. }
  121. });
  122. }
  123. </script>
  124. </head>
  125. <body class="easyui-layout" >
  126. <div data-options="region:'north',split:false,border:false" style="height: 50px; overflow: hidden;" >
  127. <div id="topbar" class="title" style=' background-position:100px 0px;width:100%;height:100%;'>
  128. <div id="topbar-logon" class="right" style="float:right; padding-right:20px;height:50px;margin-top: 10px;">
  129. <a data-options="plain:'true',iconCls:'icon-man' " id="logout" href="#" onclick="$userWin.window('open')" class="easyui-linkbutton" ><?php echo $manager["username"]; ?></a>
  130. <a data-options="plain:'true',iconCls:'icon-remove' " id="logout" href="#" onclick="logout()" class="easyui-linkbutton" >注销</a>
  131. <a data-options="iconCls:'icon-help',menu:'#topbar-menu'" class="easyui-menubutton" >管理</a>
  132. <div id="topbar-menu" style="width: 150px;">
  133. <div onclick="$userWin.window('open')" >修改个人信息</div>
  134. <div class="menu-sep"></div>
  135. <div data-options="iconCls:'icon-help'" onclick="showAbout()">关于</div>
  136. </div>
  137. </div>
  138. <div id="topbar-info" class="left" style="line-height: 50px;width:450px;height: 50px;" >
  139. <img src="/static/images/manage/logo.png" height="45" style="float: left;margin: 2px 0 0 2px;" />
  140. <div style="width: 250px;height: 40px;line-height:40px ;margin: 5px;font-size: 22px;float: left;color: #333;" >(远程诊断系统)</div>
  141. </div>
  142. </div>
  143. </div>
  144. <div data-options="region:'south',split:false,border:true" style="height: 25px;text-align: center;line-height: 25px;" ></div>
  145. <!--
  146. <div data-options="region:'east',split:true" title="East" style="width:100px;"></div>
  147. -->
  148. <div title="功能导航" id="menu" data-options="region:'west',split:false,border:true,icon:'icon-forward'" style="height:100%;width: 180px; overflow: auto;" >
  149. <ul id="menutree" style="padding: 0px; margin: 0px;height:97%;"></ul>
  150. </div>
  151. <div data-options="region:'center',split:false,border:false" >
  152. <div id="mainTabs" data-options="fit:true,border:false" class="easyui-tabs" >
  153. <div title="欢迎使用" style="overflow: hidden;">
  154. <iframe id="tabindex" name="tabindex" src="/manage/index/welcome" style="width: 100%; height: 100%; border: 0;" scrolling="no" ></iframe>
  155. </div>
  156. </div>
  157. </div>
  158. <div id="super-window" class="easyui-window" style="overflow: hidden" ><iframe src="about:blank" id="superFrame" style="width:100%;height:100%" frameborder="0" scrolling="yes" ></iframe></div>
  159. <div id="super-uwindow" class="easyui-window" style="overflow: hidden;display: none" >
  160. <form name="myform" id="myform" action="" method="get" >
  161. <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>
  162. <div style="width: 250px;margin:10px 0 0 120px;" >原密码:<input name="opwd" id="opwd" class="easyui-textbox" type="password" style="width:200px;" value="" /> </div>
  163. <div style="width: 250px;margin:10px 0 0 120px;" >新密码:<input name="upwd" id="upwd" class="easyui-textbox" type="password" style="width:200px;" value="" /> </div>
  164. <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>
  165. <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>
  166. <div style="width: 250px;margin:15px 0 0 168px;" >
  167. <a type="button" class="easyui-linkbutton" data-options="iconCls:'icon-save'" onclick="save()">保存</a>&nbsp;
  168. <a type="button" class="easyui-linkbutton" data-options="iconCls:'icon-cancel'" onclick="$userWin.window('close')">关闭</a>
  169. </div>
  170. </form>
  171. </div>
  172. <script type="text/javascript">
  173. $(function(){
  174. $('#main_layout').layout();
  175. setHeight();
  176. });
  177. function setHeight(){
  178. var c = $('#main_layout');
  179. var p = c.layout('panel','center'); // get the center panel
  180. var oldHeight = p.panel('panel').outerHeight();
  181. p.panel('resize', {height:'auto'});
  182. var newHeight = p.panel('panel').outerHeight();
  183. alert(newHeight);
  184. c.layout('resize',{
  185. height: (c.height() + newHeight - oldHeight)
  186. });
  187. }
  188. </script>
  189. </body>
  190. </html>