<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=20%><div align=center>船舶图片"+j+"</div></td><td width=80%><div align=left><input name=msmallpic[] type='hidden' id=msmallpic"+j+" ><input type=file name=msmallpfile[] size=15 style='height:25px'></div></td><input name=mbigpic[] type=hidden id=mbigpic"+j+" ><input name=mpicname[] type=hidden></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 id=defmorepicid>
<?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='20%'><div align=center>船舶图片<?=$mppathi?></div></td>
<td width='80%'><div align=left>
<input name=msmallpic[] type="hidden" id='msmallpic<?=$mppathi?>' >
<input name=mbigpic[] type="hidden" id='mbigpic<?=$mppathi?>' >
<input name=mpicname[] type="hidden" id='mpicname<?=$mppathi?>'>
<input type=file name=msmallpfile[] size=15 style="height:25px" >
</div></td>
</tr>
<?php
}
?>
</table>
<?php
}
else
{
$morepicpath="";
$morepicnum=0;
if($r[morepic])
{
$r[morepic]=stripSlashes($r[morepic]);
//地址
$j=0;
$pd_record=explode("/r/n",$r[morepic]);
for($i=0;$i<count($pd_record);$i++)
{
$j=$i+1;
$pd_field=explode("::::::",$pd_record[$i]);
$morepicpath.="<tr>
<td width='20%'><div align=center>船舶图片".$j."</div></td>
<td width='80%'><div align=left>
<input name=msmallpic[] type='hidden' value='".$pd_field[0]."' id=msmallpic".$j." >
<input name=mbigpic[] type='hidden' value='".$pd_field[0]."' id=mbigpic".$j." >
<input name=mpicname[] type='hidden' value='".$pd_field[0]."' id=mpicname".$j." >
<br><input type=file name=msmallpfile[] size=15 style='height:25px'>
</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>