Changeset 238 for Dev/branches/jos-branch/mainmenu.php
- Timestamp:
- 01/18/12 16:39:27 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/branches/jos-branch/mainmenu.php
r235 r238 10 10 <?php new StyleSheet("visualeditors"); ?> 11 11 <script type="text/javascript" src="js/generalScripts.js"></script> 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> 12 63 </head> 13 64 <body> … … 22 73 <div class="innerLargeFrame"> 23 74 <p>Use the below buttons to access, edit and create new sessions and content.</p><br /> 24 <input type="button" class="bigButton vertical" value="Browse Sessions" id="btn EditSessions" onClick="window.location='selectSession.php'" /><br />25 <input type="button" class="bigButton vertical" value="Browse Surveys" id="btn EditSessions" onClick="window.location='selectSurvey.php'" /><br />26 <input type="button" class="bigButton vertical" value="Browse Questions" id="btn EditSessions" onClick="window.location='selectQuestion.php'" /><br />27 <input type="button" class="bigButton vertical" value="Browse Applications" id="btn EditSessions" onClick="window.location='selectApplication.php'" /><br />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 /> 28 79 29 80 </div>
Note: See TracChangeset
for help on using the changeset viewer.