qa-ifish7/web/Application/Admin/View/Inc/header.html

158 lines
6.6 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html lang="zh-cn">
<head>
<title>
<if condition='$pagetitle'>
{$pagetitle}-
<else/>
</if>
{$Think.config.CMS_NAME}
</title>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<link rel="stylesheet" href="/Public/Admin/css/bootstrap.min.css"/>
<link rel="stylesheet" href="/Public/Admin/css/bootstrap-responsive.min.css"/>
<link rel="stylesheet" href="/Public/Admin/css/uniform.css"/>
<link rel="stylesheet" href="/Public/Admin/css/colorpicker.css"/>
<link rel="stylesheet" href="/Public/Admin/css/datepicker.css"/>
<link rel="stylesheet" href="/Public/Admin/css/select2.css"/>
<link rel="stylesheet" href="/Public/Admin/css/layui.css"/>
<link rel="stylesheet" href="/Public/Admin/css/matrix-style.css"/>
<link rel="stylesheet" href="/Public/Admin/css/matrix-media.css"/>
<link href="/Public/Admin/font-awesome/css/font-awesome.css" rel="stylesheet"/>
<link href="/Public/Admin/css/global.css" rel="stylesheet"/>
<link href="/Public/Admin/css/formSelects-v4.css" rel="stylesheet"/>
<script>
var uparr = new Array();
uparr[0] = "{:U('Update/updateModel')}";
uparr[1] = "{:U('Update/updateTemplate')}";
uparr[2] = "{:U('Update/updatePageTemplate')}";
uparr[3] = "{:U('Update/updateCatCache')}";
uparr[4] = "{:U('Update/updateModelCache')}";
uparr[5] = "{:U('Update/updateFeedbackModel')}";
uparr[6] = "{:U('Update/del_runtime')}";
function updateCache() {
//初始化
var progress = '<div class="bakeing"><div class="progress progress-striped active"><div class="bar" id="database_bar" style="width:1%;">1%</div></div></div>';
$("body").append(progress);
$(".bakeing").show();
$("body").css("overflow", "hidden");
window.onbeforeunload = function () {
return "正在更新缓存,请不要关闭!"
}
//初始化成功,下面开始备份数据
updateCache_ajax(0);
}
function updateCache_ajax(i) {
//更新完成
if (i == uparr.length) {
window.onbeforeunload = function () {
return null
}
setTimeout(function () {
$(".bakeing").remove();
}, 1000);
} else {
$.get(uparr[i], function () {
var progress_percent = (i + 1) / uparr.length;
progress_percent = progress_percent * 100;
progress_percent = progress_percent.toFixed(2);
$("#database_bar").html(progress_percent + "%");
$("#database_bar").css("width", progress_percent + "%");
updateCache_ajax(i + 1);
}, "json")
}
}
</script>
</head>
<body>
<!--<div id="header">-->
<!-- <h1><a href="dashboard.html">{$Think.config.setting.admin_site_name}</a></h1>-->
<!--</div>-->
<div >
<h1 style="color: #ffffec;height:38px;font-size: 17px;line-height: 38px;margin-left: 30px;margin-top: 10px;width: 100%;">博纳精工</h1>
<h1 style="color: #ffffec;height:39px;font-size: 17px;line-height: 20px;margin-left: 15px;width: 100%;">质量管理系统</h1>
</div>
<div id="user-nav" class="navbar navbar-inverse">
<ul class="nav">
<li class="dropdown" id="profile-messages"><a title="" href="#" data-toggle="dropdown"
data-target="#profile-messages" class="dropdown-toggle"><i
class="icon icon-user"></i> <span class="text">我的</span><b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="{:U('Index/editorpass')}" class="iframe"><i class="icon-user"></i> 密码修改</a></li>
<li class="divider"></li>
<li><a href="#" onclick="logout()"><i class="icon-key"></i>退出</a></li>
</ul>
</li>
<li class="dropdown"><a href="">{:session("user_name")}</a></li>
</ul>
</div>
<?php
if(C('LANG_SWITCH_ON')){
?>
<div id="search">
<div class="btn-group" style="margin-top:9px;">
<button data-toggle="dropdown" class="btn btn-success dropdown-toggle">
语言切换{:$LANG_OPT[$admin_lang]?''.$LANG_OPT[$admin_lang]:''} <span class="caret"></span></button>
<ul class="dropdown-menu">
<li><a href="{:U('Index/setAdminLang',array('admin_lang'=>''))}">不限</a></li>
<li class="divider"></li>
<foreach name="LANG_OPT" item="v">
<li><a href="{:U('Index/setAdminLang',array('admin_lang'=>$key))}">{$v}</a></li>
<li class="divider"></li>
</foreach>
</ul>
</div>
</div>
<?php
}
?>
<div id="sidebar"><a href="#" class="visible-phone"><i class="icon icon-home"></i> Dashboard</a>
<ul class="menu_list">
<!-- <li><a href="__MODULE__"><i class="icon icon-home"></i> <span>控制面板</span> <span-->
<!-- class="label label-important"></span></a></li>-->
<!-- <li class="submenu <?=menu_current('Info/index')||menu_current('Info/add')||menu_current('Info/editor')?" open-->
<!-- ":"" ?>"><a href="__MODULE__"><i class="icon icon-retweet"></i> <span>信息管理</span> <span-->
<!-- class="label label-important"></span></a>-->
<!-- <ul>-->
<!-- <foreach name="modeldate" item="v">-->
<!-- <li class="<?=$v[catid]==$currentCatid?" active-->
<!-- ":"" ?>"><a-->
<!-- href="{:U('Info/index',array('catid'=>$v[catid],'modelid'=>$v[modelid]))}">{$v.name}</a></li>-->
<!-- </foreach>-->
<!-- </ul>-->
<!-- </li>-->
<foreach name="__MENU__" item="v">
<li class="<?=count($v[child])?" submenu
":"" ?> <?=menu_current($v)?"open ":"" ?>"><a href="<?=count($v[child])?" #":U($v[name]) ?>"><i
class="icon {$v.icon}"></i> <span>{$v.title}</span> <span class="label label-important"></span></a>
<ul>
<foreach name="v.child" item="vv">
<li class="<?=menu_current($vv)?" active
":"" ?>"><a href="{$vv[name]|U}">{$vv.title}</a></li>
</foreach>
</ul>
</li>
</foreach>
</ul>
</div>
<div id="nav_content">
<div id="content-header">
<div id="breadcrumb">{:admin_nav()}</div>
<div class="nav_notic" id="s1">
<ul>{:nav_notic()}</ul>
</div>
</div>