解决方法
<?php
$formfields = '';
foreach($fieldlist as $field=>$fielddata)
{
$allowhtml = array('htmltext');
if($row[$field]=='') continue;
if($fielddata[1]=='img')
{
$row[$field] = "<input name='photo' type='file' /> <a rel="nofollow noopener noreferrer" href='{$row[$field]}' target='_blank'><img src='images/channeladd.gif' border='0' /> 浏览原图</a> <a rel="nofollow noopener noreferrer" href='diy_list.php?action=delete&diyid=$diy->diyid&id=$row[id]&do=1&name=$field'>删除原图</a>\r\n";
}
else if($fielddata[1]=='addon')
{
$row[$field] = "<input name='file' type='file' /> <a rel="nofollow noopener noreferrer" href='{$row[$field]}' target='_blank'><img src='images/channeladd.gif' border='0' /> 浏览原附件</a> <a rel="nofollow noopener noreferrer" href='diy_list.php?action=delete&diyid=$diy->diyid&id=$row[id]&do=1&name=$field'>删除原附件</a>";
}
else
{
if(!in_array($fielddata[1],$allowhtml)){
$row[$field] = dede_htmlspecialchars($row[$field]);
$row[$field] = "<input type='text' name='".$field."' value='".$row[$field]."'/>";
}
}
echo '<tr bgcolor="#ffffff"><td width="20%" height="24">'.$fielddata[0].':'.'</td><td width="80%">'.$row[$field].'</td></tr>';
$formfields .= $formfields == ''? $field.','.$fielddata[1] : ';'.$field.','.$fielddata[1];
}
echo "<input type='hidden' name='dede_fields' value='".$formfields."'>";
?>
|
<?php echo $postform; ?> |
到此这篇关于dedecms织梦自定义表单内容列表编辑联动地区显示为数字的如何解决方法就介绍到这了。心情不好就不要听悲伤的歌,如果饿了就自己做饭,想要的衣服就自己赚钱去买,就算生活对你不温柔,你也不要像别人诉说你的不幸,因为生活就是这么现实,你何必去装无辜。更多相关dedecms织梦自定义表单内容列表编辑联动地区显示为数字的如何解决方法内容请查看相关栏目,小编编辑不易,再次感谢大家的支持!




