增加显示的时候修改输出
This commit is contained in:
@@ -13,7 +13,8 @@
|
|||||||
color: #000 !important;
|
color: #000 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
#languages-menu::-webkit-scrollbar, #testcase-menu::-webkit-scrollbar {
|
#languages-menu::-webkit-scrollbar,
|
||||||
|
#testcase-menu::-webkit-scrollbar {
|
||||||
width: 0px;
|
width: 0px;
|
||||||
background: transparent;
|
background: transparent;
|
||||||
}
|
}
|
||||||
@@ -21,6 +22,7 @@
|
|||||||
div[class*=ace_br] {
|
div[class*=ace_br] {
|
||||||
border-radius: 0 !important;
|
border-radius: 0 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.copy {
|
.copy {
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
color: #4d4d4d;
|
color: #4d4d4d;
|
||||||
@@ -63,7 +65,9 @@ div[class*=ace_br] {
|
|||||||
</div>
|
</div>
|
||||||
<div class="row" style="margin-top: -23px">
|
<div class="row" style="margin-top: -23px">
|
||||||
<!-- <span class="ui label">题目类型:传统</span> -->
|
<!-- <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>
|
<span class="ui label"><?php echo $MSG_Creator ?>:<span id='creator'></span></span>
|
||||||
</div>
|
</div>
|
||||||
<div class="row" style="margin-top: -23px">
|
<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 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 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>";
|
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 {
|
} else {
|
||||||
echo "<a href=\"contest.php?cid=$cid\" class=\"ui orange button\">$MSG_RETURN_CONTEST</a>";
|
echo "<a href=\"contest.php?cid=$cid\" class=\"ui orange button\">$MSG_RETURN_CONTEST</a>";
|
||||||
if ($contest_is_over)
|
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>";
|
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>
|
</div>
|
||||||
@@ -104,8 +110,10 @@ div[class*=ace_br] {
|
|||||||
?>
|
?>
|
||||||
|
|
||||||
<div class="ui buttons right floated">
|
<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"
|
||||||
<a class="small ui button" href='javascript:phpfm(<?php echo $row['problem_id'];?>)'><?php echo $MSG_TEST_DATA?></a>
|
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>
|
</div>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
</div>
|
</div>
|
||||||
@@ -117,9 +125,7 @@ div[class*=ace_br] {
|
|||||||
<div id="description" class="ui bottom attached segment font-content">
|
<div id="description" class="ui bottom attached segment font-content">
|
||||||
<span class='md auto_select'>
|
<span class='md auto_select'>
|
||||||
<?php
|
<?php
|
||||||
// if (str_contains($row['description'],"md auto_select"))
|
echo bbcode_to_html($row['description']);
|
||||||
echo $row['description'];
|
|
||||||
// else echo bbcode_to_html($row['description']);
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
</span>
|
</span>
|
||||||
@@ -133,9 +139,9 @@ div[class*=ace_br] {
|
|||||||
<div id='input' class="ui bottom attached segment font-content">
|
<div id='input' class="ui bottom attached segment font-content">
|
||||||
<span class='md auto_select'>
|
<span class='md auto_select'>
|
||||||
<?php echo
|
<?php echo
|
||||||
// bbcode_to_html(
|
bbcode_to_html(
|
||||||
$row['input']
|
$row['input']
|
||||||
// );
|
);
|
||||||
?>
|
?>
|
||||||
|
|
||||||
</span>
|
</span>
|
||||||
@@ -150,9 +156,9 @@ div[class*=ace_br] {
|
|||||||
<div id='output' class="ui bottom attached segment font-content">
|
<div id='output' class="ui bottom attached segment font-content">
|
||||||
<span class='md auto_select'>
|
<span class='md auto_select'>
|
||||||
<?php echo
|
<?php echo
|
||||||
// bbcode_to_html(
|
bbcode_to_html(
|
||||||
$row['output']
|
$row['output']
|
||||||
// );
|
);
|
||||||
?>
|
?>
|
||||||
|
|
||||||
</span>
|
</span>
|
||||||
@@ -171,12 +177,14 @@ div[class*=ace_br] {
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="column">
|
<div class="column">
|
||||||
<h4 class="ui top attached block header"><?php echo $MSG_Sample_Input ?>
|
<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>
|
</h4>
|
||||||
<!-- <span class=copy id=\"copyin\" data-clipboard-text=\"".($sinput)."\"><?php echo $MSG_COPY; ?></span> -->
|
<!-- <span class=copy id=\"copyin\" data-clipboard-text=\"".($sinput)."\"><?php echo $MSG_COPY; ?></span> -->
|
||||||
<div class="ui bottom attached segment font-content">
|
<div class="ui bottom attached segment font-content">
|
||||||
<!-- <pre><?php echo ($sinput); ?></pre> -->
|
<!-- <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>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -185,12 +193,14 @@ div[class*=ace_br] {
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="column">
|
<div class="column">
|
||||||
<h4 class="ui top attached block header"><?php echo $MSG_Sample_Output ?>
|
<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>
|
</h4>
|
||||||
<!-- <span class=copy id=\"copyout\" data-clipboard-text=\"".($soutput)."\"><?php echo $MSG_COPY; ?></span> -->
|
<!-- <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 bottom attached segment font-content">
|
||||||
<!-- <div class="ui existing segment"> -->
|
<!-- <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>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -203,9 +213,9 @@ div[class*=ace_br] {
|
|||||||
<div id='hint' class="ui bottom attached segment font-content hint">
|
<div id='hint' class="ui bottom attached segment font-content hint">
|
||||||
<span class='md auto_select'>
|
<span class='md auto_select'>
|
||||||
<?php echo
|
<?php echo
|
||||||
// bbcode_to_html(
|
bbcode_to_html(
|
||||||
$row['hint']
|
$row['hint']
|
||||||
// );
|
);
|
||||||
?>
|
?>
|
||||||
|
|
||||||
</span>
|
</span>
|
||||||
@@ -222,13 +232,15 @@ div[class*=ace_br] {
|
|||||||
?>
|
?>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="column">
|
<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 ?>
|
<?php echo $MSG_SOURCE ?>
|
||||||
</h4>
|
</h4>
|
||||||
<div class="ui bottom attached segment" id="show_tag_div">
|
<div class="ui bottom attached segment" id="show_tag_div">
|
||||||
|
|
||||||
<?php foreach ($cats as $cat) {
|
<?php foreach ($cats as $cat) {
|
||||||
if(trim($cat)=="") continue;
|
if (trim($cat) == "")
|
||||||
|
continue;
|
||||||
$label_theme = $color[$tcolor % count($color)];
|
$label_theme = $color[$tcolor % count($color)];
|
||||||
$tcolor++;
|
$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 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 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>";
|
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 {
|
} else {
|
||||||
echo "<a href=\"contest.php?cid=$cid\" class=\"ui orange button\">$MSG_RETURN_CONTEST</a>";
|
echo "<a href=\"contest.php?cid=$cid\" class=\"ui orange button\">$MSG_RETURN_CONTEST</a>";
|
||||||
if ($contest_is_over)
|
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 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>";
|
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>
|
</div>
|
||||||
@@ -278,7 +292,8 @@ div[class*=ace_br] {
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
top: 350px;
|
top: 350px;
|
||||||
left: 0;
|
left: 0;
|
||||||
cursor: col-resize; /* 显示可调整宽度的光标 */
|
cursor: col-resize;
|
||||||
|
/* 显示可调整宽度的光标 */
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
@@ -294,7 +309,8 @@ div[class*=ace_br] {
|
|||||||
<?php } ?>
|
<?php } ?>
|
||||||
let submitURL = $("#submit")[0].href;
|
let submitURL = $("#submit")[0].href;
|
||||||
<?php
|
<?php
|
||||||
if(isset($_GET['sid'])) echo "submitURL+='&sid=".intval($_GET['sid'])."';";
|
if (isset($_GET['sid']))
|
||||||
|
echo "submitURL+='&sid=" . intval($_GET['sid']) . "';";
|
||||||
?>
|
?>
|
||||||
console.log(width);
|
console.log(width);
|
||||||
let main = $("#main");
|
let main = $("#main");
|
||||||
|
|||||||
Reference in New Issue
Block a user