
<!-----------------------------------------------Advance Search Form Modal --------------------------------------------------->
<div id="myModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">x</button>
<h3 id="myModalLabel">Advance Search Form</h3>
</div>

<div class="modal-body">
    <form class="form-horizontal" method="post" action="search.php">
	
	          <div class="control-group">
		      <label class="control-label" for="inputEmail">Registration Number</label>
			  <div class="controls">
			  <input class="input focused" name="username" id="focusedInput" type="text" placeholder = "Registration Number" required>
			  <?php
				$class_query = mysql_query("select * from student")or die(mysql_error());
				while($student_row = mysql_fetch_array($class_query)){			
				?>
			  			  <?php } ?>
			  </select>
		      </div>
	          </div>
							
			
			  			  			
			  
												
                <div class="control-group">
                <div class="controls">
                <button type="submit" id="search" data-placement="left" title="Click to Search" class="btn btn-primary"><i class="icon-search"></i> Search</button>
				 <script type="text/javascript">
		        $(document).ready(function(){
		        $('#search').tooltip('show');
		        $('#search').tooltip('hide');
		        });
		        </script> 
                </div>
                </div>
				
    </form>
</div>

<div class="modal-footer">
<button class="btn" data-dismiss="modal" aria-hidden="true"><i class="icon-remove icon-large"></i> Close</button>
</div>
</div>