{% load i18n %}
<!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" lang="{{ LANGUAGE_CODE }}" xml:lang="{{ LANGUAGE_CODE }}" {% if LANGUAGE_BIDI %}dir="rtl"{% endif %}>
<head>
	<title>{% block title %}{% trans '载入中' %}...{% endblock %}</title>
	{% block blockbots %}
	
	{% if "USE_ABROAD_ATT"|filter_config_option %}
	<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
	{% else %}
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /><!--解决IE8链接下划线贴得太近-->
	{% endif %}
	<meta name="robots" content="NONE,NOARCHIVE" />
	<link rel="shortcut icon" href="{{ MEDIA_URL }}/images/ZKECO16.ico" type="image/x-icon" ></link>
	{% endblock %}
    {% include "site_medias_css.html" %}
    <link href="/media/css/flexigrid.pack.css" type="text/css" rel="stylesheet"></link>
    <link href="{{ MEDIA_URL }}/flexigrid/css/css.css" rel="stylesheet" />
    <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}/css/abroad_att.css" />
	{% block extracss %}
	{% endblock %}
	<script src="{{ MEDIA_URL }}/jslib/jquery.js"></script>
	
</head>
<body {% block left_span %} class="indexBody" {% endblock %}>

	<div id="id_page_load">
		<div class="div_page_load">
			<div style="float: left; height: 40px;margin-right:6px">
				<img src="{{ MEDIA_URL }}/img/loadpage.gif">
			</div>
			<div style="line-height: 40px; height: 40px; display: block;text-align:left; float: left; color:#32598A; font-size:14px;">{% trans "正在处理，请稍候..." %}</div>
			<div class="clear displayN"></div>
		</div>
		<div class="clear displayN"></div>
	</div>
    <div id="id_gz" style="position:absolute;z-index:26;display:none;"></div>
	<input type="hidden" id="id_user" value="{{request.user.username}}" />
    <div class='com_tooltip_class' id="obj_tooltip"> </div>
	<div class="container">
        <div id="top">
            <table class="top_box" cellpadding="0" cellspacing="0">
                <tbody>
                <tr valign="top">
                    <td style="width: 240px">
                        <!--<div class="top_logo {% ifequal current_app 'worktable' %} top_but_hov {% endifequal %}">-->
                        <div class="top_logo_emp">
                            <!--<a id="" href="#">-->
                                <img border="0" src="{{ MEDIA_URL }}/images/abroad_att/logo.png" ></img>
                            <!--</a>-->
                        </div>
                    </td>
                    <td nowrap="nowrap">
                        <div class="top_but l">
                            <ul>
                                {% for label, app in apps %}
                                    <li>
                                        <a class="{% ifequal label current_app %}top_but_hov{% endifequal %}" href="{{ request.dbapp_url }}{{ label }}/"> {{ app.name }}</a>
                                    </li>
                                {% endfor %}
                            </ul>
                        </div>
                    </td>
                    <td class="top_r_box" nowrap="nowrap">
                        <div>
                            <span style="">
                                <em>{% trans '欢迎，' %}{{ login_username }}.</em>
                                <a  title='{% trans "帮助" %}' href="{{ request.dbapp_url }}system/help/" target="_blank">
                                    <img border="0" align="top" src="{{ MEDIA_URL }}/images/abroad_att/help.png" onmouseout="$(this).attr('src','{{ MEDIA_URL }}/images/abroad_att/help.png')" onmouseover="$(this).attr('src','{{ MEDIA_URL }}/images/abroad_att/help1.png')"/>
                                </a>
                                <a id="id_copy_right" href="javascript:void(0);" title="{% trans '关于' %}">
                                     <img border="0" align="top" src="{{ MEDIA_URL }}/images/abroad_att/about.png" onmouseout="$(this).attr('src','{{ MEDIA_URL }}/images/abroad_att/about.png')" onmouseover="$(this).attr('src','{{ MEDIA_URL }}/images/abroad_att/about1.png')"/>
                                </a>
                                <a id="id_btn_changePW" href="javascript:void(0);" ref="/{{request.surl }}selfservice/password_change/" title='{% trans "修改密码" %}'>
                                    <img border="0" align="top" src="{{ MEDIA_URL }}/images/abroad_att/me.png" onmouseout="$(this).attr('src','{{ MEDIA_URL }}/images/abroad_att/me.png')" onmouseover="$(this).attr('src','{{ MEDIA_URL }}/images/abroad_att/me1.png')"/>
                                </a>
                                <a id="id_btn_logout" href="javascript:void(0);" ref="/{{request.surl }}accounts/logout/" title='{% trans "注销" %}'>
                                    <img border="0" align="top" src="{{ MEDIA_URL }}/images/abroad_att/logout.png" onmouseout="$(this).attr('src','{{ MEDIA_URL }}/images/abroad_att/logout.png')" onmouseover="$(this).attr('src','{{ MEDIA_URL }}/images/abroad_att/logout1.png')"/>
                                </a>
                            </span>
                        </div>
                    </td>
                </tr>
                </tbody>
            </table>
        </div>
        <div class="tabBody">
			<div class="tabs_outBox">
				<ul id="id_app_menu" class="Link_tabs font12 noUnderl">
					{% for model in myapp.models %}
						{% if model.index < 100000 %}
							<li  class="tabs_li{% ifequal model.name menu_focus %} tabs_li_focus{% endifequal %}"><table cellpadding="0"><tr><td></td><td></td><td class="tboc h1"></td><td></td><td></td></tr><tr><td></td><td class="tboc w1 h1"></td><td class="tbac"></td><td class="tboc w1"></td><td></td></tr><tr><td class="tboc w1"></td><td class="tbac tbg"></td><td class="tbac tabs_contant tbg"><a  href="{% if model.url %}{{ model.url }}{% else %}{{ request.dbapp_url }}{{ model.app_label }}/{{ model.name }}/{% endif %}" >{{ model.verbose_name }}</a></td><td class="tbac tbg"></td><td class="tboc w1"></td></tr></table></li>
						{% endif %}	
					{% endfor %}
				</ul>
				<div class="tabBodyR">
					<ul id="nav"  class="nav Link_tabs font12 noUnderl" style="display:none;">
						<li class="NavMore">{% trans '更多' %}...<br /><ul class="menu_more"></ul></li>
					</ul>
				</div>
			</div>
				<div class="spacerT"><img src="/media/images/spacer.gif" width="887px" height="0px" /></div>
			</div>
		
				<div class="spacerT"><img src="/media/images/spacer.gif" width="887px" height="0px" /></div>
        <div class="docking_bg_l"></div>
        <!--<div class="leftBox">-->
            	<!--<div class="leftTop">-->
                <!--</div>-->
			<!--</div>-->
        <div class="rightBox">				
			<div id="id_first_content" class="hide">
            
			</div>
		</div>      
	    <div id="id_main_content">{% block datalist_content %}{% endblock %}</div>
        {% block addition_content %} {% endblock %}
    </div>
	<div id="error_tooltip" style="display:none"> </div>
	<div class="sys_Message" style="display:none">
		<div class="sys_Message_l"></div>
		<div class="sys_Message_m">{% trans "设置成功!" %}</div>
		<div class="sys_Message_r"></div>
	</div>
	<input type="hidden" id="id_sys_type" value='{% get_config_option "BASE_PAGE_SYSTEM_TYPE" %}'/>
	<input type="hidden" id="id_pos_type" value='{% get_config_option "POS" %}'/>
	<input type="hidden" id="id_oem" value='{{ "mysite"|is_oem }}'/>
		<input type="hidden" id="id_meeting_type" value='{{ "mysite"|has_meeting }}'/>
	<input type="hidden" id="id_zkaccess_att" value='{{ "mysite"|is_zkaccess_att }}'/>
	<input type="hidden" id="id_surl" value='{{request.surl }}'/>
	<input type="hidden" id="id_dbapp_url" value='{{request.dbapp_url}}'/>
	<input type="hidden" id="id_browse_title" value='{%autoescape off%}{{ request.browse_title }}{%endautoescape%}'/>
	<input type="hidden" id="id_current_year" value='{% get_this_year %}'/>
	<input type="hidden" id="id_dog_info" value='{% get_dog_info %}'/>
	<input type="hidden" id="id_dog_server_date" value='{% get_service_end_date %}'/>
    <input type="hidden" id="zktime_version" value='{% get_config_option "zktime_version" %}'/>
    {% include "flex_medias_js.html" %}
    {% block headjs %}
	<script src="{{ MEDIA_URL }}/jslib/change_pwd_self.js"></script>
	<script src="{{ MEDIA_URL }}/flexigrid/flex_base_export.js"></script>
	<script src="{{ MEDIA_URL }}/flexigrid/flex_base_log.js"></script>
	{% endblock %}
	<script src="{{ MEDIA_URL }}/jslib/init_base_frame.js"></script>
    <script>
	init_page();
	{% if "IACCESS"|filter_config_option %}
		{% if request.user|HasPerm:"contenttypes.can_DevRTMonitorPage" %}
			init_iaccess();
		{% endif %}
		var contain_att_temp = eval({% get_config_option "BASE_PAGE_IS_CONTAIN_ATT" %});//检查是否添加了考勤模块
	{% endif %}
	{% block addjs_base %}{% endblock %}
	</script>
    {% block extend_js %}{% endblock %}

</body>
</html>
<script>
//日志
$(function(){
	init_log($("#id_log_dialog"),"{{ verbose_name|translate_str }}"+gettext("日志"),"{{ model_url|translate_str|cap }}");
});
</script>
