diff admajax.php @ 792:b42b23073209

Improve printing of results with more options (in the admin interface).
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 21 Nov 2014 21:42:47 +0200
parents 7d7258904b02
children 18f88945d5f1
line wrap: on
line diff
--- a/admajax.php	Fri Nov 21 16:19:15 2014 +0200
+++ b/admajax.php	Fri Nov 21 21:42:47 2014 +0200
@@ -1100,13 +1100,12 @@
         //
         $showMode = stGetDisplayVar("showMode");
         echo
-          "<div id=\"ctrlModeControls\">\n".
+          "<div id=\"ctrlModeControls\" class=\"ctrlModeControls\">\n".
           "Active mode:\n".
           stGetShowModeButton(SMODE_DISABLED, "Off/disabled", $showMode)."\n".
           stGetShowModeButton(SMODE_ROTATE, "Slide rotation", $showMode)."\n".
           stGetShowModeButton(SMODE_COMPO, "Compo mode", $showMode)."\n".
           "<a href=\"show.php\" target=\"_blank\">Open info window</a>\n".
-          "<a href=\"print.php?type=results\" target=\"_blank\">Printable results list</a>\n".
           "</div>\n".
           "<div id=\"ctrlSystemControls\">\n".
           stGetFormButtonInput("syscheck", "", "", "Perform system check", "performSystemCheck()")."\n".
@@ -1387,6 +1386,11 @@
 
       case "compos":
         echo
+          "<div class=\"ctrlModeControls\">\n".
+          " <a href=\"print.php?type=results&flags=".(RFLAG_DEFAULTS)."\" target=\"_blank\">Printable results</a>\n".
+          " <a href=\"print.php?type=results&flags=".(RFLAG_DISQUALIFIED)."\" target=\"_blank\">Printable full results</a> (shows also disqualified entries)\n".
+          " <a href=\"print.php?type=results&flags=".(RFLAG_DISQUALIFIED | RFLAG_HIDDEN_COMPOS)."\" target=\"_blank\">Printable FULL results</a> (shows also hidden compos)\n".
+          "</div>\n".
           "<form method=\"post\" action=\"\" onsubmit=\"return addCompo()\">\n".
           "  ".stGetFormTextInput(64, SET_LEN_COMPO_NAME, "", "ncname", "", "")."<br />\n".
           "  ".stGetFormTextArea(5, 60, "", "ncdescription", "", "")."<br />\n".