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