Mercurial > hg > fapweb
comparison admajax.php @ 1041:f188caaedf0f
Implement force reloading of show screen web-page.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 20 Nov 2015 10:48:18 +0200 |
parents | 2e1a9b564674 |
children | c0674ef6e100 |
comparison
equal
deleted
inserted
replaced
1040:3c3a1dc4008a | 1041:f188caaedf0f |
---|---|
823 if (stChkRequestItem("id", $compo_id, array(CHK_TYPE, VT_INT, "Invalid data."))) | 823 if (stChkRequestItem("id", $compo_id, array(CHK_TYPE, VT_INT, "Invalid data."))) |
824 stRandomizeCompoShowOrder($compo_id, $patch); | 824 stRandomizeCompoShowOrder($compo_id, $patch); |
825 } | 825 } |
826 break; | 826 break; |
827 | 827 |
828 case "screencmd": | |
829 if (stChkRequestItem("cmd", $stmp, array(CHK_TYPE, VT_STR, "Invalid data."))) | |
830 { | |
831 stSetDisplayVar("screenCmdSet", TRUE); | |
832 stSetDisplayVarUpd("screenCmd", $stmp); | |
833 } | |
834 break; | |
835 | |
828 case "check": | 836 case "check": |
829 // | 837 // |
830 // Perform systems check | 838 // Perform systems check |
831 // | 839 // |
832 $errors = 0; | 840 $errors = 0; |
1202 "Active mode:\n". | 1210 "Active mode:\n". |
1203 stGetShowModeButton(SMODE_DISABLED, "Off/disabled", $showMode)."\n". | 1211 stGetShowModeButton(SMODE_DISABLED, "Off/disabled", $showMode)."\n". |
1204 stGetShowModeButton(SMODE_ROTATE, "Slide rotation", $showMode)."\n". | 1212 stGetShowModeButton(SMODE_ROTATE, "Slide rotation", $showMode)."\n". |
1205 stGetShowModeButton(SMODE_COMPO, "Compo mode", $showMode)."\n". | 1213 stGetShowModeButton(SMODE_COMPO, "Compo mode", $showMode)."\n". |
1206 "<a href=\"show.php\" target=\"_blank\">Open info window</a>\n". | 1214 "<a href=\"show.php\" target=\"_blank\">Open info window</a>\n". |
1215 stGetFormButtonElement("showForceReload", "", "", "Showscreen reload", "showScreenCmd('reload')")."\n". | |
1207 "</div>\n". | 1216 "</div>\n". |
1208 "<div id=\"ctrlSystemControls\">\n". | 1217 "<div id=\"ctrlSystemControls\">\n". |
1209 stGetFormButtonInput("syscheck", "", "", "Perform system check", "performSystemCheck()")."\n". | 1218 stGetFormButtonInput("syscheck", "", "", "Perform system check", "performSystemCheck()")."\n". |
1210 stGetFormButtonInput("generate", "", "", "Add missing show positions", "generateEntryPositions(0, 1)")."\n". | 1219 stGetFormButtonInput("generate", "", "", "Add missing show positions", "generateEntryPositions(0, 1)")."\n". |
1211 stGetFormButtonInput("regenerate", "", "", "ReGenerate ALL show positions", "generateEntryPositions(0, 0)")."\n". | 1220 stGetFormButtonInput("regenerate", "", "", "ReGenerate ALL show positions", "generateEntryPositions(0, 0)")."\n". |