Files
certificate-system/certificate-template-lab/index.html

118 lines
4.8 KiB
HTML

<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>&#32467;&#19994;&#35777;&#20070;&#27169;&#26495;&#35843;&#35797;</title>
<link rel="stylesheet" href="./style.css">
</head>
<body>
<main class="page">
<aside class="panel">
<div class="panel-head">
<p class="eyebrow">Certificate Lab</p>
<h1>&#32467;&#19994;&#35777;&#20070;&#27169;&#26495;&#35843;&#35797;</h1>
<p class="hint">&#36825;&#37324;&#20808;&#21333;&#29420;&#35843;&#35777;&#20070;&#35270;&#35273;&#65292;&#19981;&#25509;&#20027;&#31995;&#32479;&#25968;&#25454;&#12290;&#25913;&#23383;&#27573;&#21518;&#21491;&#20391;&#20250;&#23454;&#26102;&#37325;&#32472;&#12290;</p>
</div>
<section class="group">
<h2>&#23398;&#21592;&#19982;&#35838;&#31243;</h2>
<label>&#23398;&#21592;&#22995;&#21517;
<input id="studentName" value="&#24352;&#19977;">
</label>
<label>&#35838;&#31243;&#21517;&#31216;
<input id="courseName" value="&#26234;&#24935;&#36171;&#33021;&#30103;&#24840;&#24072;">
</label>
<label>&#35838;&#31243;&#38454;&#27573;
<input id="stageName" value="&#21021;&#32423;&#35838;&#31243;&#30340;&#19987;&#19994;&#23398;&#20064;&#12290;">
</label>
<label>&#35777;&#20070;&#32534;&#21495;
<input id="certificateNo" value="HY20260602DYC001">
</label>
</section>
<section class="group">
<h2>&#26085;&#26399;</h2>
<div class="grid">
<label>&#24320;&#22987;&#24180;
<input id="startYear" value="2026">
</label>
<label>&#24320;&#22987;&#26376;
<input id="startMonth" value="6">
</label>
<label>&#24320;&#22987;&#26085;
<input id="startDay" value="1">
</label>
<label>&#32467;&#26463;&#24180;
<input id="endYear" value="2026">
</label>
<label>&#32467;&#26463;&#26376;
<input id="endMonth" value="6">
</label>
<label>&#32467;&#26463;&#26085;
<input id="endDay" value="2">
</label>
</div>
<label>&#21457;&#35777;&#26085;&#26399;
<input id="issueDate" value="2026 &#24180; 6 &#26376; 2 &#26085;">
</label>
</section>
<section class="group muted-group">
<h2>&#24213;&#37096;&#22270;&#23618;</h2>
<p class="group-note">&#23548;&#24072;&#12289;&#26426;&#26500;&#21644;&#20108;&#32500;&#30721;&#20808;&#20351;&#29992;&#21407;&#22270;&#12290;&#23548;&#24072;&#20250;&#20316;&#20026;&#26368;&#19978;&#23618;&#22270;&#23618;&#35206;&#30422;&#12290;</p>
<label>&#23548;&#24072;&#31216;&#35859;
<input id="mentorLabel" value="&#23548;&#24072;&#65306;" disabled>
</label>
<label>&#23548;&#24072;&#22995;&#21517;
<input id="mentorName" value="&#21346;&#24935;" disabled>
</label>
<label>&#24038;&#20391;&#21333;&#20301;
<input id="issuerLeft" value="&#28145;&#22323;&#24066;&#24935;&#24840;&#25991;&#21270;&#31185;&#25216;&#26377;&#38480;&#20844;&#21496;" disabled>
</label>
<label>&#21491;&#20391;&#21333;&#20301;
<input id="issuerRight" value="&#22269;&#38469;&#29983;&#21629;&#26234;&#24935;&#21551;&#33945;&#30740;&#31350;&#38498;" disabled>
</label>
<label>&#26597;&#35810;&#38142;&#25509;
<input id="verifyUrl" value="https://example.com/cert/HY20260602DYC001" disabled>
</label>
</section>
<section class="group">
<h2>&#26174;&#31034;&#24320;&#20851;</h2>
<label class="check">
<input type="checkbox" id="showOriginal" checked>
&#20351;&#29992;&#21407;&#22270;&#20316;&#20026;&#24213;&#22270;
</label>
<label class="check">
<input type="checkbox" id="showDebug">
&#26174;&#31034;&#25830;&#38500;&#21306;&#22495;
</label>
</section>
<div class="actions">
<button id="resetBtn" type="button">&#24674;&#22797;&#31034;&#20363;</button>
<button id="downloadBtn" type="button">&#19979;&#36733; PNG</button>
</div>
</aside>
<section class="preview">
<div class="preview-head">
<div>
<p class="eyebrow">3437 x 2551 / 1024 design coordinates</p>
<h2>&#23454;&#26102;&#39044;&#35272;</h2>
</div>
<span id="renderState">&#21152;&#36733;&#20013;</span>
</div>
<div class="canvas-shell">
<canvas id="certificateCanvas" width="1024" height="759"></canvas>
</div>
</section>
</main>
<div id="qrScratch" aria-hidden="true"></div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/qrcodejs/1.0.0/qrcode.min.js"></script>
<script src="./app.js"></script>
</body>
</html>