人人商城

header-cms.html 7.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. {template 'common/header-base'}
  2. {if !empty($_W['uid'])}
  3. {if !empty($_W['uniacid'])}
  4. <div class="navbar navbar-inverse navbar-static-top" role="navigation" style="position:static;">
  5. <div class="container-fluid">
  6. <ul class="nav navbar-nav">
  7. <li><a href="./?refresh"><i class="fa fa-reply-all"></i>返回系统</a></li>
  8. {php global $top_nav;}
  9. {loop $top_nav $nav}
  10. {if !empty($_W['isfounder']) || empty($_W['setting']['permurls']['sections']) || in_array($nav['name'], $_W['setting']['permurls']['sections'])}<li{if FRAME == $nav['name']} class="active"{/if}><a href="{php echo url('home/welcome/' . $nav['name']);}"><i class="{$nav['append_title']}"></i>{$nav['title']}</a></li>{/if}
  11. {/loop}
  12. <li {if $action == 'emulator'}class="active"{/if}>
  13. <a href="{php echo url('utility/emulator');}" target="_blank"><i class="fa fa-mobile"></i> 模拟测试</a>
  14. </li>
  15. {if IMS_FAMILY != 'x'}
  16. <li><a href="http://bbs.we7.cc"><i class="fa fa-comment"></i>微擎论坛</a></li>
  17. <li><a href="http://wpa.b.qq.com/cgi/wpa.php?ln=1&key=XzkzODAwMzEzOV8xNzEwOTZfNDAwMDgyODUwMl8yXw"><i class="fa fa-suitcase"></i>联系客服</a></li>
  18. {/if}
  19. </ul>
  20. <ul class="nav navbar-nav navbar-right">
  21. <li class="dropdown topbar-notice">
  22. <a type="button" data-toggle="dropdown">
  23. <i class="fa fa-bell"></i>
  24. <span class="badge" id="notice-total">0</span>
  25. </a>
  26. <div class="dropdown-menu" aria-labelledby="dLabel">
  27. <div class="topbar-notice-panel">
  28. <div class="topbar-notice-arrow"></div>
  29. <div class="topbar-notice-head">
  30. <span>系统公告</span>
  31. <a href="{php echo url('article/notice-show/list');}" class="pull-right">更多公告>></a>
  32. </div>
  33. <div class="topbar-notice-body">
  34. <ul id="notice-container"></ul>
  35. </div>
  36. </div>
  37. </div>
  38. </li>
  39. <li class="dropdown">
  40. <a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown" style="display:block; max-width:200px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; "><i class="fa fa-group"></i>{$_W['account']['name']} <b class="caret"></b></a>
  41. <ul class="dropdown-menu">
  42. {if $_W['role'] != 'operator'}
  43. <li><a href="{url 'account/post' array('uniacid' => $_W['uniacid'])}" target="_blank"><i class="fa fa-weixin fa-fw"></i> 编辑当前账号资料</a></li>
  44. {/if}
  45. <li><a href="{url 'account/display'}" target="_blank"><i class="fa fa-cogs fa-fw"></i> 管理其它公众号</a></li>
  46. <li><a href="{url 'utility/emulator'}" target="_blank"><i class="fa fa-mobile fa-fw"></i> 模拟测试</a></li>
  47. </ul>
  48. </li>
  49. <li class="dropdown">
  50. <a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown" style="display:block; max-width:185px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; "><i class="fa fa-user"></i>{$_W['user']['username']} ({if $_W['role'] == 'founder'}系统管理员{elseif $_W['role'] == 'manager'}公众号管理员{else}公众号操作员{/if}) <b class="caret"></b></a>
  51. <ul class="dropdown-menu">
  52. <li><a href="{url 'user/profile/profile'}" target="_blank"><i class="fa fa-weixin fa-fw"></i> 我的账号</a></li>
  53. {if $_W['role'] == 'founder'}
  54. <li class="divider"></li>
  55. <li><a href="{url 'system/welcome'}" target="_blank"><i class="fa fa-sitemap fa-fw"></i> 系统选项</a></li>
  56. <li><a href="{url 'system/welcome'}" target="_blank"><i class="fa fa-cloud-download fa-fw"></i> 自动更新</a></li>
  57. <li><a href="{url 'system/updatecache'}" target="_blank"><i class="fa fa-refresh fa-fw"></i> 更新缓存</a></li>
  58. <li class="divider"></li>
  59. {/if}
  60. <li><a href="{url 'user/logout'}"><i class="fa fa-sign-out fa-fw"></i> 退出系统</a></li>
  61. </ul>
  62. </li>
  63. </ul>
  64. </div>
  65. </div>
  66. {else}
  67. <div class="navbar navbar-inverse navbar-static-top" role="navigation" style="z-index:1001;">
  68. <div class="container-fluid">
  69. <ul class="nav navbar-nav">
  70. <li class="active"><a href="./?refresh"><i class="fa fa-cogs"></i>系统管理</a></li>
  71. <li><a href="{url 'account/display'}" target="_blank"><i class="fa fa-share"></i>管理公众号</a></li>
  72. {if IMS_FAMILY != 'x'}
  73. <li><a href="http://bbs.we7.cc"><i class="fa fa-comment"></i>微擎论坛</a></li>
  74. <li><a href="http://wpa.b.qq.com/cgi/wpa.php?ln=1&key=XzkzODAwMzEzOV8xNzEwOTZfNDAwMDgyODUwMl8yXw"><i class="fa fa-suitcase"></i>联系客服</a></li>
  75. {/if}
  76. </ul>
  77. <ul class="nav navbar-nav navbar-right">
  78. <li class="dropdown">
  79. <a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown" style="display:block; max-width:185px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; "><i class="fa fa-user"></i>{$_W['user']['username']} ({if $_W['role'] == 'founder'}系统管理员{elseif $_W['role'] == 'manager'}公众号管理员{else}公众号操作员{/if}) <b class="caret"></b></a>
  80. <ul class="dropdown-menu">
  81. <li><a href="{url 'user/profile/profile'}" target="_blank"><i class="fa fa-weixin fa-fw"></i> 我的账号</a></li>
  82. {if $_W['role'] != 'operator'}
  83. <li class="divider"></li>
  84. <li><a href="{url 'system/welcome'}" target="_blank"><i class="fa fa-sitemap fa-fw"></i> 系统选项</a></li>
  85. <li><a href="{url 'system/welcome'}" target="_blank"><i class="fa fa-cloud-download fa-fw"></i> 自动更新</a></li>
  86. <li><a href="{url 'system/updatecache'}" target="_blank"><i class="fa fa-refresh fa-fw"></i> 更新缓存</a></li>
  87. <li class="divider"></li>
  88. {/if}
  89. <li><a href="{url 'user/logout'}"><i class="fa fa-sign-out fa-fw"></i> 退出系统</a></li>
  90. </ul>
  91. </li>
  92. </ul>
  93. </div>
  94. </div>
  95. {/if}
  96. {else}
  97. <div class="navbar navbar-inverse navbar-static-top" role="navigation" style="z-index:1001;">
  98. <div class="container-fluid container">
  99. <ul class="nav navbar-nav navbar-right">
  100. <li class="active"><a href="{php echo url('user/register');}"><i class="fa fa-user"></i>注册</a></li>
  101. <li><a href="{php echo url('user/login');}"><i class="fa fa-user-plus"></i>登陆</a></li>
  102. </ul>
  103. </div>
  104. </div>
  105. {/if}
  106. <div class="container-fluid">
  107. {if defined('IN_MESSAGE')}
  108. <div class="jumbotron clearfix alert alert-{$label}">
  109. <div class="row">
  110. <div class="col-xs-12 col-sm-4 col-md-3 col-lg-2">
  111. <i class="fa fa-5x fa-{if $label=='success'}check-circle{/if}{if $label=='danger'}times-circle{/if}{if $label=='info'}info-circle{/if}{if $label=='warning'}exclamation-triangle{/if}"></i>
  112. </div>
  113. <div class="col-xs-12 col-sm-8 col-md-9 col-lg-10">
  114. {if is_array($msg)}
  115. <h2>MYSQL 错误:</h2>
  116. <p>{php echo cutstr($msg['sql'], 300, 1);}</p>
  117. <p><b>{$msg['error'][0]} {$msg['error'][1]}:</b>{$msg['error'][2]}</p>
  118. {else}
  119. <h2>{$caption}</h2>
  120. <p>{$msg}</p>
  121. {/if}
  122. {if $redirect}
  123. <p><a href="{$redirect}" class="alert-link">如果你的浏览器没有自动跳转,请点击此链接</a></p>
  124. <script type="text/javascript">
  125. setTimeout(function () {
  126. location.href = "{$redirect}";
  127. }, 3000);
  128. </script>
  129. {else}
  130. <p>[<a href="javascript:history.go(-1);" class="alert-link">点击这里返回上一页</a>] &nbsp; [<a href="./?refresh" class="alert-link">首页</a>]</p>
  131. {/if}
  132. </div>
  133. </div>
  134. </div>
  135. {/if}