Nessuna descrizione
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.htm 15KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  5. <meta charset="utf-8">
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  7. <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
  8. <!-- Apple devices fullscreen -->
  9. <meta name="apple-mobile-web-app-capable" content="yes">
  10. <!-- Apple devices fullscreen -->
  11. <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
  12. <link rel="shortcut icon" type="image/x-icon" href="__ROOT_DIR__/favicon.ico" media="screen"/>
  13. <title>后台管理-{notempty name="$is_eyou_authortoken"}易优企业建站系统{/notempty}{$version}</title>
  14. <script type="text/javascript">
  15. var eyou_basefile = "{$Request.baseFile}";
  16. var module_name = "{$Think.const.MODULE_NAME}";
  17. var SITEURL = window.location.host + eyou_basefile + "/" + module_name;
  18. var GetUploadify_url = "{:url('Uploadimgnew/upload')}";
  19. // 插件专用旧版上传图片框
  20. if ('Weapp@execute' == "{$Think.const.CONTROLLER_NAME}@{$Think.const.ACTION_NAME}") {
  21. GetUploadify_url = "{:url('Uploadify/upload')}";
  22. }
  23. var __root_dir__ = "__ROOT_DIR__";
  24. var __lang__ = "{$admin_lang}";
  25. var VarSecurityPatch = {$security_patch|default=0};
  26. var __seo_pseudo__ = {$global['seo_pseudo']|default=1};
  27. var __web_xss_filter__ = {$global['web_xss_filter']|default=0};
  28. var __is_mobile__ = {$is_mobile|default=0};
  29. var __security_ask_open__ = {$global['security_ask_open']|default=0};
  30. </script>
  31. <link href="__SKIN__/css/main.css?v={$version}" rel="stylesheet" type="text/css">
  32. <link href="__SKIN__/js/jquery-ui/jquery-ui.min.css" rel="stylesheet" type="text/css">
  33. <link href="__SKIN__/font/css/font-awesome.min.css" rel="stylesheet" />
  34. <link href="__SKIN__/font/css/iconfont.css?v={$version}" rel="stylesheet" />
  35. <link href="__SKIN__/css/diy_style.css?v={$version}" rel="stylesheet" type="text/css" />
  36. {if condition="file_exists(ROOT_PATH.'public/static/admin/css/theme_style.css')"}
  37. <link href="__SKIN__/css/theme_style.css?v={$version}_{$global['web_theme_style_uptime']|default=0}" rel="stylesheet" type="text/css">
  38. {elseif condition="file_exists(APP_PATH.'admin/template/public/theme_css.htm') && function_exists('hex2rgba')" /}
  39. {include file="public/theme_css" /}
  40. {/if}
  41. <script type="text/javascript" src="__STATIC__/common/js/jquery.min.js?v={$version}"></script>
  42. <script type="text/javascript" src="__SKIN__/js/common.js?v={$version}"></script>
  43. <script type="text/javascript" src="__SKIN__/js/jquery-ui/jquery-ui.min.js"></script>
  44. <script type="text/javascript" src="__SKIN__/js/jquery.cookie.js"></script>
  45. <script type="text/javascript" src="__SKIN__/js/jquery.bgColorSelector.js"></script>
  46. <script type="text/javascript" src="__SKIN__/js/admincp.js?v={$version}0"></script>
  47. <script type="text/javascript" src="__SKIN__/js/jquery.validation.min.js"></script>
  48. <!-- <script type="text/javascript" src="__PUBLIC__/plugins/layer/layer.js"></script> -->
  49. <script type="text/javascript" src="__PUBLIC__/plugins/layer-v3.1.0/layer.js?v={$version}"></script>
  50. <script type="text/javascript" src="__SKIN__/js/dialog/dialog.js?v={$version}" id="dialog_js"></script>
  51. <script src="__SKIN__/js/upgrade.js?v={$version}"></script>
  52. <script src="__SKIN__/js/global.js?v={$version}"></script>
  53. </head>
  54. <body>
  55. {include file="public/menubox" /}
  56. <style>
  57. .scroll-wrapper {
  58. height: 100%;
  59. -webkit-overflow-scrolling: touch;
  60. overflow-y: auto;
  61. }
  62. </style>
  63. <div class="admincp-container unfold">
  64. {include file="public/left" /}
  65. <div class="admincp-container-right">
  66. <div class="admincp-header">
  67. {if condition="($php_servicemeal >= 1 || !empty($global.system_use_language)) && 'cn' != $languages[$admin_lang]['mark']"}
  68. <div class="{if condition='empty($web_language_switch) || !empty($global.web_citysite_open)'}none{/if}" id="Language_index_span" style="position: absolute;text-align: center;margin: 0 auto;width: 100%;">
  69. <span style="color: red;padding: 6px 21px;display: table;margin: 10px auto;">当前编辑的是{$languages[$admin_lang]['title']|default='简体中文'}站点</span>
  70. </div>
  71. {/if}
  72. <div class="wraper">
  73. <div class="bgSelector"></div>
  74. <div id="foldSidebar"><i class="fa fa-bars"></i></div>
  75. <div class="admincp-name" id="foldSidebar2">
  76. </div>
  77. <div class="admincp-header-r">
  78. <div class="manager">
  79. <dl>
  80. <dt class="name">{$admin_info.user_name}</dt>
  81. <dd class="group">{$admin_info.role_name}</dd>
  82. </dl>
  83. <div class="btn-group pull-left ey-tool">
  84. <a class="btn btn-default dropdown-toggle" target="_blank" href="{$home_url}">
  85. <i class="iconfont e-website"></i>
  86. <span class="hidden-xs">网站首页</span>
  87. </a>
  88. {eq name="'System@clear_cache'|is_check_access" value="1"}
  89. <a class="btn btn-default dropdown-toggle" href="javascript:void(0);" onclick="openItem('System|clear_cache');">
  90. <i class="iconfont e-shuaxin"></i>
  91. <span class="hidden-xs">清除缓存</span>
  92. </a>
  93. {/eq}
  94. {notempty name="$is_eyou_authortoken"}
  95. <!-- 商业授权 -->
  96. <em class="eyou_tool em_authortoken" data-expanded="close">
  97. <a class="btn btn-default dropdown-toggle" href="javascript:void(0);" onclick="valide(this);">
  98. <i class="iconfont e-shouquan"></i>
  99. <span class="hidden-xs">购买授权</span>
  100. </a>
  101. <ul class="dropdown-menu" role="menu" aria-labelledby="shouquan">
  102. <li class="ey-tool-list text-center"><a target="_blank" class="liaojie" href="https://www.eyoucms.com/buy/" title="购买后可去除所有版权提示">去购买授权</a></li>
  103. <li class="ey-tool-list text-center">
  104. <input class="btn btn-primary" type="button" onclick="$('.em_authortoken').toggleClass('open');openItem('Index|authortoken|is_force|1');" value="购买后校验" />
  105. </li>
  106. </ul>
  107. </em>
  108. <!-- 商业授权 -->
  109. {/notempty}
  110. <!-- 多语言 -->
  111. {if condition="$php_servicemeal >= 1 || !empty($global.system_use_language)"}
  112. <em id="Language_index" class="eyou_tool em_lang" data-expanded="close" {if condition='empty($web_language_switch) || !empty($global.web_citysite_open)'}style="display: none;"{/if}>
  113. <a class="btn btn-default dropdown-toggle" href="javascript:void(0);" onclick="valide(this);">
  114. <i class="iconfont e-duoyuyan"></i>
  115. <span class="hidden-xs" id="language_title">{$languages[$admin_lang]['title']|default='简体中文'}</span>
  116. </a>
  117. <ul class="dropdown-menu" role="menu" aria-labelledby="shouquan">
  118. {volist name='languages' id='vo'}
  119. <li class="ey-tool-list text-center lang"><a class="liaojie" href="?lang={$vo.mark}">{$vo.title}</a></li>
  120. {/volist}
  121. <li class="ey-tool-list text-center" id="addlang">
  122. <button class="btn btn-primary" type="button" onclick="$('.em_lang').toggleClass('open');openItem('Language|index');" />语言管理</button>
  123. </li>
  124. </ul>
  125. </em>
  126. {/if}
  127. <!-- 多语言 -->
  128. <!-- 小程序 start -->
  129. {notempty name="$diyminipro_list"}
  130. <em class="eyou_tool em_diyminipro" data-expanded="close">
  131. <a class="btn btn-default dropdown-toggle" href="javascript:void(0);" onclick="valide(this);">
  132. <i class="iconfont e-xiaochengxu"></i>
  133. <span class="hidden-xs">小程序</span>
  134. </a>
  135. <ul class="dropdown-menu" role="menu" aria-labelledby="shouquan">
  136. {volist name="$diyminipro_list" id="vo"}
  137. <li class="ey-tool-list text-center"><a class="liaojie d-pic" href="{if condition="$vo['code'] == 'Diyminipro'"}{:url($vo['code'].'/page_edit')}{else /}{:weapp_url($vo['code'].'/'.$vo['code'].'/page_edit')}{/if}" target="_blank" onclick="$('.em_diyminipro').toggleClass('open');"><img src="{$vo['litpic']}" width="36" height="36">{$vo.name}</a></li>
  138. {/volist}
  139. </ul>
  140. </em>
  141. {/notempty}
  142. <!-- 小程序 end -->
  143. <!-- 服务器升级 -->
  144. {empty name="$security_patch"}
  145. {eq name="upgrade" value="true"}
  146. <div id="upgrade_filelist" style="display:none;"></div>
  147. <div id="upgrade_intro" style="display:none;"></div>
  148. <div id="upgrade_notice" style="display:none;"></div>
  149. <a class="btn btn-default dropdown-toggle" style="display: none;color:#F00;" title="不升级可能有安全隐患" href="javascript:void(0);" id="a_upgrade" data-version="" data-max_version="" data-iframe="parent" data-tips_url="{:url('Upgrade/setPopupUpgrade')}" data-upgrade_url="{:url('Upgrade/OneKeyUpgrade')}" data-check_authority="{:url('Upgrade/check_authority')}">
  150. <i class="fa fa-info-circle"></i>
  151. <span class="hidden-xs">系统更新</span>
  152. </a>
  153. {/eq}
  154. {/empty}
  155. <!-- 服务器升级 end -->
  156. </div>
  157. <div class="admin_user_dropup">
  158. <div class="admin_user_dropup_bt">
  159. <img id="admin_head_pic" tptype="admin_avatar" src="{$admin_info.head_pic|get_head_pic=###,true}" style="cursor: pointer;width: 34px;height: 34px;">
  160. <i class="fa fa-angle-down" aria-hidden="true"></i>
  161. {empty name="$is_eyou_authortoken"}
  162. <span class="info-num UnreadNotify1615518028 {empty name='$notice_count'}none{/empty}">{$notice_count}</span>
  163. {/empty}
  164. </div>
  165. <div class="admin_user_dropup_con">
  166. <ul>
  167. <li><a href="javascript:void(0);" onclick="openItem('Admin|admin_edit|id|{$admin_info['admin_id']}');">个人信息</a></li>
  168. {eq name="'Index@theme_index'|is_check_access" value="1"}
  169. <li><a href="javascript:void(0);" onclick="openItem('Index|theme_index');">主题风格</a></li>
  170. {/eq}
  171. {empty name="$is_eyou_authortoken"}
  172. <li><a href="javascript:void(0);" onclick="openItem('UsersNotice|admin_notice_index');">站内通知</a><span class="info-num UnreadNotify1615518028 {empty name='$notice_count'}none{/empty}">{$notice_count}</span></li>
  173. {/empty}
  174. <li><a href="{:url('Admin/logout')}">安全退出</a></li>
  175. </ul>
  176. </div>
  177. </div>
  178. <script type="text/javascript">
  179. $(".admin_user_dropup").mouseover(function(){
  180. $(".admin_user_dropup_con").show();
  181. $(".admin_user_dropup_bt").children('i').removeClass('fa-angle-down').addClass('fa-angle-up');
  182. });
  183. $(".admin_user_dropup").mouseout(function(){
  184. $(".admin_user_dropup_con").hide();
  185. $(".admin_user_dropup_bt").children('i').removeClass('fa-angle-up').addClass('fa-angle-down');
  186. });
  187. </script>
  188. </div>
  189. </div>
  190. <div class="clear"></div>
  191. </div>
  192. </div>
  193. <div class="top-border"></div>
  194. <div class="scroll-wrapper">
  195. <iframe src="{:url('Index/welcome')}" id="workspace" name="workspace" class="iframe_loading" style="overflow-y: auto" frameborder="0" width="100%" height="95%" scrolling="yes" onload="window.parent"></iframe>
  196. <script type="text/javascript">ajax_system_1610425892();</script>
  197. </div>
  198. </div>
  199. </div>
  200. <script type="text/javascript">
  201. $(function() {
  202. // iframe 框架显示加载图标,提高体验
  203. $(".iframe_loading").load(function(){
  204. // setTimeout(function(){
  205. $('.iframe_loading').removeClass('iframe_loading');
  206. // }, 500);
  207. })
  208. /* 定时查询未读的站内信 --- 暂定为60秒查询一次 */
  209. var is_author = {$is_eyou_authortoken|default='0'};
  210. if (is_author == 0) {
  211. window.setInterval(UnreadNotify1615518028, 1*60*1000);
  212. }
  213. function UnreadNotify1615518028() {
  214. $.ajax({
  215. url : "{:url('Notify/count_unread_notify', ['_ajax'=>1])}",
  216. type: 'get',
  217. data: {},
  218. dataType: 'JSON',
  219. success: function(res) {
  220. if (1 == res.code) {
  221. $('.UnreadNotify1615518028').empty().html(res.data.notice_count);
  222. }
  223. }
  224. });
  225. }
  226. // 轮询更新sitemap.html网站地图
  227. function UpdateSitemap1647228884(){
  228. $.ajax({
  229. url: "__ROOT_DIR__/index.php?m=api&c=Sitemap&a=ajax_update_sitemap_html&lang="+__lang__,
  230. type: 'get',
  231. data: {},
  232. dataType: 'JSON',
  233. success: function(res) {
  234. }
  235. });
  236. }
  237. var sitemap_html = {$global['sitemap_html']|default=0};
  238. if (1 == sitemap_html) {
  239. window.setInterval(UpdateSitemap1647228884, 2*60*1000);
  240. }
  241. repair_language_data();
  242. function repair_language_data() {
  243. setTimeout(function(){
  244. $.ajax({
  245. url : "{:url('Ajax/repair_language_data', ['_ajax'=>1])}",
  246. type: 'get',
  247. data: {},
  248. dataType: 'JSON',
  249. success: function(res) {
  250. }
  251. });
  252. },1500);
  253. }
  254. shopOrderPreHandle();
  255. function shopOrderPreHandle() {
  256. $.ajax({
  257. url : "{:url('Shop/shopOrderPreHandle')}",
  258. type: 'post',
  259. data: {_ajax: 1},
  260. dataType: 'JSON'
  261. });
  262. }
  263. });
  264. /* END */
  265. function valide(obj)
  266. {
  267. var cls = $(obj).parent().attr('class');
  268. $('.eyou_tool').removeClass('open');
  269. if(cls.indexOf("open") > 0) {
  270. $(obj).parent().addClass('open');
  271. }
  272. $(obj).parent().toggleClass('open');
  273. }
  274. // 清除缓存
  275. function clear_cache(clearall)
  276. {
  277. if (!clearall) {
  278. clearall = 0;
  279. }
  280. layer_loading('正在清除');
  281. $.ajax({
  282. url: "{:url('System/clear_cache', ['_ajax'=>1])}",
  283. type: 'post',
  284. dataType: 'JSON',
  285. data: {clearall: clearall},
  286. success: function(res){
  287. layer.closeAll();
  288. if (res.code == 1) {
  289. layer.msg(res.msg, {time:1000}, function(){
  290. top.window.location.reload();
  291. });
  292. } else {
  293. showErrorMsg(res.msg);
  294. }
  295. },
  296. error: function(e){
  297. showErrorMsg(e.responseText);
  298. }
  299. });
  300. }
  301. </script>
  302. </body>
  303. </html>