# HG changeset patch # User Matti Hamalainen # Date 1386078728 -7200 # Node ID 9c4accca7bf807c03592f10be839104cd3cec0f2 # Parent ff8462a80cf2700497144b2699ef4c87e5984912 Add some helper functions. diff -r ff8462a80cf2 -r 9c4accca7bf8 admajax.php --- a/admajax.php Tue Dec 03 15:50:07 2013 +0200 +++ b/admajax.php Tue Dec 03 15:52:08 2013 +0200 @@ -198,7 +198,36 @@ } +function stGetOptionList($id, $sql, $iname, $active, $onChange = "") { + $str = + "\n"; +} + + +function stGetShowModeButton($mode, $name, $cmode) +{ + return stGetFormRadioButtonInput( + "showMode", "", "", $mode, + $cmode == $mode, + $name, + "onClick=\"setDisplayVar('showMode',".$mode.")\""); +} + + function stRandomizeCompoShowOrder($compo_id, $patch) { $entries = stExecSQL("SELECT id,show_id FROM entries WHERE compo_id=".$compo_id);