<!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>" />
<link href="<tpl> $template_dir </tpl>/member/css/layout.css" rel="stylesheet" type="text/css" />
<tpl>include file ='../head.config.html'</tpl> 
</head><body><tpl>include file ='../header.html'</tpl> 

<div id="container761">
  <div class="own_member_main"> 
<tpl>include file ='own_shop.menu.html'</tpl>
  <div class="member_right">
    <div class="shop_nav_top"><span>
	
	 <div class="new_main_left">
		<div class="new_main_left1">
<h1 class="new_text">
  <tpl> $class_name|default:"$langShopPNotBobyClass"</tpl></h1>
	<i></i>
	</div>
	<b></b>
	</div>
	<div id="own_main_rightop"> <caption>
      <tpl> $langShopPManageInfo </tpl>
	  <div class="anniu">
	  	<span><a href="own_shopproduct.php?action=list&classid=0"><tpl> $langShopPLookNotBobyClass </tpl></a></span>
	  </div>
      </caption> </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>
	
	</span></div>
    <table id="productcategory_table" style="margin-top:10px">
   
      <tr>
        <th align="center" valign="middle"><tpl> $langShopPSelect </tpl></th>
        <th align="center" valign="middle"></th>
        <th align="center" valign="middle"><tpl> $langShopPBabyName </tpl></th>
        <th align="center" valign="middle"><tpl> $langShopPManageBaby </tpl></th>
      </tr><form action="own_shopproduct.php?action=move" name="form1" id="form1" method="post" onsubmit="return check();">
      <tpl> section name=i loop=$shop_product_array </tpl>
      <tr>
          <td height="25" align="center" valign="middle" style=" text-align:center"><input type="checkbox" value="<tpl> $shop_product_array[i].p_code </tpl>" name="chboxPid[]"></td>
          <td height="25" align="center" valign="middle">
		  <tpl> if $ifhtml eq '1' && $shop_product_array[i].html_url neq '' </tpl>
		  <a target="_blank" href="<tpl> $shop_product_array[i].html_url </tpl>">
				<img src="../<tpl> $shop_product_array[i].small_pic|default:'templates/green/images/noimgs.gif' </tpl>" alt="<tpl>$goods.p_name</tpl>" border="0" /></a>
		  <tpl> else </tpl>
		  		<a href="../home/product.php?action=view&pid=<tpl> $shop_product_array[i].p_code </tpl>" target="_blank"><img src="../<tpl> $shop_product_array[i].small_pic|default:'templates/green/images/noimgs.gif' </tpl>" border=0 /></a>
		  <tpl> /if </tpl>		  </td>
          <td height="25" align="center" valign="middle">
		  <tpl> if $ifhtml eq '1' && $shop_product_array[i].html_url neq '' </tpl>
		  	<a target="_blank" href="<tpl> $shop_product_array[i].html_url </tpl>"><tpl> $shop_product_array[i].p_name </tpl></a>
		  <tpl> else </tpl>
		  	<a href="../home/product.php?action=view&pid=<tpl> $shop_product_array[i].p_code </tpl>" target="_blank"><tpl> $shop_product_array[i].p_name </tpl></a>
		  <tpl> /if </tpl>
		  &nbsp;<tpl> $shop_product_array[i].p_price </tpl></td>
          
          <td height="25" align="center" valign="middle">
		  <tpl> if $classid neq '0' </tpl>
		  	<a href="javascript:;" onclick="if(confirm('<tpl> $langShopPConfirmOperator </tpl>')){location.href='own_shopproduct.php?action=move&chboxPid=<tpl> $shop_product_array[i].p_code </tpl>';}else{return false;}"><tpl> $langShopPMoveOut </tpl></a>
		  <tpl> /if </tpl>		  </td>
        </tr>
      
      <tpl> /section </tpl>
      <tr>
        	<td height="42" colspan="4" align="left">
			<div style="float:left">
			<tpl> $langShopPMoveBabyToClass </tpl>：
				<select name="shoppcid" id="shoppcid">
					<tpl> section name=loop loop=$shop_product_category_array </tpl>
					<option <tpl> if $shop_product_category_array[loop].class_id eq $classid </tpl>selected="selected"<tpl> /if </tpl> value="<tpl> $shop_product_category_array[loop].class_id </tpl>"><tpl> $shop_product_category_array[loop].class_name </tpl></option>
						<tpl> foreach from=$shop_product_category_array[loop].child item=one </tpl>
							<option <tpl> if $one.class_id eq $classid </tpl>selected="selected"<tpl> /if </tpl> value="<tpl> $one.class_id </tpl>">&nbsp;&nbsp;<tpl> $one.class_name </tpl></option>
						<tpl> /foreach </tpl>
					<tpl> /section </tpl>
				</select>
        	  <input type="submit" name="submit"  value="<tpl> $langShopPMove </tpl>" class="new_anniu" >
			  <input type="button" name="button" value="<tpl> $langCReturn </tpl>" onclick="location.href='own_shopproductcate.php'" />
			  &nbsp;
			</div>
			<tpl> if $shop_product_array[0].p_code neq '' </tpl>
				<div style="float:right">
					<tpl> $page_list </tpl>
				</div>
			<tpl> /if </tpl>
			</td>
        </tr>
        </form>
    </table>
    
  </div>
</div>
    <tpl> include file ='../../../html/footer.html' </tpl> 
  </div>
<script>
function check(){
	var r = document.getElementsByTagName("input") ;
	var sign=0;
	for(i=0;i<r.length;i++){
		if(r[i].type == "checkbox" && r[i].checked == true){
			sign=1;
		}
	}
	if(sign==1){
		return true;		
	}else{
		alert("<tpl> $langShopPSelectMoveProduct </tpl>");
	}
	return false;
	
}
</script>
</body>
</html>
