<!--{<*
 * 通用header模板
 * create time: 2011-5-11 上午11:18:21
 * @version $Id: header.tpl 225 2012-12-19 05:42:12Z liqt $
 * @author LiQintao
*>}-->
<div id="site-nav">
    <div id="site-nav-bd" class="container">
    	<div class="login-info span-16">
{<if $flag_login>}
您好，<a id="account_info" href="{<$link_panel_account_info>}" rel="{<$link_panel_account_info>}">{<$account_name>} [积分:{<$account_score>}]</a>
<a href="{<$link_logout>}">退出</a>
{<else>}
欢迎光临！<a href="{<$nav_link_login>}">请登录</a><a href="{<$nav_link_register>}">注册</a>
{</if>}
<a href="{<$link_home>}">回到首页</a>
    	</div>
    	<div class="span-8 last">
{<if $smarty.const.FLAG_ENABLE_TRANSLATE == 1>}
    		<div id="google_translate_element" style="height:26px;overflow:hidden;float:right;"></div>
    		<script>
function googleTranslateElementInit() {
  new google.translate.TranslateElement({
    pageLanguage: 'zh-CN',
    includedLanguages: 'zh-TW,en,ja,zh-CN',
    layout: google.translate.TranslateElement.InlineLayout.SIMPLE
  }, 'google_translate_element');
}
			</script>
			<script src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
{</if>}
		</div>
    </div>
</div>

<div class="container">	
	<div id="header" class="span-24 last">
    	<table>
    		<tbody>
                <tr style="height:40px;">
                    <td id="logo" colspan="2">
                        <a href="{<$link_home>}">
<!--                            <img width="631" height="80" src="{<$link_logo>}" alt="{<$smarty.const.TEXT_SITE_NAME>}">-->
                            <h2 style="margin-top: 15px;">无忧问答系统(试用版)</h2>
                        </a>
                    </td>
<!--                    <td style="">-->
<!--                        <span style="display:block;margin-top:4px;font-size:20px;font-weight:bold;letter-spacing:8px;">业务学习知识库系统</span>-->
<!--                    </td>-->
                </tr>
    			<tr>
    				<td id="main-menu">
    						<span class="blank">&nbsp;</span>
{<if $flag_question_all>}
    						<span class="active">全部问题</span>
{<else>}
							<a href="{<$header_link_questions>}">全部问题</a>
{</if>}
							<span class="blank">&nbsp;</span>
{<if $flag_question_myq>}
    						<span class="active">我提问的</span>
{<else>}
							<a href="{<$header_link_my_questions>}">我提问的</a>
{</if>}
							<span class="blank">&nbsp;</span>
{<if $flag_question_myc>}
    						<span class="active">我关注的</span>
{<else>}
							<a href="{<$header_link_my_concerned>}">我关注的</a>
{</if>}
							<span class="blank">&nbsp;</span>
{<if $flag_question_mya>}
    						<span class="active">我回答的</span>
{<else>}
							<a href="{<$header_link_my_answer>}">我回答的</a>
{</if>}
							<span class="blank">&nbsp;</span>
    				</td>
                    <td>
                            <form id="form_search" method="get" action="{<$header_link_search>}">
                            <div id="search">
{<if !$flag_custom_url>}{<*在启用自定义链接时，不保存以下属性变量*>}
                                <input type="hidden" name="m" value="module_qa_question.ui_question.index">
    {<if $search_tag>}
                                <input type="hidden" name="tag" value="{<$search_tag>}">
    {</if>}
    {<if $index_sort>}
                                <input type="hidden" name="sort" value="{<$index_sort>}">
    {</if>}
    {<if $index_cat>}
                                <input type="hidden" name="cat" value="{<$index_cat>}">
    {</if>}
{</if>}
                                <input type="text" value="{<$search>}" maxlength="140" tabindex="1" name="search" id="input_search" class="search-input input_text">
                                <input type="submit" id="submit_search" value="搜索" class="button_green" tabindex="2">
                        <a href="{<$header_link_ask>}" class="ask-question"><span>提问|分享</span></a>
                            </div>
                            
                        </form>
                    </td>
    			</tr>
    		</tbody>
    	</table>
    </div>
