Esempio n. 1
0
        ?>
]]></input> 
<output><![CDATA[<?php 
        echo $row->output;
        ?>
]]></output>
<sample_input><![CDATA[<?php 
        echo $row->sample_input;
        ?>
]]></sample_input>
<sample_output><![CDATA[<?php 
        echo $row->sample_output;
        ?>
]]></sample_output>
  <?php 
        printTestCases($row->problem_id, $OJ_DATA);
        ?>
<hint><![CDATA[<?php 
        echo $row->hint;
        ?>
]]></hint>
<source><![CDATA[<?php 
        echo fixcdata($row->source);
        ?>
]]></source>
<?php 
        require "../include/const.inc.php";
        for ($lang = 0; $lang < count($language_name); $lang++) {
            $solution = getSolution($row->problem_id, $lang);
            if ($solution->language) {
                ?>
Esempio n. 2
0
function printLayoutMultipleleClasses($classe)
{
    foreach ($classe->children() as $testsuite) {
        ?>
<b><?php 
        echo "Class name: ";
        ?>
</b><?php 
        echo $testsuite->attributes()->name . "<br>";
        ?>
<ol type="1"><?php 
        foreach ($testsuite->children() as $testcase) {
            ?>
<li><b><?php 
            echo "Method name: ";
            ?>
</b>
			<i><?php 
            echo $testcase->attributes()->name . "<br>";
            ?>
</i></li><?php 
            printTestCases($testcase);
        }
        ?>
</ol>	<?php 
    }
}