header.php 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330
  1. <?php if(!defined( 'WY_ROOT')) exit;?>
  2. <!doctype html>
  3. <html>
  4. <head>
  5. <meta charset="utf-8">
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
  7. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  8. <meta name="viewport" content="width=device-width,initial-scale=1">
  9. <title><?php echo isset($title) ? $title. ' - ' : '' ?> <?php echo $this->config['sitename']?></title>
  10. <link href="/static/common/bootstrap.min.css" type="text/css" rel="stylesheet">
  11. <link href="/static/admin/app.css" type="text/css" rel="stylesheet">
  12. <link href="/static/common/datetimepicker.min.css" type="text/css" rel="stylesheet">
  13. <script src="/static/common/jquery-1.12.1.min.js" type="text/javascript"></script>
  14. <script src="/static/common/bootstrap.min.js" type="text/javascript"></script>
  15. <script src="/static/common/jquery.zclip.min.js" type="text/javascript"></script>
  16. <script src="/static/common/datetimepicker.min.js" type="text/javascript"></script>
  17. <script src="/static/admin/app.js" type="text/javascript"></script>
  18. <style>
  19. /* Table Head */
  20. #table-6 thead th {
  21. background-color:#4F94CD;
  22. color: #fff;
  23. border-bottom-width: 0;
  24. }
  25. /* Column Style */
  26. #table-6 td {
  27. color: #737373;
  28. }
  29. /* Heading and Column Style */
  30. #table-6 tr, #table-6 th {
  31. border-width: 1px;
  32. border-style: solid;
  33. border-color: #9FB6CD;
  34. }
  35. /* Padding and font style */
  36. #table-6 td, #table-6 th {
  37. padding: 10px 10px;
  38. font-size: 12px;
  39. border-color:#4F94CD;
  40. }
  41. </style>
  42. </head>
  43. <body>
  44. <div style="position:fixed;left:40%;z-index:999">
  45. <div class="woody-prompt">
  46. <div class="prompt-error alert alert-danger">
  47. </div>
  48. </div>
  49. </div>
  50. <div id="header">
  51. <div class="container-fluid">
  52. <div class="row">
  53. <div class="col-md-4 col-sm-4 col-xs-8">
  54. <div class="logo">
  55. <a href="<?php echo $this->dir ?>" class="logo" title="智通付后台管理系统"><img src="/picture/logo.png" width="195" height="34" alt="智通付后台管理系统"/></a>
  56. </a>
  57. </div>
  58. </div>
  59. <div class="col-md-8 col-sm-8 col-xs-4">
  60. <a href="<?php echo $this->dir ?>login/logout" class="hidden-md hidden-lg hidden-xs"
  61. style="font-size:2em;float:right;margin-top:15px;margin-left:20px">
  62. <span class="glyphicon glyphicon-off">
  63. </span>
  64. </a>
  65. <a href="<?php echo $this->dir ?>set" class="hidden-md hidden-lg" style="font-size:2em;float:right;margin-top:15px;margin-left:20px">
  66. <span class="glyphicon glyphicon-cog">
  67. </span>
  68. </a>
  69. <a href="javascript:;" class="hidden-md hidden-lg" id="dropdownMenu" style="font-size:2em;float:right;margin-top:15px">
  70. <span class="glyphicon glyphicon-th-large">
  71. </span>
  72. </a>
  73. <div class="nav hidden-xs hidden-sm">
  74. <ul>
  75. <li>
  76. <a href="<?php echo $this->dir ?>login/logout">
  77. <span class="glyphicon glyphicon-off">
  78. </span>
  79. &nbsp;登出
  80. </a>
  81. </li>
  82. <li>
  83. <a href="<?php echo $this->dir ?>set">
  84. <span class="glyphicon glyphicon-cog">
  85. </span>
  86. &nbsp;系统设置
  87. </a>
  88. </li>
  89. <li class="dropdown">
  90. <a href="/" target="_blank">
  91. <span class="glyphicon glyphicon-home">
  92. </span>
  93. &nbsp;返回网站
  94. </a>
  95. <span class="v-line">
  96. |
  97. </span>
  98. <a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown"
  99. role="button" aria-haspopup="true" aria-expanded="false">
  100. 账号
  101. <?php echo $this->
  102. session->get('login_adminname')?>&nbsp;
  103. <span class="caret">
  104. </span>
  105. </a>
  106. <ul class="dropdown-menu">
  107. <li>
  108. <a href="<?php echo $this->dir ?>admins">
  109. <span class="glyphicon glyphicon-user">
  110. </span>
  111. &nbsp;账号列表
  112. </a>
  113. </li>
  114. <li>
  115. <a href="<?php echo $this->dir ?>pwd">
  116. <span class="glyphicon glyphicon-lock">
  117. </span>
  118. &nbsp;修改密码
  119. </a>
  120. </li>
  121. <li>
  122. <a href="<?php echo $this->dir ?>logs">
  123. <span class="glyphicon glyphicon-time">
  124. </span>
  125. &nbsp;登陆日志
  126. </a>
  127. </li>
  128. <li role="separator" class="divider">
  129. </li>
  130. <li>
  131. <a href="<?php echo $this->dir ?>mailtpl">
  132. <span class="glyphicon glyphicon-bookmark">
  133. </span>
  134. &nbsp;邮件模板
  135. </a>
  136. </li>
  137. <li>
  138. <a href="<?php echo $this->dir ?>ordernotify">
  139. <span class="glyphicon glyphicon-list-alt">
  140. </span>
  141. &nbsp;通知记录
  142. </a>
  143. </li>
  144. <li>
  145. <a href="<?php echo $this->dir ?>bd">
  146. <span class="glyphicon glyphicon-transfer">
  147. </span>
  148. &nbsp;补发订单
  149. </a>
  150. </li>
  151. <li role="separator" class="divider">
  152. </li>
  153. <li>
  154. <a href="<?php echo $this->dir ?>login/logout">
  155. <span class="glyphicon glyphicon-off">
  156. </span>
  157. &nbsp;安全退出
  158. </a>
  159. </li>
  160. </ul>
  161. </li>
  162. </ul>
  163. </div>
  164. </div>
  165. </div>
  166. </div>
  167. </div>
  168. <div id="top-nav" class="hidden-xs hidden-sm">
  169. <div class="container-fluid">
  170. <div class="row">
  171. <div class="col-md-9 col-md-offset-2 col-sm-11">
  172. <ul>
  173. <li<?php echo !isset($this->action[1]) ? ' class="current"' : ''?>>
  174. <a href="<?php echo $this->dir ?>">
  175. 管理首页
  176. </a>
  177. </li>
  178. <?php if($this->nav):?>
  179. <?php foreach($this->nav as $key=>$val):?>
  180. <li<?php echo isset($this->action[1]) && $this->action[1]==$key ? ' class="current"' : ''?>>
  181. <a href="<?php echo $this->dir ?><?php echo $key ?>">
  182. <?php echo $val?>
  183. </a>
  184. </li>
  185. <?php endforeach;?>
  186. <?php endif;?>
  187. </ul>
  188. </div>
  189. <div class="col-md-1 col-sm-1 text-right btn-config">
  190. <a href="<?php echo $this->dir ?>cog">
  191. <span class="glyphicon glyphicon-cog">
  192. </span>
  193. </a>
  194. </div>
  195. </div>
  196. </div>
  197. </div>
  198. <script>
  199. $('#dropdownMenu').click(function() {
  200. if ($('.left-nav').is(':visible')) {
  201. $('.left-nav').addClass('hidden-sm hidden-xs').hide();
  202. } else {
  203. $('.left-nav').removeClass('hidden-sm hidden-xs').show();
  204. }
  205. });
  206. </script>
  207. <?php $current=isset($this->
  208. action[1]) ? $this->action[1] : '';?>
  209. <div id="main">
  210. <div class="container-fluid">
  211. <div class="row">
  212. <div class="col-md-2">
  213. <div class="left-nav hidden-xs hidden-sm">
  214. <dl>
  215. <dt>
  216. <span class="glyphicon glyphicon-user">
  217. </span>
  218. &nbsp;用户管理
  219. </dt>
  220. <?php echo $this->
  221. getSubMenu('用户管理', $current) ?>
  222. </dl>
  223. <dl>
  224. <dt>
  225. <span class="glyphicon glyphicon-th-list">
  226. </span>
  227. &nbsp;订单管理
  228. </dt>
  229. <?php echo $this->
  230. getSubMenu('订单管理',$current) ?>
  231. <dd<?php echo isset($this->
  232. action[1]) && $this->action[1]=='orders' ? ' class="current"' : ''?>>
  233. <a href="<?php echo $this->dir ?>orders?is_state=2&fdate=<?php echo date('Y-m-d',time()-60*60*24*7)?>">
  234. 冻结订单
  235. </a>
  236. </dd>
  237. </dl>
  238. <dl>
  239. <dt>
  240. <span class="glyphicon glyphicon-file">
  241. </span>
  242. &nbsp;代理管理
  243. </dt>
  244. <?php echo $this->
  245. getSubMenu('代理管理',$current) ?>
  246. </dl>
  247. <dl>
  248. <dt>
  249. <span class="glyphicon glyphicon-road">
  250. </span>
  251. &nbsp;通道管理
  252. </dt>
  253. <?php echo $this->
  254. getSubMenu('通道管理',$current) ?>
  255. </dl>
  256. <dl>
  257. <dt>
  258. <span class="glyphicon glyphicon-list-alt">
  259. </span>
  260. &nbsp;公告管理
  261. </dt>
  262. <dd><a href="<?php echo $this->dir ?>arcate">公告分类</a></dd><dd><a href="<?php echo $this->dir ?>arlist">公告列表</a></dd>
  263. </dl>
  264. <dl class="hidden-md hidden-lg">
  265. <dt>
  266. <span class="glyphicon glyphicon-cog">
  267. </span>
  268. &nbsp;管理员
  269. </dt>
  270. <dd>
  271. <a href="<?php echo $this->dir ?>admins">
  272. <span class="glyphicon glyphicon-user">
  273. </span>
  274. &nbsp;账号列表
  275. </a>
  276. </dd>
  277. <dd>
  278. <a href="<?php echo $this->dir ?>pwd">
  279. <span class="glyphicon glyphicon-lock">
  280. </span>
  281. &nbsp;修改密码
  282. </a>
  283. </dd>
  284. <dd>
  285. <a href="<?php echo $this->dir ?>logs">
  286. <span class="glyphicon glyphicon-time">
  287. </span>
  288. &nbsp;登陆日志
  289. </a>
  290. </dd>
  291. <dd role="separator" class="divider">
  292. </dd>
  293. <dd>
  294. <a href="<?php echo $this->dir ?>mailtpl">
  295. <span class="glyphicon glyphicon-bookmark">
  296. </span>
  297. &nbsp;邮件模板
  298. </a>
  299. </dd>
  300. <dd>
  301. <a href="<?php echo $this->dir ?>ordernotify">
  302. <span class="glyphicon glyphicon-list-alt">
  303. </span>
  304. &nbsp;通知记录
  305. </a>
  306. </dd>
  307. <dd>
  308. <a href="<?php echo $this->dir ?>bd">
  309. <span class="glyphicon glyphicon-transfer">
  310. </span>
  311. &nbsp;补发订单
  312. </a>
  313. </dd>
  314. <dd role="separator" class="divider">
  315. </dd>
  316. <dd>
  317. <a href="<?php echo $this->dir ?>login/logout">
  318. <span class="glyphicon glyphicon-off">
  319. </span>
  320. &nbsp;安全退出
  321. </a>
  322. </dd>
  323. </dl>
  324. </div>
  325. </div>
  326. <div class="col-md-10">
  327. <div class="right-content">