diff --git a/src/system/customfields.func.php b/src/system/customfields.func.php index 5d738f6d..9dee089c 100755 --- a/src/system/customfields.func.php +++ b/src/system/customfields.func.php @@ -28,7 +28,7 @@ function GetFormItem($ctag, $admintype = 'admin') if ($fieldType == 'select') { $myformItem = ''; $items = explode(',', $ctag->GetAtt("default")); - $myformItem = ""; foreach ($items as $v) { $v = trim($v); if ($v != '') { @@ -68,7 +68,7 @@ function GetFormItem($ctag, $admintype = 'admin') foreach ($items as $v) { $v = trim($v); if ($v != '') { - $myformItem .= ($i == 0 ? "$v" : "$v"); + $myformItem .= ($i == 0 ? " $v" : " $v"); $i++; } } @@ -80,9 +80,9 @@ function GetFormItem($ctag, $admintype = 'admin') $v = trim($v); if ($v != '') { if ($admintype == 'membermodel') { - $myformItem .= ""; + $myformItem .= ""; } else { - $myformItem .= "$v"; + $myformItem .= " $v"; } } } @@ -102,7 +102,7 @@ function GetFormItem($ctag, $admintype = 'admin') $innertext = ""; } else if ($fieldType == "datetime") { $nowtime = GetDateTimeMk(time()); - $innertext = ""; + $innertext = ""; } else if ($fieldType == 'img' || $fieldType == 'imgfile') { if ($admintype == 'diy') { $innertext = ""; @@ -111,7 +111,7 @@ function GetFormItem($ctag, $admintype = 'admin') } } else if ($fieldType == 'media') { if ($admintype == 'diy') { - $innertext = "不支持的类型"; + $innertext = " 不支持的类型"; } else { $innertext = " "; } @@ -123,7 +123,7 @@ function GetFormItem($ctag, $admintype = 'admin') } } else if ($fieldType == 'int' || $fieldType == 'float') { $dfvalue = ($ctag->GetAtt('default') != '' ? $ctag->GetAtt('default') : '0'); - $innertext = " (填写数值)"; + $innertext = "(填写数值)"; } else if ($fieldType == 'relation') { $dfvalue = ($ctag->GetAtt('default') != '' ? $ctag->GetAtt('default') : ''); $channel = ($ctag->GetAtt('channel') == "") ? "1" : $ctag->GetAtt('channel'); @@ -311,7 +311,7 @@ function GetFormItemValue($ctag, $fvalue, $admintype = 'admin', $fieldname = '') $items = explode(',', $ctag->GetAtt('default')); } if ($ftype == 'select') { - $myformItem = ""; if (is_array($items)) { foreach ($items as $v) { $v = trim($v); @@ -352,7 +352,7 @@ function GetFormItemValue($ctag, $fvalue, $admintype = 'admin', $fieldname = '') foreach ($items as $v) { $v = trim($v); if ($v == '') continue; - $myformItem .= ($fvalue == $v ? "$v" : "$v"); + $myformItem .= ($fvalue == $v ? " $v" : " $v"); } } $innertext = $myformItem; @@ -368,9 +368,9 @@ function GetFormItemValue($ctag, $fvalue, $admintype = 'admin', $fieldname = '') continue; } if (in_array($v, $fvalues)) { - $myformItem .= "$v"; + $myformItem .= " $v"; } else { - $myformItem .= "$v"; + $myformItem .= " $v"; } } } @@ -405,7 +405,7 @@ function GetFormItemValue($ctag, $fvalue, $admintype = 'admin', $fieldname = '') $innertext = ""; } else if ($ftype == "datetime") { $nowtime = GetDateTimeMk($fvalue); - $innertext = ""; + $innertext = ""; } else if ($ftype == "img") { $ndtp = new DedeTagParse(); $ndtp->LoadSource($fvalue); @@ -424,7 +424,7 @@ function GetFormItemValue($ctag, $fvalue, $admintype = 'admin', $fieldname = '') } else if ($ftype == "addon") { $innertext = " "; } else if ($ftype == "int" || $ftype == "float") { - $innertext = " (填写数值)"; + $innertext = "(填写数值)"; } else if ($ftype == "relation") { $channel = ($ctag->GetAtt('channel') == "") ? "1" : $ctag->GetAtt('channel'); $innertext = "
diff --git a/src/theme/system/custom_fields_admin.htm b/src/theme/system/custom_fields_admin.htm index 5c4ddb3e..744efa22 100644 --- a/src/theme/system/custom_fields_admin.htm +++ b/src/theme/system/custom_fields_admin.htm @@ -1,6 +1,6 @@ - +
 ~name~: ~name~: ~form~
\ No newline at end of file