[56] | 1 | <?php |
---|
[235] | 2 | require 'classes/master.php'; //should be at top of every page |
---|
[47] | 3 | ?> |
---|
| 4 | |
---|
| 5 | <!DOCTYPE html> |
---|
| 6 | <html> |
---|
| 7 | <head> |
---|
| 8 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
---|
| 9 | <title>Facilitator</title> |
---|
[235] | 10 | <?php new StyleSheet("visualeditors"); ?> |
---|
| 11 | <script type="text/javascript" src="js/generalScripts.js"></script> |
---|
[238] | 12 | <script type="text/javascript"> |
---|
| 13 | function browseSessions() { |
---|
| 14 | // This one doesn't use the objectSelector yet. Just redirect to selectSession.php |
---|
| 15 | window.location = 'selectSession.php'; |
---|
| 16 | } |
---|
| 17 | |
---|
| 18 | function browseSurveys() { |
---|
| 19 | var form = ce("form"); |
---|
| 20 | form.method = "POST"; |
---|
| 21 | form.action = "selectObject.php"; |
---|
| 22 | var input1 = ce("input"); |
---|
| 23 | input1.name = "objectType"; |
---|
| 24 | input1.value = "Survey"; |
---|
| 25 | var input2 = ce("input"); |
---|
| 26 | input2.name = "function"; |
---|
| 27 | input2.value = "redirEditor"; |
---|
| 28 | form.appendChild(input1); |
---|
| 29 | form.appendChild(input2); |
---|
| 30 | form.submit(); |
---|
| 31 | } |
---|
| 32 | |
---|
| 33 | function browseQuestions() { |
---|
| 34 | var form = ce("form"); |
---|
| 35 | form.method = "POST"; |
---|
| 36 | form.action = "selectObject.php"; |
---|
| 37 | var input1 = ce("input"); |
---|
| 38 | input1.name = "objectType"; |
---|
| 39 | input1.value = "Question"; |
---|
| 40 | var input2 = ce("input"); |
---|
| 41 | input2.name = "function"; |
---|
| 42 | input2.value = "redirEditor"; |
---|
| 43 | form.appendChild(input1); |
---|
| 44 | form.appendChild(input2); |
---|
| 45 | form.submit(); |
---|
| 46 | } |
---|
| 47 | |
---|
| 48 | function browseApplications() { |
---|
| 49 | var form = ce("form"); |
---|
| 50 | form.method = "POST"; |
---|
| 51 | form.action = "selectObject.php"; |
---|
| 52 | var input1 = ce("input"); |
---|
| 53 | input1.name = "objectType"; |
---|
| 54 | input1.value = "Application"; |
---|
| 55 | var input2 = ce("input"); |
---|
| 56 | input2.name = "function"; |
---|
| 57 | input2.value = "redirEditor"; |
---|
| 58 | form.appendChild(input1); |
---|
| 59 | form.appendChild(input2); |
---|
| 60 | form.submit(); |
---|
| 61 | } |
---|
| 62 | </script> |
---|
[47] | 63 | </head> |
---|
| 64 | <body> |
---|
| 65 | <div id="header"> |
---|
[56] | 66 | <?php new Logo(); ?> |
---|
| 67 | </div> |
---|
| 68 | |
---|
[47] | 69 | <div id="wrapper"> |
---|
| 70 | <div id="content"> |
---|
[235] | 71 | <div class="largeFrame side" id="adminPanel"> |
---|
| 72 | <div class="largeTitle">Administrator</div> |
---|
| 73 | <div class="innerLargeFrame"> |
---|
| 74 | <p>Use the below buttons to access, edit and create new sessions and content.</p><br /> |
---|
[238] | 75 | <input type="button" class="bigButton vertical" value="Browse Sessions" id="btnBrowseSessions" onClick="browseSessions()" /><br /> |
---|
| 76 | <input type="button" class="bigButton vertical" value="Browse Surveys" id="btnBrowseSurveys" onClick="browseSurveys()" /><br /> |
---|
| 77 | <input type="button" class="bigButton vertical" value="Browse Questions" id="btnBrowseQuestions" onClick="browseQuestions()" /><br /> |
---|
| 78 | <input type="button" class="bigButton vertical" value="Browse Applications" id="btnBrowseApplications" onClick="browseApplications()" /><br /> |
---|
[58] | 79 | |
---|
[235] | 80 | </div> |
---|
| 81 | <div class="controls"></div> |
---|
| 82 | </div> |
---|
| 83 | <div class="largeFrame side" id="facilitatorPanel"> |
---|
| 84 | <div class="largeTitle">Facilitator</div> |
---|
| 85 | <div class="innerLargeFrame"> |
---|
| 86 | <p>Use the Start button below to start hosting a session.</p> |
---|
| 87 | <input type="button" class="bigButton vertical" value="Start" id="btnFacStart" onClick="window.location='facpanel.php'" style="margin-top: 0.25em;"/> |
---|
| 88 | </div> |
---|
| 89 | <div class="controls"></div> |
---|
| 90 | </div> |
---|
[47] | 91 | </div> |
---|
| 92 | </div> |
---|
| 93 | </body> |
---|
| 94 | </html> |
---|