增加显示的时候修改输出
This commit is contained in:
@@ -13,7 +13,8 @@
|
||||
color: #000 !important;
|
||||
}
|
||||
|
||||
#languages-menu::-webkit-scrollbar, #testcase-menu::-webkit-scrollbar {
|
||||
#languages-menu::-webkit-scrollbar,
|
||||
#testcase-menu::-webkit-scrollbar {
|
||||
width: 0px;
|
||||
background: transparent;
|
||||
}
|
||||
@@ -21,6 +22,7 @@
|
||||
div[class*=ace_br] {
|
||||
border-radius: 0 !important;
|
||||
}
|
||||
|
||||
.copy {
|
||||
font-size: 12px;
|
||||
color: #4d4d4d;
|
||||
@@ -63,7 +65,9 @@ div[class*=ace_br] {
|
||||
</div>
|
||||
<div class="row" style="margin-top: -23px">
|
||||
<!-- <span class="ui label">题目类型:传统</span> -->
|
||||
<span class="ui label"><?php echo $MSG_JUDGE_STYLE ?>:<?php echo array($MSG_NJ,$MSG_SPJ,$MSG_RTJ)[$row['spj']] ; ?> </span>
|
||||
<span
|
||||
class="ui label"><?php echo $MSG_JUDGE_STYLE ?>:<?php echo array($MSG_NJ, $MSG_SPJ, $MSG_RTJ)[$row['spj']]; ?>
|
||||
</span>
|
||||
<span class="ui label"><?php echo $MSG_Creator ?>:<span id='creator'></span></span>
|
||||
</div>
|
||||
<div class="row" style="margin-top: -23px">
|
||||
@@ -81,7 +85,8 @@ div[class*=ace_br] {
|
||||
echo "<a id='submit' class=\"small ui primary button\" href=\"submitpage.php?id=$id\">$MSG_SUBMIT</a>";
|
||||
echo "<a class=\"small ui positive button\" href=\"status.php?problem_id=$id\">$MSG_SUBMIT_RECORD</a>";
|
||||
echo "<a class=\"small ui orange button\" href=\"problemstatus.php?id=$id\">$MSG_STATISTICS</a>";
|
||||
if($OJ_BBS)echo "<a class=\"small ui red button\" href=\"discuss.php?pid=$id\">$MSG_BBS</a>";
|
||||
if ($OJ_BBS)
|
||||
echo "<a class=\"small ui red button\" href=\"discuss.php?pid=$id\">$MSG_BBS</a>";
|
||||
} else {
|
||||
echo "<a href=\"contest.php?cid=$cid\" class=\"ui orange button\">$MSG_RETURN_CONTEST</a>";
|
||||
if ($contest_is_over)
|
||||
@@ -92,7 +97,8 @@ div[class*=ace_br] {
|
||||
echo "<a class=\"small ui orange button\" href=\"status.php?problem_id=$PID[$pid]&cid=$cid\">$MSG_THIS_CONTEST$MSG_SUBMIT_RECORD</a>";
|
||||
|
||||
}
|
||||
if(!file_exists($OJ_DATA."/".$id."/solution.name")) echo "<a class='small ui primary button' href='#' onclick='transform()' role='button'>$MSG_SHOW_OFF</a>";
|
||||
if (!file_exists($OJ_DATA . "/" . $id . "/solution.name"))
|
||||
echo "<a class='small ui primary button' href='#' onclick='transform()' role='button'>$MSG_SHOW_OFF</a>";
|
||||
?>
|
||||
|
||||
</div>
|
||||
@@ -104,8 +110,10 @@ div[class*=ace_br] {
|
||||
?>
|
||||
|
||||
<div class="ui buttons right floated">
|
||||
<a class="small ui button" href="admin/problem_edit.php?id=<?php echo $id?>&getkey=<?php echo $_SESSION[$OJ_NAME.'_'.'getkey']?>"><?php echo $MSG_EDIT.$MSG_PROBLEM?></a>
|
||||
<a class="small ui button" href='javascript:phpfm(<?php echo $row['problem_id'];?>)'><?php echo $MSG_TEST_DATA?></a>
|
||||
<a class="small ui button"
|
||||
href="admin/problem_edit.php?id=<?php echo $id ?>&getkey=<?php echo $_SESSION[$OJ_NAME . '_' . 'getkey'] ?>"><?php echo $MSG_EDIT . $MSG_PROBLEM ?></a>
|
||||
<a class="small ui button"
|
||||
href='javascript:phpfm(<?php echo $row['problem_id']; ?>)'><?php echo $MSG_TEST_DATA ?></a>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
@@ -117,9 +125,7 @@ div[class*=ace_br] {
|
||||
<div id="description" class="ui bottom attached segment font-content">
|
||||
<span class='md auto_select'>
|
||||
<?php
|
||||
// if (str_contains($row['description'],"md auto_select"))
|
||||
echo $row['description'];
|
||||
// else echo bbcode_to_html($row['description']);
|
||||
echo bbcode_to_html($row['description']);
|
||||
?>
|
||||
|
||||
</span>
|
||||
@@ -133,9 +139,9 @@ div[class*=ace_br] {
|
||||
<div id='input' class="ui bottom attached segment font-content">
|
||||
<span class='md auto_select'>
|
||||
<?php echo
|
||||
// bbcode_to_html(
|
||||
bbcode_to_html(
|
||||
$row['input']
|
||||
// );
|
||||
);
|
||||
?>
|
||||
|
||||
</span>
|
||||
@@ -150,9 +156,9 @@ div[class*=ace_br] {
|
||||
<div id='output' class="ui bottom attached segment font-content">
|
||||
<span class='md auto_select'>
|
||||
<?php echo
|
||||
// bbcode_to_html(
|
||||
bbcode_to_html(
|
||||
$row['output']
|
||||
// );
|
||||
);
|
||||
?>
|
||||
|
||||
</span>
|
||||
@@ -171,12 +177,14 @@ div[class*=ace_br] {
|
||||
<div class="row">
|
||||
<div class="column">
|
||||
<h4 class="ui top attached block header"><?php echo $MSG_Sample_Input ?>
|
||||
<span class="copy" id="copyin" data-clipboard-text="<?php echo htmlentities($sinput, ENT_QUOTES, 'UTF-8'); ?>"><?php echo $MSG_COPY; ?></span>
|
||||
<span class="copy" id="copyin"
|
||||
data-clipboard-text="<?php echo htmlentities($sinput, ENT_QUOTES, 'UTF-8'); ?>"><?php echo $MSG_COPY; ?></span>
|
||||
</h4>
|
||||
<!-- <span class=copy id=\"copyin\" data-clipboard-text=\"".($sinput)."\"><?php echo $MSG_COPY; ?></span> -->
|
||||
<div class="ui bottom attached segment font-content">
|
||||
<!-- <pre><?php echo ($sinput); ?></pre> -->
|
||||
<pre style="margin-top: 0; margin-bottom: 0; "><code id='sinput' class="lang-plain"><?php echo ($sinput); ?></code></pre>
|
||||
<pre
|
||||
style="margin-top: 0; margin-bottom: 0; "><code id='sinput' class="lang-plain"><?php echo ($sinput); ?></code></pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -185,12 +193,14 @@ div[class*=ace_br] {
|
||||
<div class="row">
|
||||
<div class="column">
|
||||
<h4 class="ui top attached block header"><?php echo $MSG_Sample_Output ?>
|
||||
<span class="copy" id="copyout" data-clipboard-text="<?php echo htmlentities($soutput, ENT_QUOTES, 'UTF-8'); ?>"><?php echo $MSG_COPY; ?></span>
|
||||
<span class="copy" id="copyout"
|
||||
data-clipboard-text="<?php echo htmlentities($soutput, ENT_QUOTES, 'UTF-8'); ?>"><?php echo $MSG_COPY; ?></span>
|
||||
</h4>
|
||||
<!-- <span class=copy id=\"copyout\" data-clipboard-text=\"".($soutput)."\"><?php echo $MSG_COPY; ?></span> -->
|
||||
<div class="ui bottom attached segment font-content">
|
||||
<!-- <div class="ui existing segment"> -->
|
||||
<pre style="margin-top: 0; margin-bottom: 0; "><code id='soutput' class="lang-plain"><?php echo ($soutput); ?></code></pre>
|
||||
<pre
|
||||
style="margin-top: 0; margin-bottom: 0; "><code id='soutput' class="lang-plain"><?php echo ($soutput); ?></code></pre>
|
||||
<!-- </div> -->
|
||||
</div>
|
||||
</div>
|
||||
@@ -203,9 +213,9 @@ div[class*=ace_br] {
|
||||
<div id='hint' class="ui bottom attached segment font-content hint">
|
||||
<span class='md auto_select'>
|
||||
<?php echo
|
||||
// bbcode_to_html(
|
||||
bbcode_to_html(
|
||||
$row['hint']
|
||||
// );
|
||||
);
|
||||
?>
|
||||
|
||||
</span>
|
||||
@@ -222,13 +232,15 @@ div[class*=ace_br] {
|
||||
?>
|
||||
<div class="row">
|
||||
<div class="column">
|
||||
<h4 class="ui block header top attached" id="show_tag_title_div" style="margin-bottom: 0; margin-left: -1px; margin-right: -1px; ">
|
||||
<h4 class="ui block header top attached" id="show_tag_title_div"
|
||||
style="margin-bottom: 0; margin-left: -1px; margin-right: -1px; ">
|
||||
<?php echo $MSG_SOURCE ?>
|
||||
</h4>
|
||||
<div class="ui bottom attached segment" id="show_tag_div">
|
||||
|
||||
<?php foreach ($cats as $cat) {
|
||||
if(trim($cat)=="") continue;
|
||||
if (trim($cat) == "")
|
||||
continue;
|
||||
$label_theme = $color[$tcolor % count($color)];
|
||||
$tcolor++;
|
||||
?>
|
||||
@@ -256,7 +268,8 @@ div[class*=ace_br] {
|
||||
echo "<a id='submit' class=\"small ui primary button\" href=\"submitpage.php?id=$id\">$MSG_SUBMIT</a>";
|
||||
echo "<a class=\"small ui positive button\" href=\"status.php?problem_id=$id\">$MSG_SUBMIT_RECORD</a>";
|
||||
echo "<a class=\"small ui orange button\" href=\"problemstatus.php?id=$id\">$MSG_STATISTICS</a>";
|
||||
if($OJ_BBS)echo "<a class=\"small ui red button\" href=\"discuss.php?pid=$id\">$MSG_BBS</a>";
|
||||
if ($OJ_BBS)
|
||||
echo "<a class=\"small ui red button\" href=\"discuss.php?pid=$id\">$MSG_BBS</a>";
|
||||
} else {
|
||||
echo "<a href=\"contest.php?cid=$cid\" class=\"ui orange button\">$MSG_RETURN_CONTEST</a>";
|
||||
if ($contest_is_over)
|
||||
@@ -265,7 +278,8 @@ div[class*=ace_br] {
|
||||
echo "<a id='submit' class=\"small ui primary button\" href=\"submitpage.php?cid=$cid&pid=$pid&langmask=$langmask\">$MSG_SUBMIT</a>";
|
||||
echo "<a class=\"small ui positive button\" href=\"status.php?problem_id=$PID[$pid]&cid=$cid\">$MSG_SUBMIT_RECORD</a>";
|
||||
}
|
||||
if(!file_exists($OJ_DATA."/".$id."/solution.name")) echo "<a class='small ui primary button' href='#' onclick='transform()' role='button'>$MSG_SHOW_OFF</a>";
|
||||
if (!file_exists($OJ_DATA . "/" . $id . "/solution.name"))
|
||||
echo "<a class='small ui primary button' href='#' onclick='transform()' role='button'>$MSG_SHOW_OFF</a>";
|
||||
?>
|
||||
|
||||
</div>
|
||||
@@ -278,7 +292,8 @@ div[class*=ace_br] {
|
||||
position: absolute;
|
||||
top: 350px;
|
||||
left: 0;
|
||||
cursor: col-resize; /* 显示可调整宽度的光标 */
|
||||
cursor: col-resize;
|
||||
/* 显示可调整宽度的光标 */
|
||||
}
|
||||
</style>
|
||||
<script type="text/javascript">
|
||||
@@ -294,7 +309,8 @@ div[class*=ace_br] {
|
||||
<?php } ?>
|
||||
let submitURL = $("#submit")[0].href;
|
||||
<?php
|
||||
if(isset($_GET['sid'])) echo "submitURL+='&sid=".intval($_GET['sid'])."';";
|
||||
if (isset($_GET['sid']))
|
||||
echo "submitURL+='&sid=" . intval($_GET['sid']) . "';";
|
||||
?>
|
||||
console.log(width);
|
||||
let main = $("#main");
|
||||
|
||||
Reference in New Issue
Block a user