<?php include 'common/includes/php_header.inc'; ?>
<?php
  // load records from 'mite_course_id'
  list($mite_course_idRecords, $mite_course_idMetaData) = getRecords(array(
    'tableName'   => 'mite_course_id',
    'loadUploads' => true,
    'allowSearch' => true,
  ));
?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">
    <title>Search</title>
    <!-- Bootstrap Core CSS -->
    <link href="common/css/bootstrap.min.css" rel="stylesheet">
    <!-- Custom CSS -->
    <link href="common/css/sb-admin.css" rel="stylesheet">
    <!-- Custom Fonts -->
    <link href="common/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
        <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
        <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
</head>
<body>
<div class="container">
  <h1 style="color:yellow">Curriculum Control Document Management System (CCDMS)</h1>
</div>
    <div id="wrapper">
        <!-- Navigation -->
        <nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
            <!-- Brand and toggle get grouped for better mobile display -->
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collaps
e">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="index.php">CCDMS</a>
            </div>
            <!-- Sidebar Menu Items - These collapse to the responsive navigation menu on small screens -->
            <div class="collapse navbar-collapse navbar-ex1-collapse">
                <?php include 'common/includes/menu.inc' ?>
            </div>
            <!-- /.navbar-collapse -->
        </nav>
        <div id="page-wrapper">
            <div class="container-fluid">
                <!-- Page Heading -->
                <div class="row">
                    <div class="col-lg-12">
                        <h1 class="page-header">
                             Search Page
                        </h1>
                        <ol class="breadcrumb">
                            <li>
                                <i class="fa fa-dashboard"></i>  <a href="index.php">Dashboard</a>
                            </li>
                            <li class="active">
                                <i class="fa fa-search"></i> Search Page
                            </li>
                        </ol>
                                           </div>
                </div>
<form action="searchResults.php?" method="get">
  <div class="form-group">
    <label for="QSPtitle">QSP Title</label>
    <input type="text" class="form-control" id="QSPtitle" placeholder="Words in a QSP Title">
  </div>
<div class="form-group">
  <label for="courseID">Course ID</label>
  <select class="form-control" id="courseID" name="courseID">
  <option value="">Please choose a Course ID</option>
<!--    <?php foreach (getListOptions('mite_course_id','course_id') as $value => $label): ?>
<option value="<?php echo $value; ?>" <?php selectedIf($value, @$_REQUEST['course_id']); ?>>
<?php echo $label; ?>
 </option>
   <?php endforeach ?>  -->
<?php foreach (getListOptions('mite_course_id','course_id') as $value => $label): ?>
        <?php echo $value; ?> - <?php $label; ?>
<?php endforeach ?>
</select>
</div>
  <button type="submit" class="btn btn-default">Submit</button>
</form>
           </div>
            <!-- /.container-fluid -->
        </div>
        <!-- /#page-wrapper -->
    </div>
    <!-- /#wrapper -->
    <!-- jQuery -->
    <script src="common/js/jquery.js"></script>
    <!-- Bootstrap Core JavaScript -->
    <script src="common/js/bootstrap.min.js"></script>
</body>
</html>
