实现方法,打开/dede/templets/sys_info.htm 找到: <script language="javascript" src="../include/js/dedeajax2.js"></script> <script language="javascript" src="../include/js/jquery/jquery.js"></script> 在下方添加: <script language="javascript" src="js/main.js"></script> 继续找:
<input type="radio" name="vartype" value="bstring" class='np' />多行文本</td> 改成: <input type="radio" name="vartype" value="bstring" class='np' />多行文本 <input type="radio" name="vartype" value="pic" class='np' />图片 </td> 找到: echo "<input type='text' name='edit___{$row['varname']}' id='edit___{$row['varname']}' value='{$row['value']}' style='width:30%'>"; 在下方添加: }else if($row['type']=='pic') { echo "<table><tbody><tr><td><input type='text' name='edit___{$row['varname']}' id='edit___{$row['varname']}' value='{$row['value']}' style='width:250px;'></td> <td><input type='button' name='set9' value='浏览... 'class='coolbg np' style='width:60px' onClick="."SelectImageN('form1.edit___{$row['varname']}','','idd_{$row['varname']}');"." /></td> "; if($row['value']){ echo "<td><img src=".$row['value']." style='max-width:150px;max-height: 100px;' id='idd_{$row['varname']}' ></td></tr></tbody></table>"; }else{ echo "<td><img src='images/pview.gif' style='max-width:150px;max-height: 100px;' id='idd_{$row['varname']}'></td></tr></tbody></table>"; } 到此完成。最终效果如下:
本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!