<?php if (!defined('THINK_PATH')) exit();?>

<!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" />
<title><?php echo ($site_info["title"]); ?></title>
<meta name="keywords" content="<?php echo ($site_info["keyword"]); ?>" />
<meta name="description" content="<?php echo ($site_info["content"]); ?>" />
	

<link rel="stylesheet" type="text/css" href="<?php echo ($TMPL_PATH); ?>Public/css/style.css" />
<script type="text/javascript" src="<?php echo ($TMPL_PATH); ?>Public/js/jquery.js"></script>
<script type="text/javascript" src="<?php echo ($TMPL_PATH); ?>Public/js/jquery.json.js"></script>
<script type="text/javascript" src="<?php echo ($TMPL_PATH); ?>Public/js/script.js"></script>
<script language="JavaScript">
<!--
//指定当前组模块URL地址 
var URL = '__URL__';
var ROOT_PATH = '__ROOT__';
var APP	 =	 '__APP__';
var PUBLIC = '<?php echo ($TMPL_PATH); ?>ThemeFiles';
var VAR_MODULE = '<?php echo c('VAR_MODULE');?>';
var VAR_ACTION = '<?php echo c('VAR_ACTION');?>';
var CURR_MODULE = '<?php echo ($module_name); ?>';
var KEYWORDS_EMPTY = '<?php echo L("KEYWORDS_EMPTY");?>';
var REPLY = '<?php echo L("REPLY");?>';
var IS_NAN	=	'<?php echo L("IS_NAN");?>';	
var FANWE_LANG_ID = '<?php echo ($FANWE_LANG_ID); ?>';
//-->
</script>
</head>

<body>
<div id="ajax_loader"></div>
<script type="text/javascript">
	initAjaxLoader();
</script>

<div class="wrap">
    <div id="header">
    	
    	<div class="f_l">
        	<a href="<?php echo c('SHOP_URL');?>" target="_blank" ><img src="__ROOT__<?php echo ($sunnyi_logo); ?>" /></a>
        </div><!--end logo-->
        <div class="f_l" style="padding-left:30px; width:300px;">

        	<ul class="top_menu">
        	<li class="top_home"><a href="__APP__/" >首页</a></li>
			<li class="top_pick"><a href="<?php echo u("Goods/pick");?>" >选购中心</a></li>
			<li class="top_member"><a href="<?php echo u("Message/index");?>" >留言中心</a></li>
			<li class="top_cart"><a href="<?php echo u("Cart/listCart");?>" >购物车</a></li>
        	</ul><!--end top_menu-->

            
            <div class="blank"></div><div class="blank"></div>
            <div class="top_login">
            	<div class="top_member">
<?php if($is_login): ?><?php echo L("WELCOMEBACK");?>&nbsp;&nbsp;<?php echo $_SESSION["user_name"];?>!  &nbsp;&nbsp;<a href="<?php echo u('UserCenter/index');?>"><?php echo L("USER_CENTER");?></a> <a href="<?php echo u('User/logout');?>"><?php echo L("LOGOUT");?></a>
            	<?php else: ?>
            		<?php echo L("WELCOME");?>&nbsp;&nbsp;[<a href="<?php echo u('User/register');?>"><?php echo L("REG");?></a>]&nbsp;&nbsp;[<a href="<?php echo u('User/login');?>"><?php echo L("LOGIN");?></a>]<?php endif; ?></div>
            </div><!--end top_login-->
		
        </div><!--end header_left-->
		<div class="cs_img" ></div>
	</div>
    <div class="blank" style="height:2px; font-size:0px; line-height:0px;"></div>
    <div class="main_nav">
    	<span style="position:absolute; right:0px;">
            	<span class="define_main_nav">
<a href="<?php echo u('Goods/index',array('rec'=>'is_promote'));?>">
特价商品
</a>
<a href="<?php echo u('Goods/isHot');?>">
热卖商品
</a>
<a href="<?php echo u('Message/index');?>">
留言中心
</a>
</span>
       </span>
        <div class="nav_main">
        	<ul class="f_l">
        		<?php if(is_array($main_navs)): foreach($main_navs as $key=>$nav): ?><li><a href="<?php echo ($nav["url"]); ?>" <?php if($nav["act"] == '1'): ?>class="act"<?php endif; ?>  target="<?php echo ($nav["target"]); ?>"><?php echo ($nav["name_1"]); ?></a></li><?php endforeach; endif; ?>
            </ul>
            
        </div><!--end nav_main-->
    </div><!--end main_nav-->
	<div class="sub_main_nav">
		<div id="cart">
			 <a href="<?php echo u('Cart/listCart');?>"><?php echo L("YOUR_CART_HAVE");?> <span style="color:#da6700; font-size:12px; font-weight:bold; font-family:verdana;"><?php echo (intval($cart_info["total_number"])); ?></span> <?php echo L("UNIT_GOODS");?> 

	        </a>
		</div>
		<a href="<?php echo u('Cart/listCart');?>" id="gocheck"></a>
		<form name="search_form" action="__APP__" onsubmit="return checkKeywords();" >
    	<input type="hidden" name="<?php echo c('VAR_MODULE');?>" value="Goods" />
        <input type="hidden" name="<?php echo c('VAR_ACTION');?>" value="advSearch" />
		<input type="hidden" name="search" value="search" />
		<select name="cate_id">
						<option value='0' <?php if($cate_id == 0): ?>selected="selected"<?php endif; ?>><?php echo L("ALL_CATE");?></option>
						<?php if(is_array($cate_list)): foreach($cate_list as $key=>$cate_item): ?><option value="<?php echo ($cate_item["id"]); ?>" <?php if($cate_id == $cate_item['id']): ?>selected="selected"<?php endif; ?>><?php echo ($cate_item["name_1"]); ?></option><?php endforeach; endif; ?>
		</select>
		<select name="brand_id">
						<option value='0' <?php if($brand_id == 0): ?>selected="selected"<?php endif; ?>><?php echo L("ALL_BRAND");?></option>
						<?php if(is_array($brand_list)): foreach($brand_list as $key=>$brand_item): ?><option value="<?php echo ($brand_item["id"]); ?>" <?php if($brand_id == $brand_item['id']): ?>selected="selected"<?php endif; ?>><?php echo ($brand_item["name_1"]); ?></option><?php endforeach; endif; ?>
		</select>
		<?php if($spec_list): ?><?php if(is_array($spec_list)): foreach($spec_list as $key=>$spec_type): ?><select name="spec_type[<?php echo ($spec_type["spec_type"]["id"]); ?>]">
						<option value="" <?php if($spec_search_list[$spec_type['spec_type']['id']] == ''): ?>selected="selected"<?php endif; ?>>==<?php echo L("PLEASE_SELECT");?><?php echo ($spec_type["spec_type"]["name_1"]); ?>==</option>
						<?php if(is_array($spec_type["spec_list"])): foreach($spec_type["spec_list"] as $key=>$spec_item): ?><option value="<?php echo (urlencode($spec_item["spec_name"])); ?>" <?php if($spec_search_list[$spec_type['spec_type']['id']] == $spec_item['spec_name']): ?>selected="selected"<?php endif; ?>><?php echo ($spec_item["spec_name"]); ?></option><?php endforeach; endif; ?>
						</select><?php endforeach; endif; ?><?php endif; ?>
        <input type="text" class="txt_search" name="keywords" id="head_keywords" />&nbsp;&nbsp;<input type="submit" id="searchbtn" value="<?php echo L("SEARCH");?>" />&nbsp;&nbsp;<span ><a href="<?php echo u('Goods/advSearch');?>"><?php echo L("ADV_SEARCH");?></a></span>&nbsp;&nbsp;
</form>
		
	</div><!--end sub_main_nav--> 
</div><!--通用头部 header-->
</div><!--end wrap-->
<div class="blank5"></div>

<div class="blank"></div>
<div class="wrap">
	   <script type="text/javascript">
   var USER_TOO_SHORT = '<?php echo L("USER_TOO_SHORT");?>';
   var PWD_TOO_SHORT = '<?php echo L("PWD_TOO_SHORT");?>';
   var PWD_CONFIRM_FAILED = '<?php echo L("PWD_CONFIRM_FAILED");?>';
   var EMAIL_FORMAT_ERROR =	'<?php echo L("EMAIL_FORMAT_ERROR");?>';
   </script>
   <form name="reg_form" action="<?php echo ($POST_URL); ?>" method="post" >
    <div class="inc_userbox">
    	<div class="inc_top"><?php echo L("USER_REGISTER");?></div>
        <div class="inc_mid clearfix">
			<table class="user_table">
			<tr>
				<td class="tr" width=220><?php echo L("USER_NAME");?>：</td>
				<td><input type="text" name="user_name" class="txt_require" onblur="check_field(this,true);"  /></td>
			</tr>
			<tr>
				<td class="tr"><?php echo L("USER_PWD");?>：</td>
				<td><input type="password" name="user_pwd" class="txt_require" id="passwordbox" onblur="check_field(this,true);" /></td>
			</tr>
			<tr>
				<td class="tr"><?php echo L("USER_PWD_CONFIRM");?>：</td>
				<td><input type="password" name="user_pwd_confirm" class="txt_require" id="confirm_passwordbox" onblur="check_field(this,true);"  /></td>
			</tr>
			<tr>
				<td class="tr"><?php echo L("EMAIL");?>：</td>
				<td><input type="text" name="email" class="txt_require" onblur="check_field(this,true);"/></td>
			</tr>
			<tr>
				<td class="tr"><?php echo L("EXTRA");?>：</td>
				<td><input type="checkbox" onclick="sw_detail(this);" /></td>
			</tr>
			<tr>
				<td colspan="2">
				<div id="detail_table" style="padding-left:120px;">
				<table width="100%">
					<tr>
						<td class="tr"><?php echo L("PWD_QUESTION");?>：</td>
						<td><input type="text" name="pwd_question" class="txt_norequire" /> <span><?php echo L("PWD_SAFETY_TIP");?></span></td>
					</tr>
					<tr>
						<td class="tr"><?php echo L("PWD_ANSWER");?>：</td>
						<td><input type="text" name="pwd_answer" class="txt_norequire" /> <span><?php echo L("PWD_SAFETY_TIP");?></span></td>
					</tr>
					<tr>
						<td class="tr"><?php echo L("SEX");?>：</td>
						<td><label><?php echo L("MALE");?>：<input type="radio" name="sex" value="1" /></label>
						<label><?php echo L("FEMALE");?>：<input type="radio" name="sex" value="0" /></label></td>
					</tr>
					<tr>
						<td class="tr"><?php echo L("QQ");?>：</td>
						<td><input type="text" name="qq" class="txt_norequire" /></td>
					</tr>
					<tr>
						<td class="tr"><?php echo L("MSN");?>：</td>
						<td><input type="text" name="msn" class="txt_norequire" /></td>
					</tr>
					<tr>
						<td class="tr"><?php echo L("ALIM");?>：</td>
						<td><input type="text" name="alim" class="txt_norequire" /></td>
					</tr>
					<tr>
						<td class="tr"><?php echo L("FIX_PHONE");?>：</td>
						<td><input type="text" name="fix_phone" class="txt_norequire" /></td>
					</tr>
					<tr>
						<td class="tr"><?php echo L("FAX_PHONE");?>：</td>
						<td><input type="text" name="fax_phone" class="txt_norequire" /></td>
					</tr>
					<tr>
						<td class="tr"><?php echo L("MOBILE_PHONE");?>：</td>
						<td><input type="text" name="mobile_phone" class="txt_norequire" /></td>
					</tr>
					<tr>
						<td class="tr"><?php echo L("ZIP");?>：</td>
						<td><input type="text" name="zip" class="txt_norequire" /></td>
					</tr>
					<tr>
						<td class="tr"><?php echo L("ADDRESS");?>：</td>
						<td><input type="text" name="address" class="txt_norequire" /></td>
					</tr>
				</table>
				</div>
				</td>
			</tr>
			<tr>
				<td>
					<input type="hidden" name="<?php echo c('VAR_MODULE');?>" value="User" />
					<input type="hidden" name="<?php echo c('VAR_ACTION');?>" value="doRegister" />
				</td>
				<td><input type="submit" value="提交注册信息" class="btn_reg" /></td>
			</tr>
			</table>
			
        </div>
        <div class="inc_foot"></div>
    </div><!--模块样式3-->	
    </form>
    <!-- end 商品详细描述 -->
		
<div class="blank"></div>
</div><!--主体-->
<div class="wrap">
<div class="help_center clearfix">
<?php if(is_array($help_center)): foreach($help_center as $key=>$help_cate): ?><div class="inc_05">
    	<div class="inc_top"><a href="<?php echo ($help_cate["url"]); ?>"><?php echo ($help_cate["name_1"]); ?></a>

    	</div>
        <div class="inc_mid">
        	<ul class="list_01">
        	<?php if(is_array($help_cate["list"])): foreach($help_cate["list"] as $key=>$article_item): ?><li><a href="<?php echo ($article_item["url"]); ?>" class="f_l" title="<?php echo ($article_item["name_1"]); ?>"><?php echo ($article_item["short"]); ?></a>&nbsp;&nbsp; </li><?php endforeach; endif; ?>
            </ul>
        </div>
        <div class="inc_foot"></div>
    </div><!--模块样式2--><?php endforeach; endif; ?>
</div>
<div class="blank"></div>
<div class="help_center clearfix">
    	<div class="inc_top"><?php echo L("LINK");?>
    	<span class="more"><a href="<?php echo u("Link/index");?>"><?php echo L("MORE");?></a></span>
    	</div>
        <div class="inc_mid clearfix">
        	<div class="blank"></div>
        <div class="img_link">
		
		<?php if(is_array($links["img"])): foreach($links["img"] as $key=>$link): ?><a href="<?php echo ($link["url"]); ?>" target="_blank" title="<?php echo ($link["desc"]); ?>">
				<?php if($link['type'] == 1): ?><img src="__ROOT__<?php echo ($link["logo"]); ?>" alt="<?php echo ($link["name"]); ?>" width=88 height=31 />
				<?php else: ?>
				<img src="<?php echo ($link["logo"]); ?>" alt="<?php echo ($link["name"]); ?>" width=88 height=31 /><?php endif; ?>
			</a><?php endforeach; endif; ?>
		</div>
		<div class="blank"></div>
		<div class="txt_link">

		<?php if(is_array($links["txt"])): foreach($links["txt"] as $key=>$link): ?><a href="<?php echo ($link["url"]); ?>" target="_blank" title="<?php echo ($link["desc"]); ?>">
				<?php echo ($link["name"]); ?>
			</a><?php endforeach; endif; ?>
        </div>
        </div>
        <div class="inc_foot"></div>
</div><!--模块样式6-->

<div class="blank"></div>
	<div class="foot_nav">
    
        <div class="nav_main">
        	<ul class="f_l">
        		<?php if(is_array($foot_navs)): foreach($foot_navs as $key=>$nav): ?><li><a href="<?php echo ($nav["url"]); ?>" <?php if($nav["act"] == '1'): ?>class="act"<?php endif; ?>  target="<?php echo ($nav["target"]); ?>" ><?php echo ($nav["name_1"]); ?></a></li><?php endforeach; endif; ?>
            </ul>
             <span class="f_r">
             	<span class="define_main_nav">
            	<a href="#" style="color:#666;"><?php echo L("TOP");?></a>
                </span>
            </span>
        </div><!--end nav_main-->

    </div><!--end main_nav-->
 <div class="blank"></div>
 
 <div class="blank"></div>
 <div class="foot_info">
 	<?php echo L("SYS_NAME");?>：<?php echo ($Sunnyi["name"]); ?> &nbsp;&nbsp;<?php echo L("SYS_VERSION");?>：<?php echo ($Sunnyi["version"]); ?><br /><?php echo L("SYS_COPYRIGHT");?>&copy; <?php echo ($Sunnyi["author"]); ?>
 </div>
</div>
</body>
</html>