移除多余的无用代码

This commit is contained in:
2026-04-10 16:36:57 +08:00
parent f20b7aa61c
commit addada1823
1691 changed files with 209 additions and 334971 deletions

View File

@@ -7,7 +7,7 @@ require_once ("../include/my_func.inc.php");
<!DOCTYPE html>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel=stylesheet href='../include/hoj.css' type='text/css'>
<script src="../template/bs3/jquery.min.js"></script>
<script src="../template/syzoj/jquery.min.js"></script>
<script>
$("document").ready(function (){
$("form").append("<div id='csrf' />");

View File

@@ -98,7 +98,7 @@ if ($zip->open($ztar, ZipArchive::CREATE) === TRUE) {
?>
<button onclick="phpfm(0)" >查看备份文件</button>
<script src='../template/bs3/jquery.min.js' ></script>
<script src='../template/syzoj/jquery.min.js' ></script>
<script>
function phpfm(pid){

View File

@@ -10,7 +10,7 @@ if(!(isset($_SESSION[$OJ_NAME.'_'.'administrator'])||isset($_SESSION[$OJ_NAME.'_
exit(1);
}
echo "<center><h3>".$MSG_CONTEST."-".$MSG_ADD."</h3></center>";
include_once("kindeditor.php") ;
include_once("vditor.php") ;
?>
<body leftmargin="30" >
@@ -158,7 +158,7 @@ else{
<hr>
<?php
include_once("kindeditor.php") ;
include_once("vditor.php") ;
?>
<div class="container">
@@ -189,7 +189,7 @@ else{
<br>
<p align=left>
<?php echo "<h4>".$MSG_CONTEST."-".$MSG_Description."</h4>"?>
<textarea class=kindeditor rows=13 name=description cols=80><?php echo isset($description)?$description:""?></textarea>
<textarea class=vditor-editor rows=13 name=description cols=80><?php echo isset($description)?$description:""?></textarea>
<br>
<table width="100%">
<tr>

View File

@@ -20,7 +20,7 @@ if (!(isset($_SESSION[$OJ_NAME . '_' . 'administrator']) || isset($_SESSION[$OJ_
exit(1);
}
echo "<center><h3>" . "Edit-" . $MSG_CONTEST . "</h3></center>";
include_once("kindeditor.php");
include_once("vditor.php");
?>
<body leftmargin="30">
@@ -182,7 +182,7 @@ include_once("kindeditor.php");
<br>
<p align=left>
<?php echo "<h4>" . $MSG_CONTEST . "-" . $MSG_Description . "</h4>" ?>
<textarea class=kindeditor rows=13 name=description cols=80>
<textarea class=vditor-editor rows=13 name=description cols=80>
<?php echo htmlentities($description, ENT_QUOTES, 'UTF-8') ?>
</textarea>
<br>

View File

@@ -5,7 +5,7 @@
}
$path_fix="../";
$OJ_TP=$OJ_TEMPLATE;
$OJ_TEMPLATE="bs3";
$OJ_TEMPLATE="syzoj";
?>
<html>
<head>
@@ -35,7 +35,7 @@
</button>
<div class="dropdown-menu">
<?php if (isset($_SESSION[$OJ_NAME.'_'.'administrator'])){?>
<?php if ($OJ_TP=="bs3"){?>
<?php if ($OJ_TP=="syzoj"){?>
<a class="dropdown-item btn-sm" href="setmsg.php" target="main" title="<?php echo $MSG_HELP_SETMESSAGE?>"><b><?php echo $MSG_NEWS."-".$MSG_SETMESSAGE?></b></a>
<?php }?>
<a class="dropdown-item btn-sm" href="news_list.php" target="main" title="<?php echo $MSG_HELP_NEWS_LIST?>"><b><?php echo $MSG_NEWS."-".$MSG_LIST?></b></a>

View File

@@ -8,7 +8,7 @@ if(!(isset($_SESSION[$OJ_NAME.'_'.'administrator']))){
echo "<hr>";
echo "<center><h3>".$MSG_NEWS."-".$MSG_ADD."</h3></center>";
include_once("kindeditor.php");
include_once("vditor.php");
?>
<?php
@@ -53,7 +53,7 @@ if(isset($_POST['pid'])){
</label>
</p>
<p align=left>
<textarea class=kindeditor name=content rows=41 >
<textarea class=vditor-editor name=content rows=41 >
<?php echo isset($content)?$content:""?>
</textarea>
</p>

View File

@@ -11,7 +11,7 @@ require_once("../include/my_func.inc.php");
echo "<hr>";
echo "<center><h3>".$MSG_NEWS."-"."Edit"."</h3></center>";
include_once("kindeditor.php");
include_once("vditor.php");
?>
<div class="container">
@@ -67,7 +67,7 @@ if(isset($_POST['news_id'])){
</label>
</p>
<p align=left>
<textarea class=kindeditor name=content rows=41 ><?php echo htmlentities($content,ENT_QUOTES,"UTF-8")?>
<textarea class=vditor-editor name=content rows=41 ><?php echo htmlentities($content,ENT_QUOTES,"UTF-8")?>
</textarea>
</p>
<?php require_once("../include/set_post_key.php");?>

View File

@@ -106,7 +106,7 @@ echo "&nbsp;&nbsp;- <a href='javascript:phpfm($pid);'>Add more TestData now!</a>
/* */
?>
<script src='../template/bs3/jquery.min.js' ></script>
<script src='../template/syzoj/jquery.min.js' ></script>
<script>
function phpfm(pid){
//alert(pid);

View File

@@ -71,7 +71,7 @@ echo "<br>";
echo "<a href='javascript:phpfm($pid);'>Add more TestData now !</a>";
/* */
?>
<script src='../template/bs3/jquery.min.js' ></script>
<script src='../template/syzoj/jquery.min.js' ></script>
<script>
function phpfm(pid){
//alert(pid);

View File

@@ -18,7 +18,7 @@ if (!(isset($_SESSION[$OJ_NAME . '_' . 'administrator']) || isset($_SESSION[$OJ_
</head>
<?php echo "<center><h3>" .$MSG_PROBLEM."-".$MSG_ADD."</h3>
</center>";
include_once("kindeditor.php") ;
include_once("vditor.php") ;
$source=pdo_query("select source from problem order by problem_id desc limit 1"); //默认续用最后一次的分类标签
if(!empty($source)&&isset($source[0]))$source=$source[0][0];else $source="";
?>
@@ -48,14 +48,14 @@ if (!(isset($_SESSION[$OJ_NAME . '_' . 'administrator']) || isset($_SESSION[$OJ_
</p>
<p align=left>
<?php echo "<h4>" . $MSG_Description . "(<64kB)</h4>" ?>
<textarea class="kindeditor" rows=13 name=description cols=80></textarea></p>
<textarea class="vditor-editor" rows=13 name=description cols=80></textarea></p>
<p align=left>
<?php echo "<h4>" . $MSG_Input . "(<64kB)</h4>" ?>
<textarea class="kindeditor" rows=13 name=input cols=80></textarea></textarea><br>
<textarea class="vditor-editor" rows=13 name=input cols=80></textarea></textarea><br>
</p>
<p align=left>
<?php echo "<h4>" . $MSG_Output . "(<64kB)</h4>" ?>
<textarea class="kindeditor" rows=13 name=output cols=80></textarea></textarea><br>
<textarea class="vditor-editor" rows=13 name=output cols=80></textarea></textarea><br>
</p>
<p align=left>
<?php echo "<h4>" . $MSG_Sample_Input . "(<64kB)</h4>" ?>
@@ -77,7 +77,7 @@ if (!(isset($_SESSION[$OJ_NAME . '_' . 'administrator']) || isset($_SESSION[$OJ_
</p>
<p align=left>
<?php echo "<h4>" . $MSG_HINT . "(<64kB)</h4>" ?>
<textarea class="kindeditor" rows=13 name=hint cols=80></textarea></textarea><br>
<textarea class="vditor-editor" rows=13 name=hint cols=80></textarea></textarea><br>
</p>
<p>
<?php echo "<h4>" . $MSG_SPJ . "</h4>" ?>

View File

@@ -15,7 +15,7 @@ if (!(isset($_SESSION[$OJ_NAME.'_'.'administrator']))){
exit(1);
}?>
<?php
include_once("kindeditor.php") ;
include_once("vditor.php") ;
?>
<?php require_once("../include/simple_html_dom.php");
function getPartByMark($html,$mark1,$mark2){
@@ -78,7 +78,7 @@ function getPartByMark($html,$mark1,$mark2){
<p align=left>Time Limit:<input type=text name=time_limit size=20 value="<?php echo $time_limit?>">S
Memory Limit:<input type=text name=memory_limit size=20 value="<?php echo $memory_limit?>">MByte</p>
<p align=left>Description:<br>
<textarea class="kindeditor" rows=13 name=description cols=80><?php echo $descriptionHTML;?></textarea>
<textarea class="vditor-editor" rows=13 name=description cols=80><?php echo $descriptionHTML;?></textarea>
</p>
<p align=left>Input:
<textarea rows=5 name=input cols=80><?php echo $inputHTML;?></textarea>

View File

@@ -16,7 +16,7 @@ if (!(isset($_SESSION[$OJ_NAME.'_'.'administrator']))){
}
?>
<?php
include_once("kindeditor.php") ;
include_once("vditor.php") ;
?>
<?php require_once("../include/simple_html_dom.php");
$url=$_POST ['url'];
@@ -73,14 +73,14 @@ Time Limit:<input type=text name=time_limit class='input input-mini' size=2 valu
Memory Limit:<input type=text name=memory_limit class='input input-mini' size=2 value="<?php echo $mlimit?>">MByte
<input type=submit value=Submit name=submit></p>
<p align=left>Description:<br>
<textarea class="kindeditor" rows=13 name=description cols=80><?php echo $descriptionHTML;?></textarea>
<textarea class="vditor-editor" rows=13 name=description cols=80><?php echo $descriptionHTML;?></textarea>
</p>
<p align=left>Input:<br>
<textarea class="kindeditor" rows=13 name=input cols=80><?php echo $inputHTML;?></textarea>
<textarea class="vditor-editor" rows=13 name=input cols=80><?php echo $inputHTML;?></textarea>
</p>
</p>
<p align=left>Output:<br><!--<textarea rows=13 name=output cols=80></textarea>-->
<textarea class="kindeditor" rows=13 name=output cols=80><?php echo $outputHTML;?></textarea>
<textarea class="vditor-editor" rows=13 name=output cols=80><?php echo $outputHTML;?></textarea>
</p>
<p align=left>Sample Input:<textarea rows=3 name=sample_input cols=80><?php echo $sample_input?></textarea>
Sample Output:<textarea rows=3 name=sample_output cols=80><?php echo $sample_output?></textarea></p>

View File

@@ -16,7 +16,7 @@ if (!(isset($_SESSION[$OJ_NAME.'_'.'administrator']))){
exit(1);
}?>
<?php
include_once("kindeditor.php") ;
include_once("vditor.php") ;
?>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse:collapse" width="100%" height="50">
@@ -78,21 +78,21 @@ function getPartByMark($html,$mark1,$mark2){
<p align=left>Time Limit:<input type=text name=time_limit size=20 value=1>S</p>
<p align=left>Memory Limit:<input type=text name=memory_limit size=20 value=128>MByte</p>
<p align=left>Description:<br>
<textarea class="kindeditor" rows=13 name=description cols=80><?php echo $descriptionHTML;?></textarea>
<textarea class="vditor-editor" rows=13 name=description cols=80><?php echo $descriptionHTML;?></textarea>
</p>
<p align=left>Input:<br>
<textarea class="kindeditor" rows=13 name=input cols=80><?php echo $inputHTML;?></textarea>
<textarea class="vditor-editor" rows=13 name=input cols=80><?php echo $inputHTML;?></textarea>
</p>
</p>
<p align=left>Output:<br><!--<textarea rows=13 name=output cols=80></textarea>-->
<textarea class="kindeditor" rows=13 name=output cols=80><?php echo $outputHTML;?></textarea>
<textarea class="vditor-editor" rows=13 name=output cols=80><?php echo $outputHTML;?></textarea>
</p>
<p align=left>Sample Input:<br><textarea rows=13 name=sample_input cols=80><?php echo $sample_input?></textarea></p>
<p align=left>Sample Output:<br><textarea rows=13 name=sample_output cols=80><?php echo $sample_output?></textarea></p>
<p align=left>Test Input:<br><textarea rows=13 name=test_input cols=80></textarea></p>
<p align=left>Test Output:<br><textarea rows=13 name=test_output cols=80></textarea></p>
<p align=left>Hint:<br>
<textarea class="kindeditor" rows=13 name=hint cols=80></textarea>
<textarea class="vditor-editor" rows=13 name=hint cols=80></textarea>
</p>
<p>SpecialJudge: N<input type=radio name=spj value='0' checked>Y<input type=radio name=spj value='1'></p>
<p align=left>Source:<br><textarea name=source rows=1 cols=70></textarea></p>

View File

@@ -16,7 +16,7 @@ if (!(isset($_SESSION[$OJ_NAME.'_'.'administrator']))){
}
?>
<?php
include_once("kindeditor.php") ;
include_once("vditor.php") ;
?>
<?php require_once("../include/simple_html_dom.php");
$url=$_POST ['url'];
@@ -86,21 +86,21 @@ function mjpage($raw){
<p align=left>Memory Limit:<input type=text name=memory_limit size=20 value="<?php echo $mlimit?>">MByte</p>
<p align=left>Description:<br><!--<textarea rows=13 name=description cols=80></textarea>-->
<p align=left>Description:<br>
<textarea class="kindeditor" rows=13 name=description cols=80><?php echo $descriptionHTML;?></textarea>
<textarea class="vditor-editor" rows=13 name=description cols=80><?php echo $descriptionHTML;?></textarea>
</p>
<p align=left>Input:<br>
<textarea class="kindeditor" rows=13 name=input cols=80><?php echo $inputHTML;?></textarea>
<textarea class="vditor-editor" rows=13 name=input cols=80><?php echo $inputHTML;?></textarea>
</p>
</p>
<p align=left>Output:<br><!--<textarea rows=13 name=output cols=80></textarea>-->
<textarea class="kindeditor" rows=13 name=output cols=80><?php echo $outputHTML;?></textarea>
<textarea class="vditor-editor" rows=13 name=output cols=80><?php echo $outputHTML;?></textarea>
</p>
<p align=left>Sample Input:<br><textarea rows=13 name=sample_input cols=80><?php echo $sample_input?></textarea></p>
<p align=left>Sample Output:<br><textarea rows=13 name=sample_output cols=80><?php echo $sample_output?></textarea></p>
<p align=left>Test Input:<br><textarea rows=13 name=test_input cols=80></textarea></p>
<p align=left>Test Output:<br><textarea rows=13 name=test_output cols=80></textarea></p>
<p align=left>Hint:<br>
<textarea class="kindeditor" rows=13 name=hint cols=80><?php echo $hintHTML?></textarea>
<textarea class="vditor-editor" rows=13 name=hint cols=80><?php echo $hintHTML?></textarea>
</p>
<p>SpecialJudge: N<input type=radio name=spj value='0' checked>Y<input type=radio name=spj value='1'></p>
<p align=left>Source:<br><textarea name=source rows=1 cols=70>LibreOJ<?php echo $sourceHTML?></textarea></p>

View File

@@ -16,7 +16,7 @@ if (!(isset($_SESSION[$OJ_NAME.'_'.'administrator']))){
}
?>
<?php
include_once("kindeditor.php") ;
include_once("vditor.php") ;
?>
<?php require_once("../include/simple_html_dom.php");
function getPartByMark($html,$mark1,$mark2){
@@ -67,7 +67,7 @@ Memory Limit:<input type=text class='input input-mini' name=memory_limit size=2
<br>LUOGU<input type=text name=remote_id value="<?php echo $remote_id?>" >
<input type=submit value=Submit name=submit>
<p align=left>Description:<br>
<textarea class="kindeditor" rows=5 name=description cols=30><?php echo $descriptionHTML;?></textarea>
<textarea class="vditor-editor" rows=5 name=description cols=30><?php echo $descriptionHTML;?></textarea>
<p align=left>Input:
<textarea rows=5 name=input cols=30 ><?php echo $inputHTML;?></textarea>
Output:

View File

@@ -16,7 +16,7 @@ if (!(isset($_SESSION[$OJ_NAME.'_'.'administrator']))){
}
?>
<?php
include_once("kindeditor.php") ;
include_once("vditor.php") ;
?>
<?php require_once("../include/simple_html_dom.php");
$url=$_POST ['url'];
@@ -71,7 +71,7 @@ Memory Limit:<input type=text class='input input-mini' name=memory_limit size=2
<br>POJ<input type=text name=remote_id value="<?php echo $remote_id?>" >
<input type=submit value=Submit name=submit>
<p align=left>Description:<br>
<textarea class="kindeditor" rows=5 name=description cols=30><?php echo $descriptionHTML;?></textarea>
<textarea class="vditor-editor" rows=5 name=description cols=30><?php echo $descriptionHTML;?></textarea>
<p align=left>Input:
<textarea rows=5 name=input cols=30 ><?php echo $inputHTML;?></textarea>
Output:

View File

@@ -16,7 +16,7 @@ if (!(isset($_SESSION[$OJ_NAME.'_'.'administrator']))){
}
?>
<?php
include_once("kindeditor.php") ;
include_once("vditor.php") ;
?>
<?php require_once("../include/simple_html_dom.php");
function pregReplaceImg2($content,$prefix)
@@ -96,22 +96,22 @@ $url=$_POST ['url'];
<p align=left>Time Limit:<input type=text name=time_limit size=20 value="<?php echo $tlimit?>">S</p>
<p align=left>Memory Limit:<input type=text name=memory_limit size=20 value="<?php echo $mlimit?>">MByte</p>
<p align=left>Description:<br>
<textarea class="kindeditor" rows=13 name=description cols=80><?php echo $descriptionHTML;?></textarea>
<textarea class="vditor-editor" rows=13 name=description cols=80><?php echo $descriptionHTML;?></textarea>
</p>
<span style="display:none">
<p align=left>Input:<br>
<textarea class="kindeditor" rows=13 name=input cols=80><?php echo $inputHTML;?></textarea>
<textarea class="vditor-editor" rows=13 name=input cols=80><?php echo $inputHTML;?></textarea>
</p>
</p>
<p align=left>Output:<br><!--<textarea rows=13 name=output cols=80></textarea>-->
<textarea class="kindeditor" rows=13 name=output cols=80><?php echo $outputHTML;?></textarea>
<textarea class="vditor-editor" rows=13 name=output cols=80><?php echo $outputHTML;?></textarea>
</p>
<p align=left>Sample Input:<br><textarea rows=13 name=sample_input cols=80><?php echo $sample_input?></textarea></p>
<p align=left>Sample Output:<br><textarea rows=13 name=sample_output cols=80><?php echo $sample_output?></textarea></p>
<p align=left>Test Input:<br><textarea rows=13 name=test_input cols=80></textarea></p>
<p align=left>Test Output:<br><textarea rows=13 name=test_output cols=80></textarea></p>
<p align=left>Hint:<br>
<textarea class="kindeditor" rows=13 name=hint cols=80><?php echo $hintHTML?></textarea>
<textarea class="vditor-editor" rows=13 name=hint cols=80><?php echo $hintHTML?></textarea>
</p>
<p>SpecialJudge: N<input type=radio name=spj value='0' checked>Y<input type=radio name=spj value='1'></p>
<p align=left>Source:<br><textarea name=source rows=1 cols=70><?php echo $url?></textarea></p>

View File

@@ -16,7 +16,7 @@ if (!(isset($_SESSION[$OJ_NAME.'_'.'administrator']))){
exit(1);
}?>
<?php
include_once("kindeditor.php") ;
include_once("vditor.php") ;
?>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse:collapse" width="100%" height="50">
@@ -79,21 +79,21 @@ include_once("kindeditor.php") ;
<p align=left>Time Limit:<input type=text name=time_limit size=20 value=1>S</p>
<p align=left>Memory Limit:<input type=text name=memory_limit size=20 value=128>MByte</p>
<p align=left>Description:<br>
<textarea class="kindeditor" rows=13 name=description cols=80><?php echo $descriptionHTML;?></textarea>
<textarea class="vditor-editor" rows=13 name=description cols=80><?php echo $descriptionHTML;?></textarea>
</p>
<p align=left>Input:<br>
<textarea class="kindeditor" rows=13 name=input cols=80><?php echo $inputHTML;?></textarea>
<textarea class="vditor-editor" rows=13 name=input cols=80><?php echo $inputHTML;?></textarea>
</p>
</p>
<p align=left>Output:<br><!--<textarea rows=13 name=output cols=80></textarea>-->
<textarea class="kindeditor" rows=13 name=output cols=80><?php echo $outputHTML;?></textarea>
<textarea class="vditor-editor" rows=13 name=output cols=80><?php echo $outputHTML;?></textarea>
</p>
<p align=left>Sample Input:<br><textarea rows=13 name=sample_input cols=80><?php echo $sample_input?></textarea></p>
<p align=left>Sample Output:<br><textarea rows=13 name=sample_output cols=80><?php echo $sample_output?></textarea></p>
<p align=left>Test Input:<br><textarea rows=13 name=test_input cols=80></textarea></p>
<p align=left>Test Output:<br><textarea rows=13 name=test_output cols=80></textarea></p>
<p align=left>Hint:<br>
<textarea class="kindeditor" rows=13 name=hint cols=80></textarea>
<textarea class="vditor-editor" rows=13 name=hint cols=80></textarea>
</p>
<p>SpecialJudge: N<input type=radio name=spj value='0' checked>Y<input type=radio name=spj value='1'></p>
<p align=left>Source:<br><textarea name=source rows=1 cols=70>Waterloo </textarea></p>

View File

@@ -16,7 +16,7 @@ if (!(isset($_SESSION[$OJ_NAME.'_'.'administrator']))){
}
?>
<?php
include_once("kindeditor.php") ;
include_once("vditor.php") ;
?>
<?php require_once("../include/simple_html_dom.php");
$url=$_POST ['url'];
@@ -52,7 +52,7 @@ include_once("kindeditor.php") ;
//$sample_input=pre_grep(">[\\s]*Sample Input([\\s\\S]*?)>[\\s]*Sample Out?put",$html->outertext);
//$sample_output=$html->find(">[\\s]*Sample Out?put([\\s\\S]*?)<hr",0);
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʱ<EFBFBD><CAB1><EFBFBD><EFBFBD><EFBFBD>ޣ<EFBFBD><DEA3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʽ<EFBFBD><EFBFBD><EFBFBD>ɹ<EFBFBD><EFBFBD>ܺ<EFBFBD>һ<EFBFBD><EFBFBD><EFBFBD>ģ<EFBFBD>ʵ<EFBFBD>ֲ<EFBFBD><EFBFBD>ˣ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȥ<EFBFBD>ĸĽ<EFBFBD><EFBFBD>ɣ<EFBFBD>
//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʱ<EFBFBD><CAB1><EFBFBD><EFBFBD><EFBFBD>ޣ<EFBFBD><DEA3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʽ<EFBFBD><CABD><EFBFBD>ɹ<EFBFBD><C9B9>ܺ<EFBFBD>һ<EFBFBD><D2BB>ģ<EFBFBD>ʵ<EFBFBD>ֲ<EFBFBD><D6B2>ˣ<EFBFBD><CBA3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ȥ<EFBFBD>ĸĽ<C4B8><C4BD>ɣ<EFBFBD>
?>
<form method=POST action=problem_add.php>
@@ -63,14 +63,14 @@ include_once("kindeditor.php") ;
<p align=left>Time Limit:<input type=text name=time_limit size=20 value="<?php echo $tlimit?>">S</p>
<p align=left>Memory Limit:<input type=text name=memory_limit size=20 value="<?php echo $mlimit?>">MByte</p>
<p align=left>Description:<br>
<textarea class="kindeditor" rows=13 name=description cols=80><?php echo $descriptionHTML;?></textarea>
<textarea class="vditor-editor" rows=13 name=description cols=80><?php echo $descriptionHTML;?></textarea>
</p>
<p align=left>Input:<br>
<textarea class="kindeditor" rows=13 name=input cols=80><?php echo $inputHTML;?></textarea>
<textarea class="vditor-editor" rows=13 name=input cols=80><?php echo $inputHTML;?></textarea>
</p>
</p>
<p align=left>Output:<br><!--<textarea rows=13 name=output cols=80></textarea>-->
<textarea class="kindeditor" rows=13 name=output cols=80><?php echo $outputHTML;?></textarea>
<textarea class="vditor-editor" rows=13 name=output cols=80><?php echo $outputHTML;?></textarea>
</p>
<p align=left>Sample Input:<br><textarea rows=13 name=sample_input cols=80><?php echo $sample_input?></textarea></p>
<p align=left>Sample Output:<br><textarea rows=13 name=sample_output cols=80><?php echo $sample_output?></textarea></p>

View File

@@ -97,7 +97,7 @@ echo "<br>".$loj_id."<br>";
echo "<a href='javascript:phpfm($pid);'>Add more TestData now !</a>";
/* */
?>
<script src='../template/bs3/jquery.min.js' ></script>
<script src='../template/syzoj/jquery.min.js' ></script>
<script>
function phpfm(pid){
//alert(pid);

View File

@@ -18,7 +18,7 @@ if (!(isset($_SESSION[$OJ_NAME.'_'.'administrator']) || isset($_SESSION[$OJ_NAME
<?php
echo "<center><h3>"."Edit-".$MSG_PROBLEM."</h3></center>";
include_once("kindeditor.php") ;
include_once("vditor.php") ;
?>
@@ -62,17 +62,17 @@ include_once("kindeditor.php") ;
</p>
<p align=left>
<?php echo "<h4>".$MSG_Description."</h4>"?>
<textarea class="kindeditor" style="white-space:pre-wrap;" rows=13 name=description cols=80><?php echo htmlentities($row['description'],ENT_QUOTES,"UTF-8")?></textarea><br>
<textarea class="vditor-editor" style="white-space:pre-wrap;" rows=13 name=description cols=80><?php echo htmlentities($row['description'],ENT_QUOTES,"UTF-8")?></textarea><br>
</p>
<p align=left>
<?php echo "<h4>".$MSG_Input."</h4>"?>
<textarea class="kindeditor" style="white-space:pre-wrap;" rows=13 name=input cols=80><?php echo htmlentities($row['input'],ENT_QUOTES,"UTF-8")?></textarea><br>
<textarea class="vditor-editor" style="white-space:pre-wrap;" rows=13 name=input cols=80><?php echo htmlentities($row['input'],ENT_QUOTES,"UTF-8")?></textarea><br>
</p>
<p align=left>
<?php echo "<h4>".$MSG_Output."</h4>"?>
<textarea class="kindeditor" style="white-space:pre-wrap;" rows=13 name=output cols=80><?php echo htmlentities($row['output'],ENT_QUOTES,"UTF-8")?></textarea><br>
<textarea class="vditor-editor" style="white-space:pre-wrap;" rows=13 name=output cols=80><?php echo htmlentities($row['output'],ENT_QUOTES,"UTF-8")?></textarea><br>
</p>
<p align=left>
@@ -87,7 +87,7 @@ include_once("kindeditor.php") ;
<p align=left>
<?php echo "<h4>".$MSG_HINT."</h4>"?>
<textarea class="kindeditor" style="white-space:pre-wrap;" rows=13 name=hint cols=80><?php echo htmlentities($row['hint'],ENT_QUOTES,"UTF-8")?></textarea><br>
<textarea class="vditor-editor" style="white-space:pre-wrap;" rows=13 name=hint cols=80><?php echo htmlentities($row['hint'],ENT_QUOTES,"UTF-8")?></textarea><br>
</p>
<p>

View File

@@ -161,7 +161,7 @@ if(isset($_GET['keyword']) && $_GET['keyword']!=""){
</table>
</center>
<script src='../template/bs3/jquery.min.js' ></script>
<script src='../template/syzoj/jquery.min.js' ></script>
<script>
function phpfm(pid){

View File

@@ -30,12 +30,12 @@ if(isset($_POST['do'])){
if(file_exists($msgfile))
$msg = file_get_contents($msgfile);
include("kindeditor.php");
include("vditor.php");
?>
<div class="container">
<form action='setmsg.php' method='post'>
<textarea name='msg' class="kindeditor" ><?php echo $msg?></textarea><br>
<textarea name='msg' class="vditor-editor" ><?php echo $msg?></textarea><br>
<input type='hidden' name='do' value='do'>
<center><input type='submit' value='<?php echo $MSG_SAVE?>'></center>
<!-- <br>

View File

@@ -3,8 +3,8 @@
<script>
$(document).ready(function () {
HustOJVditor.initTextareaVditors({
selector: 'textarea.kindeditor',
uploadUrl: '../kindeditor/php/upload_json.php',
selector: 'textarea.vditor-editor',
uploadUrl: '../include/editor-upload.php',
accept: '*/*',
mode: 'wysiwyg',
preview: {
@@ -21,5 +21,4 @@
console.error('Failed to initialize Vditor.', error);
});
});
</script>
</script>