Browse Source

调整自定义表单编辑数据

tags/6.2.10
叙述、别离 1 year ago
parent
commit
4e1b22c31e
2 changed files with 2 additions and 4 deletions
  1. +1
    -1
      docs/changelog.md
  2. +1
    -3
      src/admin/templets/diy_edit_content.htm

+ 1
- 1
docs/changelog.md View File

@@ -1,7 +1,7 @@
# 更新记录 # 更新记录
通过访问 https://www.dedebiz.com/git 获取完整更新记录 通过访问 https://www.dedebiz.com/git 获取完整更新记录


# V6.2.9
# V6.2.10
- 添加软件发布,演示网址上传压缩包解压功能; - 添加软件发布,演示网址上传压缩包解压功能;
- 修正后台功能说明提示; - 修正后台功能说明提示;
- 修正兼容14px字体元素配置; - 修正兼容14px字体元素配置;


+ 1
- 3
src/admin/templets/diy_edit_content.htm View File

@@ -7,8 +7,6 @@
<link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css"> <link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css">
<link rel="stylesheet" href="../static/web/css/bootstrap.min.css"> <link rel="stylesheet" href="../static/web/css/bootstrap.min.css">
<link rel="stylesheet" href="../static/web/css/admin.css"> <link rel="stylesheet" href="../static/web/css/admin.css">
<script src="../static/web/js/jquery.min.js"></script>
<script src="../static/web/js/bootstrap.min.js"></script>
</head> </head>
<body> <body>
<form name="form1" method="post" enctype="multipart/form-data" action="diy_list.php?action=edit&diyid=<?php echo $diy->diyid ?>&id=<?php echo $row['id'] ?>&do=2"> <form name="form1" method="post" enctype="multipart/form-data" action="diy_list.php?action=edit&diyid=<?php echo $diy->diyid ?>&id=<?php echo $row['id'] ?>&do=2">
@@ -26,7 +24,7 @@
if ($row[$field]=='') continue; if ($row[$field]=='') continue;
if (!in_array($fielddata[1],$allowhtml)) { if (!in_array($fielddata[1],$allowhtml)) {
$row[$field] = dede_htmlspecialchars($row[$field]); $row[$field] = dede_htmlspecialchars($row[$field]);
$row[$field] = "<input type='text' name='".$field."' value='".$row[$field]."'>";
$row[$field] = "<textarea name='".$field."' class='admin-textarea-xl'>$row[$field]</textarea>";
} }
echo '<tr><td width="260">'.$fielddata[0].':'.'</td><td>'.$row[$field].'</td></tr>'; echo '<tr><td width="260">'.$fielddata[0].':'.'</td><td>'.$row[$field].'</td></tr>';
$formfields .= $formfields == ''? $field.','.$fielddata[1] : ';'.$field.','.$fielddata[1]; $formfields .= $formfields == ''? $field.','.$fielddata[1] : ';'.$field.','.$fielddata[1];


Loading…
Cancel
Save