<!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> $langShopPCommendBaby </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 width="100%" border="0" cellpadding="0" cellspacing="0" id="productcategory_table" style="margin-top:10px">
  <tr>
    <th align="left">
  　<tpl> $langShopPMayCommendBaby </tpl></th>
    </tr>
  <tr>
    <td>
    <tpl> section name=j loop=$shop_recommended_product_array </tpl> 
     
    <div style="width:200px; margin-bottom:10px; text-align:center; height:150px; float:left; display:block; padding-top:20px;padding-bottom:20px">
    	<tpl> if $ifhtml eq '1' && $shop_recommended_product_array[j].html_url neq '' </tpl>
          <a href="<tpl> $shop_recommended_product_array[j].html_url </tpl>" target="_blank">
          <img src="../<tpl> $shop_recommended_product_array[j].small_pic|default:'templates/green/images/noimgs.gif' </tpl>" border=0 />
          </a><br />
          <a href="<tpl> $shop_recommended_product_array[j].html_url </tpl>" target="_blank" style=" color:#FF9900; margin-right:5px">
          <tpl> $shop_recommended_product_array[j].p_name </tpl>
          </a><br />
          <tpl> $shop_recommended_product_array[j].p_price </tpl><br />
          <input type="button" value="<tpl> $langShopPCancelCommend </tpl>" name="cancel_recommended" onclick="location.href='own_shopproduct.php?action=cancel_recommended&chboxPid=<tpl> $shop_recommended_product_array[j].p_code </tpl>'">
        <tpl> else </tpl>
          <a href="<tpl> $site_url </tpl>/home/product.php?action=view&pid=<tpl> $shop_recommended_product_array[j].p_code </tpl>" target="_blank">
          <img src="../<tpl> $shop_recommended_product_array[j].small_pic|default:'templates/green/images/noimgs.gif' </tpl>" border=0 />
          </a><br />
          <a href="<tpl> $site_url </tpl>/home/product.php?action=view&pid=<tpl> $shop_recommended_product_array[j].p_code </tpl>" target="_blank" style=" color:#FF9900; margin-right:5px">
          <tpl> $shop_recommended_product_array[j].p_name </tpl>
          </a><br />
          <tpl> $shop_recommended_product_array[j].p_price </tpl><br />
          <input type="button" value="<tpl> $langShopPCancelCommend </tpl>" name="cancel_recommended" onclick="location.href='own_shopproduct.php?action=cancel_recommended&chboxPid=<tpl> $shop_recommended_product_array[j].p_code </tpl>'">
        <tpl> /if </tpl>
      </div>
       <tpl> /section </tpl>
      </td>
    </tr>
</table>
<form action="own_shopproduct.php?action=recommended" name="form1" method="post" onsubmit="return check();">
    <table border="0" cellpadding="0" cellspacing="0" id="productcategory_table">
     
      <tr>
        <th width="123"><tpl> $langShopPSelect </tpl></th>
        <th width="50"></th>
        <th width="100"></th>
        <th width="221" align="center" valign="middle"><tpl> $langShopPBabyName </tpl></th>
        <th width="1">&nbsp;</th>
        <th colspan="2" align="center" valign="middle"><tpl> $langShopPPrice </tpl></th>
		<th></th>
      </tr>
	  <tpl> if $shop_product_array[0].p_code != '' </tpl>
		  <tpl> section name=i loop=$shop_product_array </tpl>
		  <tr>
			  <td style=" text-align:center"><input type="checkbox" value="<tpl> $shop_product_array[i].p_code </tpl>" name="chboxPid[]"></td>
		    <td width="50" height="25">
		    <tpl> if $shop_product_array[i].p_store_recommended == "1" </tpl>
	        <tpl> $langShopPMayCommend </tpl>
	        <tpl> /if </tpl>
	        </td>
		    <tpl> if $ifhtml eq '1' && $shop_product_array[j].html_url neq '' </tpl>
				<td width="100" align="center" valign="middle">
					<a href="<tpl> $shop_product_array[i].html_url </tpl>" target="_blank">
						<img src="<tpl> $site_url </tpl>/<tpl> $shop_product_array[i].small_pic|default:'templates/green/images/noimgs.gif' </tpl>" border=0 />
					</a>
				</td>
				<td width="221" align="center" valign="middle">
			    	<a href="<tpl> $shop_product_array[i].html_url </tpl>" target="_blank">
			    		<tpl> $shop_product_array[i].p_name </tpl>
			    	</a>
			    </td>
		    <tpl> else </tpl>
			    <td width="100" align="center" valign="middle">
					<a href="<tpl> $site_url </tpl>/home/product.php?action=view&pid=<tpl> $shop_product_array[i].p_code </tpl>" target="_blank">
						<img src="<tpl> $site_url </tpl>/<tpl> $shop_product_array[i].small_pic|default:'templates/green/images/noimgs.gif' </tpl>" border=0 />
					</a>
				</td>
				<td width="221" align="center" valign="middle">
			    	<a href="<tpl> $site_url </tpl>/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>
			    </td>
		    <tpl> /if </tpl>
			<td></td>
		    <td colspan="2" align="center" valign="middle"><tpl> $shop_product_array[i].p_price </tpl></td>
		  </tr>
		  <tpl> /section </tpl>
		  <tr>
		    <td height="30" colspan="5"><input type="submit" name="recommended" class="new_anniu"  value="<tpl> $langShopCommend </tpl>" />&nbsp;</td>
		    <td width="300" height="30" align="right"><tpl> $page_list </tpl></td>
		    <td width="1">&nbsp;</td>
		  </tr>
		<tpl> else </tpl>
			<tr>
			  <td colspan="7"><tpl> $langShopPNotContent </tpl></td>
		  </tr>
		<tpl> /if </tpl>
    </table>
</form>   
  </div> 
    </div>
        <tpl> include file ='../../../html/footer.html' </tpl>

  </div>
 </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>$langChoiseVouchWare</tpl>");
	}
	return false;

}
</script>
</body>
</html>
