Browse Source

Update diy_list.htm

tags/6.2.7
叙述、别离 1 year ago
parent
commit
da41bbc0f0
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/admin/templets/diy_list.htm

+ 2
- 2
src/admin/templets/diy_list.htm View File

@@ -20,14 +20,14 @@
if (!empty($fields)) {
$allowhtml = array('htmltext');
$fields['sta'] = $fields['ifcheck'] == 1 ? '<span class="btn btn-success btn-sm">已审核</span>':'<span class="btn btn-danger btn-sm">未审核</span>';
echo '<tr bgcolor="#e9ecef"><td width="8%"><input type="checkbox" name="id[]" value="'.$fields['id'].'"></td><td width="8%"><a href="diy_list.php?action=edit&diyid='.$diy->diyid.'&id='.$fields['id'].'">表单'.$fields['id'].'</a></td><td align="right">'.$fields['sta'].'<a href="diy_list.php?action=edit&diyid='.$diy->diyid.'&id='.$fields['id'].'" class="btn btn-light btn-sm"><i class="fa fa-pencil-square"></i></a></td></tr>';
echo '<tr bgcolor="#e9ecef"><td width="16%"><input type="checkbox" name="id[]" value="'.$fields['id'].'"><a href="diy_list.php?action=edit&diyid='.$diy->diyid.'&id='.$fields['id'].'" class="ml-2">表单'.$fields['id'].'</a></td><td align="right">'.$fields['sta'].'<a href="diy_list.php?action=edit&diyid='.$diy->diyid.'&id='.$fields['id'].'" class="btn btn-light btn-sm"><i class="fa fa-pencil-square"></i></a></td></tr>';
foreach($fieldlist as $field=>$fielddata)
{
if ($fields[$field]=='') continue;
if (!in_array($fielddata[1],$allowhtml)) {
$fields[$field] = dede_htmlspecialchars($fields[$field]);
}
echo '<tr><td colspan="2">'.$fielddata[0].'</td><td>'.$fields[$field].'</td></tr>';
echo '<tr><td>'.$fielddata[0].'</td><td>'.$fields[$field].'</td></tr>';
}
} else {
echo '<tr><td>暂无记录</td></tr>';


Loading…
Cancel
Save