From 7d9c47def3c645bbcd95607b6a5c0c2ce448720e Mon Sep 17 00:00:00 2001 From: Li Jianxuan Date: Thu, 27 Dec 2012 09:14:41 +0000 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BA=86=E5=8F=82=E8=80=83?= =?UTF-8?q?=E6=96=87=E7=8C=AE=E5=92=8C=E8=81=94=E7=B3=BB=E4=BA=BA=E7=9A=84?= =?UTF-8?q?=E5=88=A0=E9=99=A4=E5=8A=9F=E8=83=BD=EF=BC=8C=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E4=BA=86=E5=8D=95=E4=BD=8D=E5=90=8D=E7=A7=B0=E7=9A=84=E5=A1=AB?= =?UTF-8?q?=E5=86=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/scripts/author/metadata-new.phtml | 43 +++++++++++++++---- .../views/scripts/author/metadata.phtml | 2 - application/models/MetaData.php | 2 +- application/models/Theme.php | 7 +++ 4 files changed, 42 insertions(+), 12 deletions(-) diff --git a/application/default/views/scripts/author/metadata-new.phtml b/application/default/views/scripts/author/metadata-new.phtml index 54294083..1c66fbe6 100644 --- a/application/default/views/scripts/author/metadata-new.phtml +++ b/application/default/views/scripts/author/metadata-new.phtml @@ -154,23 +154,35 @@ $this->breadcrumb()->setSeparator(' > ');

参考文献

-
-
+ Field['reference']['FieldName_temp']; ?> data->$F['reference']) && count($this->data->$F['reference'])>0) { + $index = 0; foreach($this->data->$F['reference'] as $k=>$v) - {?> + { + $index ++ ; + ?> +
+
+ 1) {?> + -删除 + +
+
- +
+ +
+
-
- + @@ -179,7 +191,7 @@ $this->breadcrumb()->setSeparator(' > ');

联系人

Field['contact']['FieldName_temp']; ?> - data->$F['reference']) && count($this->data->$F['reference'])>0) + data->$F['contact']) && count($this->data->$F['contact'])>0) { $index = 0; foreach($this->data->$F['contact'] as $k=>$v) @@ -188,6 +200,7 @@ $this->breadcrumb()->setSeparator(' > ');
+ + 1) {?> + -删除 +
breadcrumb()->setSeparator(' > ');
+ ' + +' -删除' +'
' +'
'; return html; @@ -454,6 +472,7 @@ function SelectInputTemplate(name){ html = '
' + '
' + ' ' + + ' ' + ' ' + '' + + ' -删除' + '
' + '
'; now_index = null; @@ -473,9 +493,14 @@ function SelectInputTemplate(name){ } } +function RmInput(e){ + $e = $(e); + $e.parent('div').parent('div').remove(); +} + function InputTextSet(){ - console.log($('.contact_name').length); $('.contact_name').inputbg({'val':'姓名'}); + $('.contact_unit').inputbg({'val':'单位'}); $('.contact_email').inputbg({'val':'Email'}); $('.contact_name').each(function(index, element) { $(this).bind('change',function(){ diff --git a/application/default/views/scripts/author/metadata.phtml b/application/default/views/scripts/author/metadata.phtml index 3b3d03b7..5d2eb203 100644 --- a/application/default/views/scripts/author/metadata.phtml +++ b/application/default/views/scripts/author/metadata.phtml @@ -4,8 +4,6 @@ $this->headTitle($this->config->title->author); $this->headTitle()->setSeparator(' - '); $this->theme->AppendPlus($this,'jquery'); $this->theme->AppendPlus($this,'jquery_ui'); -$this->theme->AppendPlus($this,'google_map_v3'); -$this->theme->AppendPlus($this,'google_map_keydragzone'); $this->theme->AppendPlus($this,'colorbox'); $this->headLink()->appendStylesheet('/css/author.css'); $this->headLink()->appendStylesheet('/css/author-metadata.css'); diff --git a/application/models/MetaData.php b/application/models/MetaData.php index c55edaa0..5885ba6a 100755 --- a/application/models/MetaData.php +++ b/application/models/MetaData.php @@ -46,7 +46,7 @@ class Metadata 'FieldName_temp' => 'title_en', 'Type' => 'varchar', 'MaxLength' => 200, - 'Required' => true + 'Required' => false ), //摘要 diff --git a/application/models/Theme.php b/application/models/Theme.php index 07d2b144..bc581e99 100644 --- a/application/models/Theme.php +++ b/application/models/Theme.php @@ -67,6 +67,13 @@ class Theme ) ), + //loadinglayer + 'slides' => array( + $this->ScriptKey => array( + '/js/lib/slides.min.jquery.js' + ) + ), + /*********谷歌地图*********/