帝国CMS7.5多值字段改成能上传图片的,点击图片按钮提示非法来源
<script>
function domvadd_fffffffffffff()
{
var i;
var str='';
var oldi=0;
var j=0;
var addnum=0;
addnum=parseInt(document.add.mvaddnum_fffffffffffff.value);
oldi=parseInt(document.add.mveditnum_fffffffffffff.value);
for(i=1;i<=addnum;i++)
{
j=i+oldi;
str=str+'<tr><td align="left"><input type="text" name="fffffffffffff_1[]" id="fffffffffffff_1_'+j+'" value=""><a onclick="window.open(\'ecmseditor/FileMain.php?type=1&classid=<?=$classid?>&infoid=<?=$id?>&doing=1&field=fffffffffffff_1_'+j+'<?=$ecms_hashur['ehref']?>\',\'\',\'width=700,height=550,scrollbars=yes\');" title="选择已上传的图片"><img src="../data/images/changeimg.gif" border="0" align="absbottom"></a></td></tr>';
}
document.getElementById("mvadd_fffffffffffff").innerHTML="<table width='100%' border=0 cellspacing=1 cellpadding=3>"+str+"</table>";
}
</script>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#DBEAF5">
<tr><td align="center">显示图片</td></tr>
</table>
</td>
</tr>
<tr>
<td>
<?php
if($ecmsfirstpost==1)
{
?>
<table width='100%' border=0 cellspacing=1 cellpadding=3>
<?php
$editnum=3;
for($i=1;$i<=$editnum;$i++)
{
?>
<tr><td align="left"><input type="text" name="fffffffffffff_1[]" id="fffffffffffff_1_<?=$i?>" value=""><a onclick="window.open('ecmseditor/FileMain.php?type=1&classid=<?=$classid?>&infoid=<?=$id?>&doing=1&field=fffffffffffff_1_<?=$i?><?=$ecms_hashur['ehref']?>','','width=700,height=550,scrollbars=yes');" title="选择已上传的图片"><img src="../data/images/changeimg.gif" border="0" align="absbottom"></a></td></tr>
<?php
}
?>
</table>
<?php
}
else
{
$editnum=0;
if($r['fffffffffffff'])
{
$r['fffffffffffff']=stripSlashes($r['fffffffffffff']);
?>
<table width='100%' border=0 cellspacing=1 cellpadding=3>
<?php
//录入项
$j=0;
$mvf_record=explode('||||||',$r['fffffffffffff']);
$mvf_count=count($mvf_record);
for($i=0;$i<$mvf_count;$i++)
{
$j=$i+1;
$mvf_field=explode("::::::",$mvf_record[$i]);
?>
<tr><td align="left"><input type="checkbox" name="fffffffffffff_mvdelid[]" id="fffffffffffff_mvdelid_<?=$j?>" value="<?=$j?>"><input type="text" name="fffffffffffff_1[]" id="fffffffffffff_1_<?=$j?>" value="<?=$mvf_field[0]?>"> <input type="hidden" name="fffffffffffff_mvid[]" id="fffffffffffff_mvid_<?=$j?>" value="<?=$j?>"><a onclick="window.open('ecmseditor/FileMain.php?type=1&classid=<?=$classid?>&infoid=<?=$id?>&doing=1&field=fffffffffffff_1_<?=$j?><?=$ecms_hashur['ehref']?>','','width=700,height=550,scrollbars=yes');" title="选择已上传的图片"><img src="../data/images/changeimg.gif" border="0" align="absbottom"></a></td></tr>
<?php
}
?>
</table>
<?php
$editnum=$j;
}
}
?>
</td>
</tr>
<tr>
<td height="25">扩展数量: <input name="mveditnum_fffffffffffff" type="hidden" id="mveditnum_fffffffffffff" value="<?=$editnum?>">
<input name="mvnum_fffffffffffff" type="hidden" id="mvnum_fffffffffffff" value="1">
<input name="mvmust_fffffffffffff" type="hidden" id="mvmust_fffffffffffff" value="1">
<input name="mvaddnum_fffffffffffff" type="text" id="mvaddnum_fffffffffffff" value="1" size="6"> <input type="button" name="Submit5" value="输出" onClick="javascript:domvadd_fffffffffffff();"></td>
</tr>
<tr>
<td id="mvadd_fffffffffffff"></td>
</tr>
</table>
fffffffffffff是字段名