Exemplo n.º 1
0
		<select name="type">
			<option value="Student">Student</option>
			<option value="Instructor">Instructor</option>
		</select>
		<input type="submit" value="Submit">
	</form>
	<?php 
} else {
    $name = $_SESSION["name"];
    $type = $_SESSION["type"];
    $classes = $_SESSION["classes"];
    $active = $_SESSION["active"];
    setcookie("name", $name);
    include "common.php";
    $newUser = saveUser($servername, $username, $password, $db, $port, $name, $type, $active, $classes);
    common_head();
    if ($active) {
        if ($type == "Instructor") {
            ?>
			<script type="text/javascript">
				questionStreamInstructor(<?php 
            echo "\"{$active}\"";
            ?>
);
			</script>
		<?php 
        } else {
            //type == Student
            ?>
			<h1><?php 
            echo $active;
Exemplo n.º 2
0
include "include/logincheck.php";
if (isset($_GET["accept"])) {
    accept_request($_GET["accept"]);
    header("location:connections.php#connection");
}
html("START");
?>
<!-- BEGIN HEAD -->
<head>
<?php 
common_head("META");
put_seo(array("title" => get_the_option("website_title") . " | Connections", "desc" => "", "author" => "", "keywords" => "", "image" => ""));
common_style("MANDATORY_STYLES");
page_style("CONNECTIONS");
common_style("THEME_STYLES");
common_head("FAVICON");
?>
    
<body class="page-header-fixed page-sidebar-closed-hide-logo page-sidebar-fixed page-sidebar-closed-hide-logo page-sidebar-closed">

<!-- BEGIN HEADER -->
<div class="page-header navbar navbar-fixed-top">
	<!-- BEGIN HEADER INNER -->
	<?php 
include "include/header.php";
?>
	<!-- END HEADER INNER -->
</div>
<!-- END HEADER -->
<div class="clearfix">
</div>