<!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>{:C('WEB_SITE_TITLE')}</title>
<link href="__STATIC__/css/base.css" rel="stylesheet" type="text/css" />
<link href="__STATIC__/css/sub.css" rel="stylesheet" type="text/css" />
<link href="__STATIC__/css/ueser.css" rel="stylesheet" type="text/css" />
<link href="__STATIC__/css/bootstrap.min.2.1.css" rel="stylesheet" type="text/css"   />
<link href="__STATIC__/css/bootstrap-responsive.min.css" rel="stylesheet" type="text/css" />
<style type="text/css">

.system-message .jump{ padding-top: 10px}
.system-message .jump a{ color: #a9302a;}
.system-message .success,.system-message .error{ line-height: 1.8em; font-size: 20px; }
.system-message .error{ color: #a9302a;}
.system-message .detail{ font-size: 12px; line-height: 20px; margin-top: 12px; display:none}

.modal{ margin:0px; position:static; margin:auto; margin-top:10%; margin-bottom:21%;}

.modal-header{ text-align:center;
    background-color: #F6F6F6;
    background-image: -moz-linear-gradient(top, #FAFAFA, #F2F2F2);
    background-image: -ms-linear-gradient(top, #FAFAFA, #F2F2F2);
    background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#FAFAFA), to(#F2F2F2));
    background-image: -webkit-linear-gradient(top, #FAFAFA, #F2F2F2);
    background-image: -o-linear-gradient(top, #FAFAFA, #F2F2F2);
    background-image: linear-gradient(top, #FAFAFA,#F2F2F2);
    background-repeat: repeat-x;
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFAFAFA', endColorstr='#FFF2F2F2', GradientType=0);
    border-bottom:solid 1px #ccc;
    margin-top: 1px;
}


</style>
</head>


<body>
<!--S 头部-->
<div class="header">
    <div class="headbox">
       <h1 style="margin:0px" class="logo"><img src="{:get_cover(C('LOGO'),'path')}" alt="浮思绘" />
		
		</h1>
      <ul class="nav">
	      <think:nav name="nav">
			<eq name="nav.pid" value="0">
			<li 
			<php>
				if(strpos(get_nav_url($nav['url']),$controller) !== false) echo "class=\"nav_on\"";
			</php>
			>
				<a href="{$nav.url|get_nav_url}"  target="<eq name='nav.target' value='1'>_blank<else/>_self</eq>">{$nav.title}</a>
			</li>
			</eq>
		</think:nav>
       </ul>
		<php>
			$avator = get_useravator();
		</php>
		 <if condition="is_login()">	 
		 <ul class="logzt">
          <li class="user_dl">
			<empty name = "avator">
					<img src="__STATIC__/images/user_name_ico.png" />
			<else/>
					<img src="{$avator|get_cover='path'}" alt="用户头像" />
			</empty>
			
             <a href="{:U('User/ucenter')}">{:get_username()}</a>
			 <span><a href="{:U('User/logout')}">退出</a></span>
             <ul>
                <li class="fr_l"><a href="{:U('User/ucenter')}">用户中心</a></li>
                <li><a href="{:U('Order/lists')}">模型定制</a></li>
                <li><a href="{:U('Product/orderlists')}">商品订单</a></li>
				<li class="fr_l"><a href="{:U('Models/orderlists')}">模型订单</a></li>
                <li><a href="{:U('User/ucenter')}">基本信息</a></li>
                <li class="fr_l"><a href="{:U('User/profile')}">修改密码</a></li>
                <li><a href="{:U('Home/Models/modellist')}">我的模型</a></li>
             </ul>
          </li>
       </ul>		 
		<else/>
		   <p><a href="{:U('User/login')}">登录</a><a href="{:U('User/register')}">注册</a></p> 
		</if>
    </div>
</div>
<!--E 头部-->

<!--S 面包屑-->
<div class="crumb">
    <h2></h2>
</div>
<!--E 面包屑-->

<!--S 内容主体-->
  <div class="modal" id="myModal">
    <div class="modal-header">
        <h3>页面跳转提示</h3>
    </div>
    <div class="modal-body" >
        <div class="system-message">
			<?php if(isset($message)) {?>
			<p class="success"><?php echo($message); ?></p>
			<?php }else{?>
			<p class="error"><?php echo($error); ?></p>
			<?php }?>
		    <p class="detail"></p>
            <p class="jump">
                页面自动 <a id="href"  href="<?php echo($jumpUrl); ?>">跳转</a> 等待时间： <b id="wait">3</b>
            </p>
        </div>

    </div>

</div> 
   

<!--E 内容主体-->

<!--S 底部信息-->
<div class="footer">
   <div class="foot">
       <p class="nav_foot">
	   <think:nav name="nav">
			<eq name="nav.pid" value="0">
				<a href="{$nav.url|get_nav_url}"  target="<eq name='nav.target' value='1'>_blank<else/>_self</eq>">{$nav.title}</a>|
			</eq>
		</think:nav>
	   </p>
       <div class="ewm"><img src="__STATIC__/images/ewm_img.png" alt="二维码" /><i>扫描二维码<br />关注官方微信</i></div>
       <p class="foot_inf">{:C('WEB_SITE_ICP')}</p>
   </div>
</div>
<!--E 底部信息-->
</body>
<script type="text/javascript">

(function(){
var wait = document.getElementById('wait'),href = document.getElementById('href').href;
var interval = setInterval(function(){
	var time = --wait.innerHTML;
	if(time <= 0) {
		location.href = href;
		clearInterval(interval);
	};
}, 1000);
})();
</script>
</html>
