diff --git a/application/admin/views/scripts/news/newsadd.phtml b/application/admin/views/scripts/news/newsadd.phtml index 71d1b130..bbb67e45 100644 --- a/application/admin/views/scripts/news/newsadd.phtml +++ b/application/admin/views/scripts/news/newsadd.phtml @@ -3,9 +3,8 @@ $this->headTitle('后台管理'); $this->headTitle()->setSeparator(' - '); $this->headScript()->appendFile('/static/js/jquery.tagInput.min.js'); - $this->headScript()->appendFile('/static/js/kindeditor-min.js'); - $this->headScript()->appendFile('/static/js/kindlang/zh_CN.js'); - $this->headLink()->appendStylesheet('/static/css/kindskin/default/default.css'); + $theme = new Theme; + $theme->appendPlus($this,'kindeditor'); $this->headLink()->appendStylesheet('/static/js/uploadify/uploadify.css'); $this->headScript()->appendFile('/static/js/uploadify/swfobject.js'); $this->headScript()->appendFile('/static/js/uploadify/jquery.uploadify.v2.1.4.min.js'); @@ -40,7 +39,6 @@ var tags=[ $(document).ready(function(){ KindEditor.ready(function(K) { editor=K.create('textarea[name="body"]', { - cssPath : '/static/js/plugins/code/prettify.css', uploadJson : '/plugins/upload_json.php', fileManagerJson : '/plugins/file_manager_json.php', allowFileManager : true @@ -125,7 +123,10 @@ $(document).ready(function(){ foreach($this->types as $v) { $head = ""; - if(!empty($v[$this->deepField])) {$head = str_repeat('-',$v[$this->deepField]);} + if(!empty($v[$this->deepField])) + { + $head = str_repeat('-',$v[$this->deepField]); + } echo ''.$head.$v['title'].'
'; $head = ""; } diff --git a/application/admin/views/scripts/news/newsedit.phtml b/application/admin/views/scripts/news/newsedit.phtml index dca4cdc5..4a326d3e 100644 --- a/application/admin/views/scripts/news/newsedit.phtml +++ b/application/admin/views/scripts/news/newsedit.phtml @@ -5,9 +5,8 @@ $this->headScript()->appendFile('/js/jquery-1.7.min.js'); $this->headLink()->appendStylesheet('/css/admin.css'); $this->headScript()->appendFile('/static/js/jquery.tagInput.min.js'); - $this->headScript()->appendFile('/static/js/kindeditor-min.js'); - $this->headScript()->appendFile('/static/js/kindlang/zh_CN.js'); - $this->headLink()->appendStylesheet('/static/css/kindskin/default/default.css'); + $theme = new Theme; + $theme->appendPlus($this,'kindeditor'); $this->headLink()->appendStylesheet('/static/js/uploadify/uploadify.css'); $this->headScript()->appendFile('/static/js/uploadify/swfobject.js'); $this->headScript()->appendFile('/static/js/uploadify/jquery.uploadify.v2.1.4.min.js'); @@ -49,7 +48,6 @@ var tags=[ $(document).ready(function(){ KindEditor.ready(function(K) { editor=K.create('textarea[name="body"]', { - cssPath : '/static/js/plugins/code/prettify.css', uploadJson : '/plugins/upload_json.php', fileManagerJson : '/plugins/file_manager_json.php', allowFileManager : true diff --git a/application/admin/views/scripts/news/newslist.phtml b/application/admin/views/scripts/news/newslist.phtml index 659e57f4..774b2cb7 100644 --- a/application/admin/views/scripts/news/newslist.phtml +++ b/application/admin/views/scripts/news/newslist.phtml @@ -39,6 +39,7 @@ $('#divFooter').css('position','absolute'); { foreach($this->types as $v) { + $haed=""; if(!empty($v[$this->deepField])) {$haed = str_repeat('-',$v[$this->deepField]);} if($this->type == $v['id']) echo '