<html>
    <head>
        <script src="{{ kg['tpl_url'] }}script/jquery.min.js"></script>
    </head>
    <body style="margin:0; padding:50px 0 0 0;">
        <div style="width:400px; font-size:14px; margin:0 auto; padding:10px; line-height:30px; text-align:center; background:#EEE; color:#666; font-family:'微软雅黑'; border:1px #999 solid;">
        {{current_type}}素材总数：<font color="#FF0000">{{count}}</font>，当前进度 <font color="#FF0000">{% if count %}{{cycle * 2000 // count}}{% else %}0{% endif %}%</font><br />
        数据同步完成时系统会自动关闭当前窗口<br />
        剩余 <font color="#FF0000">{% if count %}{{100 - cycle * 2000 // count}}{% else %}0{% endif %}%</font> ，请稍候 ...
        </div>
    </body>
</html>
{% if end == 1 %}
<script>
    $(function(){
        setTimeout(function(){
            window.close();
        }, 1000);
    })
</script>
{% else %}
<meta http-equiv="refresh" content="0;URL=wx_material_manage?action=syn&cycle={{cycle}}&type={{next_type}}" />
{% endif %}
