发布时间:2015-04-15 18:22:49作者:知识屋
1.修改morepic字段 输入表单替换html代码 为:
<script> function dopicadd() {var i; var str=""; var oldi=0; var j=0; oldi=parseInt(document.add.morepicnum.value); for(i=1;i<=document.add.downmorepicnum.value;i++) { j=i+oldi; str=str+"<tr><td width=7%><div align=center>"+j+"</div></td><td><div align=center><input name=msmallpic[] type=text size=28 id=msmallpic"+j+" ondblclick=SpOpenChFile(1,'msmallpic"+j+"')><br><input type=file name=msmallpfile[] size=15></div></td><td><div align=center><input name=mbigpic[] type=text size=28 id=mbigpic"+j+" ondblclick=SpOpenChFile(1,'mbigpic"+j+"')><br><input type=file name=mbigpfile[] size=15></div></td><td><div align=center><input name=myuanpic[] type=text id='myuanpic"+j+"' size=28><br><input type=file name=myuanpfile[] size=15></div></td><td width=30%><div align=center><input name=mpicname[] type=text></div></td></tr>"; } document.getElementById("addpicdown").innerHTML="<table width='100%' border=0 cellspacing=1 cellpadding=3>"+str+"</table>"; } </script> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td height="25"> 图片地址前缀: <input name="mpicurl_qz" type="text" id="mpicurl_qz"> <input type="checkbox" name="msavepic" value="1">远程保存 <input type="checkbox" name="mcreatespic" value="1" onclick="if(this.checked){setmcreatespic.style.display='';}else{setmcreatespic.style.display='none';}">生成缩图 <span id="setmcreatespic" style="display=none">:<input type=text name="mcreatespicwidth" size=4 value="<?=$public_r[spicwidth]?>">*<input type=text name="mcreatespicheight" size=4 value="<?=$public_r[spicheight]?>">(宽*高)</span> </td> </tr> <tr> <td><table width="100%" border=0 align=center cellpadding=3 cellspacing=1> <tr bgcolor="#DBEAF5"> <td width="7%"><div align=center>编号</div></td> <td width=""><div align=center>缩图 <font color="#666666">(双击选择)</font></div></td> <td width=""><div align=center>大图 <font color="#666666">(双击选择)</font></div></td> <td width=""><div align=center>原图 <font color="#666666">(双击选择)</font></div></td> <td width=""><div align=center>图片说明</div></td> </tr> </table></td> </tr> <tr> <td> <?php if($ecmsfirstpost==1) { ?> <table width='100%' border=0 align=center cellpadding=3 cellspacing=1> <?php $morepicnum=3; for($mppathi=1;$mppathi<=$morepicnum;$mppathi++) { ?> <tr> <td width='7%'><div align=center><?=$mppathi?></div></td> <td><div align=center> <input name=msmallpic[] type=text id='msmallpic<?=$mppathi?>' size=28 ondblclick="SpOpenChFile(1,'msmallpic<?=$mppathi?>');"> <br><input type=file name=msmallpfile[] size=15> </div></td> <td><div align=center> <input name=mbigpic[] type=text id='mbigpic<?=$mppathi?>' size=28 ondblclick="SpOpenChFile(1,'mbigpic<?=$mppathi?>');"> <br><input type=file name=mbigpfile[] size=15> </div></td> <td><div align=center> <input name=myuanpic[] type=text id='myuanpic<?=$mppathi?>' size=28 ondblclick="SpOpenChFile(1,'mbigpic<?=$mppathi?>');"> <br><input type=file name=myuanpfile[] size=15> </div></td> <td><div align=center> <input name=mpicname[] type=text id='mpicname<?=$mppathi?>'> </div></td> </tr> <?php } ?> </table> <?php } else { $morepicpath=""; $morepicnum=0; if($r[morepic]) { $r[morepic]=stripSlashes($r[morepic]); //地址 $j=0; $pd_record=explode("rn",$r[morepic]); for($i=0;$i<count($pd_record);$i++) { $j=$i+1; $pd_field=explode("::::::",$pd_record[$i]); $morepicpath.="<tr> <td width='7%'><div align=center>".$j."</div></td> <td ><div align=center> <input name=msmallpic[] type=text value='".$pd_field[0]."' size=28 id=msmallpic".$j." ondblclick="SpOpenChFile(1,'msmallpic".$j."');"> <br><input type=file name=msmallpfile[] size=15> </div></td> <td ><div align=center> <input name=mbigpic[] type=text value='".$pd_field[1]."' size=28 id=mbigpic".$j." ondblclick="SpOpenChFile(1,'mbigpic".$j."');"> <br><input type=file name=mbigpfile[] size=15> </div></td> <td ><div align=center> <input name=myuanpic[] type=text value='".$pd_field[2]."' size=28 id=myuanpic".$j." ondblclick="SpOpenChFile(1,'mbigpic".$j."');"> <br><input type=file name=myuanpfile[] size=15> </div></td> <td><div align=center> <input name=mpicname[] type=text value='".$pd_field[3]."'><input type=hidden name=mpicid[] value=".$j."><input type=checkbox name=mdelpicid[] value=".$j.">删 </div></td> </tr>"; } $morepicnum=$j; $morepicpath="<table width='100%' border=0 cellspacing=1 cellpadding=3>".$morepicpath."</table>"; } echo $morepicpath; } ?> </td> </tr> <tr> <td height="25">地址扩展数量: <input name="morepicnum" type="hidden" id="morepicnum" value="<?=$morepicnum?>"> <input name="downmorepicnum" type="text" value="1" size="6"> <input type="button" name="Submit5" value="输出地址" onclick="javascript:dopicadd();"></td> </tr> <tr> <td id=addpicdown></td> </tr> </table>
2.覆盖e目录到帝国cms 7.0网站目录即可! 使用ecms7.0 utf-8版!
效果预览:
本文来自 52img 吾爱图库!
2014-11-19
怎么找回退出的QQ群的群号?
Winpcap是什么 Winpcap有什么用?
jsp文件怎么打开?
百度权重之我见~ 百度权重的等级划分
DEDE关于列表页分页和内容页分页与CSS不对应,错位的问题-DedeCM
怎样去掉dedecms【织梦】后台的安全提示?
帝国CMS 后台在线编辑CSS扩展修改教程!(建议收藏)
修改Dede友情链接dede:flink
nginx做下载服务器配置一例