ca128b0973b0b9928ff154add4c42b23.php 12 KB

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