<!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=<tpl> $NCharset </tpl>" />
<tpl>include file ='../head.config.html'</tpl>
<link href="<tpl> $template_dir </tpl>/member/css/layout.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<tpl> $site_url </tpl>/share/area_<tpl> $versionarea </tpl>.js"></script>
</head><body><tpl>include file ='../header.html'</tpl>
<div id="container761">
<div class="own_member_main">
<tpl>include file ='own_menu.html'</tpl>
  <div class="member_right">
  <div class="new_main_left">
		<div class="new_main_left1">
		<h1 class="new_text"><tpl> $langBatchProductManage </tpl></h1>
		<i></i>
		</div><b></b>
		</div>
				 <div id="own_main_rightop"><tpl> $langBatchExportRemark </tpl><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<tpl> $langBatchExportRemarkTwo </tpl></div>
	<div id="own_main_rightop_line" style="margin-top:-3px;">
	  <b class="b4"></b>
	  <b class="b3"></b>
	  <b class="b2"></b>
	  <b class="b1"></b>
	  </div>
	
	  <UL class="item_list_title">
	  	<LI ><a href="own_product_batch.php"><tpl> $langBatchProduct </tpl></a> </LI>
		<LI class="selected"><a href="javascript:;"><tpl> $langBatchProductExport </tpl></a> </LI>
      </UL>
	   <div id="item_list_border">  
<div style=" height:30px">
	<a href="own_product_batch.php?action=export"  style=" font-weight:700"><tpl> $langBatchProductAllClass </tpl></a><tpl> foreach from=$cate_path item=one </tpl>-><a href="own_product_batch.php?action=export&parent_id=<tpl> $one.id </tpl>" style=" font-weight:700"><tpl> $one.name </tpl></a>
	<tpl> /foreach </tpl>
</div>
	<tpl>foreach item = parent from = $ProductCateArray</tpl>
	
		<a href="own_product_batch.php?action=export&parent_id=<tpl> $parent[0] </tpl>" style="width:220px; display:block; float:left"><tpl> $parent[2] </tpl></a>
	<tpl>/foreach</tpl>
<div style="clear:both"></div>
	</div>
	<form action="own_product_batch.php" method="get" name="form_export_search" id="form_export_search">
		<input type="hidden" name="action" id="action" value="export" />
		<input type="hidden" name="parent_id" id="parent_id" value="<tpl> $parent_id </tpl>" />
		<input type="hidden" name="search_sort" id="search_sort" value="<tpl> $input_param.search_sort </tpl>" />
		<table width="100%" border="1" cellpadding="0" cellspacing="0" bordercolor="#DEEBEF"  class="table_white" style="margin-top:10px" >
			<tr align="center" valign="middle" class="tr_dotted">
			  <td height="35" bgcolor="#F5F9FA"><tpl> $langBatchProductSeachKey </tpl>：</td>
			  <td height="35" bgcolor="#FCFEFE"><input type="text" name="search_key" id="search_key" value="<tpl> $input_param.search_key </tpl>" class="new_input" /><tpl> $langBatchProductSeachKeyRemark </tpl></td>
			  <td height="35" bgcolor="#F5F9FA"><tpl> $langBatchProductPrice </tpl>：</td>
			  <td height="35" bgcolor="#FCFEFE"><input type="text" name="search_price_start" id="search_price_start" size="5" value="<tpl> $input_param.search_price_start </tpl>" class="new_input" />&nbsp;-&nbsp;<input type="text" name="search_price_end" id="search_price_end" size="5" value="<tpl> $input_param.search_price_end </tpl>" class="new_input"/><tpl> $langBatchProductPriceYuan </tpl></td>
			  <td height="35" bgcolor="#F5F9FA"><tpl> $langBatchProductTransfeeCharge </tpl>：</td>
		      <td height="35" bgcolor="#FCFEFE"><input type="checkbox" name="search_transfee_charge" id="search_transfee_charge" value="0" 
		      
	          <tpl> if $input_param.search_transfee_charge eq '0' </tpl>checked="checked"<tpl> /if </tpl> /><tpl> $langBatchProductTransfeeChargeOne </tpl></td>
			</tr>
			<tr class="tr_dotted">
			  <td height="35" align="center" valign="middle" bgcolor="#F5F9FA"><tpl> $langBatchProductSellType </tpl>：							  </td>
				<td height="35" align="center" valign="middle" bgcolor="#FCFEFE"><input type="radio" name="search_sell_type" id="search_sell_type" value="" 
				  
				  <tpl> if $input_param.search_sell_type eq '' </tpl>checked="checked"<tpl> /if </tpl> /><tpl> $langBatchProductSellTypeNone </tpl>
					<input type="radio" name="search_sell_type" value="1" <tpl> if $input_param.search_sell_type eq '1' </tpl>checked="checked"<tpl> /if </tpl> /><tpl> $langBatchProductSellTypeOne </tpl>
					<input type="radio" name="search_sell_type" value="2" <tpl> if $input_param.search_sell_type eq '2' </tpl>checked="checked"<tpl> /if </tpl> /><tpl> $langBatchProductSellTypeTwo </tpl>
			  <input type="radio" name="search_sell_type" value="0" <tpl> if $input_param.search_sell_type eq '0' </tpl>checked="checked"<tpl> /if </tpl> /><tpl> $langBatchProductSellTypeThree </tpl>	</td>
			  <td height="35" align="center" valign="middle" bgcolor="#F5F9FA"><tpl> $langBatchProductCloseDay </tpl>：				</td>
				<td height="35" align="center" valign="middle" bgcolor="#FCFEFE"><input type="text" size="3" name="search_close_day" id="search_close_day" class="new_input" 　value="<tpl> $input_param.search_close_day </tpl>" /><tpl> $langBatchProductDay </tpl></td>
			  <td height="35" align="center" valign="middle" bgcolor="#F5F9FA"><tpl> $langBatchProductState </tpl>：					</td>
				<td height="35" align="center" valign="middle" bgcolor="#FCFEFE"><input type="radio" name="search_state" id="search_state_0" value="1" 
				  
				  <tpl> if $input_param.search_state eq '1' </tpl>checked="checked"<tpl> /if </tpl> /><tpl> $langBatchProductStateUp </tpl>
			  <input type="radio" name="search_state" id="search_state_1" value="0" <tpl> if $input_param.search_state eq '0' </tpl>checked="checked"<tpl> /if </tpl>/><tpl> $langBatchProductStateDown </tpl></td>
				</td>
			</tr>
			<tr align="center" valign="middle" class="tr_dotted">
			  <td height="35" colspan="6"><input type="submit" class="new_anniu" value="<tpl> $langBatchProductSearch </tpl>" />　<input type="button"
id="search_reset" class="new_anniu" name="search_reset" value="<tpl> $langBatchProductSearchReset </tpl>" /></td>
			</tr>
		
		</table>
	</form>
    <form action="own_product_batch.php?action=export_upload" method="post" name="form_modi" id="form_modi">
      <table width="100%" border="1" cellpadding="0" cellspacing="0" bordercolor="#DEEBEF"  class="table_white" style="margin-top:5px">
	 <tr class="tr_dotted">
          <th height="30" colspan="5" align="right"><select onchange="$('#search_sort').val(this.value);$('#form_export_search').submit();">
						<option value=""><tpl> $langProductOrderSelect </tpl></option>
						<option value="price" <tpl> if $input_param.search_sort eq 'price' </tpl>selected="selected"<tpl> /if </tpl>><tpl> $langBatchProductSortPrice </tpl></option>
						<option value="time" <tpl> if $input_param.search_sort eq 'time' </tpl>selected="selected"<tpl> /if </tpl>><tpl> $langBatchProductSortTime </tpl></option>
			</select>　</th>
          </tr>
        <tr class="tr_dotted">
          <th align="center"><tpl> $langProductMSelect </tpl></th>
          <th align="center"><tpl> $langProductMBaby </tpl><tpl> $langProductMName </tpl></th>
		  <th align="center"><tpl> $langBatchProductPrice </tpl></th>
		  <th align="center"><tpl> $langBatchProductStorage </tpl></th>
		  <th align="center"><tpl> $langBatchProductState </tpl></th>
		  <th align="center"><tpl> $langBatchProductOrigin </tpl></th>
        </tr>
<tpl> if $product_array[0].p_id neq '' </tpl>
		<tpl> section name=i loop=$product_array </tpl>
        <tr class="tr_dotted">
          <td align="center"><input name="chboxPid[]" id="sel_<tpl> $product_array[i].p_code </tpl>" type="checkbox" value="<tpl> $product_array[i].p_code </tpl>" /></td>
          <td style="color:#FF0000; padding:8px">
		  <tpl> if $product_array[i].p_recommended == "1" </tpl><tpl> $langCCommend </tpl><tpl> /if </tpl>
		  <tpl> if $ifhtml eq '1' && $product_array[i].html_url neq '' </tpl>
		  		<a target="_blank" href="<tpl> $product_array[i].html_url </tpl>">
				<tpl> $product_array[i].p_name </tpl></a>&nbsp;&nbsp;<span style="color:#FF9900; width:30px"><tpl> $product_array[i].p_sell_type_name </tpl></span>
		  <tpl> else </tpl>
		  		<a href="../home/product.php?action=view&pid=<tpl> $product_array[i].p_code </tpl>" target="_blank"><tpl> $product_array[i].p_name </tpl></a>&nbsp;&nbsp;<span style="color:#FF9900; width:30px"><tpl> $product_array[i].p_sell_type_name </tpl></span>
		  <tpl> /if </tpl>		  </td>
		  <td align="center"><tpl> $product_array[i].p_price </tpl></td>
		  <td align="center"><tpl> $product_array[i].p_storage </tpl></td>
		  <td align="center"><tpl> if $product_array[i].p_state eq '0' </tpl><tpl> $langBatchProductStateDown </tpl><tpl> else </tpl><tpl> $langBatchProductStateUp </tpl><tpl> /if </tpl></td>
		  <td align="center"><tpl> $product_array[i].p_province </tpl><tpl> $product_array[i].p_city </tpl></td>
        </tr>
        <tpl> /section </tpl>
        <tr>
          <th height="43" colspan="6" align="left" bgcolor="#FFFFFF" style=" padding:10px">
	
		  <input name="negative" id="negative" type="button" class="new_anniu" style="float:left" value="<tpl> $langCAllNotSelect </tpl>" />
		      <input id="Submit" class="new_anniu" type="submit" name="Submit" style="float:left; margin-left:5px" value="<tpl> $langBatchExportByCSV </tpl>" />
<span style="float:right;"><tpl> $page_list </tpl></span>		  </th>
        </tr>
<tpl> else </tpl>
		<tr>
          <th height="35" colspan="5" align="center" valign="middle" bgcolor="#FFFFFF"><tpl> $langProductMPrice </tpl></th>
        </tr>
<tpl> /if </tpl>	
      </table>
   
    </form>
  </div>
  </div>
  <tpl> include file ='../../../html/footer.html' </tpl> </div>
</body>
<script>
$().ready(function() {
	$('#negative').click(
		function(){
			$('#form_modi input[@type=checkbox]').each(function(){
				$(this).attr('checked',!$(this).attr('checked'))
			})
		}
	)
	//搜索表单重置
	$('#search_reset').click(function(){
		$('#search_key').val('');
		$('#search_price_start').val('');
		$('#search_price_end').val('');
		$('#search_sell_type').attr('checked',true);
		$('#search_transfee_charge').attr('checked',false);
		$('#search_close_day').val('');
		$('#search_state_0').attr('checked',false);
		$('#search_state_1').attr('checked',false);
		$('#search_sort').attr('value','');
	});
	
});
</script>
</html>
