Ignore:
Timestamp:
01/18/12 16:39:27 (13 years ago)
Author:
fpvanagthoven
Message:

-selectObject is een algemene object selector. Kan gebruikt worden vanuit het mainmenu om in de verschillende editors te komen, en kan eventueel ook onder de "add existing" knop kopen te staan binnen die editors.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Dev/branches/jos-branch/mainmenu.php

    r235 r238  
    1010        <?php new StyleSheet("visualeditors"); ?>
    1111        <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>
    1263    </head>
    1364    <body>
     
    2273                    <div class="innerLargeFrame">
    2374                        <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="btnEditSessions" onClick="window.location='selectSession.php'" /><br />
    25                         <input type="button" class="bigButton vertical" value="Browse Surveys" id="btnEditSessions" onClick="window.location='selectSurvey.php'" /><br />
    26                         <input type="button" class="bigButton vertical" value="Browse Questions" id="btnEditSessions" onClick="window.location='selectQuestion.php'" /><br />
    27                         <input type="button" class="bigButton vertical" value="Browse Applications" id="btnEditSessions" 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 />
    2879
    2980                    </div>
Note: See TracChangeset for help on using the changeset viewer.