|
|
@@ -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);
|
|
|
|