将markdown放入最终端,而不是编辑端
This commit is contained in:
@@ -48,20 +48,15 @@ if (!(isset($_SESSION[$OJ_NAME . '_' . 'administrator']) || isset($_SESSION[$OJ_
|
||||
</p>
|
||||
< align=left>
|
||||
<?php echo "<h4>" . $MSG_Description . "(<64kB)</h4>" ?>
|
||||
<textarea class="kindeditor" rows=13 name=description cols=80><span class='md auto_select'>
|
||||
|
||||
|
||||
</span></textarea><br>
|
||||
<textarea class="kindeditor" rows=13 name=description cols=80></textarea><br>
|
||||
</p>
|
||||
<p align=left>
|
||||
<?php echo "<h4>" . $MSG_Input . "(<64kB)</h4>" ?>
|
||||
<textarea class="kindeditor" rows=13 name=input cols=80><span class='md'>
|
||||
</span></textarea><br></textarea><br>
|
||||
<textarea class="kindeditor" rows=13 name=input cols=80></textarea><br></textarea><br>
|
||||
</p>
|
||||
<p align=left>
|
||||
<?php echo "<h4>" . $MSG_Output . "(<64kB)</h4>" ?>
|
||||
<textarea class="kindeditor" rows=13 name=output cols=80><span class='md'>
|
||||
</span></textarea><br></textarea><br>
|
||||
<textarea class="kindeditor" rows=13 name=output cols=80></textarea><br></textarea><br>
|
||||
</p>
|
||||
<p align=left>
|
||||
<?php echo "<h4>" . $MSG_Sample_Input . "(<64kB)</h4>" ?>
|
||||
@@ -83,8 +78,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><span class='md'>
|
||||
</span></textarea><br></textarea><br>
|
||||
<textarea class="kindeditor" rows=13 name=hint cols=80></textarea><br></textarea><br>
|
||||
</p>
|
||||
<p>
|
||||
<?php echo "<h4>" . $MSG_SPJ . "</h4>" ?>
|
||||
|
||||
@@ -115,14 +115,31 @@ div[class*=ace_br] {
|
||||
<div class="column">
|
||||
<h4 class="ui top attached block header"><?php echo $MSG_Description?></h4>
|
||||
<div id="description" class="ui bottom attached segment font-content">
|
||||
<?php if (str_contains($row['description'],"md auto_select"))echo $row['description']; else echo bbcode_to_html($row['description']); ?></div>
|
||||
<span class='md auto_select'>
|
||||
<?php
|
||||
// if (str_contains($row['description'],"md auto_select"))
|
||||
echo $row['description'];
|
||||
// else echo bbcode_to_html($row['description']);
|
||||
?>
|
||||
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php if($row['input']||isset($_GET['spa'])){ ?>
|
||||
<div class="row">
|
||||
<div class="column">
|
||||
<h4 class="ui top attached block header"><?php echo $MSG_Input?></h4>
|
||||
<div id='input' class="ui bottom attached segment font-content"><?php echo bbcode_to_html($row['input']); ?></div>
|
||||
<div id='input' class="ui bottom attached segment font-content">
|
||||
<span class='md auto_select'>
|
||||
<?php echo
|
||||
// bbcode_to_html(
|
||||
$row['input']
|
||||
// );
|
||||
?>
|
||||
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php }?>
|
||||
@@ -130,7 +147,16 @@ div[class*=ace_br] {
|
||||
<div class="row">
|
||||
<div class="column">
|
||||
<h4 class="ui top attached block header"><?php echo $MSG_Output?></h4>
|
||||
<div id='output' class="ui bottom attached segment font-content"><?php echo bbcode_to_html($row['output']); ?></div>
|
||||
<div id='output' class="ui bottom attached segment font-content">
|
||||
<span class='md auto_select'>
|
||||
<?php echo
|
||||
// bbcode_to_html(
|
||||
$row['output']
|
||||
// );
|
||||
?>
|
||||
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php }?>
|
||||
@@ -174,7 +200,16 @@ div[class*=ace_br] {
|
||||
<div class="row">
|
||||
<div class="column">
|
||||
<h4 class="ui top attached block header"><?php echo $MSG_HINT?></h4>
|
||||
<div id='hint' class="ui bottom attached segment font-content hint"><?php echo bbcode_to_html($row['hint']); ?></div>
|
||||
<div id='hint' class="ui bottom attached segment font-content hint">
|
||||
<span class='md auto_select'>
|
||||
<?php echo
|
||||
// bbcode_to_html(
|
||||
$row['hint']
|
||||
// );
|
||||
?>
|
||||
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php }?>
|
||||
|
||||
Reference in New Issue
Block a user