aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCassio de Campos <cassiopc@gmail.com>2017-10-25 09:39:08 +0000
committerCassio de Campos <cassiopc@gmail.com>2017-10-25 09:39:08 +0000
commit927bb55d2287b25d4efddd98d4920a2133f7345c (patch)
treed92f681e4009e5ad18706ce5b23865b44abeca82
parente9727e8f0c0040dc29cb7d78a606652d453fc77f (diff)
downloadboca-927bb55d2287b25d4efddd98d4920a2133f7345c.tar.gz
boca-927bb55d2287b25d4efddd98d4920a2133f7345c.zip
allow changes to probs
-rw-r--r--src/admin/problem.php20
1 files changed, 13 insertions, 7 deletions
diff --git a/src/admin/problem.php b/src/admin/problem.php
index d0ed636..314c2d0 100644
--- a/src/admin/problem.php
+++ b/src/admin/problem.php
@@ -219,6 +219,7 @@ if (isset($_POST["Submit3"]) && isset($_POST["problemnumber"]) && is_numeric($_P
}
}
</script>
+<form name="form0" enctype="multipart/form-data" method="post" action="problem.php">
<table width="100%" border=1>
<tr>
<td><b>Problem #</b></td>
@@ -248,7 +249,9 @@ for ($i=0; $i<count($prob); $i++) {
} 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"])) {
@@ -281,15 +284,18 @@ for ($i=0; $i<count($prob); $i++) {
else
echo " <td nowrap>&nbsp;</td>\n";
*/
+ echo " <td nowrap>";
if ($prob[$i]["color"]!="") {
- echo " <td nowrap>" . $prob[$i]["colorname"] .
- "<img title=\"".$prob[$i]["color"]."\" alt=\"".$prob[$i]["colorname"]."\" width=\"25\" src=\"" .
- balloonurl($prob[$i]["color"]) . "\" /></td>\n";
- } else
- echo " <td nowrap>&nbsp;</td>\n";
+ 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\">";
+ echo "</td>\n";
echo " </tr>\n";
}
-echo "</table>";
+echo "</table></form>";
if (count($prob) == 0) echo "<br><center><b><font color=\"#ff0000\">NO PROBLEMS DEFINED</font></b></center>";
?>