| 
                        123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 | 
                        - <!DOCTYPE html>
 - <html>
 - <head>
 -   <meta charset="<?php echo $cfg_soft_lang;?>">
 -   <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
 -   <title>编辑评论</title>
 -   <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/admin.css">
 -   <script src="../static/web/js/jquery.min.js"></script>
 -   <script src="../static/web/js/bootstrap.bundle.min.js"></script>
 - </head>
 - <body>
 - <table width="98%" cellpadding="1" cellspacing="1" align="center" class="table maintable my-3">
 -   <tr>
 -     <td width="100%" bgcolor="#f5f5f5" colspan="2"><a href="<?php echo $ENV_GOBACK_URL;?>">表单管理</a> > 编辑评论</td>
 -   </tr>
 -   <tr>
 -     <td colspan="2" align="center">
 -     	<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">
 -     		<input type="hidden" name="dopost" value="edit">
 -     		<input type="hidden" name="id" value="<?php echo $row['id'];?>">
 -     		<table width="100%" cellpadding="3" cellspacing="1">
 - 					<?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'><i class='fa fa-picture-o'></i> 浏览原图</a> <a href='diy_list.php?action=delete&diyid=$diy->diyid&id=$row[id]&do=1&name=$field'>删除原图</a>";
 - 						}
 - 						else if ($fielddata[1]=='addon')
 - 						{
 - 							$row[$field] = "<input name='file' type='file'> <a href='{$row[$field]}' target='_blank'><i class='fa fa-file-text-o'></i> 浏览原附件</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><td width="260">'.$fielddata[0].':'.'</td><td>'.$row[$field].'</td></tr>';
 - 						$formfields .= 	$formfields == ''? $field.','.$fielddata[1] : ';'.$field.','.$fielddata[1];	
 - 					}
 - 					echo "<input type='hidden' name='dede_fields' value='".$formfields."'>";
 - 					?>
 -           <tr> 
 -             <td colspan="2" align="center" class="py-2">
 -               <button type="submit" name="Submit1" class="btn btn-success btn-sm">保存</button>
 -               <button type="button" name="Submit2" class="btn btn-success btn-sm" onClick="location='<?php echo $ENV_GOBACK_URL;?>';">返回</button>
 - 			 			</td>
 -           </tr>
 -         </table>
 - 	  	</form>
 - 	  </td>
 -   </tr>
 - </table>
 - </body>
 - </html>
 
 
  |