Browse Source

Update customfields.func.php

tags/6.2.7
叙述、别离 1 year ago
parent
commit
b9d0fdef04
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/system/customfields.func.php

+ 2
- 2
src/system/customfields.func.php View File

@@ -102,7 +102,7 @@ function GetFormItem($ctag, $admintype = 'admin')
$innertext = "<textarea name='$fieldname' id='$fieldname' class='form-control admin-textarea-sm'></textarea>";
} else if ($fieldType == "datetime") {
$nowtime = GetDateTimeMk(time());
$innertext = "<input type=\"text\" name=\"$fieldname\" value=\"$nowtime\" id=\"$fieldname\" class=\"form-control admin-input-lg\">";
$innertext = "<input type='text' name='$fieldname' value='$nowtime' id='$fieldname' class='form-control admin-input-lg'>";
} else if ($fieldType == 'img' || $fieldType == 'imgfile') {
$fname = defined('DEDEADMIN')? 'form1' : 'addcontent';
$innertext = "<input type='text' name='$fieldname' id='$fieldname' class='form-control admin-input-lg'> <input type='button' name='".$fieldname."_bt' class='btn btn-success btn-sm' value='选择' onClick=\"SelectImage('$fname.$fieldname','big')\">";
@@ -395,7 +395,7 @@ function GetFormItemValue($ctag, $fvalue, $admintype = 'admin', $fieldname = '')
$innertext = "<textarea name='$fieldname' id='$fieldname' class='form-control admin-textarea-sm'>$fvalue</textarea>";
} else if ($ftype == "datetime") {
$nowtime = GetDateTimeMk($fvalue);
$innertext = "<input type=\"text\" name=\"$fieldname\" value=\"$nowtime\" id=\"$fieldname\" class=\"form-control admin-input-lg\">";
$innertext = "<input type='text' name='$fieldname' value='$nowtime' id='$fieldname' class='form-control admin-input-lg'>";
} else if ($ftype == "img") {
$ndtp = new DedeTagParse();
$ndtp->LoadSource($fvalue);


Loading…
Cancel
Save