<?
	session_start(); 
	require_once('../../../ru/update/1.70 - 2.26/inc/conn.php');
	require_once('../../../ru/update/1.70 - 2.26/inc/constant.php');
	require_once('../../../ru/update/1.70 - 2.26/inc/ls_syscode.php');
	require_once('../../../ru/update/1.70 - 2.26/inc/check.php');
	
$openpath=$_GET['openpath'];//源图片文件目录
$productname=urldecode($_GET['name']);//产品名称，默认取用上级分类目录名
$itemnoprefix=trim($productname);//货号前缀，默认取用上级分类目录名
$id=$_GET['id']

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="../../../ru/update/1.70 - 2.26/css/admin.css" rel="stylesheet" type="text/css">
<title>无标题文档</title>
<script type="text/javascript">
	var e=2;
	var maxPics=50;
function addFile()
{
 if(e<maxPics)
 {
  var str = '<div style="font-family: Simsun;" id="tempobj'+e+'"><BR> '+e+'. &nbsp;&nbsp; <input type="file" name="userfile[]" onclick="addFile()" size="60"/>  </div>';
  
  document.getElementById("myfile").insertAdjacentHTML("beforeEnd",str);
  e++;
 }
 else
 {
  alert("您一次最多只能上传 "+maxPics+" 张图片！")
 }
}
</script>
</head>
<body>  <table width="928" align="center" cellpadding="10" cellspacing="1"  bgcolor="#FFFFFF">
<form id="batchadd" name="batchadd" method="post" action="../../../ru/update/1.70 - 2.26/savebatchadd.php" enctype="multipart/form-data">

  <input type="hidden" name="id" value="<? echo $id ?>" />

  <tr bgcolor="#f4f4f4">
	<td style="padding-left:12px;" >图片规格：</td>
	<td colspan="2" style="padding-left:3.0em;" ><p>图片大小：宽度
		<input type="text" value="<?php echo $BigPicW ?>" name="thisBigPicW" style="width:50px;" onblur="document.productpic.width=document.batchadd.width.value;" />
		px &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 高度
		<input type="text" value="<?php echo $BigPicH ?>" name="thisBigPicH" style="width:50px;" onblur="document.productpic.height=document.batchadd.height.value;" />
	  px  ，格式为jpg，大小不要超过<?php echo $PicSize/1000; ?>KB，最宽<?php echo $BigPicW ?>点、最高<?php echo $BigPicW ?>点（示例见最下）。<br />
	    <br />
	    产品名称：
	    <input name="productname" type="text" style="width:200px;" value="<?php echo $productname ?>" size="30"  />	  
	    &nbsp;考虑到网站优化效果，请在批量添加完以后，修改每个产品名称</p>
	  <p>编号前缀：
	    <input name="itemnoprefix" type="text" style="width:200px;" value="<?php echo $itemnoprefix ?>" size="30" />
	    后顺序添加数字编号<br />
	    <br />
	    产品规格：考虑到网站优化效果，请在批量添加完以后，修改每个产品的规格<br />
	    <textarea name="productSpecification" cols="100" rows="4"><?php echo $_POST['productSpecification'];?></textarea>
	    <span style="padding-left:10px;">
	      <input type="submit" name="button3" id="button3" value="提交" />
	      </span>
	    <label>
	       <input type="reset" name="button4" id="button4" value="重置" />
	      </label>
      </p></td>
  </tr>
  <tr bgcolor="#f4f4f4">
	<td height="45" style="padding-left:10px;" >选择文件： </td>
	<td colspan="2" valign="middle" id="myfile" style="padding-left:3.2em;">
	<div style="font-family: Simsun;" id="tempobj1">1. &nbsp;&nbsp;&nbsp;<input name="userfile[]" type="file" onclick="addFile()" size="60" /></div>

	</td >
  </tr>
<tr bgcolor="#f4f4f4">
	<td style="padding-left:10px;" >&nbsp;</td>
	<td colspan="2" style="padding-left:3.2em;">
	  <input type="submit" name="button" id="button" value="提交" /> 
	  <input type="reset" name="button5" id="button5" value="重置" />
	</td>
  </tr>
<tr bgcolor="#f4f4f4">
  <td rowspan="2" style="padding-left:12px;" >图片示例：</td>
  <td  height="500" colspan="2" style="padding-left:3.0em;" ><img src="../../../ru/update/1.70 - 2.26/images/picture.gif" alt="" name="productpic" width="<?php echo $BigPicW ?>" height="<?php echo $BigPicH?>" border="1" id="productpic" style="float:left;" /></td>
</tr>
<tr bgcolor="#f4f4f4">
  <td colspan="2" style="padding-left:3.2em;">大图格式为jpg，大小不要超过<?php echo $PicSize/1000; ?>KB，图片宽度一般最宽<?php echo $BigPicW ?>点、高度最高<?php echo $BigPicW ?>点。</td>
</tr>
</form>  
</table>
</body>
</html>
