From 9143129aa180c720172f0f62a661e95a5543ad3e Mon Sep 17 00:00:00 2001 From: tianya Date: Sat, 4 Mar 2023 23:46:11 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B8=B8=E8=A7=84=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/admin/templets/content_s_list.htm | 2 ++ src/system/customfields.func.php | 18 ++++++++++++------ src/theme/plus/post_diyform.htm | 2 +- 3 files changed, 15 insertions(+), 7 deletions(-) diff --git a/src/admin/templets/content_s_list.htm b/src/admin/templets/content_s_list.htm index 0476b15e..0b8395dc 100644 --- a/src/admin/templets/content_s_list.htm +++ b/src/admin/templets/content_s_list.htm @@ -8,6 +8,7 @@ + @@ -35,6 +36,7 @@ + diff --git a/src/system/customfields.func.php b/src/system/customfields.func.php index c8cf3782..2c30c11a 100755 --- a/src/system/customfields.func.php +++ b/src/system/customfields.func.php @@ -104,7 +104,8 @@ function GetFormItem($ctag, $admintype = 'admin') $nowtime = GetDateTimeMk(time()); $innertext = ""; } else if ($fieldType == 'img' || $fieldType == 'imgfile') { - $innertext = " "; + $fname = defined('DEDEADMIN')? 'form1' : 'addcontent'; + $innertext = " "; } else if ($fieldType == 'media') { $innertext = ""; } else if ($fieldType == 'addon') { @@ -405,18 +406,23 @@ function GetFormItemValue($ctag, $fvalue, $admintype = 'admin', $fieldname = '') $fvalue = trim($ntag->GetInnerText()); } } - $innertext = " "; + $fname = defined('DEDEADMIN')? 'form1' : 'addcontent'; + $innertext = " "; } else if ($ftype == "imgfile") { - $innertext = " "; + $fname = defined('DEDEADMIN')? 'form1' : 'addcontent'; + $innertext = " "; } else if ($ftype == "media") { - $innertext = " "; + $fname = defined('DEDEADMIN')? 'form1' : 'addcontent'; + $innertext = " "; } else if ($ftype == "addon") { - $innertext = " "; + $fname = defined('DEDEADMIN')? 'form1' : 'addcontent'; + $innertext = " "; } else if ($ftype == "int" || $ftype == "float") { $innertext = ""; } else if ($ftype == "relation") { + $fname = defined('DEDEADMIN')? 'form1' : 'addcontent'; $channel = ($ctag->GetAtt('channel') == "") ? "1" : $ctag->GetAtt('channel'); - $innertext = "
"; + $innertext = "
"; if ($ctag->GetAtt('automake') == 1) { $innertext .= ""; } diff --git a/src/theme/plus/post_diyform.htm b/src/theme/plus/post_diyform.htm index e4a2493e..5eabd0de 100644 --- a/src/theme/plus/post_diyform.htm +++ b/src/theme/plus/post_diyform.htm @@ -8,7 +8,7 @@ - +