導讀:DEDE技術DEDE技術解決方法 打開 \dede\templets\diy_edit_content.htm 找到 ?php$formfields = ;foreach($fielddede免費校板下戰。

解決方法
打開 \dede\templets\diy_edit_content.htm 找到
<?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 href='{$row[$field]}' target='_blank'><img src=織夢模板免費下裁'images/channeladd.gif' border='0' /織夢模板修改> 瀏覽原圖</a> <a 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 href='{$row[$field]}' target='_blank'><img src='images/channeladd.gif' border='0' /> 瀏覽原附件</a> <a 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"><t織夢文章模板d 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代碼改成
<?php
echo $postform;
?>
|
相關dede免費校板下戰。
關鍵詞標簽: 織夢 表單 自定義
聲明: 本文由我的SEOUC技術文章主頁發布于:2023-07-18 ,文章dedecms織夢自定義表單內容列表編輯聯動地區顯示主要講述自定義,表單,織夢網站建設源碼以及服務器配置搭建相關技術文章。轉載請保留鏈接: http://www.bifwcx.com/article/web_29210.html