Без опису
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338
  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. <title>内容管理</title>
  13. <link rel="shortcut icon" type="image/x-icon" href="__ROOT_DIR__/favicon.ico" media="screen"/>
  14. <!-- <link rel="stylesheet" href="__PUBLIC__/plugins/ztree/css/amazeui.min.css"> -->
  15. <link rel="stylesheet" href="__PUBLIC__/plugins/ztree/css/iframe.css?v={$version}">
  16. <link rel="stylesheet" href="__PUBLIC__/plugins/ztree/css/zTreeStyle/zTreeStyle.css?v={$version}" type="text/css">
  17. <link href="__SKIN__/font/css/font-awesome.min.css" rel="stylesheet" />
  18. <link href="__SKIN__/css/left_nav_tree.css?v={$version}" rel="stylesheet" type="text/css">
  19. <style type="text/css">
  20. .ztree{padding:0px 5px 30px 10px;}
  21. /* .ztree li{line-height: 30px;} */
  22. .ztree .node_name{font-size: 14px !important;}
  23. .ztree .level1 .node_name{font-size: 14px !important;display: block;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;line-height: 16px;padding-right: 5px;}
  24. .ztree li a:hover{text-decoration: none;color: #3398cc;}
  25. .ztree li a.curSelectedNode{background-color:#3398cc;color: #fff;border-color: #3398cc;opacity: 1;vertical-align: middle; height: unset;line-height: unset;}
  26. .ztree li a.curSelectedNode:hover{color: #fff !important;}
  27. .ztree li span{margin: 0 2px;}
  28. .ui-layout-west{background-color: #fff;}
  29. .title-cate{padding:8px 0 8px 28px;border-bottom: 1px solid #eee;color: #999;font-size: 15px;height: 24px;line-height: 24px; background: url("__PUBLIC__/plugins/ztree/css/zTreeStyle/img/titleIcon.png") no-repeat 10px center;background-size: 15px 15px;}
  30. .allshow-wrap{padding:10px 0 0 10px;}
  31. .allshow{font-size: 14px;color: #333;cursor: pointer;display: inline-block;line-height: 30px;height: 30px;}
  32. .allshow i{width: 18px; height: 18px;display: inline-block;background-image: url("__PUBLIC__/plugins/ztree/css/zTreeStyle/img/zTreeStandard.png");vertical-align: middle;}
  33. .allshow span{margin-left: 4px;}
  34. .allshow .center_close {background-position: -74px -18px;}
  35. .allshow .center_open {background-position: -92px -18px;}
  36. .layout-main{position: fixed; width:100%; height:100%;}
  37. .layout-left{float: left; position: relative; margin-top: 10px;margin-right: 10px;width: 160px; height: calc(100% - 20px); background-color: #fff; overflow: hidden; overflow-y:auto;}
  38. .layout-left .on-off-btn{cursor: pointer; position: absolute; text-align: center; display: block; right: 0; top: 50%; margin-top: -13px; width: 12px; height: 26px; line-height: 26px; background-color: #3398cc; border-radius: 4px 0 0 4px;}
  39. .layout-left .on-off-btn i{font-size: 18px; color: #fff;}
  40. .layout-left .layout-left-box{display: block; overflow: hidden; height:auto; width: 100%;}
  41. .layout-right{float: left; display: block; width: calc(100% - 182px); background-color: #F5F5F5; height: 100%; overflow: hidden;}
  42. .layout-left.close{width: 12px; background-color: #f4f4f4; margin-right: 0;} .layout-left.close .layout-left-box{display: none;}
  43. </style>
  44. {include file="public/theme_css" /}
  45. <script type="text/javascript">
  46. var eyou_basefile = "{$Request.baseFile}";
  47. var module_name = "{$Think.const.MODULE_NAME}";
  48. var __root_dir__ = "__ROOT_DIR__";
  49. var __lang__ = "{$admin_lang}";
  50. var __main_lang__ = "{$main_lang}";
  51. </script>
  52. {load href="__STATIC__/common/js/jquery.min.js" /}
  53. <script src="__STATIC__/admin/js/jquery.layout-latest.min.js"></script>
  54. <script type="text/javascript" src="__PUBLIC__/plugins/ztree/js/jquery.ztree.core.min.js"></script>
  55. <script type="text/javascript" src="__PUBLIC__/plugins/layer-v3.1.0/layer.js"></script>
  56. <script src="__SKIN__/js/global.js?v={$version}"></script>
  57. <!--[if lt IE 9]>
  58. <script src="__STATIC__/admin/js/html5shiv.js"></script>
  59. <script src="__STATIC__/admin/js/respond.min.js"></script>
  60. <![endif]-->
  61. <script type="text/javascript">
  62. // 读取 cookie
  63. function getCookie(c_name)
  64. {
  65. if (document.cookie.length>0)
  66. {
  67. c_start = document.cookie.indexOf(c_name + "=")
  68. if (c_start!=-1)
  69. {
  70. c_start=c_start + c_name.length+1
  71. c_end=document.cookie.indexOf(";",c_start)
  72. if (c_end==-1) c_end=document.cookie.length
  73. return unescape(document.cookie.substring(c_start,c_end))
  74. }
  75. }
  76. return "";
  77. }
  78. function setCookies(name, value, time)
  79. {
  80. var cookieString = name + "=" + escape(value) + ";";
  81. if (time != 0) {
  82. var Times = new Date();
  83. Times.setTime(Times.getTime() + time);
  84. cookieString += "expires="+Times.toGMTString()+";"
  85. }
  86. document.cookie = cookieString+"path=/";
  87. }
  88. // var myLayout;
  89. // $(document).ready(function () {
  90. // myLayout = $("body").layout({
  91. // /* 全局配置 */
  92. // closable: true /* 是否显示点击关闭隐藏按钮*/
  93. // , resizable: true /* 是否允许拉动*/
  94. // , maskContents: true /* 加入此参数,框架内容页就可以拖动了*/
  95. // /* 顶部配置 */
  96. // , north__spacing_open: 0 /* 顶部边框大小*/
  97. // /* 底部配置 */
  98. // , south__spacing_open: 0 /* 底部边框大小*/
  99. // /* some pane-size settings*/
  100. // , west__minSize: 160 /*左侧最小宽度*/
  101. // , west__maxSize: 160 /*左侧最大宽度*/
  102. // /* 左侧配置 */
  103. // , west__slidable: false
  104. // , west__animatePaneSizing: false
  105. // , west__fxSpeed_size: "slow" /* 'fast' animation when resizing west-pane*/
  106. // , west__fxSpeed_open: 1000 /* 1-second animation when opening west-pane*/
  107. // , west__fxSettings_open: { easing: "easeOutBounce" } // 'bounce' effect when opening*/
  108. // , west__fxName_close: "none" /* NO animation when closing west-pane*/
  109. // , stateManagement__enabled: false /*是否读取cookies*/
  110. // , showDebugMessages: false
  111. // });
  112. // });
  113. var zNodes = {$zNodes};
  114. var setting = {
  115. view:{
  116. dblClickExpand:false
  117. ,showLine:true
  118. ,showIcon: false
  119. },
  120. data:{
  121. simpleData:{
  122. enable:true
  123. }
  124. },
  125. callback:{
  126. beforeCollapse:zTreeBeforeCollapse
  127. ,beforeExpand:beforeExpand
  128. ,onExpand:onExpand
  129. ,onClick:onClick
  130. }
  131. };
  132. var curExpandNode=null;
  133. function beforeExpand(treeId, treeNode) {
  134. var pNode=curExpandNode?curExpandNode.getParentNode():null;
  135. var treeNodeP=treeNode.parentTId?treeNode.getParentNode():null;
  136. var zTree=$.fn.zTree.getZTreeObj("tree");
  137. for(var i=0,l=!treeNodeP?0:treeNodeP.children.length;i<l; i++){
  138. if(treeNode!==treeNodeP.children[i]){zTree.expandNode(treeNodeP.children[i],false);}
  139. };
  140. while (pNode){
  141. if(pNode===treeNode){break;}
  142. pNode=pNode.getParentNode();
  143. };
  144. if(!pNode){singlePath(treeNode);}
  145. // 记忆功能
  146. var str = getCookie('admin-arctreeClicked-Arr');
  147. var arr = [];
  148. if('' == str || null == str || 'null' == str){
  149. arr.push(treeNode.id);
  150. }else{
  151. arr = JSON.parse(str);
  152. if (!arr.includes(treeNode.id) ){
  153. arr.push(treeNode.id);
  154. }
  155. }
  156. arr = JSON.stringify(arr);
  157. setCookies('admin-arctreeClicked-Arr', arr);
  158. };
  159. function zTreeBeforeCollapse(treeId, treeNode) {
  160. // 记忆功能
  161. var str = getCookie('admin-arctreeClicked-Arr');
  162. var arr = [];
  163. if('' != str){
  164. arr = JSON.parse(str);
  165. arr.splice($.inArray(treeNode.id,arr),1);
  166. arr = JSON.stringify(arr);
  167. setCookies('admin-arctreeClicked-Arr', arr);
  168. setCookies('admin-arctreeClicked_All', 0);
  169. }
  170. };
  171. function singlePath(newNode) {
  172. if (newNode === curExpandNode) return;
  173. if (curExpandNode && curExpandNode.open==true) {
  174. var zTree = $.fn.zTree.getZTreeObj("tree");
  175. if (newNode.parentTId === curExpandNode.parentTId) {
  176. zTree.expandNode(curExpandNode, false);
  177. } else {
  178. var newParents = [];
  179. while (newNode) {
  180. newNode = newNode.getParentNode();
  181. if (newNode === curExpandNode) {
  182. newParents = null;
  183. break;
  184. } else if (newNode) {
  185. newParents.push(newNode);
  186. }
  187. }
  188. if (newParents!=null) {
  189. var oldNode = curExpandNode;
  190. var oldParents = [];
  191. while (oldNode) {
  192. oldNode = oldNode.getParentNode();
  193. if (oldNode) {
  194. oldParents.push(oldNode);
  195. }
  196. }
  197. if (newParents.length>0) {
  198. zTree.expandNode(oldParents[Math.abs(oldParents.length-newParents.length)-1], false);
  199. } else {
  200. zTree.expandNode(oldParents[oldParents.length-1], false);
  201. }
  202. }
  203. }
  204. }
  205. curExpandNode = newNode;
  206. };
  207. function onExpand(event,treeId,treeNode){curExpandNode=treeNode;};
  208. function onClick(e,treeId,treeNode){
  209. var zTree=$.fn.zTree.getZTreeObj("tree");
  210. zTree.expandNode(treeNode,null,null,null,true);
  211. }
  212. $(function(){
  213. $.fn.zTree.init($("#tree"),setting,zNodes);
  214. $(".ui-layout-north li:first-child").click();
  215. });
  216. function expandAll(obj){
  217. var expand = $(obj).attr('data-expand');
  218. var zTree = $.fn.zTree.getZTreeObj("tree");
  219. if ('shrink' == expand) { // 展开时收缩
  220. zTree.expandAll(false);
  221. $(obj).attr('data-expand', 'spread').attr('title', '点击全部展开').html('<i class="center_close"></i><span>全部展开</span>');
  222. setCookies('admin-arctreeClicked-Arr', '');
  223. setCookies('admin-arctreeClicked_All', 0);
  224. } else { // 收缩时展开
  225. zTree.expandAll(true);
  226. $(obj).attr('data-expand', 'shrink').attr('title', '点击全部收缩').html('<i class="center_open"></i><span>全部收缩</span>');
  227. setCookies('admin-arctreeClicked-Arr', JSON.stringify({$tree.parent_ids}));
  228. setCookies('admin-arctreeClicked_All', 1);//1为全部展开,0-为非全部展开
  229. }
  230. }
  231. $(function(){
  232. setCookies('admin-arctreeClicked-Arr',JSON.stringify({$tree.cookied_treeclicked_arr}) );
  233. })
  234. </script>
  235. <script type="text/javascript">
  236. function quick_release()
  237. {
  238. //iframe窗
  239. layer.open({
  240. type: 2,
  241. title: '快捷发布文档(不建议使用)',
  242. fixed: true, //不固定
  243. shadeClose: false,
  244. shade: layer_shade,
  245. maxmin: true, //开启最大化最小化按钮
  246. area: ['600px', '520px'],
  247. content: "//{$website_host}{$Request.baseFile}?m=admin&c=Archives&a=release&iframe=1&lang={$Request.param.lang}"
  248. });
  249. }
  250. </script>
  251. <script type="text/javascript">
  252. $(function(){
  253. //左侧菜单按钮
  254. $('.on-off-btn').on('click',function(){
  255. var hidden=$(this).parent().hasClass('close');
  256. if(!hidden){
  257. $(this).parent().addClass('close');
  258. $(this).children('i').attr("class", "fa fa-angle-right");
  259. $('.layout-right').css("width","calc(100% - 27px)");
  260. setCookies('admin-treeClicked-1649642233', 'close');
  261. }else{
  262. $(this).parent().removeClass('close');
  263. $(this).children('i').attr("class", "fa fa-angle-left");
  264. $('.layout-right').css("width","calc(100% - 190px)");
  265. setCookies('admin-treeClicked-1649642233', 'open');
  266. }
  267. })
  268. })
  269. </script>
  270. </head>
  271. <body style="padding: 0px 10px 10px 10px;background-color: #f4f4f4; height: auto;">
  272. <div class="layout-main">
  273. <div style="width: 180px;" class="layout-left {if condition="!empty($treeClicked_1649642233) && 'close' == $treeClicked_1649642233"}close{/if}">
  274. <div class="layout-left-box">
  275. <div class="title-cate">
  276. 内容栏目
  277. <select name="select1" id="catchoose2">
  278. <option value="10000" {eq name="catid" value="10000"}selected{/eq}>伪山东</option>
  279. {foreach $pro_list as $key=>$vo}
  280. <option value="{$vo.id}" {eq name="catid" value="$vo.id"}selected{/eq}>{$vo.name}</option>
  281. {/foreach}
  282. </select>
  283. </div>
  284. <div class="allshow-wrap">
  285. {if condition="!empty($tree['cookied_treeclicked'])"}
  286. <div class="allshow" onclick="expandAll(this);" data-expand="shrink" title="点击全部收缩"><i class="center_open"></i><span>全部收缩</span></div>
  287. {else /}
  288. <div class="allshow" onclick="expandAll(this);" data-expand="spread" title="点击全部展开"><i class="center_close"></i><span>全部展开</span></div>
  289. {/if}
  290. </div>
  291. <div id="tree" class="ztree"></div>
  292. </div>
  293. <div class="on-off-btn">
  294. {if condition="!empty($treeClicked_1649642233) && 'close' == $treeClicked_1649642233"}
  295. <i class="fa fa-angle-right"></i>
  296. {else /}
  297. <i class="fa fa-angle-left"></i>
  298. {/if}
  299. </div>
  300. </div>
  301. <div class="layout-right" {if condition="!empty($treeClicked_1649642233) && 'close' == $treeClicked_1649642233"}style="width: calc(100% - 27px);"{else /}style="width: calc(100% - 190px);"{/if}>
  302. <iframe name="content_body" id="content_body" class="iframe_loading" src="//{$website_host}{$Request.baseFile}?m=admin&c=Archives&a=index_archives&lang={$Request.param.lang}" width="100%" height="100%" frameborder="0"></iframe>
  303. </div>
  304. </div>
  305. <script type="text/javascript">
  306. // iframe 框架显示加载图标,提高体验
  307. $(".iframe_loading").load(function(){
  308. // setTimeout(function(){
  309. $('.iframe_loading').removeClass('iframe_loading');
  310. // }, 500);
  311. })
  312. //更改城市
  313. $('#catchoose2').change(function(){
  314. ///console.log($(this).val());
  315. window.location.href = '/login.php?m=admin&c=Archives&a=index&lang=cn&catid=' + $(this).val();
  316. });
  317. </script>
  318. </body>
  319. </html>