Files
S905L3A/cups-templates-zh_CN/header.tmpl
yuyx 3360fc7bd8 fix: 自动适配CUPS不同版本的CSS类名
- 模板默认使用旧类名(header/body/footer)兼容CUPS 2.4.1
- 安装脚本自动检测目标系统CUPS版本的CSS类名
- 如果是新版CUPS(使用cups-header等),自动替换模板类名
- 解决不同CUPS版本CSS样式不加载的问题

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-01 10:32:12 +08:00

41 lines
1.6 KiB
Cheetah

<!DOCTYPE HTML>
<html>
<head>
<link rel="stylesheet" href="/cups.css" type="text/css">
<link rel="shortcut icon" href="/apple-touch-icon.png" type="image/png">
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
{refresh_page?<meta http-equiv="refresh" content="{refresh_page}">:}
<meta http-equiv="X-UA-Compatible" content="IE=9">
<meta name="viewport" content="width=device-width">
<style>html{display:none;}</style>
<script type="text/javascript"><!--
if (self == top) {
document.documentElement.style.display = 'block';
} else {
top.location = self.location;
}
function check_cookies() {
if (!navigator.cookieEnabled) {
document.getElementById('body').innerHTML = '此页面使用 Cookie 防止跨站攻击,请启用 Cookie。';
}
}
--></SCRIPT>
<title>{title} - CUPS 打印管理</title>
</head>
<body onload="check_cookies();">
<div class="header">
<ul>
<li><a href="https://openprinting.github.io/cups/" target="_blank">OpenPrinting CUPS</a></li>
<li><a {SECTION=admin?class="active" :}href="/">首页</a></li>
<li><a {SECTION=admin?class="active" :}href="/admin">管理</a></li>
<li><a {SECTION=classes?class="active" :}href="/classes/">打印机类</a></li>
<li><a {SECTION=help?class="active" :}href="/help/">帮助</a></li>
<li><a {SECTION=jobs?class="active" :}href="/jobs/">任务</a></li>
<li><a {SECTION=printers?class="active" :}href="/printers/">打印机</a></li>
</ul>
</div>
<div class="body">
<div class="row">
<h1>{title}</h1>