aboutsummaryrefslogtreecommitdiff
path: root/src/admin
diff options
context:
space:
mode:
authorCassio de Campos <cassiopc@gmail.com>2017-10-25 09:41:18 +0000
committerCassio de Campos <cassiopc@gmail.com>2017-10-25 09:41:18 +0000
commit8c2c5036db73fbb183c0781f4ca2e53ded4b9e2e (patch)
treee3dbd951793cac2193f143a4048dccd7ae6bf43e /src/admin
parent927bb55d2287b25d4efddd98d4920a2133f7345c (diff)
downloadboca-8c2c5036db73fbb183c0781f4ca2e53ded4b9e2e.tar.gz
boca-8c2c5036db73fbb183c0781f4ca2e53ded4b9e2e.zip
visual imp
Diffstat (limited to 'src/admin')
-rw-r--r--src/admin/problem.php23
1 files changed, 13 insertions, 10 deletions
diff --git a/src/admin/problem.php b/src/admin/problem.php
index 314c2d0..b1a331a 100644
--- a/src/admin/problem.php
+++ b/src/admin/problem.php
@@ -246,12 +246,13 @@ for ($i=0; $i<count($prob); $i++) {
"')\">" . $prob[$i]["number"];
}
echo "</a></td>\n";
+ echo " <td nowrap>";
+ echo "<input type=\"text\" name=\"problemname\" value=\"" . $prob[$i]["name"] . "\" size=\"6\" maxlength=\"20\" />";
+ echo "</td>\n";
} else {
echo " <td nowrap>" . $prob[$i]["number"] . " (fake)</td>\n";
+ echo " <td nowrap>" . $prob[$i]["name"] . "</td>\n";
}
- echo " <td nowrap>";
- echo "<input type=\"text\" name=\"problemname\" value=\"" . $prob[$i]["name"] . "\" size=\"6\" maxlength=\"20\" />";
- echo "</td>\n";
echo " <td nowrap>" . $prob[$i]["fullname"] . "&nbsp;</td>\n";
echo " <td nowrap>" . $prob[$i]["basefilename"] . "&nbsp;</td>\n";
if (isset($prob[$i]["descoid"]) && $prob[$i]["descoid"] != null && isset($prob[$i]["descfilename"])) {
@@ -285,13 +286,15 @@ for ($i=0; $i<count($prob); $i++) {
echo " <td nowrap>&nbsp;</td>\n";
*/
echo " <td nowrap>";
- if ($prob[$i]["color"]!="") {
- echo "<img title=\"".$prob[$i]["color"]."\" alt=\"".$prob[$i]["colorname"]."\" width=\"25\" src=\"" .
- balloonurl($prob[$i]["color"]) . "\" />\n";
- }
- echo "<input type=\"text\" name=\"colorname\" value=\"" . $prob[$i]["colorname"] . "\" size=\"6\" maxlength=\"6\" />";
- echo "<input type=\"text\" name=\"color\" value=\"" . $prob[$i]["color"]. "\" size=\"6\" maxlength=\"6\" />";
- echo "<input type=\"submit\" name=\"SubmitProblem" . $prob[$i]["number"] . "\" value=\"Update\">";
+ if($prob[$i]["fake"]!='t') {
+ if ($prob[$i]["color"]!="") {
+ echo "<img title=\"".$prob[$i]["color"]."\" alt=\"".$prob[$i]["colorname"]."\" width=\"25\" src=\"" .
+ balloonurl($prob[$i]["color"]) . "\" />\n";
+ }
+ echo "<input type=\"text\" name=\"colorname\" value=\"" . $prob[$i]["colorname"] . "\" size=\"6\" maxlength=\"6\" />";
+ echo "<input type=\"text\" name=\"color\" value=\"" . $prob[$i]["color"]. "\" size=\"6\" maxlength=\"6\" />";
+ echo "<input type=\"submit\" name=\"SubmitProblem" . $prob[$i]["number"] . "\" value=\"Update\">";
+ } else echo "&nbsp;";
echo "</td>\n";
echo " </tr>\n";
}