aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCassio de Campos <cassiopc@gmail.com>2017-10-25 10:16:26 +0000
committerCassio de Campos <cassiopc@gmail.com>2017-10-25 10:16:26 +0000
commit63abd1225d702f52ae001e8a617206c70b7b8be6 (patch)
treebf3a822036d4a402047d6c5ca395a65d0f4e4c72
parentca107aab4f2e7b7a3b6b69d587ae89c0d88ab30a (diff)
downloadboca-63abd1225d702f52ae001e8a617206c70b7b8be6.tar.gz
boca-63abd1225d702f52ae001e8a617206c70b7b8be6.zip
do not propagate colors
-rw-r--r--src/admin/problem.php8
-rw-r--r--src/fextdata.php15
2 files changed, 19 insertions, 4 deletions
diff --git a/src/admin/problem.php b/src/admin/problem.php
index b8a71de..39ce953 100644
--- a/src/admin/problem.php
+++ b/src/admin/problem.php
@@ -268,9 +268,11 @@ for ($i=0; $i<count($prob); $i++) {
"')\">" . $prob[$i]["number"];
}
echo "</a></td>\n";
- echo " <td nowrap>";
- echo "<input type=\"text\" name=\"problemname" . $prob[$i]['number'] . "\" value=\"" . $prob[$i]["name"] . "\" size=\"4\" maxlength=\"20\" />";
- echo "</td>\n";
+ echo "<input type=hidden name=\"problemname" . $prob[$i]['number'] . "\" value=\"" . $prob[$i]["name"] . "\" />";
+ echo " <td nowrap>" . $prob[$i]["name"] . "</td>\n";
+ //echo " <td nowrap>";
+ //echo "<input type=\"text\" name=\"problemname" . $prob[$i]['number'] . "\" value=\"" . $prob[$i]["name"] . "\" size=\"4\" maxlength=\"20\" />";
+ //echo "</td>\n";
} else {
echo " <td nowrap>" . $prob[$i]["number"] . " (fake)</td>\n";
echo " <td nowrap>" . $prob[$i]["name"] . "</td>\n";
diff --git a/src/fextdata.php b/src/fextdata.php
index 8dfb134..f78c7f9 100644
--- a/src/fextdata.php
+++ b/src/fextdata.php
@@ -626,7 +626,20 @@ function genSQLs($contest, $site, $updatetime) {
$sql['sitetable']="select * from sitetable where contestnumber=$contest and sitenumber=$site and updatetime >= $updatetime";
$sql['answertable']="select * from answertable where contestnumber=$contest and fake='f' and updatetime >= $updatetime";
$sql['langtable']="select * from langtable where contestnumber=$contest and updatetime >= $updatetime";
- $sql['problemtable']="select * from problemtable where contestnumber=$contest and fake='f' and updatetime >= $updatetime";
+ $sql['problemtable']="select " .
+ "contestnumber, " .
+ "problemnumber, " .
+ "problemname, " .
+ "problemfullname, " .
+ "problembasefilename, " .
+ "probleminputfilename, " .
+ "probleminputfile, " .
+ "probleminputfilehash, " .
+ "fake, " .
+ //"problemcolorname, " .
+ //"problemcolor, " .
+ "updatetime" .
+ " from problemtable where contestnumber=$contest and fake='f' and updatetime >= $updatetime";
$sql['sitetimetable']="select * from sitetimetable where contestnumber=$contest and sitenumber=$site and updatetime >= $updatetime";
$sql['usertable']="select * from usertable where contestnumber=$contest and usersitenumber=$site and updatetime >= $updatetime";
$sql['clartable']="select * from clartable where contestnumber=$contest and clarsitenumber=$site and updatetime >= $updatetime";