【php开源代码栏目提醒】:文章导读:在新的一年中,各位网友都进入紧张的学习或是工作阶段。网学会员整理了php开源代码-ProductImg.php的相关内容供大家参考,祝大家在新的一年里工作和学习顺利!
<link href="/Style/admin.css" rel="stylesheet" type="text/css">
<p class="caption">产品图片</p>
<form action="" method="post" enctype="multipart/form-data" name="frm_add" id="frm_add" onSubmit="return check_data()">
<table width="400" border="0" align="center">
<tr>
<th height="23" align="center">产品:{*$info[F_PRODUCT_NAME]*}</th>
</tr>
<tr>
<td height="100" bgcolor="#eeeeee">
{*if $msg*}
<table width="85%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td>
<font color="red">
{*foreach item=uu from=$msg*}
<p>{*$uu*}</p>
{*/foreach*}
</font></td>
</tr>
</table>
{*/if*}
<table width="85%" border="0" align="center">
<tr>
<td width="18%" height="24" align="right">小图</td>
<td width="82%"><input name="small" type="file" id="small"></td>
</tr>
{*if $info[F_PRODUCT_SMALL_IMG]*}
<tr>
<td height="24" align="right">小图预览</td>
<td><a href="{*$upload_path*}{*$info[F_PRODUCT_SMALL_IMG]*}"><img src="{*$upload_path*}{*$info[F_PRODUCT_SMALL_IMG]*}" width="80" height="80" border="0" /></a></td>
</tr>
{*/if*}
<tr>
<td height="24" align="right">大图</td>
<td><input name="big" type="file" id="big"></td>
</tr>
{*if $info[F_PRODUCT_BIG_IMG]*}
<tr>
<td height="24" align="right">大图预览</td>
<td><a href="{*$upload_path*}{*$info[F_PRODUCT_BIG_IMG]*}"><img src="{*$upload_path*}{*$info[F_PRODUCT_BIG_IMG]*}" width="80" height="80" border="0" /></a></td>
</tr>
{*/if*}
</table>
</td>
</tr>
<tr>
<th align="center"> <input type="submit" name="Submit" value="提交">
<input name="cmdBack" type="button" id="cmdBack" value="返回" onClick="javascript:history.back()">
<input name="pid" type="hidden" id="pid" value="{*$info[F_ID]*}"></th>
</tr>
</table>
</form>