|
|
@ -2,10 +2,11 @@ |
|
|
|
<script src="https://cdn.staticfile.org/textfit/2.3.1/textFit.min.js"></script> |
|
|
|
<script src="https://cdn.staticfile.org/textfit/2.3.1/textFit.min.js"></script> |
|
|
|
<% include header %> |
|
|
|
<% include header %> |
|
|
|
<div class="padding"> |
|
|
|
<div class="padding"> |
|
|
|
<form action="<%= syzoj.utils.makeUrl(['contest', contest.id, 'submissions']) %>" class="ui mini form" method="get" role="form" id="form"> |
|
|
|
<form action="<%= syzoj.utils.makeUrl(['contest', contest.id, 'submissions']) %>" class="ui mini form" method="get" role="form" id="form" onsubmit="return checkSubmit()"> |
|
|
|
<div class="inline fields" style="margin-bottom: 25px; "> |
|
|
|
<div class="inline fields" style="margin-bottom: 25px; "> |
|
|
|
<label style="font-size: 1.2em; margin-right: 3px; ">题目 ID:</label> |
|
|
|
<label style="font-size: 1.2em; margin-right: 3px; ">题目 ID:</label> |
|
|
|
<div class="field"><input name="problem_id" style="width: 50px; " type="text" value="<%= form.problem_id %>"></div> |
|
|
|
<div class="field"><input id="problem_id" style="width: 50px; " type="text" value="<%= this.alpha(form.problem_id) %>"></div> |
|
|
|
|
|
|
|
<input type="hidden" name="problem_id" id="problem_id_hidden"> |
|
|
|
<label style="font-size: 1.2em; margin-right: 3px; ">提交者:</label> |
|
|
|
<label style="font-size: 1.2em; margin-right: 3px; ">提交者:</label> |
|
|
|
<div class="field"><input name="submitter" style="width: 100px; " type="text" value="<%= form.submitter %>"></div> |
|
|
|
<div class="field"><input name="submitter" style="width: 100px; " type="text" value="<%= form.submitter %>"></div> |
|
|
|
<% if ((typeof contest === 'undefined' || !contest) || contest.ended || contest.type !== 'noi' || (user && user.is_admin)) { %> |
|
|
|
<% if ((typeof contest === 'undefined' || !contest) || contest.ended || contest.type !== 'noi' || (user && user.is_admin)) { %> |
|
|
@ -94,5 +95,13 @@ $(function () { |
|
|
|
$('#select_language').dropdown(); |
|
|
|
$('#select_language').dropdown(); |
|
|
|
$('#select_status').dropdown(); |
|
|
|
$('#select_status').dropdown(); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function checkSubmit() { |
|
|
|
|
|
|
|
var x = $('#problem_id').val(), ch = x.charCodeAt(0); |
|
|
|
|
|
|
|
if (x.length === 1 && x >= 'A' && x <= 'Z') $('#problem_id_hidden').val(ch - 'A'.charCodeAt(0) + 1); |
|
|
|
|
|
|
|
else if (x.length === 1 && x >= 'a' && x <= 'a') $('#problem_id_hidden').val(ch - 'a'.charCodeAt(0) + 1); |
|
|
|
|
|
|
|
else $('#problem_id_hidden').val(x); |
|
|
|
|
|
|
|
return true; |
|
|
|
|
|
|
|
} |
|
|
|
</script> |
|
|
|
</script> |
|
|
|
<% include footer %> |
|
|
|
<% include footer %> |
|
|
|