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

getObject.php is de nieuwe pagina die gewoon PHP objecten in JSON zet en echoet. Nu werkt alleen de questionEditor er op, uiteindelijk zou dit ook de infopanel en de sequencer moeten gaan serven.

File:
1 edited

Legend:

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

    r116 r235  
    11<?php
    2 require 'classes/master.php'; //should be at top of every page   
    3      
    4 if (isset($_POST['login'])) {
    5     if ($_POST['username'] == '')
    6         die("Please log in!");
    7     else {
    8         $userDBI = new UserDatabaseInterface();
    9         $user_exists = $userDBI->checkUserName($_POST['username']);
    10         if ($user_exists) {
    11             $correct_password = $userDBI->checkUserPassword($_POST);
    12             /* session remembers login */
    13             if (!$correct_password)
    14                 die("The password you entered is not correct!");
    15             else
    16                 $_SESSION['username'] = $_POST['username'];
    17         }
    18         else
    19             die("Unknown user name");
    20     }
    21 }
    22 else if (is_null($_SESSION['username']))
    23     redirect('index.php');
    24 
    25 $surveys = Loader::loadSurveys();
    26 $applications = Loader::loadApplications();
     2require 'classes/master.php'; //should be at top of every page
    273?>
    284
     
    328        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    339        <title>Facilitator</title>
    34         <?php new StyleSheet(); ?>
    35         <script type="text/javascript" src="js/menu.js"></script>
     10        <?php new StyleSheet("visualeditors"); ?>
     11        <script type="text/javascript" src="js/generalScripts.js"></script>
    3612    </head>
    3713    <body>
     
    4117
    4218        <div id="wrapper">
     19            <div id="content">
     20                <div class="largeFrame side" id="adminPanel">
     21                    <div class="largeTitle">Administrator</div>
     22                    <div class="innerLargeFrame">
     23                        <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 />
    4328
    44             <div id="content">
    45                                
    46                     <?php new SessionMenu(); ?>
    47 
    48                     <?php new ApplicationMenu($applications); ?>
    49                
    50                     <?php new SurveyMenu($surveys); ?>
    51                
    52                     <?php new QuestionMenu(); ?>
    53 
     29                    </div>
     30                    <div class="controls"></div>
     31                </div>
     32                <div class="largeFrame side" id="facilitatorPanel">
     33                    <div class="largeTitle">Facilitator</div>
     34                    <div class="innerLargeFrame">
     35                        <p>Use the Start button below to start hosting a session.</p>
     36                        <input type="button" class="bigButton vertical" value="Start" id="btnFacStart" onClick="window.location='facpanel.php'" style="margin-top: 0.25em;"/>
     37                    </div>
     38                    <div class="controls"></div>
     39                </div>
    5440            </div>
    5541        </div>
Note: See TracChangeset for help on using the changeset viewer.