diff options
| author | Cassio de Campos <cassiopc@gmail.com> | 2017-10-19 13:19:47 +0000 |
|---|---|---|
| committer | Cassio de Campos <cassiopc@gmail.com> | 2017-10-19 13:19:47 +0000 |
| commit | f387e0cdaa0a90a5520b1e7cff3a4f667fdd6828 (patch) | |
| tree | 0fa40a7fb2d318393a12742bbc63b09ffc888a1c | |
| parent | c1e9a742ab8567fc7026a39ea95ae3e95400faf8 (diff) | |
| download | boca-f387e0cdaa0a90a5520b1e7cff3a4f667fdd6828.tar.gz boca-f387e0cdaa0a90a5520b1e7cff3a4f667fdd6828.zip | |
choice of site number
| -rw-r--r-- | src/admin/header.php | 2 | ||||
| -rw-r--r-- | src/admin/misc.php | 6 | ||||
| -rw-r--r-- | src/admin/site.php | 14 |
3 files changed, 15 insertions, 7 deletions
diff --git a/src/admin/header.php b/src/admin/header.php index 5a01c93..4c4435d 100644 --- a/src/admin/header.php +++ b/src/admin/header.php @@ -53,7 +53,7 @@ if($_SESSION["usertable"]["usertype"] != "admin") { } if(!isset($_POST['noflush'])) { - echo "</head><body><table border=1 width=\"100%\">\n"; + echo "</head><body id=\"body\" style=\"overflow:hidden;\"><table border=1 width=\"100%\">\n"; echo "<tr><td nowrap bgcolor=\"eeee00\" align=center>"; echo "<img src=\"../images/smallballoontransp.png\" alt=\"\">"; echo "<font color=\"#000000\">BOCA</font>"; diff --git a/src/admin/misc.php b/src/admin/misc.php index 3e5df80..3e4a4d8 100644 --- a/src/admin/misc.php +++ b/src/admin/misc.php @@ -61,7 +61,7 @@ if (isset($_POST["Submit3"]) && $_POST["Submit3"] == "Transfer scores") { $doscore=true; } if (isset($_POST["Submit4"]) && $_POST["Submit4"] == "Update BOCA") { - echo "<br><pre>Not implemented</pre>\n"; + echo "<pre>Not implemented</pre>\n"; } $privatedir = $_SESSION['locr'] . $ds . "private"; $remotedir = $_SESSION['locr'] . $ds . "private" . $ds . "remotescores"; @@ -71,7 +71,7 @@ if(is_writable($remotedir)) { if($doscore) { if (($s = DBSiteInfo($_SESSION["usertable"]["contestnumber"],$_SESSION["usertable"]["usersitenumber"])) == null) ForceLoad("index.php"); - echo "<br><pre>\n"; + echo "<pre>\n"; echo "Building scores\n"; $level=$s["sitescorelevel"]; $data0 = array(); @@ -116,7 +116,7 @@ if(is_writable($remotedir)) { } else { if(file_exists($destination . ".lck") && filemtime($destination . ".lck") < time() - 120) @unlink($destination . ".lck"); - echo "<br><pre>Transfers locked by other process - try again soon</pre>\n"; + echo "<pre>Transfers locked by other process - try again soon</pre>\n"; } } ?> diff --git a/src/admin/site.php b/src/admin/site.php index 84241f3..78852a0 100644 --- a/src/admin/site.php +++ b/src/admin/site.php @@ -282,7 +282,7 @@ if ($main && isset($_FILES["importfile"]) && isset($_POST["Submit"]) && $_POST[" } } function newsite() { - document.location='site.php?new=1'; + document.getElementById('normal').style.display = "block"; } function sitech(n) { if(n==null) { @@ -599,7 +599,15 @@ if($main) { </center> <?php } ?> </form> - - +<div id="normal"> +<div id="popupnew"> +<form action="site.php" id="formnew" method="get" name="formnew"> +<h2>Choose site number</h2> +<input id="new" name="Number" placeholder="new" type="text"> +<input type="submit" name="Go" value="Go"> +</form> +</div> +</div> + </body> </html> |